@qtoggle/qui 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +2 -0
- package/.eslintrc.json +492 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +33 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +23 -0
- package/.github/ISSUE_TEMPLATE/improvement_proposal.md +20 -0
- package/.github/workflows/main.yml +74 -0
- package/.pre-commit-config.yaml +8 -0
- package/LICENSE.txt +177 -0
- package/README.md +4 -0
- package/font/dejavusans-bold.woff +0 -0
- package/font/dejavusans-bolditalic.woff +0 -0
- package/font/dejavusans-italic.woff +0 -0
- package/font/dejavusans-regular.woff +0 -0
- package/img/qui-icons.svg +1937 -0
- package/js/base/base.js +47 -0
- package/js/base/condition-variable.js +92 -0
- package/js/base/errors.js +36 -0
- package/js/base/i18n.js +20 -0
- package/js/base/mixwith.js +135 -0
- package/js/base/require-js-compat.js +78 -0
- package/js/base/signal.js +91 -0
- package/js/base/singleton.js +66 -0
- package/js/base/timer.js +126 -0
- package/js/config.js +184 -0
- package/js/forms/common-fields/check-field.js +42 -0
- package/js/forms/common-fields/choice-buttons-field.js +30 -0
- package/js/forms/common-fields/color-combo-field.js +37 -0
- package/js/forms/common-fields/combo-field.js +108 -0
- package/js/forms/common-fields/common-fields.js +23 -0
- package/js/forms/common-fields/composite-field.js +132 -0
- package/js/forms/common-fields/custom-html-field.js +51 -0
- package/js/forms/common-fields/email-field.js +30 -0
- package/js/forms/common-fields/file-picker-field.js +46 -0
- package/js/forms/common-fields/jquery-ui-field.js +111 -0
- package/js/forms/common-fields/labels-field.js +69 -0
- package/js/forms/common-fields/numeric-field.js +39 -0
- package/js/forms/common-fields/password-field.js +28 -0
- package/js/forms/common-fields/phone-field.js +26 -0
- package/js/forms/common-fields/progress-disk-field.js +69 -0
- package/js/forms/common-fields/push-button-field.js +138 -0
- package/js/forms/common-fields/slider-field.js +51 -0
- package/js/forms/common-fields/text-area-field.js +34 -0
- package/js/forms/common-fields/text-field.js +89 -0
- package/js/forms/common-fields/up-down-field.js +85 -0
- package/js/forms/common-forms/common-forms.js +16 -0
- package/js/forms/common-forms/options-form.js +77 -0
- package/js/forms/common-forms/page-form.js +115 -0
- package/js/forms/form-button.js +202 -0
- package/js/forms/form-field.js +1183 -0
- package/js/forms/form.js +1181 -0
- package/js/forms/forms.js +68 -0
- package/js/global-glass.js +100 -0
- package/js/icons/default-stock.js +173 -0
- package/js/icons/icon.js +64 -0
- package/js/icons/icons.js +16 -0
- package/js/icons/multi-state-sprites-icon.js +362 -0
- package/js/icons/stock-icon.js +219 -0
- package/js/icons/stock.js +98 -0
- package/js/icons/stocks.js +57 -0
- package/js/index.js +232 -0
- package/js/lib/jquery.longpress.js +79 -0
- package/js/lib/jquery.module.js +4 -0
- package/js/lib/logger.module.js +4 -0
- package/js/lib/pep.module.js +4 -0
- package/js/lists/common-items/common-items.js +5 -0
- package/js/lists/common-items/icon-label-list-item.js +86 -0
- package/js/lists/common-lists/common-lists.js +5 -0
- package/js/lists/common-lists/page-list.js +53 -0
- package/js/lists/list-item.js +147 -0
- package/js/lists/list.js +636 -0
- package/js/lists/lists.js +26 -0
- package/js/main-ui/main-ui.js +64 -0
- package/js/main-ui/menu-bar.js +144 -0
- package/js/main-ui/options-bar.js +181 -0
- package/js/main-ui/status.js +185 -0
- package/js/main-ui/top-bar.js +59 -0
- package/js/messages/common-message-forms/common-message-forms.js +7 -0
- package/js/messages/common-message-forms/confirm-message-form.js +81 -0
- package/js/messages/common-message-forms/simple-message-form.js +67 -0
- package/js/messages/common-message-forms/sticky-simple-message-form.js +27 -0
- package/js/messages/message-form.js +107 -0
- package/js/messages/messages.js +21 -0
- package/js/messages/sticky-modal-page.js +98 -0
- package/js/messages/sticky-modal-progress-message.js +27 -0
- package/js/messages/toast.js +164 -0
- package/js/navigation.js +654 -0
- package/js/pages/breadcrumbs.js +124 -0
- package/js/pages/common-pages/common-pages.js +6 -0
- package/js/pages/common-pages/modal-progress-page.js +83 -0
- package/js/pages/common-pages/structured-page.js +46 -0
- package/js/pages/page.js +1018 -0
- package/js/pages/pages-context.js +154 -0
- package/js/pages/pages.js +252 -0
- package/js/pwa.js +337 -0
- package/js/sections/section.js +612 -0
- package/js/sections/sections.js +300 -0
- package/js/tables/common-cells/common-cells.js +7 -0
- package/js/tables/common-cells/icon-label-table-cell.js +68 -0
- package/js/tables/common-cells/push-button-table-cell.js +133 -0
- package/js/tables/common-cells/simple-table-cell.js +37 -0
- package/js/tables/common-tables/common-tables.js +5 -0
- package/js/tables/common-tables/page-table.js +55 -0
- package/js/tables/table-cell.js +198 -0
- package/js/tables/table-row.js +126 -0
- package/js/tables/table.js +492 -0
- package/js/tables/tables.js +36 -0
- package/js/theme.js +304 -0
- package/js/utils/ajax.js +126 -0
- package/js/utils/array.js +194 -0
- package/js/utils/colors.js +445 -0
- package/js/utils/cookies.js +65 -0
- package/js/utils/crypto.js +439 -0
- package/js/utils/css.js +234 -0
- package/js/utils/date.js +300 -0
- package/js/utils/files.js +27 -0
- package/js/utils/gestures.js +165 -0
- package/js/utils/html.js +76 -0
- package/js/utils/misc.js +81 -0
- package/js/utils/object.js +324 -0
- package/js/utils/promise.js +49 -0
- package/js/utils/string.js +192 -0
- package/js/utils/url.js +187 -0
- package/js/utils/utils.js +3 -0
- package/js/utils/visibility-manager.js +211 -0
- package/js/views/common-views/common-views.js +7 -0
- package/js/views/common-views/icon-label-view.js +210 -0
- package/js/views/common-views/progress-view.js +89 -0
- package/js/views/common-views/structured-view.js +368 -0
- package/js/views/view.js +467 -0
- package/js/views/views.js +3 -0
- package/js/widgets/base-widget.js +23 -0
- package/js/widgets/common-widgets/check-button.js +109 -0
- package/js/widgets/common-widgets/choice-buttons.js +322 -0
- package/js/widgets/common-widgets/color-combo.js +104 -0
- package/js/widgets/common-widgets/combo.js +645 -0
- package/js/widgets/common-widgets/common-widgets.js +17 -0
- package/js/widgets/common-widgets/email-input.js +7 -0
- package/js/widgets/common-widgets/file-picker.js +133 -0
- package/js/widgets/common-widgets/labels.js +132 -0
- package/js/widgets/common-widgets/numeric-input.js +49 -0
- package/js/widgets/common-widgets/password-input.js +91 -0
- package/js/widgets/common-widgets/phone-input.js +7 -0
- package/js/widgets/common-widgets/progress-disk.js +174 -0
- package/js/widgets/common-widgets/push-button.js +155 -0
- package/js/widgets/common-widgets/slider.js +455 -0
- package/js/widgets/common-widgets/text-area.js +52 -0
- package/js/widgets/common-widgets/text-input.js +174 -0
- package/js/widgets/common-widgets/up-down.js +351 -0
- package/js/widgets/widgets.js +57 -0
- package/js/window.js +557 -0
- package/jsdoc.conf.json +20 -0
- package/less/base.less +123 -0
- package/less/forms/common-fields.less +101 -0
- package/less/forms/common-forms.less +5 -0
- package/less/forms/form-button.less +21 -0
- package/less/forms/form-field.less +266 -0
- package/less/forms/form.less +131 -0
- package/less/global-glass.less +64 -0
- package/less/icon-label-view.less +82 -0
- package/less/icons.less +144 -0
- package/less/lists.less +105 -0
- package/less/main-ui.less +328 -0
- package/less/messages.less +189 -0
- package/less/no-effects.less +24 -0
- package/less/pages/breadcrumbs.less +98 -0
- package/less/pages/common-pages.less +36 -0
- package/less/pages/page.less +70 -0
- package/less/progress-view.less +51 -0
- package/less/stock-icons.less +43 -0
- package/less/structured-view.less +245 -0
- package/less/tables.less +84 -0
- package/less/theme-dark.less +133 -0
- package/less/theme-light.less +132 -0
- package/less/theme.less +419 -0
- package/less/visibility-manager.less +11 -0
- package/less/widgets/check-button.less +96 -0
- package/less/widgets/choice-buttons.less +160 -0
- package/less/widgets/color-combo.less +33 -0
- package/less/widgets/combo.less +230 -0
- package/less/widgets/common-buttons.less +120 -0
- package/less/widgets/common.less +24 -0
- package/less/widgets/input.less +258 -0
- package/less/widgets/labels.less +81 -0
- package/less/widgets/progress-disk.less +70 -0
- package/less/widgets/slider.less +199 -0
- package/less/widgets/updown.less +115 -0
- package/less/widgets/various.less +36 -0
- package/package.json +47 -0
- package/pyproject.toml +45 -0
- package/qui/__init__.py +110 -0
- package/qui/constants.py +1 -0
- package/qui/exceptions.py +2 -0
- package/qui/j2template.py +71 -0
- package/qui/settings.py +60 -0
- package/qui/templates/manifest.json +25 -0
- package/qui/templates/qui.html +126 -0
- package/qui/templates/service-worker.js +188 -0
- package/qui/web/__init__.py +0 -0
- package/qui/web/tornado.py +220 -0
- package/scripts/postinstall.sh +10 -0
- package/webpack/webpack-adjust-css-urls-loader.js +36 -0
- package/webpack/webpack-common.js +384 -0
package/.eslintignore
ADDED
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
{
|
|
2
|
+
"parser": "babel-eslint",
|
|
3
|
+
"parserOptions": {
|
|
4
|
+
"ecmaVersion": 2018,
|
|
5
|
+
"sourceType": "module"
|
|
6
|
+
},
|
|
7
|
+
"env": {
|
|
8
|
+
"es6": true,
|
|
9
|
+
"node": true
|
|
10
|
+
},
|
|
11
|
+
"globals": {
|
|
12
|
+
"document": "readonly",
|
|
13
|
+
"navigator": "readonly",
|
|
14
|
+
"window": "readonly"
|
|
15
|
+
},
|
|
16
|
+
"rules": {
|
|
17
|
+
"accessor-pairs": "error",
|
|
18
|
+
"array-bracket-spacing": [
|
|
19
|
+
"error",
|
|
20
|
+
"never"
|
|
21
|
+
],
|
|
22
|
+
"arrow-spacing": [
|
|
23
|
+
"error",
|
|
24
|
+
{
|
|
25
|
+
"before": true,
|
|
26
|
+
"after": true
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"block-spacing": [
|
|
30
|
+
"error",
|
|
31
|
+
"always"
|
|
32
|
+
],
|
|
33
|
+
"brace-style": [
|
|
34
|
+
"error",
|
|
35
|
+
"stroustrup",
|
|
36
|
+
{
|
|
37
|
+
"allowSingleLine": false
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"camelcase": [
|
|
41
|
+
"error",
|
|
42
|
+
{
|
|
43
|
+
"properties": "never"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"comma-dangle": [
|
|
47
|
+
"error",
|
|
48
|
+
{
|
|
49
|
+
"arrays": "never",
|
|
50
|
+
"objects": "never",
|
|
51
|
+
"imports": "never",
|
|
52
|
+
"exports": "never",
|
|
53
|
+
"functions": "never"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"comma-spacing": [
|
|
57
|
+
"error",
|
|
58
|
+
{
|
|
59
|
+
"before": false,
|
|
60
|
+
"after": true
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"comma-style": [
|
|
64
|
+
"error",
|
|
65
|
+
"last"
|
|
66
|
+
],
|
|
67
|
+
"computed-property-spacing": [
|
|
68
|
+
"error",
|
|
69
|
+
"never"
|
|
70
|
+
],
|
|
71
|
+
"constructor-super": "error",
|
|
72
|
+
"curly": [
|
|
73
|
+
"error",
|
|
74
|
+
"multi-line"
|
|
75
|
+
],
|
|
76
|
+
"dot-location": [
|
|
77
|
+
"error",
|
|
78
|
+
"property"
|
|
79
|
+
],
|
|
80
|
+
"eol-last": "error",
|
|
81
|
+
"eqeqeq": [
|
|
82
|
+
"error",
|
|
83
|
+
"always",
|
|
84
|
+
{
|
|
85
|
+
"null": "ignore"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"func-call-spacing": [
|
|
89
|
+
"error",
|
|
90
|
+
"never"
|
|
91
|
+
],
|
|
92
|
+
"function-paren-newline": [
|
|
93
|
+
"error",
|
|
94
|
+
"consistent"
|
|
95
|
+
],
|
|
96
|
+
"generator-star-spacing": [
|
|
97
|
+
"error",
|
|
98
|
+
{
|
|
99
|
+
"before": true,
|
|
100
|
+
"after": true
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"handle-callback-err": [
|
|
104
|
+
"off"
|
|
105
|
+
],
|
|
106
|
+
"indent": [
|
|
107
|
+
"error",
|
|
108
|
+
4,
|
|
109
|
+
{
|
|
110
|
+
"SwitchCase": 1,
|
|
111
|
+
"VariableDeclarator": 1,
|
|
112
|
+
"outerIIFEBody": 1,
|
|
113
|
+
"MemberExpression": "off",
|
|
114
|
+
"FunctionDeclaration": {
|
|
115
|
+
"parameters": 1,
|
|
116
|
+
"body": 1
|
|
117
|
+
},
|
|
118
|
+
"FunctionExpression": {
|
|
119
|
+
"parameters": 1,
|
|
120
|
+
"body": 1
|
|
121
|
+
},
|
|
122
|
+
"CallExpression": {
|
|
123
|
+
"arguments": 1
|
|
124
|
+
},
|
|
125
|
+
"ArrayExpression": 1,
|
|
126
|
+
"ObjectExpression": 1,
|
|
127
|
+
"ImportDeclaration": 1,
|
|
128
|
+
"flatTernaryExpressions": false,
|
|
129
|
+
"ignoreComments": false
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"key-spacing": [
|
|
133
|
+
"error",
|
|
134
|
+
{
|
|
135
|
+
"beforeColon": false,
|
|
136
|
+
"afterColon": true
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"keyword-spacing": [
|
|
140
|
+
"error",
|
|
141
|
+
{
|
|
142
|
+
"before": true,
|
|
143
|
+
"after": true
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"lines-between-class-members": [
|
|
147
|
+
"error",
|
|
148
|
+
"always",
|
|
149
|
+
{
|
|
150
|
+
"exceptAfterSingleLine": true
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"max-len": [
|
|
154
|
+
"error",
|
|
155
|
+
{
|
|
156
|
+
"code": 120
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"new-cap": [
|
|
160
|
+
"error",
|
|
161
|
+
{
|
|
162
|
+
"newIsCap": true,
|
|
163
|
+
"capIsNew": false,
|
|
164
|
+
"properties": true
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"new-parens": "error",
|
|
168
|
+
"no-array-constructor": "error",
|
|
169
|
+
"no-async-promise-executor": "error",
|
|
170
|
+
"no-caller": "error",
|
|
171
|
+
"no-case-declarations": "error",
|
|
172
|
+
"no-class-assign": "error",
|
|
173
|
+
"no-compare-neg-zero": "error",
|
|
174
|
+
"no-cond-assign": "error",
|
|
175
|
+
"no-const-assign": "error",
|
|
176
|
+
"no-constant-condition": [
|
|
177
|
+
"error",
|
|
178
|
+
{
|
|
179
|
+
"checkLoops": false
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
"no-control-regex": "error",
|
|
183
|
+
"no-debugger": "error",
|
|
184
|
+
"no-delete-var": "error",
|
|
185
|
+
"no-dupe-args": "error",
|
|
186
|
+
"no-dupe-class-members": "error",
|
|
187
|
+
"no-dupe-keys": "error",
|
|
188
|
+
"no-duplicate-case": "error",
|
|
189
|
+
"no-empty-character-class": "error",
|
|
190
|
+
"no-empty-pattern": "error",
|
|
191
|
+
"no-eval": "error",
|
|
192
|
+
"no-ex-assign": "error",
|
|
193
|
+
"no-extend-native": "off",
|
|
194
|
+
"no-extra-bind": "error",
|
|
195
|
+
"no-extra-boolean-cast": "error",
|
|
196
|
+
"no-extra-parens": [
|
|
197
|
+
"error",
|
|
198
|
+
"functions"
|
|
199
|
+
],
|
|
200
|
+
"no-fallthrough": "error",
|
|
201
|
+
"no-floating-decimal": "error",
|
|
202
|
+
"no-func-assign": "error",
|
|
203
|
+
"no-global-assign": "error",
|
|
204
|
+
"no-implied-eval": "error",
|
|
205
|
+
"no-inner-declarations": [
|
|
206
|
+
"error",
|
|
207
|
+
"functions"
|
|
208
|
+
],
|
|
209
|
+
"no-invalid-regexp": "error",
|
|
210
|
+
"no-irregular-whitespace": "error",
|
|
211
|
+
"no-iterator": "error",
|
|
212
|
+
"no-labels": [
|
|
213
|
+
"error",
|
|
214
|
+
{
|
|
215
|
+
"allowLoop": false,
|
|
216
|
+
"allowSwitch": false
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
"no-lone-blocks": "error",
|
|
220
|
+
"no-misleading-character-class": "error",
|
|
221
|
+
"no-prototype-builtins": "error",
|
|
222
|
+
"no-useless-catch": "error",
|
|
223
|
+
"no-mixed-operators": [
|
|
224
|
+
"error",
|
|
225
|
+
{
|
|
226
|
+
"groups": [
|
|
227
|
+
[
|
|
228
|
+
"==",
|
|
229
|
+
"!=",
|
|
230
|
+
"===",
|
|
231
|
+
"!==",
|
|
232
|
+
">",
|
|
233
|
+
">=",
|
|
234
|
+
"<",
|
|
235
|
+
"<="
|
|
236
|
+
],
|
|
237
|
+
[
|
|
238
|
+
"&&",
|
|
239
|
+
"||"
|
|
240
|
+
],
|
|
241
|
+
[
|
|
242
|
+
"in",
|
|
243
|
+
"instanceof"
|
|
244
|
+
]
|
|
245
|
+
],
|
|
246
|
+
"allowSamePrecedence": true
|
|
247
|
+
}
|
|
248
|
+
],
|
|
249
|
+
"no-mixed-spaces-and-tabs": "error",
|
|
250
|
+
"no-multi-spaces": [
|
|
251
|
+
"error",
|
|
252
|
+
{
|
|
253
|
+
"exceptions": {
|
|
254
|
+
"ImportDeclaration": true,
|
|
255
|
+
"ExportNamedDeclaration": true
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
],
|
|
259
|
+
"no-multi-str": "error",
|
|
260
|
+
"no-multiple-empty-lines": [
|
|
261
|
+
"error",
|
|
262
|
+
{
|
|
263
|
+
"max": 2,
|
|
264
|
+
"maxEOF": 0
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
"no-negated-in-lhs": "error",
|
|
268
|
+
"no-new": "error",
|
|
269
|
+
"no-new-func": "error",
|
|
270
|
+
"no-new-object": "error",
|
|
271
|
+
"no-new-require": "error",
|
|
272
|
+
"no-new-symbol": "error",
|
|
273
|
+
"no-new-wrappers": "error",
|
|
274
|
+
"no-obj-calls": "error",
|
|
275
|
+
"no-octal": "error",
|
|
276
|
+
"no-octal-escape": "error",
|
|
277
|
+
"no-path-concat": "error",
|
|
278
|
+
"no-proto": "error",
|
|
279
|
+
"no-redeclare": [
|
|
280
|
+
"error",
|
|
281
|
+
{
|
|
282
|
+
"builtinGlobals": false
|
|
283
|
+
}
|
|
284
|
+
],
|
|
285
|
+
"no-regex-spaces": "error",
|
|
286
|
+
"no-return-assign": [
|
|
287
|
+
"error",
|
|
288
|
+
"except-parens"
|
|
289
|
+
],
|
|
290
|
+
"no-return-await": "error",
|
|
291
|
+
"no-self-assign": "error",
|
|
292
|
+
"no-self-compare": "error",
|
|
293
|
+
"no-sequences": "error",
|
|
294
|
+
"no-shadow-restricted-names": "error",
|
|
295
|
+
"no-sparse-arrays": "error",
|
|
296
|
+
"no-tabs": "error",
|
|
297
|
+
"no-template-curly-in-string": "error",
|
|
298
|
+
"no-this-before-super": "error",
|
|
299
|
+
"no-throw-literal": "error",
|
|
300
|
+
"no-trailing-spaces": "error",
|
|
301
|
+
"no-undef": "error",
|
|
302
|
+
"no-undef-init": "error",
|
|
303
|
+
"no-unexpected-multiline": "error",
|
|
304
|
+
"no-unmodified-loop-condition": "error",
|
|
305
|
+
"no-unneeded-ternary": [
|
|
306
|
+
"error",
|
|
307
|
+
{
|
|
308
|
+
"defaultAssignment": false
|
|
309
|
+
}
|
|
310
|
+
],
|
|
311
|
+
"no-unreachable": "error",
|
|
312
|
+
"no-unsafe-finally": "error",
|
|
313
|
+
"no-unsafe-negation": "error",
|
|
314
|
+
"no-unused-expressions": [
|
|
315
|
+
"error",
|
|
316
|
+
{
|
|
317
|
+
"allowShortCircuit": true,
|
|
318
|
+
"allowTernary": true,
|
|
319
|
+
"allowTaggedTemplates": true
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
"no-unused-vars": [
|
|
323
|
+
"error",
|
|
324
|
+
{
|
|
325
|
+
"vars": "all",
|
|
326
|
+
"varsIgnorePattern": "[A-Z]",
|
|
327
|
+
"args": "none",
|
|
328
|
+
"ignoreRestSiblings": true
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"no-use-before-define": [
|
|
332
|
+
"error",
|
|
333
|
+
{
|
|
334
|
+
"functions": false,
|
|
335
|
+
"classes": false,
|
|
336
|
+
"variables": false
|
|
337
|
+
}
|
|
338
|
+
],
|
|
339
|
+
"no-useless-call": "error",
|
|
340
|
+
"no-useless-computed-key": "error",
|
|
341
|
+
"no-useless-constructor": "off",
|
|
342
|
+
"no-useless-escape": "error",
|
|
343
|
+
"no-useless-rename": "error",
|
|
344
|
+
"no-useless-return": "error",
|
|
345
|
+
"no-whitespace-before-property": "error",
|
|
346
|
+
"no-with": "error",
|
|
347
|
+
"no-void": "error",
|
|
348
|
+
"object-curly-spacing": 0,
|
|
349
|
+
"object-property-newline": "off",
|
|
350
|
+
"one-var": "off",
|
|
351
|
+
"operator-linebreak": [
|
|
352
|
+
"error",
|
|
353
|
+
"after",
|
|
354
|
+
{
|
|
355
|
+
"overrides": {
|
|
356
|
+
"?": "before",
|
|
357
|
+
":": "before",
|
|
358
|
+
"|>": "before"
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
],
|
|
362
|
+
"padded-blocks": [
|
|
363
|
+
"error",
|
|
364
|
+
{
|
|
365
|
+
"classes": "always"
|
|
366
|
+
}
|
|
367
|
+
],
|
|
368
|
+
"prefer-const": [
|
|
369
|
+
"off"
|
|
370
|
+
],
|
|
371
|
+
"prefer-promise-reject-errors": [
|
|
372
|
+
"error",
|
|
373
|
+
{
|
|
374
|
+
"allowEmptyReject": true
|
|
375
|
+
}
|
|
376
|
+
],
|
|
377
|
+
"quote-props": [
|
|
378
|
+
"error",
|
|
379
|
+
"consistent-as-needed"
|
|
380
|
+
],
|
|
381
|
+
"quotes": [
|
|
382
|
+
"error",
|
|
383
|
+
"single",
|
|
384
|
+
{
|
|
385
|
+
"avoidEscape": true,
|
|
386
|
+
"allowTemplateLiterals": true
|
|
387
|
+
}
|
|
388
|
+
],
|
|
389
|
+
"rest-spread-spacing": [
|
|
390
|
+
"error",
|
|
391
|
+
"never"
|
|
392
|
+
],
|
|
393
|
+
"semi": [
|
|
394
|
+
"error",
|
|
395
|
+
"never"
|
|
396
|
+
],
|
|
397
|
+
"semi-spacing": [
|
|
398
|
+
"error",
|
|
399
|
+
{
|
|
400
|
+
"before": false,
|
|
401
|
+
"after": true
|
|
402
|
+
}
|
|
403
|
+
],
|
|
404
|
+
"space-before-blocks": [
|
|
405
|
+
"error",
|
|
406
|
+
"always"
|
|
407
|
+
],
|
|
408
|
+
"space-before-function-paren": [
|
|
409
|
+
"error",
|
|
410
|
+
{
|
|
411
|
+
"anonymous": "always",
|
|
412
|
+
"named": "never"
|
|
413
|
+
}
|
|
414
|
+
],
|
|
415
|
+
"space-in-parens": [
|
|
416
|
+
"error",
|
|
417
|
+
"never"
|
|
418
|
+
],
|
|
419
|
+
"space-infix-ops": "error",
|
|
420
|
+
"space-unary-ops": [
|
|
421
|
+
"error",
|
|
422
|
+
{
|
|
423
|
+
"words": true,
|
|
424
|
+
"nonwords": false
|
|
425
|
+
}
|
|
426
|
+
],
|
|
427
|
+
"spaced-comment": [
|
|
428
|
+
"error",
|
|
429
|
+
"always",
|
|
430
|
+
{
|
|
431
|
+
"line": {
|
|
432
|
+
"markers": [
|
|
433
|
+
"*package",
|
|
434
|
+
"!",
|
|
435
|
+
"/",
|
|
436
|
+
",",
|
|
437
|
+
"="
|
|
438
|
+
]
|
|
439
|
+
},
|
|
440
|
+
"block": {
|
|
441
|
+
"balanced": true,
|
|
442
|
+
"markers": [
|
|
443
|
+
"*package",
|
|
444
|
+
"!",
|
|
445
|
+
",",
|
|
446
|
+
":",
|
|
447
|
+
"::",
|
|
448
|
+
"flow-include"
|
|
449
|
+
],
|
|
450
|
+
"exceptions": [
|
|
451
|
+
"*"
|
|
452
|
+
]
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
],
|
|
456
|
+
"symbol-description": "error",
|
|
457
|
+
"template-curly-spacing": [
|
|
458
|
+
"error",
|
|
459
|
+
"never"
|
|
460
|
+
],
|
|
461
|
+
"template-tag-spacing": [
|
|
462
|
+
"error",
|
|
463
|
+
"never"
|
|
464
|
+
],
|
|
465
|
+
"unicode-bom": [
|
|
466
|
+
"error",
|
|
467
|
+
"never"
|
|
468
|
+
],
|
|
469
|
+
"use-isnan": "error",
|
|
470
|
+
"valid-typeof": [
|
|
471
|
+
"error",
|
|
472
|
+
{
|
|
473
|
+
"requireStringLiterals": true
|
|
474
|
+
}
|
|
475
|
+
],
|
|
476
|
+
"wrap-iife": [
|
|
477
|
+
"error",
|
|
478
|
+
"any",
|
|
479
|
+
{
|
|
480
|
+
"functionPrototypeMethods": true
|
|
481
|
+
}
|
|
482
|
+
],
|
|
483
|
+
"yield-star-spacing": [
|
|
484
|
+
"error",
|
|
485
|
+
"both"
|
|
486
|
+
],
|
|
487
|
+
"yoda": [
|
|
488
|
+
"error",
|
|
489
|
+
"never"
|
|
490
|
+
]
|
|
491
|
+
}
|
|
492
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Report something that doesn't work well
|
|
4
|
+
title: ''
|
|
5
|
+
labels: bug
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Describe the bug:**
|
|
11
|
+
A clear and concise description of what the bug is.
|
|
12
|
+
|
|
13
|
+
**Steps to reproduce:**
|
|
14
|
+
Steps to reproduce the behavior:
|
|
15
|
+
1. Go to '...'
|
|
16
|
+
2. Click on '....'
|
|
17
|
+
3. Scroll down to '....'
|
|
18
|
+
4. See error
|
|
19
|
+
|
|
20
|
+
**Expected behavior:**
|
|
21
|
+
A clear and concise description of what you expected to happen.
|
|
22
|
+
|
|
23
|
+
**Installation details:**
|
|
24
|
+
- qui version: [e.g. 1.23.4-beta.5]
|
|
25
|
+
|
|
26
|
+
**Screenshots:**
|
|
27
|
+
If applicable, add screenshots to help explain your problem.
|
|
28
|
+
|
|
29
|
+
**Log files:**
|
|
30
|
+
If applicable, provide log files. Use the [gist](https://gist.github.com/) website instead of pasting the log contents here.
|
|
31
|
+
|
|
32
|
+
**Additional context:**
|
|
33
|
+
Add any other context about the problem here.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest a new feature for this project
|
|
4
|
+
title: ''
|
|
5
|
+
labels: feature
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Is your feature request related to a problem? Please describe:**
|
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
12
|
+
|
|
13
|
+
**Describe the solution you'd like:**
|
|
14
|
+
A clear and concise description of what you want to happen.
|
|
15
|
+
|
|
16
|
+
**Provide any mockups, sketches or screenshots that clarify your idea:**
|
|
17
|
+
Drag your image over the issue template text to attach it.
|
|
18
|
+
|
|
19
|
+
**Describe alternatives you've considered:**
|
|
20
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
|
21
|
+
|
|
22
|
+
**Additional context:**
|
|
23
|
+
Add any other context or screenshots about the feature request here.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Improvement proposal
|
|
3
|
+
about: Propose an improvement to an existing feature
|
|
4
|
+
title: ''
|
|
5
|
+
labels: improvement
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Is your improvement proposal related to a problem? Please describe:**
|
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
12
|
+
|
|
13
|
+
**Describe the solution you'd like:**
|
|
14
|
+
A clear and concise description of what you want to happen.
|
|
15
|
+
|
|
16
|
+
**Provide any mockups, sketches or screenshots that clarify your idea:**
|
|
17
|
+
Drag your image over the issue template text to attach it.
|
|
18
|
+
|
|
19
|
+
**Additional context:**
|
|
20
|
+
Add any other context or screenshots about the feature request here.
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
name: Main
|
|
2
|
+
|
|
3
|
+
on: push
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
lint:
|
|
7
|
+
name: Lint
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
steps:
|
|
10
|
+
- name: Lint JS Code
|
|
11
|
+
uses: qtoggle/actions-common/actions/lint-js@v1
|
|
12
|
+
- name: Lint Python Code
|
|
13
|
+
uses: qtoggle/actions-common/actions/lint-python@v1
|
|
14
|
+
with:
|
|
15
|
+
source-folder: qui
|
|
16
|
+
jsdoc:
|
|
17
|
+
name: Publish Docs
|
|
18
|
+
if: startsWith(github.ref, 'refs/tags/version-')
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
needs:
|
|
21
|
+
- lint
|
|
22
|
+
steps:
|
|
23
|
+
- name: Source code checkout
|
|
24
|
+
uses: actions/checkout@v4
|
|
25
|
+
- name: Replace source version
|
|
26
|
+
uses: qtoggle/actions-common/actions/replace-source-version@v1
|
|
27
|
+
- name: Install
|
|
28
|
+
run: |
|
|
29
|
+
npm install && rm -rf docs/* js/lib/* && npx jsdoc -c jsdoc.conf.json
|
|
30
|
+
- name: Deploy GitHub pages
|
|
31
|
+
uses: JamesIves/github-pages-deploy-action@releases/v3
|
|
32
|
+
with:
|
|
33
|
+
ACCESS_TOKEN: ${{ secrets.GH_PAGES_ACCESS_TOKEN }}
|
|
34
|
+
BRANCH: gh-pages
|
|
35
|
+
FOLDER: docs
|
|
36
|
+
build-python:
|
|
37
|
+
name: Build Python
|
|
38
|
+
runs-on: ubuntu-latest
|
|
39
|
+
steps:
|
|
40
|
+
- name: Build Python package
|
|
41
|
+
uses: qtoggle/actions-common/actions/build-python-package@v1
|
|
42
|
+
publish:
|
|
43
|
+
name: Publish
|
|
44
|
+
if: startsWith(github.ref, 'refs/tags/version-')
|
|
45
|
+
runs-on: ubuntu-latest
|
|
46
|
+
needs:
|
|
47
|
+
- lint
|
|
48
|
+
- jsdoc
|
|
49
|
+
- build-python
|
|
50
|
+
steps:
|
|
51
|
+
- name: Source code checkout
|
|
52
|
+
uses: actions/checkout@v4
|
|
53
|
+
- name: Replace source version
|
|
54
|
+
uses: qtoggle/actions-common/actions/replace-source-version@v1
|
|
55
|
+
- name: Setup NodeJS
|
|
56
|
+
uses: actions/setup-node@v4
|
|
57
|
+
with:
|
|
58
|
+
node-version: 18
|
|
59
|
+
- name: Publish to NPM
|
|
60
|
+
run: |
|
|
61
|
+
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > ~/.npmrc
|
|
62
|
+
npm publish
|
|
63
|
+
env:
|
|
64
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
65
|
+
- name: Fetch python dist folder
|
|
66
|
+
uses: actions/download-artifact@v4
|
|
67
|
+
with:
|
|
68
|
+
name: python-package-dist
|
|
69
|
+
path: dist/
|
|
70
|
+
- name: Publish package
|
|
71
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
72
|
+
with:
|
|
73
|
+
user: __token__
|
|
74
|
+
password: ${{ secrets.PYPI_TOKEN }}
|