Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nathancahill/split
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.5.0
Choose a base ref
...
head repository: nathancahill/split
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 33,036 additions and 8,405 deletions.
  1. +19 −0 .circleci/config.yml
  2. +10 −0 .dependabot/config.yml
  3. +4 −0 .eslintignore
  4. +0 −24 .eslintrc
  5. +18 −0 .eslintrc.json
  6. +4 −0 .github/FUNDING.yml
  7. +26 −0 .github/workflows/pages.yml
  8. +3 −0 .gitignore
  9. +3 −0 .prettierignore
  10. +0 −9 .travis.yml
  11. +27 −23 AUTHORS.md
  12. +62 −0 CHANGELOG.md
  13. +49 −0 CONTRIBUTING.md
  14. +0 −15 Gruntfile.js
  15. +19 −0 LICENSE
  16. +22 −530 README.md
  17. +0 −37 bower.json
  18. +0 −40 browserstack.json
  19. +0 −1 docs/CNAME
  20. +0 −1 docs/font.css
  21. +0 −6 docs/gist.css
  22. +0 −1 docs/index.css
  23. +0 −349 docs/index.html
  24. +0 −2 docs/split.min.js
  25. +0 −72 docs/splitjs.css
  26. +0 −1 docs/subscribe.js
  27. +0 −1 docs/web-font.js
  28. +0 −102 examples/api.html
  29. +0 −86 examples/jsfiddle.html
  30. +0 −88 index.d.ts
  31. +5 −0 lerna.json
  32. +0 −1 logo.svg
  33. +42 −59 package.json
  34. +3 −0 packages/grid-template-utils/.babelrc
  35. +1 −1 { → packages/grid-template-utils}/LICENSE.txt
  36. +117 −0 packages/grid-template-utils/README.md
  37. +25 −0 packages/grid-template-utils/package.json
  38. +53 −0 packages/grid-template-utils/rollup.config.js
  39. +44 −0 packages/grid-template-utils/src/index.js
  40. +195 −0 packages/grid-template-utils/src/index.test.js
  41. +19 −0 packages/react-split-grid/LICENSE.txt
  42. +240 −0 packages/react-split-grid/README.md
  43. +36 −0 packages/react-split-grid/index.d.ts
  44. +35 −0 packages/react-split-grid/package.json
  45. +65 −0 packages/react-split-grid/rollup.config.js
  46. +235 −0 packages/react-split-grid/src/index.js
  47. +3 −0 packages/react-split-grid/src/index.test.js
  48. +19 −0 packages/react-split/LICENSE.txt
  49. +182 −0 packages/react-split/README.md
  50. +26 −0 packages/react-split/index.d.ts
  51. +35 −0 packages/react-split/package.json
  52. +65 −0 packages/react-split/rollup.config.js
  53. +194 −0 packages/react-split/src/index.js
  54. +3 −0 packages/react-split/src/index.test.js
  55. +10 −0 packages/split-generator/.dependabot/config.yml
  56. +3 −0 packages/split-generator/.eslintignore
  57. +14 −0 packages/split-generator/.eslintrc.json
  58. +17 −0 packages/split-generator/.github/workflows/ci.yml
  59. +105 −0 packages/split-generator/.gitignore
  60. +1 −0 packages/split-generator/.prettierignore
  61. +1 −0 packages/split-generator/README.md
  62. +48 −0 packages/split-generator/package.json
  63. +21 −0 packages/split-generator/postcss.config.js
  64. +8 −0 packages/split-generator/prettier.config.js
  65. +14 −0 packages/split-generator/public/bundle.css
  66. +9 −0 packages/split-generator/public/bundle.js
  67. BIN {grips → packages/split-generator/public}/horizontal.png
  68. +12 −0 packages/split-generator/public/index.html
  69. BIN {grips → packages/split-generator/public}/vertical.png
  70. +38 −0 packages/split-generator/rollup.config.js
  71. +20 −0 packages/split-generator/src/App.svelte
  72. +110 −0 packages/split-generator/src/Dashboard.svelte
  73. +617 −0 packages/split-generator/src/SplitGenerator.svelte
  74. +592 −0 packages/split-generator/src/SplitGridGenerator.svelte
  75. +38 −0 packages/split-generator/src/components/Logo.svelte
  76. +11 −0 packages/split-generator/src/components/LogoSvg.svelte
  77. +75 −0 packages/split-generator/src/components/Stepper.svelte
  78. +49 −0 packages/split-generator/src/components/Toggle.svelte
  79. +14 −0 packages/split-generator/src/icons/Copied.svelte
  80. +14 −0 packages/split-generator/src/icons/Copy.svelte
  81. +5 −0 packages/split-generator/src/index.js
  82. +58 −0 packages/split-generator/src/less/carbon.less
  83. +60 −0 packages/split-generator/src/less/markdown.less
  84. +278 −0 packages/split-generator/src/less/prism-atom-dark.less
  85. +21 −0 packages/split-generator/tailwind.config.js
  86. +1 −0 packages/split-generator/tests/test.js
  87. +5,306 −0 packages/split-generator/yarn.lock
  88. +3 −0 packages/split-grid/.babelrc
  89. +19 −0 packages/split-grid/LICENSE.txt
  90. +422 −0 packages/split-grid/README.md
  91. +89 −0 packages/split-grid/index.d.ts
  92. +28 −0 packages/split-grid/package.json
  93. +56 −0 packages/split-grid/rollup.config.js
  94. +442 −0 packages/split-grid/src/Gutter.js
  95. +25 −0 packages/split-grid/src/getMatchedCSSRules.js
  96. +191 −0 packages/split-grid/src/index.js
  97. +36 −0 packages/split-grid/src/util.js
  98. +97 −0 packages/split-grid/src/util.test.js
  99. +19 −0 packages/splitjs/LICENSE.txt
  100. +602 −0 packages/splitjs/README.md
  101. BIN packages/splitjs/grips/horizontal.png
  102. BIN packages/splitjs/grips/vertical.png
  103. +97 −0 packages/splitjs/index.d.ts
  104. +51 −0 packages/splitjs/karma.conf.js
  105. 0 {docs → packages/splitjs}/logo.svg
  106. +43 −0 packages/splitjs/package.json
  107. +36 −0 packages/splitjs/rollup.config.js
  108. +301 −107 { → packages/splitjs}/src/split.js
  109. +20 −0 packages/splitjs/test/SpecRunner.html
  110. +14 −11 {test/jasmine/lib/jasmine-2.6.2 → packages/splitjs/test/lib/jasmine-3.5.0}/boot.js
  111. +817 −0 packages/splitjs/test/lib/jasmine-3.5.0/jasmine-html.js
  112. +83 −13 {test/jasmine/lib/jasmine-2.6.2 → packages/splitjs/test/lib/jasmine-3.5.0}/jasmine.css
  113. +8,218 −0 packages/splitjs/test/lib/jasmine-3.5.0/jasmine.js
  114. BIN {test/jasmine/lib/jasmine-2.6.2 → packages/splitjs/test/lib/jasmine-3.5.0}/jasmine_favicon.png
  115. +8 −7 { → packages/splitjs}/test/split.spec.js
  116. +7 −0 prettier.config.js
  117. +0 −29 rollup.config.js
  118. +0 −586 split.js
  119. +0 −2 split.min.js
  120. +0 −20 test/SpecRunner.html
  121. +0 −21 test/ie8/SpecRunner.html
  122. +0 −10 test/ie8/browserstack.json
  123. +0 −342 test/ie8/polyfills.js
  124. +0 −150 test/ie8/split.spec.js
  125. +0 −190 test/jasmine/lib/jasmine-2.6.2/console.js
  126. +0 −499 test/jasmine/lib/jasmine-2.6.2/jasmine-html.js
  127. +0 −4,969 test/jasmine/lib/jasmine-2.6.2/jasmine.js
  128. +11,834 −0 yarn.lock
19 changes: 19 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2
jobs:
build:
docker:
- image: circleci/node:14-stretch-browsers

working_directory: ~/repo

steps:
- checkout

- run: yarn install

# run tests!
- run: yarn run lerna link
- run: yarn run lint
- run: yarn run build
- run: yarn test
- run: yarn run saucelabs
10 changes: 10 additions & 0 deletions .dependabot/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 1

update_configs:
- package_manager: "javascript"
directory: "/"
update_schedule: "live"
automerged_updates:
- match:
update_type: "all"
target_branch: master
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**/dist/*
**/node_modules/*
docs
packages/splitjs/test/lib
24 changes: 0 additions & 24 deletions .eslintrc

This file was deleted.

18 changes: 18 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"env": {
"browser": true
},
"extends": ["airbnb", "prettier"],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"react/jsx-filename-extension": [1, { "extensions": [".js"] }],
"react/jsx-indent": [1, 4],
"react/jsx-indent-props": [1, 4],
"react/jsx-props-no-spreading": [0],
"import/no-unresolved": [0],
"import/no-extraneous-dependencies": [0]
}
}
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms

github: nathancahill
open_collective: splitjs
26 changes: 26 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: github pages

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v2

- run: yarn install
- run: yarn build
- run: yarn workspace split-generator run build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./packages/split-generator/public
cname: split.js.org
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
.DS_Store
dist/
node_modules/
yarn-error.log
public/bundle.*
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist/
*.d.ts
*.spec.js
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

50 changes: 27 additions & 23 deletions AUTHORS.md
Original file line number Diff line number Diff line change
@@ -2,29 +2,33 @@

### Lead

- Nathan Cahill @nathancahill
- Nathan Cahill @nathancahill

### Contributors

- Rod Montgomery @RodMontgomery
- pedrogit @pedrogit
- Özgür Uysal @ozguruysal
- Sánta Gergely @gsanta
- Basil Musa @basilmusa
- justdoo @justdoo
- Jacque Goupil @DominoPivot
- Max Waterman @davidmaxwaterman
- Basarat Ali Syed @basarat
- Adam Jimenez @adamjimenez
- @ambischof
- Kushagra Gour @chinchang
- TIm St.Clair @frumbert
- Turkhan @turok1997
- @SCrusader
- OpenCollective @opencollective
- David Evans @davidje13
- @saluce65
- Peter Lightbody @pet1330
- Jakob Gillich @jgillich
- Searene @searene
- Gabriel Pedro @gpedro
- Rod Montgomery @RodMontgomery
- pedrogit @pedrogit
- Özgür Uysal @ozguruysal
- Sánta Gergely @gsanta
- Basil Musa @basilmusa
- justdoo @justdoo
- Jacque Goupil @DominoPivot
- Max Waterman @davidmaxwaterman
- Basarat Ali Syed @basarat
- Adam Jimenez @adamjimenez
- @ambischof
- Kushagra Gour @chinchang
- TIm St.Clair @frumbert
- Turkhan @turok1997
- @SCrusader
- OpenCollective @opencollective
- David Evans @davidje13
- @saluce65
- Peter Lightbody @pet1330
- Jakob Gillich @jgillich
- Searene @searene
- Gabriel Pedro @gpedro
- Chi Wang @patr0nus
- Adrian Jones @adrianbj
- Bradley Kemp @bradleyjkemp
- André Victor @av1ctor
62 changes: 62 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
## react-split-grid v1.0.4

- Publishes Typescript types on NPM
- Corrects misspelling of `maxSize` property
- Corrects type of parameters from object to array

## react-split v2.0.14

- Omits incompatible properties from the React HTMLAttributes

## split.js v1.6.5

- Allows `snapOffset` to be passed as an array

## react-split v2.0.13

- Extends React component types from React.HTMLAttributes

## react-split v2.0.12

- Publishes Typescript types on npm

## react-split v2.0.11

- Fixes a bug where `maxSize` was being passed to the DOM component

## split.js v1.6.4, react-split v2.0.10

- Updates types with new `maxSize` option

## split-grid v1.0.10

- Fixes a bug in storing columns and rows in the instance
- Adds types

## split.js v1.6.3

- Adds `maxSize` option

## react-split-grid v1.0.3

- Fix `React.Children` typo

## split.js v1.6.2

- Update `onDrag` type definitions on include `sizes` parameter

## split.js v1.6.1, react-split v2.0.9

- Revert from `.mjs` modules for Webpack

## react-split v2.0.8

- Fix module resolution

## split.js v1.6.0

- Remove support of IE8
- Support SSR
- Bundle Typescript types in published build
- Most stable testing with CircleCI and Saucelabs
- Upgrade all dev dependencies and setup Dependabot for automatic upgrades
49 changes: 49 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Contributing

## Developing

The tooling is [Yarn](https://yarnpkg.com/), [Lerna](https://lerna.js.org/),
[Prettier](https://prettier.io/) and [Eslint](https://eslint.org/). To get started:

```bash
$ yarn install
$ yarn run lerna link
```

It's easiest to have Prettier format your changes in your editor on save: https://prettier.io/docs/en/editors.html

**Building**

```bash
$ yarn run build
```

**Linting**

```bash
$ yarn run lint
```

## Testing

```bash
$ yarn test
```

Each package has unit tests using Jest. `split.js` uses Jasmine 2.6 for browser testing with IE8 support.
Karma is the test runner for headless browsers. Recent versions of Chrome and Firefox
support headless testing locally. By default, both browsers are tested. If you want to test
with just one or the other, run:

```bash
$ yarn workspace split.js run test --browsers FirefoxHeadless
```

_or_

```bash
$ yarn workspace split.js run test --browsers ChromeHeadless
```

On the CI, [SauceLabs](https://saucelabs.com/) provides cross-platform testing.
Headless Firefox and Chrome are also tested via Docker container.
15 changes: 0 additions & 15 deletions Gruntfile.js

This file was deleted.

19 changes: 19 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2020 Nathan Cahill

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading