Skip to content

Commit a2121b4

Browse files
committed
migration
1 parent def8db3 commit a2121b4

File tree

102 files changed

+20985
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+20985
-0
lines changed

packages/modules/web_themes/koala/__init__.py

Whitespace-only changes.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
from helpermodules.auto_str import auto_str
2+
3+
from modules.common.abstract_device import DeviceDescriptor
4+
5+
6+
@auto_str
7+
class KoalaWebThemeConfiguration:
8+
def __init__(self,
9+
history_chart_range: int = 3600) -> None:
10+
self.history_chart_range = history_chart_range
11+
12+
13+
@auto_str
14+
class KoalaWebTheme:
15+
def __init__(self,
16+
name: str = "Koala (in Entwicklung)",
17+
type: str = "koala",
18+
official: bool = True,
19+
configuration: KoalaWebThemeConfiguration = None) -> None:
20+
self.name = name
21+
self.type = type
22+
self.official = official
23+
self.configuration = configuration or KoalaWebThemeConfiguration()
24+
25+
26+
theme_descriptor = DeviceDescriptor(configuration_factory=KoalaWebTheme)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/dist
2+
/src-capacitor
3+
/src-cordova
4+
/.quasar
5+
/node_modules
6+
.eslintrc.cjs
7+
/quasar.config.*.temporary.compiled*
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
module.exports = {
2+
// https://eslint.org/docs/user-guide/configuring#configuration-cascading-and-hierarchy
3+
// This option interrupts the configuration hierarchy at this file
4+
// Remove this if you have an higher level ESLint config file (it usually happens into a monorepos)
5+
root: true,
6+
7+
// https://eslint.vuejs.org/user-guide/#how-to-use-a-custom-parser
8+
// Must use parserOptions instead of "parser" to allow vue-eslint-parser to keep working
9+
// `parser: 'vue-eslint-parser'` is already included with any 'plugin:vue/**' config and should be omitted
10+
parserOptions: {
11+
parser: require.resolve('@typescript-eslint/parser'),
12+
extraFileExtensions: [ '.vue' ]
13+
},
14+
15+
env: {
16+
browser: true,
17+
es2021: true,
18+
node: true
19+
},
20+
21+
// Rules order is important, please avoid shuffling them
22+
extends: [
23+
// Base ESLint recommended rules
24+
// 'eslint:recommended',
25+
26+
// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#usage
27+
// ESLint typescript rules
28+
'plugin:@typescript-eslint/recommended',
29+
30+
// Uncomment any of the lines below to choose desired strictness,
31+
// but leave only one uncommented!
32+
// See https://eslint.vuejs.org/rules/#available-rules
33+
'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention)
34+
// 'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability)
35+
// 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)
36+
37+
// https://github.com/prettier/eslint-config-prettier#installation
38+
// usage with Prettier, provided by 'eslint-config-prettier'.
39+
'prettier'
40+
],
41+
42+
plugins: [
43+
// required to apply rules which need type information
44+
'@typescript-eslint',
45+
46+
// https://eslint.vuejs.org/user-guide/#why-doesn-t-it-work-on-vue-files
47+
// required to lint *.vue files
48+
'vue'
49+
50+
// https://github.com/typescript-eslint/typescript-eslint/issues/389#issuecomment-509292674
51+
// Prettier has not been included as plugin to avoid performance impact
52+
// add it as an extension for your IDE
53+
54+
],
55+
56+
globals: {
57+
ga: 'readonly', // Google Analytics
58+
cordova: 'readonly',
59+
__statics: 'readonly',
60+
__QUASAR_SSR__: 'readonly',
61+
__QUASAR_SSR_SERVER__: 'readonly',
62+
__QUASAR_SSR_CLIENT__: 'readonly',
63+
__QUASAR_SSR_PWA__: 'readonly',
64+
process: 'readonly',
65+
Capacitor: 'readonly',
66+
chrome: 'readonly'
67+
},
68+
69+
// add your custom rules here
70+
rules: {
71+
72+
'prefer-promise-reject-errors': 'off',
73+
74+
quotes: ['warn', 'single', { avoidEscape: true }],
75+
76+
// this rule, if on, would require explicit return type on the `render` function
77+
'@typescript-eslint/explicit-function-return-type': 'off',
78+
79+
// in plain CommonJS modules, you can't use `import foo = require('foo')` to pass this rule, so it has to be disabled
80+
'@typescript-eslint/no-var-requires': 'off',
81+
82+
// The core 'no-unused-vars' rules (in the eslint:recommended ruleset)
83+
// does not work with type definitions
84+
'no-unused-vars': 'off',
85+
86+
// allow debugger during development only
87+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
88+
}
89+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
.DS_Store
2+
.thumbs.db
3+
node_modules
4+
5+
# Quasar core related directories
6+
.quasar
7+
/dist
8+
/quasar.config.*.temporary.compiled*
9+
10+
# Cordova related directories and files
11+
/src-cordova/node_modules
12+
/src-cordova/platforms
13+
/src-cordova/plugins
14+
/src-cordova/www
15+
16+
# Capacitor related directories and files
17+
/src-capacitor/www
18+
/src-capacitor/node_modules
19+
20+
# Log files
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
25+
# Editor directories and files
26+
.idea
27+
*.suo
28+
*.ntvs*
29+
*.njsproj
30+
*.sln
31+
32+
# local .env files
33+
.env.local*
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# pnpm-related options
2+
shamefully-hoist=true
3+
strict-peer-dependencies=false
4+
# to get the latest compatible packages when creating the project https://github.com/pnpm/pnpm/issues/6463
5+
resolution-mode=highest
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"semi": true
4+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint",
4+
"esbenp.prettier-vscode",
5+
"editorconfig.editorconfig",
6+
"vue.volar",
7+
"wayou.vscode-todo-highlight"
8+
],
9+
"unwantedRecommendations": [
10+
"octref.vetur",
11+
"hookyqr.beautify",
12+
"dbaeumer.jshint",
13+
"ms-vscode.vscode-typescript-tslint-plugin"
14+
]
15+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"editor.bracketPairColorization.enabled": true,
3+
"editor.guides.bracketPairs": true,
4+
"editor.formatOnSave": true,
5+
"editor.defaultFormatter": "esbenp.prettier-vscode",
6+
"editor.codeActionsOnSave": ["source.fixAll.eslint"],
7+
"eslint.validate": ["javascript", "javascriptreact", "typescript", "vue"],
8+
"typescript.tsdk": "node_modules/typescript/lib"
9+
}

0 commit comments

Comments
 (0)