This repository has been archived by the owner on Jan 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gui): initial version of a GUI for configuration
- Loading branch information
Showing
112 changed files
with
27,045 additions
and
7,344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
> 1% | ||
last 2 versions | ||
not ie <= 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,66 @@ | ||
module.exports = { | ||
root: true, | ||
extends: [ | ||
'@clickagy/eslint-config' | ||
] | ||
env: { | ||
node: true, | ||
}, | ||
'extends': [ | ||
'plugin:vue/recommended', | ||
'@vue/standard', | ||
], | ||
rules: { | ||
// Allow async-await | ||
'generator-star-spacing': 'off', | ||
// No async function without await | ||
'require-await': 'error', | ||
'arrow-parens': ['error', 'as-needed', { requireForBlockBody: true }], | ||
// Prefer const over let | ||
'prefer-const': ['error', { | ||
'destructuring': 'any', | ||
'ignoreReadBeforeAssign': false, | ||
}], | ||
// No single if in an 'else' block | ||
'no-lonely-if': 'error', | ||
// Force curly braces for control flow, including if blocks with a single statement | ||
curly: ['error', 'all'], | ||
// Force dot notation when possible | ||
'dot-notation': 'error', | ||
'no-var': 'error', | ||
'comma-dangle': ['error', 'always-multiline'], | ||
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
'vue/max-attributes-per-line': [ | ||
'error', | ||
{ | ||
singleline: 2, | ||
multiline: { | ||
max: 1, | ||
allowFirstLine: false, | ||
}, | ||
}, | ||
], | ||
'vue/component-name-in-template-casing': [ | ||
'error', | ||
'kebab-case', | ||
{ | ||
ignores: [], | ||
}, | ||
], | ||
'vue/html-indent': [ | ||
'error', | ||
2, | ||
{ | ||
attribute: 1, | ||
baseIndent: 0, | ||
closeBracket: 0, | ||
alignAttributesVertically: true, | ||
ignores: [], | ||
}, | ||
], | ||
'vue/no-parsing-error': ['error', { | ||
'x-invalid-end-tag': false, | ||
}], | ||
}, | ||
parserOptions: { | ||
parser: 'babel-eslint', | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,33 @@ | ||
module.exports = { | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
targets: { | ||
node: 'current', | ||
overrides: [{ | ||
test: './lib', | ||
presets: [ | ||
[ | ||
'@babel/env', | ||
{ | ||
modules: 'commonjs', | ||
}, | ||
}, | ||
], | ||
], | ||
], | ||
plugins: [ | ||
'transform-runtime', | ||
], | ||
plugins: [ | ||
[ | ||
'@babel/transform-runtime', | ||
{ | ||
corejs: false, | ||
helpers: true, | ||
regenerator: true, | ||
useESModules: false, | ||
}, | ||
], | ||
], | ||
}], | ||
} | ||
|
||
// module.exports = { | ||
// presets: [ | ||
// '@vue/app', | ||
// ], | ||
// plugins: [ | ||
|
||
// ], | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,2 @@ | ||
#!/usr/bin/env node | ||
|
||
let es6 | ||
try { | ||
// eslint-disable-next-line no-new-func | ||
es6 = new Function('() => {}') | ||
} catch (e) { | ||
es6 = false | ||
} | ||
es6 ? require('../lib/cli') : require('../lib-es5/cli') | ||
module.exports = require('../lib-es5/cli') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,6 @@ | |
"node_modules" | ||
], | ||
"include": [ | ||
"lib/**/*" | ||
"lib/**/*", "lib/.babelrc.js" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import repoHelper from '../utils/repo-helper' | ||
import installSkin from '../utils/install-skin' | ||
|
||
async function reinstallSkin (state) { | ||
await repoHelper.download(state) | ||
|
||
await installSkin(state) | ||
} | ||
|
||
export default reinstallSkin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.