Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

Commit

Permalink
Resize, Scroll, MousePosition, Fullscreen (#53)
Browse files Browse the repository at this point in the history
* improved resize

* improved resize

* remove use from hook name in docs

* update demo component (may be deleted before go live)

* lint fix

* timout typo fixed

* update scroll based on resize

* 16.7 defined as one frame

* removed throttling

* updated fullscreen docs

* remove demo

* simplification based on review, removed demo, storybook on start command
  • Loading branch information
cianfoley-nearform authored and simoneb committed Feb 6, 2019
1 parent b38bc90 commit 3ea5480
Show file tree
Hide file tree
Showing 25 changed files with 149 additions and 498 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## Demo Development Server

- `npm start` will run a development server with the component's demo app at [http://localhost:3000](http://localhost:3000) with hot module reloading.
- `npm start` will run a development server with the component's loaded in storybook at [http://localhost:3000](http://localhost:3000) with hot module reloading.

## Running Tests

Expand Down
37 changes: 0 additions & 37 deletions demo/src/components/fullscreen.js

This file was deleted.

44 changes: 0 additions & 44 deletions demo/src/components/geolocation.js

This file was deleted.

20 changes: 0 additions & 20 deletions demo/src/components/orientation.js

This file was deleted.

19 changes: 0 additions & 19 deletions demo/src/components/page-visibility.js

This file was deleted.

27 changes: 0 additions & 27 deletions demo/src/components/resize.js

This file was deleted.

21 changes: 0 additions & 21 deletions demo/src/index.js

This file was deleted.

Empty file removed docs/.nojekyll
Empty file.
38 changes: 0 additions & 38 deletions docs/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions docs/_sidebar.md

This file was deleted.

36 changes: 0 additions & 36 deletions docs/guide.md

This file was deleted.

26 changes: 0 additions & 26 deletions docs/index.html

This file was deleted.

3 changes: 3 additions & 0 deletions nwb.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ module.exports = {
react: 'React'
}
}
},
karma: {
testFiles: 'test/unit/**/*.test.js'
}
}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"lint": "eslint ./*.js src test",
"lint-fix": "eslint ./*.js src test --fix",
"prepublishOnly": "npm run build",
"start": "nwb serve-react-demo",
"storybook": "start-storybook -p 9001 -c storybook/.storybook",
"start": "npm run storybook",
"storybook": "start-storybook -p 3000 -c storybook/.storybook",
"build-storybook": "build-storybook -c storybook/.storybook",
"test": "npm run test:unit && npm run test:acceptance",
"test": "npm run test:unit",
"test:unit": "jest",
"test:acceptance": "testcafe chrome,firefox test/acceptance/ --app \"npm start\"",
"test:coverage": "jest --coverage",
Expand Down Expand Up @@ -78,4 +78,4 @@
"geolocation"
],
"dependencies": {}
}
}
Loading

0 comments on commit 3ea5480

Please sign in to comment.