Skip to content

Commit b196fcc

Browse files
feat. node driver extension init
1 parent 0bc12e2 commit b196fcc

25 files changed

+16144
-0
lines changed

.eslintignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
assets/fonts
2+
coverage
3+
.nyc_output
4+
node_modules/
5+
.npm
6+
.eslintcache
7+
.env
8+
.cache
9+
.next
10+
dist
11+
dist-pkg
12+
.DS_Store
13+
dynamic-importer.js
14+
ksconfig.json
15+
shell/utils/dynamic-importer.js
16+
shell/assets/fonts

.eslintrc.js

Lines changed: 243 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,243 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
browser: true,
5+
node: true
6+
},
7+
globals: {
8+
NodeJS: true,
9+
Timer: true
10+
},
11+
extends: [
12+
'standard',
13+
'eslint:recommended',
14+
'plugin:@typescript-eslint/recommended',
15+
'@vue/standard',
16+
'@vue/typescript/recommended',
17+
'plugin:vue/vue3-recommended',
18+
'plugin:cypress/recommended'
19+
],
20+
rules: {
21+
'dot-notation': 'off',
22+
'generator-star-spacing': 'off',
23+
'guard-for-in': 'off',
24+
'linebreak-style': 'off',
25+
'new-cap': 'off',
26+
'no-empty': 'off',
27+
'no-extra-boolean-cast': 'off',
28+
'no-new': 'off',
29+
'no-plusplus': 'off',
30+
'no-useless-escape': 'off',
31+
'semi-spacing': 'off',
32+
'space-in-parens': 'off',
33+
strict: 'off',
34+
'unicorn/no-new-buffer': 'off',
35+
'vue/html-self-closing': 'off',
36+
'vue/no-unused-components': 'warn',
37+
'vue/no-v-html': 'error',
38+
'wrap-iife': 'off',
39+
'array-bracket-spacing': 'warn',
40+
'arrow-parens': 'warn',
41+
'arrow-spacing': [
42+
'warn',
43+
{
44+
before: true,
45+
after: true
46+
}
47+
],
48+
'block-spacing': [
49+
'warn',
50+
'always'
51+
],
52+
'brace-style': [
53+
'warn',
54+
'1tbs'
55+
],
56+
'comma-dangle': [
57+
'warn',
58+
'only-multiline'
59+
],
60+
'comma-spacing': 'warn',
61+
curly: 'warn',
62+
eqeqeq: 'warn',
63+
'func-call-spacing': [
64+
'warn',
65+
'never'
66+
],
67+
'implicit-arrow-linebreak': 'warn',
68+
indent: [
69+
'warn',
70+
2
71+
],
72+
'keyword-spacing': 'warn',
73+
'lines-between-class-members': [
74+
'warn',
75+
'always',
76+
{ exceptAfterSingleLine: true }
77+
],
78+
'multiline-ternary': [
79+
'warn',
80+
'never'
81+
],
82+
'newline-per-chained-call': [
83+
'warn',
84+
{ ignoreChainWithDepth: 4 }
85+
],
86+
'no-caller': 'warn',
87+
'no-cond-assign': [
88+
'warn',
89+
'except-parens'
90+
],
91+
'no-console': 'warn',
92+
'no-debugger': 'warn',
93+
'no-eq-null': 'warn',
94+
'no-eval': 'warn',
95+
'no-trailing-spaces': 'warn',
96+
'no-undef': 'warn',
97+
'no-unused-vars': 'warn',
98+
'no-whitespace-before-property': 'warn',
99+
'object-curly-spacing': [
100+
'warn',
101+
'always'
102+
],
103+
'object-property-newline': 'warn',
104+
'object-shorthand': 'warn',
105+
'padded-blocks': [
106+
'warn',
107+
'never'
108+
],
109+
'prefer-arrow-callback': 'warn',
110+
'prefer-template': 'warn',
111+
'quote-props': 'warn',
112+
'rest-spread-spacing': 'warn',
113+
semi: [
114+
'warn',
115+
'always'
116+
],
117+
'space-before-function-paren': [
118+
'warn',
119+
'never'
120+
],
121+
'space-infix-ops': 'warn',
122+
'spaced-comment': 'warn',
123+
'switch-colon-spacing': 'warn',
124+
'template-curly-spacing': [
125+
'warn',
126+
'always'
127+
],
128+
'yield-star-spacing': [
129+
'warn',
130+
'both'
131+
],
132+
'key-spacing': [
133+
'warn',
134+
{
135+
align: {
136+
beforeColon: false,
137+
afterColon: true,
138+
on: 'value',
139+
mode: 'minimum'
140+
},
141+
multiLine: {
142+
beforeColon: false,
143+
afterColon: true
144+
}
145+
}
146+
],
147+
'object-curly-newline': [
148+
'warn',
149+
{
150+
ObjectExpression: {
151+
multiline: true,
152+
minProperties: 3
153+
},
154+
ObjectPattern: {
155+
multiline: true,
156+
minProperties: 4
157+
},
158+
ImportDeclaration: {
159+
multiline: true,
160+
minProperties: 5
161+
},
162+
ExportDeclaration: {
163+
multiline: true,
164+
minProperties: 3
165+
}
166+
}
167+
],
168+
'padding-line-between-statements': [
169+
'warn',
170+
{
171+
blankLine: 'always',
172+
prev: '*',
173+
next: 'return'
174+
},
175+
{
176+
blankLine: 'always',
177+
prev: 'function',
178+
next: 'function'
179+
},
180+
{
181+
blankLine: 'always',
182+
prev: [
183+
'const',
184+
'let',
185+
'var'
186+
],
187+
next: '*'
188+
},
189+
{
190+
blankLine: 'any',
191+
prev: [
192+
'const',
193+
'let',
194+
'var'
195+
],
196+
next: [
197+
'const',
198+
'let',
199+
'var'
200+
]
201+
}
202+
],
203+
quotes: [
204+
'warn',
205+
'single',
206+
{
207+
avoidEscape: true,
208+
allowTemplateLiterals: true
209+
}
210+
],
211+
'space-unary-ops': [
212+
'warn',
213+
{
214+
words: true,
215+
nonwords: false
216+
}
217+
],
218+
'vue/order-in-components': 'off',
219+
'vue/no-lone-template': 'off',
220+
'vue/v-slot-style': 'off',
221+
'vue/component-tags-order': 'off',
222+
'vue/no-mutating-props': 'off',
223+
'@typescript-eslint/no-unused-vars': 'off',
224+
'array-callback-return': 'off',
225+
'vue/one-component-per-file': 'off',
226+
'vue/no-deprecated-slot-attribute': 'off',
227+
'vue/require-explicit-emits': 'off',
228+
'vue/v-on-event-hyphenation': 'off'
229+
},
230+
overrides: [
231+
{
232+
files: [
233+
'*.js'
234+
],
235+
rules: {
236+
'prefer-regex-literals': 'off',
237+
'vue/component-definition-name-casing': 'off',
238+
'no-unreachable-loop': 'off',
239+
'computed-property-spacing': 'off'
240+
}
241+
}
242+
]
243+
};
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build and Release Extension Catalog
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types: [released]
7+
8+
defaults:
9+
run:
10+
shell: bash
11+
working-directory: ./
12+
13+
jobs:
14+
build-extension-catalog:
15+
uses: rancher/dashboard/.github/workflows/build-extension-catalog.yml@master
16+
permissions:
17+
actions: write
18+
contents: read
19+
packages: write
20+
with:
21+
registry_target: ghcr.io
22+
registry_user: ${{ github.actor }}
23+
tagged_release: ${{ github.ref_name }}
24+
secrets:
25+
registry_token: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build and Release Extension Charts
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types: [released]
7+
8+
defaults:
9+
run:
10+
shell: bash
11+
working-directory: ./
12+
13+
jobs:
14+
build-extension-charts:
15+
uses: rancher/dashboard/.github/workflows/build-extension-charts.yml@master
16+
permissions:
17+
actions: write
18+
contents: write
19+
deployments: write
20+
pages: write
21+
with:
22+
target_branch: gh-pages
23+
tagged_release: ${{ github.ref_name }}

.gitignore

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# compiled output
2+
/dist
3+
/tmp
4+
/out-tsc
5+
6+
# Runtime data
7+
pids
8+
*.pid
9+
*.seed
10+
*.pid.lock
11+
12+
# Directory for instrumented libs generated by jscoverage/JSCover
13+
lib-cov
14+
15+
# Coverage directory used by tools like istanbul
16+
coverage
17+
18+
# nyc test coverage
19+
.nyc_output
20+
21+
# IDEs and editors
22+
.idea
23+
.project
24+
.classpath
25+
.c9/
26+
*.launch
27+
.settings/
28+
*.sublime-workspace
29+
30+
# IDE - VSCode
31+
../.vscode/*
32+
!../.vscode/settings.json
33+
!../.vscode/tasks.json
34+
!../.vscode/launch.json
35+
!../.vscode/extensions.json
36+
37+
# misc
38+
.sass-cache
39+
connect.lock
40+
typings
41+
42+
# Logs
43+
logs
44+
*.log
45+
npm-debug.log*
46+
yarn-debug.log*
47+
yarn-error.log*
48+
49+
# Dependency directories
50+
node_modules/
51+
jspm_packages/
52+
53+
# Optional npm cache directory
54+
.npm
55+
56+
# Optional eslint cache
57+
.eslintcache
58+
59+
# Optional REPL history
60+
.node_repl_history
61+
62+
# Yarn Integrity file
63+
.yarn-integrity
64+
65+
# dotenv environment variables file
66+
.env
67+
68+
# System Files
69+
.DS_Store
70+
Thumbs.db
71+
72+
# Locally built assets (extensions)
73+
dist-pkg

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

0 commit comments

Comments
 (0)