Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Webpack Migration #226

Closed
wants to merge 105 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
a7bf2dd
Add webpack config files
gavinhenderson May 2, 2020
833d97c
Setup pages file structure
gavinhenderson May 2, 2020
b50defc
Add webpack as a dep
gavinhenderson May 2, 2020
d4e1cdf
Add more required deps
gavinhenderson May 2, 2020
315634d
Add eslint
gavinhenderson May 2, 2020
ca7e0d6
Setup intro page
gavinhenderson May 2, 2020
d91fd33
Change redirect to /intro rather than intro.html
gavinhenderson May 2, 2020
d5c1d6c
Setup styles and bootstrap
gavinhenderson May 2, 2020
68df7e9
Setup fonts
gavinhenderson May 2, 2020
c4c405c
Setup and load assets
gavinhenderson May 2, 2020
293d54a
Add TODO
gavinhenderson May 2, 2020
0ebaa02
Add no var rule to eslint
gavinhenderson May 2, 2020
b810a09
Fix next arrow
gavinhenderson May 2, 2020
9fba0bb
Change font output folder so it doesnt clash
gavinhenderson May 2, 2020
dfea434
Switch to outputting build to the html folder
gavinhenderson May 2, 2020
7bf95a4
Remove intro.html file
gavinhenderson May 2, 2020
851d6cb
Add webpack build files
gavinhenderson May 2, 2020
10bf1bf
Add webpack to the build script
gavinhenderson May 2, 2020
58fc0da
Add help page to webpack setup
gavinhenderson May 2, 2020
c602f1d
Add css and static content to help page
gavinhenderson May 2, 2020
1a83e70
Hide and show go top button on scroll
gavinhenderson May 3, 2020
8a34182
Setup testing
gavinhenderson May 3, 2020
5b1abb3
Setup import syntax for babel
gavinhenderson May 3, 2020
db6d978
Add test to show or hide link
gavinhenderson May 3, 2020
2e98805
Implement native access api
gavinhenderson May 3, 2020
e6136fd
create wait for event in utils
gavinhenderson May 3, 2020
363b030
Add a self invoking function
gavinhenderson May 3, 2020
df73ac2
Fix native access api
gavinhenderson May 3, 2020
7f0a006
Add tests for 'waitForEvent' util
gavinhenderson May 4, 2020
795e49a
Add test coverage command
gavinhenderson May 4, 2020
650fe02
Setup most of the file system code
gavinhenderson May 4, 2020
c1c9197
Added initial tests for fetch-remote-file
gavinhenderson May 7, 2020
45ae6ca
Setup test converage reporting for all files
gavinhenderson May 7, 2020
1cffa74
Remove old comments
gavinhenderson May 8, 2020
254d012
Add underscore as a dep
gavinhenderson May 8, 2020
f370ebe
Update html config so it leaves comments
gavinhenderson May 8, 2020
46edb4f
Update all references to help page to not point to file
gavinhenderson May 8, 2020
e90abce
Added a landing page in dev mode and only server webpack stuff in dev…
gavinhenderson May 9, 2020
2029305
Add landing page
gavinhenderson May 9, 2020
1469bb1
Add cordova webpack setup
gavinhenderson May 9, 2020
11cdac4
Remove git ignore rm www
gavinhenderson May 9, 2020
c5a0504
Add /www to git ignore
gavinhenderson May 9, 2020
681343b
Setup webpack hot loading on simulator
gavinhenderson May 10, 2020
b637ec2
Add engine
gavinhenderson May 10, 2020
7b59e23
Setup cordova build
gavinhenderson May 10, 2020
ef158c6
Webpack up the help page
gavinhenderson May 10, 2020
0afa276
Change default scrollY to 0
gavinhenderson May 10, 2020
a166b93
Move assets to more descriptive folder name
gavinhenderson May 10, 2020
ee59945
Fix errors
gavinhenderson May 10, 2020
feb49eb
Merge pull request #225 from gavinhenderson/master
gavinhenderson May 11, 2020
09f32bf
Update cordova plugin version
gavinhenderson May 12, 2020
a3d6768
Remove comments
gavinhenderson May 12, 2020
a72c49f
Add config utilities, store config in locale storage
gavinhenderson May 12, 2020
0205f43
Set global variable so we know if we are erunning in cordova
gavinhenderson May 12, 2020
558042f
Remove cordova import where it is not needed
gavinhenderson May 13, 2020
cdb659d
Add table of contents to help page
gavinhenderson May 13, 2020
7970551
Add empty write file function
gavinhenderson May 13, 2020
6758e5d
Remove globals from init cordova
gavinhenderson May 13, 2020
fed7542
Update deps
gavinhenderson May 13, 2020
e3fb454
remove console logs
gavinhenderson May 13, 2020
a623bbf
Add dom localization
gavinhenderson May 13, 2020
6e897a5
Improve tests with 'testing' library
gavinhenderson May 13, 2020
bbd32d4
Add more test coverage
gavinhenderson May 13, 2020
2f5dae5
Added more table of contents tests
gavinhenderson May 16, 2020
1a19775
Added full test coverage on table of contents generator
gavinhenderson May 16, 2020
1caa286
Add full coverage of help folder
gavinhenderson May 16, 2020
ddbf11c
Fix linting error
gavinhenderson May 16, 2020
43e5257
Added edit-config page
gavinhenderson May 16, 2020
42aca87
Update webpack config to silence the iconv error
gavinhenderson May 17, 2020
785c5d0
Fix font awesome icon usage
gavinhenderson May 17, 2020
af488c1
Add basic router setup
gavinhenderson May 17, 2020
7e7bdd6
Add localization todo
gavinhenderson May 17, 2020
ab766e5
Handle most routing logic
gavinhenderson May 17, 2020
72a357a
Add route setters and unsetters
gavinhenderson May 17, 2020
f5d5e1d
Setup selecting of the list item
gavinhenderson May 19, 2020
7ddd7d0
Alter routing so it matches the previous routing
gavinhenderson May 19, 2020
c93d327
Attach radio buttons to config
gavinhenderson May 23, 2020
153dfe5
Fix font awesome icons
gavinhenderson May 23, 2020
1e80eda
Fix default route issue
gavinhenderson May 24, 2020
3569b19
Setup bi directional bound sliders
gavinhenderson May 24, 2020
c51aa4c
Setup ignore seconds slider
gavinhenderson May 24, 2020
a31e412
Setup ignore key release time slider
gavinhenderson May 24, 2020
506c93f
setup radio button in helper pane
gavinhenderson May 25, 2020
c4457e4
Correctly spread existing config
gavinhenderson May 25, 2020
3b7a601
Setup checkbox
gavinhenderson May 25, 2020
158439d
Slider now handles an extra number input or a text node input
gavinhenderson May 25, 2020
aa41793
Add todo
gavinhenderson May 25, 2020
d6e693d
use lodash merge in config
gavinhenderson May 30, 2020
2846d5e
Setup more sliders
gavinhenderson May 30, 2020
5f947dd
All sliders now connected to a config value
gavinhenderson May 30, 2020
c07e616
Add extra options to mode
gavinhenderson May 31, 2020
2cee175
Initialise more fields in the config
gavinhenderson Jun 3, 2020
38f3656
Add jquery as a global for bootstrap
gavinhenderson Jun 5, 2020
93ffe1b
Add start of key selection code
gavinhenderson Jun 5, 2020
29e10ae
Init key selection now shows modal
gavinhenderson Jun 5, 2020
4eaa876
Add background fade
gavinhenderson Jun 6, 2020
f01d8f7
Create a generic modal container
gavinhenderson Jun 8, 2020
17d2d48
Hook up close buttons
gavinhenderson Jun 8, 2020
226e61f
List the keys in the modal
gavinhenderson Jun 8, 2020
e1f4f9c
Move key parsing to its own file
gavinhenderson Jun 8, 2020
3c7c3d2
Remove cancel button
gavinhenderson Jun 8, 2020
f92b552
Pressing add adds key to list
gavinhenderson Jun 8, 2020
2ed62c6
Connect delete to config
gavinhenderson Jun 8, 2020
f089123
Refactor delete
gavinhenderson Jun 8, 2020
7bdad7b
Setup logger and fix config merge
gavinhenderson Jun 14, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"esmodules": true
}
}
]
],

"env": {
"test": {
"plugins": [
"transform-es2015-modules-commonjs",
"@babel/plugin-transform-runtime"
]
}
}
}
27 changes: 27 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"env": {
"browser": true,
"es6": true
},
"ignorePatterns": ["webpack/"],
"extends": ["plugin:jest/recommended", "eslint:recommended"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"cordova": "readonly",
"Media": "readonly",
"window": "writable"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "double", "avoid-escape"],
"semi": ["error", "always"],
"no-var": "error",
"no-console": "error"
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ dist/
*/.DS_Store
html/js/nodelib.js
html/js/nodelib.js.map
coverage/

8 changes: 8 additions & 0 deletions __mocks__/file-import.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const path = require("path");

// eslint-disable-next-line no-undef
module.exports = {
process(src, filename) {
return "module.exports = " + JSON.stringify(path.basename(filename)) + ";";
},
};
1 change: 1 addition & 0 deletions cordova/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
.DS_Store

www/*
3 changes: 2 additions & 1 deletion cordova/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</platform>
<plugin name="cordova-plugin-device" spec="^1.1.7" />
<plugin name="pasco-cordova-plugin" spec="https://github.com/hosseinamin/pasco-cordova-plugin">
<variable name="KEEP_AVAUDIOSESSION_ALWAYS_ACTIVE" value="YES" />
<variable name="KEEP_AVAUDIOSESSION_ALWAYS_ACTIVE" value="YES" />
</plugin>
<plugin name="cordova-plugin-x-socialsharing" spec="5.6.5">
<variable name="PHOTO_LIBRARY_ADD_USAGE_DESCRIPTION" value="This app requires photo library access to function properly." />
Expand All @@ -80,4 +80,5 @@
<plugin name="cordova-plugin-whitelist" spec="1.3.4" />
<plugin name="cordova-plugin-splashscreen" spec="5.0.3" />
<plugin name="cordova-plugin-file" spec="6.0.2" />
<engine name="ios" spec="^5.1.1" />
</widget>
Loading