Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb16a0c

Browse files
author
Alain Dumesny
committed
removed bower
* bower has been dead for a while, so removing (see https://snyk.io/blog/bower-is-dead) * Updated README.md sections and npm descriptions
1 parent 2e2a317 commit fb16a0c

File tree

7 files changed

+65
-115
lines changed

7 files changed

+65
-115
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
*.tgz
33
*.zip
44
.npmrc
5-
bower_components
65
coverage
76
dist
87
node_modules

.npmignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ yarn.lock
1515
Gruntfile.js
1616
ISSUE_TEMPLATE.md
1717
PULL_REQUEST_TEMPLATE.md
18-
bower.json
1918
freelancer
2019
karma.conf.js
2120
protractor.conf.js
@@ -24,7 +23,6 @@ protractor.conf.js
2423
*.log
2524
*.tgz
2625
*.zip
27-
bower_components
2826
coverage/
2927
node_modules/
3028

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ cache:
1313
install:
1414
#- yarn global add [email protected]
1515
- yarn global add grunt-cli
16-
- yarn global add bower
1716
#- yarn add selenium-webdriver
1817
- yarn
19-
- bower install
2018
#- ./node_modules/protractor/bin/webdriver-manager update --standalone
2119
#before_script:
2220
#- export CHROME_BIN=chromium-browser

README.md

Lines changed: 58 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ gridstack.js
66
[![Dependency Status](https://david-dm.org/gridstack/gridstack.js.svg)](https://david-dm.org/gridstack/gridstack.js)
77
[![devDependency Status](https://david-dm.org/gridstack/gridstack.js/dev-status.svg)](https://david-dm.org/gridstack/gridstack.js#info=devDependencies)
88

9-
Mobile-friendly Javascript library for dashboard layout and creation. Making a drag-and-drop, multi-column dashboard has never been easier. Allows you to build draggable, responsive bootstrap v3-friendly layouts. It also has multiple bindings and works great with [react](https://reactjs.org/), [angular](https://angular.io/), [knockout.js](http://knockoutjs.com), [ember](https://www.emberjs.com/) and others.
9+
Mobile-friendly Javascript library for dashboard layout and creation. Making a drag-and-drop, multi-column dashboard has never been easier. Allows you to build draggable, responsive bootstrap v3-friendly layouts. It also has multiple bindings and works great with [React](https://reactjs.org/), [Angular](https://angular.io/), [Knockout.js](http://knockoutjs.com), [Ember](https://www.emberjs.com/) and others, and comes with a Typescript definition out of the box.
1010

11-
Inspired by no-longer maintained gridster.js. Built with love.
11+
Inspired by no-longer maintained gridster.js, built with love.
1212

13-
Join gridstack.js on Slack: https://gridstackjs.troolee.com, and see demos section below
13+
Please visit http://gridstackjs.com and [these demos](http://gridstackjs.com/demo/).
14+
15+
Join us on Slack: https://gridstackjs.troolee.com
1416

1517
[![Slack Status](https://gridstackjs.troolee.com/badge.svg)](https://gridstackjs.troolee.com)
1618

@@ -20,16 +22,17 @@ Join gridstack.js on Slack: https://gridstackjs.troolee.com, and see demos secti
2022

2123
- [Demo and examples](#demo-and-examples)
2224
- [Usage](#usage)
23-
- [Requirements](#requirements)
2425
- [Install](#install)
26+
- [Include](#include)
2527
- [Basic usage](#basic-usage)
26-
- [Migrating to v0.3.0](#migrating-to-v030)
28+
- [Requirements](#requirements)
2729
- [API Documentation](#api-documentation)
2830
- [Touch devices support](#touch-devices-support)
2931
- [gridstack.js for specific frameworks](#gridstackjs-for-specific-frameworks)
3032
- [Change grid columns](#change-grid-columns)
3133
- [Custom columns CSS](#custom-columns-css)
3234
- [Override resizable/draggable options](#override-resizabledraggable-options)
35+
- [Migrating to v0.3.0](#migrating-to-v030)
3336
- [Changes](#changes)
3437
- [The Team](#the-team)
3538

@@ -39,27 +42,32 @@ Join gridstack.js on Slack: https://gridstackjs.troolee.com, and see demos secti
3942
Demo and examples
4043
====
4144

42-
Please visit http://gridstackjs.com for a demo or check out [these examples](http://gridstackjs.com/demo/).
45+
Please visit http://gridstackjs.com and [these demos](http://gridstackjs.com/demo/).
4346

4447

4548
Usage
4649
=====
4750

48-
## Requirements
51+
## Install
4952

50-
* [jQuery](http://jquery.com) (>= 1.8)
51-
* `Array.prototype.find`, and `Number.isNaN()` for IE and older browsers.
52-
* Note: as of v0.5.4 We supply a separate `gridstack-poly.js` for that
53-
(part of `gridstack.all.js`) or you can look at other pollyfills
54-
([core.js](https://github.com/zloirock/core-js#ecmascript-6-array) and [mozilla.org](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find)).
53+
* Using yarn / npm:
5554

56-
Using gridstack.js with jQuery UI
55+
[![NPM version](https://img.shields.io/npm/v/gridstack.svg)](https://www.npmjs.com/package/gridstack)
5756

58-
* [jQuery UI](http://jqueryui.com) (>= 1.12.0). Minimum required components: Draggable, Droppable, Resizable (Widget, Mouse, core).
59-
* Note: as of v0.5.4 we include this subset as `jquery-ui.js` (and min.js) which is part of `gridstack.all.js`. If you wish to bring your own lib, include the individual gridstack parts instead of all.js
60-
* (Optional) [jquery-ui-touch-punch](https://github.com/furf/jquery-ui-touch-punch) for touch-based devices support
57+
```bash
58+
$ yarn install gridstack
59+
```
6160

62-
## Install
61+
## Include
62+
63+
* local:
64+
65+
66+
```html
67+
<link rel="stylesheet" href="gridstack.css" />
68+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
69+
<script src="gridstack.all.js"></script>
70+
```
6371

6472
* Using CDN (minimized):
6573

@@ -79,32 +87,6 @@ Using gridstack.js with jQuery UI
7987
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/gridstack.jQueryUI.js"></script>
8088
```
8189

82-
* or local:
83-
84-
```html
85-
<link rel="stylesheet" href="gridstack.css" />
86-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
87-
<script src="gridstack.js"></script>
88-
<script src="jquery-ui.js"></script>
89-
<script src="gridstack.jQueryUI.js"></script>
90-
```
91-
92-
* Using npm:
93-
94-
[![NPM version](https://img.shields.io/npm/v/gridstack.svg)](https://www.npmjs.com/package/gridstack)
95-
96-
```bash
97-
$ npm install gridstack
98-
```
99-
100-
* Using bower:
101-
102-
```bash
103-
$ bower install gridstack
104-
```
105-
106-
You can also download source and build and use `dist` directory as well for latest non published code.
107-
10890
## Basic usage
10991

11092
```html
@@ -124,26 +106,21 @@ $(function () {
124106
</script>
125107
```
126108

109+
see [jsfiddle sample](https://jsfiddle.net/adumesny/jqhkry7g) as running example too.
127110

128-
## Migrating to v0.3.0
129-
130-
As of v0.3.0, gridstack introduces a new plugin system. The drag'n'drop functionality has been modified to take advantage of this system. Because of this, and to avoid dependency on core code from jQuery UI, the plugin functionality was moved to a separate file.
131-
132-
To ensure gridstack continues to work, either include the additional `gridstack.jQueryUI.js` file into your HTML or use `gridstack.all.js`:
133-
134-
```html
135-
<script src="gridstack.js"></script>
136-
<script src="gridstack.jQueryUI.js"></script>
137-
```
138-
139-
or
111+
## Requirements
140112

141-
```html
142-
<script src="gridstack.all.js"></script>
143-
```
113+
* [jQuery](http://jquery.com) (>= 1.8)
114+
* `Array.prototype.find`, and `Number.isNaN()` for IE and older browsers.
115+
* Note: as of v0.5.4 We supply a separate `gridstack-poly.js` for that
116+
(part of `gridstack.all.js`) or you can look at other pollyfills
117+
([core.js](https://github.com/zloirock/core-js#ecmascript-6-array) and [mozilla.org](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find)).
144118

145-
We're working on implementing support for other drag'n'drop libraries through the new plugin system.
119+
Using gridstack.js with jQuery UI
146120

121+
* [jQuery UI](http://jqueryui.com) (>= 1.12.0). Minimum required components: Draggable, Droppable, Resizable (Widget, Mouse, core).
122+
* Note: as of v0.5.4 we include this subset as `jquery-ui.js` (and min.js) which is part of `gridstack.all.js`. If you wish to bring your own lib, include the individual gridstack parts instead of all.js
123+
* (Optional) [jquery-ui-touch-punch](https://github.com/furf/jquery-ui-touch-punch) for touch-based devices support
147124

148125
## API Documentation
149126

@@ -180,10 +157,13 @@ If you're still experiencing issues on touch devices please check [#444](https:/
180157

181158
## gridstack.js for specific frameworks
182159

160+
search for ['gridstack' under NPM](https://www.npmjs.com/search?q=gridstack&ranking=popularity) for latest, more to come...
161+
162+
- ember: [gridstack-ember](https://github.com/yahoo/ember-gridstack)
183163
- AngularJS: [gridstack-angular](https://github.com/kdietrich/gridstack-angular)
164+
- Angular8: [lb-gridstack](https://github.com/pfms84/lb-gridstack)
184165
- Rails: [gridstack-js-rails](https://github.com/randoum/gridstack-js-rails)
185-
- ember: [gridstack-ember](https://github.com/yahoo/ember-gridstack)
186-
166+
- React: [react-gridstack](https://github.com/pitrho/react-gridstack)
187167

188168
## Change grid columns
189169

@@ -271,6 +251,23 @@ $('.grid-stack').gridstack({
271251

272252
Note: It's not recommended to enable `nw`, `n`, `ne` resizing handles. Their behaviour may be unexpected.
273253

254+
## Migrating to v0.3.0
255+
256+
As of v0.3.0, gridstack introduces a new plugin system. The drag'n'drop functionality has been modified to take advantage of this system. Because of this, and to avoid dependency on core code from jQuery UI, the plugin functionality was moved to a separate file.
257+
258+
To ensure gridstack continues to work, either include the additional `gridstack.jQueryUI.js` file into your HTML or use `gridstack.all.js`:
259+
260+
```html
261+
<script src="gridstack.js"></script>
262+
<script src="gridstack.jQueryUI.js"></script>
263+
```
264+
or
265+
```html
266+
<script src="gridstack.all.js"></script>
267+
```
268+
269+
We're working on implementing support for other drag'n'drop libraries through the new plugin system.
270+
274271
Changes
275272
=====
276273

bower.json

Lines changed: 0 additions & 43 deletions
This file was deleted.

doc/CHANGES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Change log
55
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
66
**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*
77

8-
- [v0.6.3-dev (Upcoming changes)](#v063-dev-upcoming-changes)
8+
- [v0.6.3-dev (upcoming changes)](#v063-dev-upcoming-changes)
99
- [v0.6.3 (2020-02-05)](#v063-2020-02-05)
1010
- [v0.6.2 (2020-02-03)](#v062-2020-02-03)
1111
- [v0.6.1 (2020-02-02)](#v061-2020-02-02)
@@ -31,7 +31,7 @@ Change log
3131

3232
## v0.6.3-dev (upcoming changes)
3333

34-
- TBD
34+
- del `bower` since dead for a while now (https://snyk.io/blog/bower-is-dead/)
3535

3636
## v0.6.3 (2020-02-05)
3737

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "gridstack",
33
"version": "0.6.3-dev",
4-
"description": "gridstack.js is a jQuery plugin for widget layout, with many wrappers (React, @angular, knockout...)",
4+
"description": "gridstack.js for dashboard layout and creation, with many wrappers (React, Angular, Ember, knockout...)",
55
"main": "dist/gridstack.js",
66
"repository": {
77
"type": "git",
@@ -15,7 +15,7 @@
1515
"prepublishOnly": "yarn build"
1616
},
1717
"keywords": [
18-
"gridstack",
18+
"gridstack.js",
1919
"grid",
2020
"gridster",
2121
"layout",
@@ -24,8 +24,9 @@
2424
"resize",
2525
"drag&drop",
2626
"widgets",
27-
"angular",
28-
"react"
27+
"Angular",
28+
"React",
29+
"Typescript"
2930
],
3031
"author": "Pavel Reznikov <[email protected]>",
3132
"contributors": [

0 commit comments

Comments
 (0)