@kestra-io/ui-libs 0.0.78 → 0.0.79
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/package.json +3 -18
- package/src/components/plugins/SchemaToCode.vue +2 -18
- package/src/components/plugins/SchemaToHtml.vue +61 -120
- package/src/scss/bootstrap-overload.scss +0 -4
- package/src/utils/YamlUtils.js +1 -1
- package/src/utils/state.js +1 -1
- package/dist/_theme-dark.scss +0 -20
- package/dist/_variables.scss +0 -119
- package/dist/github-dark-DenFmJkN.js +0 -4
- package/dist/kestra-ui.js +0 -14876
- package/dist/kestra-ui.umd.cjs +0 -26
- package/dist/style.css +0 -1
- package/dist/wasm-DQxwEHae.js +0 -7
package/package.json
CHANGED
|
@@ -1,29 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kestra-io/ui-libs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.79",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
|
-
"dist",
|
|
7
6
|
"src",
|
|
8
7
|
"package.json",
|
|
9
8
|
"stub-mdc-imports.js"
|
|
10
9
|
],
|
|
11
|
-
"main": "./
|
|
12
|
-
"module": "./
|
|
13
|
-
"exports": {
|
|
14
|
-
".": {
|
|
15
|
-
"import": {
|
|
16
|
-
"development": "./src/index.js",
|
|
17
|
-
"production": "./dist/kestra-ui.js"
|
|
18
|
-
},
|
|
19
|
-
"require": {
|
|
20
|
-
"development": "./src/index.js",
|
|
21
|
-
"production": "./dist/kestra-ui.umd.cjs"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"./style.css": "./dist/style.css",
|
|
25
|
-
"./src/*": "./src/*"
|
|
26
|
-
},
|
|
10
|
+
"main": "./src/index.js",
|
|
11
|
+
"module": "./src/index.js",
|
|
27
12
|
"scripts": {
|
|
28
13
|
"dev": "vite",
|
|
29
14
|
"debug": "vite --debug",
|
|
@@ -21,11 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
<script>
|
|
23
23
|
import {createPopper} from "@popperjs/core";
|
|
24
|
-
import {
|
|
25
|
-
import {createHighlighterCore} from "shiki/core";
|
|
26
|
-
import yaml from "shiki/langs/yaml.mjs";
|
|
27
|
-
import python from "shiki/langs/python.mjs";
|
|
28
|
-
import javascript from "shiki/langs/javascript.mjs";
|
|
24
|
+
import {codeToHtml} from "shiki";
|
|
29
25
|
import ContentCopy from "vue-material-design-icons/ContentCopy.vue";
|
|
30
26
|
import Check from "vue-material-design-icons/Check.vue";
|
|
31
27
|
import {defineComponent, nextTick, shallowRef} from "vue";
|
|
@@ -67,19 +63,7 @@
|
|
|
67
63
|
},
|
|
68
64
|
async created() {
|
|
69
65
|
this.copyIcon = this.icons.ContentCopy;
|
|
70
|
-
|
|
71
|
-
themes: [
|
|
72
|
-
import("shiki/themes/github-dark.mjs")
|
|
73
|
-
],
|
|
74
|
-
langs: [
|
|
75
|
-
yaml,
|
|
76
|
-
python,
|
|
77
|
-
javascript
|
|
78
|
-
],
|
|
79
|
-
// `shiki/wasm` contains the wasm binary inlined as base64 string.
|
|
80
|
-
engine: createOnigurumaEngine(() => import("shiki/wasm"))
|
|
81
|
-
})
|
|
82
|
-
this.codeData = highlighter.codeToHtml(this.code, {
|
|
66
|
+
this.codeData = await codeToHtml(this.code, {
|
|
83
67
|
lang: this.language,
|
|
84
68
|
theme: "github-dark",
|
|
85
69
|
});
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
</h2>
|
|
27
27
|
<template v-if="key !== 'definitions'">
|
|
28
28
|
<template v-for="(property, propertyKey) in sortSchemaByRequired(pageBlock)" :key="propertyKey">
|
|
29
|
-
<h3 :id="property.name
|
|
30
|
-
<a :href="`#${property.name
|
|
31
|
-
<code>{{ property.name
|
|
29
|
+
<h3 :id="property.name || propertyKey">
|
|
30
|
+
<a :href="`#${property.name || propertyKey}`">
|
|
31
|
+
<code>{{ property.name || propertyKey }}</code>
|
|
32
32
|
</a>
|
|
33
33
|
</h3>
|
|
34
34
|
<div
|
|
@@ -41,18 +41,11 @@
|
|
|
41
41
|
<ul>
|
|
42
42
|
<li>
|
|
43
43
|
<strong>Type: </strong>
|
|
44
|
-
<
|
|
45
|
-
|
|
46
|
-
v-if="property['$ref']"
|
|
47
|
-
:href="generateTaskHref(property['$ref'])"
|
|
48
|
-
class="router-link-active router-link-exact-active"
|
|
44
|
+
<mark
|
|
45
|
+
class="type-mark type-mark-default"
|
|
46
|
+
v-if="property.type || property['$ref']"
|
|
49
47
|
>
|
|
50
|
-
|
|
51
|
-
{{ property['$ref']?.split('.').reverse()[0] }}
|
|
52
|
-
</mark>
|
|
53
|
-
</a>
|
|
54
|
-
<mark v-else-if="property.type" class="type-mark type-mark-default">
|
|
55
|
-
{{ property.type }}
|
|
48
|
+
{{ property.type || property['$ref']?.split('.').reverse()[0] }}
|
|
56
49
|
</mark>
|
|
57
50
|
<ul v-else-if="property.anyOf">
|
|
58
51
|
<li v-for="(anyOf, index) in property.anyOf" :key="index">
|
|
@@ -60,38 +53,30 @@
|
|
|
60
53
|
</li>
|
|
61
54
|
</ul>
|
|
62
55
|
</li>
|
|
63
|
-
<li v-if="property.items
|
|
56
|
+
<li v-if="property.items">
|
|
64
57
|
<strong>SubType: </strong>
|
|
65
|
-
<
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
>
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
</mark>
|
|
75
|
-
</a>
|
|
76
|
-
<mark v-else class="type-mark type-mark-default">
|
|
77
|
-
{{ property.items.type ?? 'string' }}
|
|
58
|
+
<a
|
|
59
|
+
aria-current="page"
|
|
60
|
+
v-if="property.items['$ref']"
|
|
61
|
+
:href="generateTaskHref(property.items['$ref'])"
|
|
62
|
+
class="router-link-active router-link-exact-active"
|
|
63
|
+
>
|
|
64
|
+
<mark class="type-mark type-mark-default">
|
|
65
|
+
{{ property.items['$ref']?.split('.').reverse()[0] ||
|
|
66
|
+
property.items.type ||'String' }}
|
|
78
67
|
</mark>
|
|
79
|
-
</
|
|
80
|
-
<mark v-else
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
</template>
|
|
84
|
-
<template v-else-if="property.additionalProperties.type">
|
|
85
|
-
{{ property.additionalProperties.type }}
|
|
86
|
-
</template>
|
|
68
|
+
</a>
|
|
69
|
+
<mark v-else class="type-mark type-mark-default">
|
|
70
|
+
{{ property.items['$ref']?.split('.').reverse()[0] ||
|
|
71
|
+
property.items.type ||'String' }}
|
|
87
72
|
</mark>
|
|
88
73
|
</li>
|
|
89
|
-
<li>
|
|
74
|
+
<li v-if="property['$dynamic'] !== undefined">
|
|
90
75
|
<strong>Dynamic: </strong>{{
|
|
91
76
|
property['$dynamic'] === true ? "✔️" :
|
|
92
77
|
(property['$dynamic'] === false ? "❌" : "❓") }}
|
|
93
78
|
</li>
|
|
94
|
-
<li>
|
|
79
|
+
<li v-if="property['$required'] !== undefined">
|
|
95
80
|
<strong>Required: </strong> {{
|
|
96
81
|
property['$required'] === true ? "✔️" :
|
|
97
82
|
(property['$required'] === false ? "❌" : "❓") }}
|
|
@@ -116,21 +101,15 @@
|
|
|
116
101
|
<strong>Possible Values:</strong>
|
|
117
102
|
<ul>
|
|
118
103
|
<li v-for="(possibleValue, index) in property.enum" :key="index">
|
|
119
|
-
<code>{{ possibleValue }}</code>
|
|
104
|
+
<code data-v-c4861ad0="" class="">{{ possibleValue }}</code>
|
|
120
105
|
</li>
|
|
121
106
|
</ul>
|
|
122
107
|
</li>
|
|
123
108
|
</ul>
|
|
124
109
|
|
|
125
|
-
<
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
</slot>
|
|
129
|
-
</div>
|
|
130
|
-
<blockquote v-if="property.description" class="blockquote">
|
|
131
|
-
<slot :content="property.description" name="markdown">
|
|
132
|
-
<template v-html="replaceText(property.description)" />
|
|
133
|
-
</slot>
|
|
110
|
+
<slot v-if="property.title" :content="property.title" name="markdown" />
|
|
111
|
+
<blockquote class="blockquote">
|
|
112
|
+
<slot v-if="property.description" :content="property.description" name="markdown" />
|
|
134
113
|
</blockquote>
|
|
135
114
|
</template>
|
|
136
115
|
</template>
|
|
@@ -154,65 +133,41 @@
|
|
|
154
133
|
v-for="(definition, propertyKey) in item.properties ?? []"
|
|
155
134
|
:key="propertyKey"
|
|
156
135
|
>
|
|
157
|
-
<h5 :id="definition.name
|
|
158
|
-
<a :href="`#${definition.name
|
|
159
|
-
<code>{{ definition.name
|
|
136
|
+
<h5 :id="definition.name || propertyKey">
|
|
137
|
+
<a :href="`#${definition.name || propertyKey}`">
|
|
138
|
+
<code>{{ definition.name || propertyKey }}</code>
|
|
160
139
|
</a>
|
|
161
140
|
</h5>
|
|
162
141
|
<ul>
|
|
163
142
|
<li>
|
|
164
143
|
<strong>Type: </strong>
|
|
144
|
+
<mark class="type-mark type-mark-default">
|
|
145
|
+
{{ definition.type ||
|
|
146
|
+
definition['$ref']?.split('.').reverse()[0] }}
|
|
147
|
+
</mark>
|
|
148
|
+
</li>
|
|
149
|
+
<li v-if="definition.items">
|
|
150
|
+
<strong>SubType: </strong>
|
|
165
151
|
<a
|
|
166
152
|
aria-current="page"
|
|
167
|
-
v-if="definition['$ref']"
|
|
168
|
-
:href="generateTaskHref(definition['$ref'])"
|
|
153
|
+
v-if="definition.items['$ref']"
|
|
154
|
+
:href="generateTaskHref(definition.items['$ref'])"
|
|
169
155
|
class="router-link-active router-link-exact-active"
|
|
170
156
|
>
|
|
171
157
|
<mark class="type-mark type-mark-default">
|
|
172
|
-
{{ definition
|
|
158
|
+
{{ definition.items?.type || 'Task' }}
|
|
173
159
|
</mark>
|
|
174
160
|
</a>
|
|
175
|
-
<mark v-else
|
|
176
|
-
{{ definition.type }}
|
|
177
|
-
</mark>
|
|
178
|
-
<ul v-else-if="definition.anyOf">
|
|
179
|
-
<li v-for="(anyOf, index) in definition.anyOf" :key="index">
|
|
180
|
-
<mark class="type-mark type-mark-default">{{ anyOf.type }}</mark>
|
|
181
|
-
</li>
|
|
182
|
-
</ul>
|
|
183
|
-
</li>
|
|
184
|
-
<li v-if="definition.items">
|
|
185
|
-
<strong>SubType: </strong>
|
|
186
|
-
<template v-if="definition.items">
|
|
187
|
-
<a
|
|
188
|
-
aria-current="page"
|
|
189
|
-
v-if="definition.items['$ref']"
|
|
190
|
-
:href="generateTaskHref(definition.items['$ref'])"
|
|
191
|
-
class="router-link-active router-link-exact-active"
|
|
192
|
-
>
|
|
193
|
-
<mark class="type-mark type-mark-default">
|
|
194
|
-
{{ definition.items['$ref'].split('.').reverse()[0] }}
|
|
195
|
-
</mark>
|
|
196
|
-
</a>
|
|
197
|
-
<mark v-else class="type-mark type-mark-default">
|
|
198
|
-
{{ definition.items.type ?? 'string' }}
|
|
199
|
-
</mark>
|
|
200
|
-
</template>
|
|
201
|
-
<mark v-else-if="definition.additionalProperties.type" class="type-mark type-mark-default">
|
|
202
|
-
<template v-if="definition.additionalProperties.items">
|
|
203
|
-
{{ definition.additionalProperties.items.type ?? 'string' }}
|
|
204
|
-
</template>
|
|
205
|
-
<template v-else-if="definition.additionalProperties.type">
|
|
206
|
-
{{ definition.additionalProperties.type }}
|
|
207
|
-
</template>
|
|
161
|
+
<mark v-else class="type-mark type-mark-default">
|
|
162
|
+
{{ definition.items?.type || 'Task' }}
|
|
208
163
|
</mark>
|
|
209
164
|
</li>
|
|
210
|
-
<li>
|
|
165
|
+
<li v-if="definition['$dynamic'] !== undefined">
|
|
211
166
|
<strong>Dynamic: </strong>
|
|
212
167
|
{{ definition['$dynamic'] === true ? "✔️" :
|
|
213
168
|
(definition['$dynamic'] === false ? "❌" : "❓") }}
|
|
214
169
|
</li>
|
|
215
|
-
<li>
|
|
170
|
+
<li v-if="definition['$required'] !== undefined">
|
|
216
171
|
<strong>Required: </strong>
|
|
217
172
|
{{
|
|
218
173
|
definition['$required'] === true ? "✔️" :
|
|
@@ -224,34 +179,18 @@
|
|
|
224
179
|
</li>
|
|
225
180
|
<li v-if="definition.format">
|
|
226
181
|
<strong>Format: </strong>
|
|
227
|
-
<code>
|
|
182
|
+
<code>{{ definition.format }}</code>
|
|
228
183
|
</li>
|
|
229
184
|
<li v-if="definition.minItems">
|
|
230
185
|
<strong>Min items: </strong>
|
|
231
|
-
<code>
|
|
232
|
-
</li>
|
|
233
|
-
<li v-if="definition.minLength">
|
|
234
|
-
<strong>Min length: </strong>
|
|
235
|
-
<code>{{ definition.minLength }}</code>
|
|
236
|
-
</li>
|
|
237
|
-
<li v-if="definition.enum">
|
|
238
|
-
<strong>Possible Values:</strong>
|
|
239
|
-
<ul>
|
|
240
|
-
<li v-for="(possibleValue, index) in definition.enum" :key="index">
|
|
241
|
-
<code>{{ possibleValue }}</code>
|
|
242
|
-
</li>
|
|
243
|
-
</ul>
|
|
186
|
+
<code>{{ definition.minItems }}</code>
|
|
244
187
|
</li>
|
|
245
188
|
</ul>
|
|
246
|
-
<
|
|
247
|
-
<
|
|
248
|
-
|
|
249
|
-
</slot>
|
|
250
|
-
</div>
|
|
189
|
+
<p>
|
|
190
|
+
<strong v-html="replaceText(definition.title)" />
|
|
191
|
+
</p>
|
|
251
192
|
<blockquote class="blockquote">
|
|
252
|
-
<
|
|
253
|
-
<template v-html="replaceText(definition.description)" />
|
|
254
|
-
</slot>
|
|
193
|
+
<p v-html="replaceText(definition.description)" />
|
|
255
194
|
</blockquote>
|
|
256
195
|
</template>
|
|
257
196
|
</template>
|
|
@@ -299,7 +238,7 @@
|
|
|
299
238
|
const generateTaskHref = (href) => {
|
|
300
239
|
if (href) {
|
|
301
240
|
const taskHref = href?.split("/");
|
|
302
|
-
return `#${taskHref[taskHref?.length - 1]}`;
|
|
241
|
+
return `#${taskHref[taskHref?.length - 1].toLowerCase()}`;
|
|
303
242
|
}
|
|
304
243
|
};
|
|
305
244
|
computed(() => {
|
|
@@ -345,7 +284,7 @@
|
|
|
345
284
|
}
|
|
346
285
|
}
|
|
347
286
|
|
|
348
|
-
const sortedKeys = [...requiredKeys
|
|
287
|
+
const sortedKeys = [...requiredKeys, ...nonRequiredKeys];
|
|
349
288
|
|
|
350
289
|
const sortedSchema = {};
|
|
351
290
|
sortedKeys.forEach(key => {
|
|
@@ -379,14 +318,16 @@
|
|
|
379
318
|
</script>
|
|
380
319
|
|
|
381
320
|
<style lang="scss" scoped>
|
|
382
|
-
.bd-markdown {
|
|
321
|
+
:deep(.bd-markdown) {
|
|
383
322
|
p {
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
323
|
+
strong {
|
|
324
|
+
code{
|
|
325
|
+
background: #161617;
|
|
326
|
+
border: 1px solid #252526;
|
|
327
|
+
border-radius: var(--bs-border-radius);
|
|
328
|
+
color: #b9b9ba;
|
|
329
|
+
padding: 0 .25rem;
|
|
330
|
+
}
|
|
390
331
|
}
|
|
391
332
|
}
|
|
392
333
|
}
|
package/src/utils/YamlUtils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import JsYaml from "js-yaml";
|
|
2
2
|
import yaml, {Document, YAMLMap, isSeq, isMap, Pair, Scalar, YAMLSeq, LineCounter} from "yaml";
|
|
3
|
-
import cloneDeep from "lodash
|
|
3
|
+
import {cloneDeep} from "lodash"
|
|
4
4
|
import {SECTIONS} from "./constants.js";
|
|
5
5
|
|
|
6
6
|
const TOSTRING_OPTIONS = {lineWidth: 0};
|
package/src/utils/state.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import mapValues from "lodash
|
|
1
|
+
import {mapValues} from "lodash";
|
|
2
2
|
import PauseCircle from "vue-material-design-icons/PauseCircle.vue";
|
|
3
3
|
import CheckCircle from "vue-material-design-icons/CheckCircle.vue";
|
|
4
4
|
import PlayCircle from "vue-material-design-icons/PlayCircle.vue";
|
package/dist/_theme-dark.scss
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// gray
|
|
2
|
-
$gray-900: #CAC5DA;
|
|
3
|
-
$gray-800: #A69FC1;
|
|
4
|
-
$gray-700: #918BA9;
|
|
5
|
-
$gray-600: #404559;
|
|
6
|
-
$gray-500: #2F3342;
|
|
7
|
-
$gray-400: #2C303F;
|
|
8
|
-
$gray-300: #202435;
|
|
9
|
-
$gray-200: #21242E;
|
|
10
|
-
$gray-100: #1C1E27;
|
|
11
|
-
|
|
12
|
-
$light: $gray-200;
|
|
13
|
-
$dark: $gray-100;
|
|
14
|
-
|
|
15
|
-
// body
|
|
16
|
-
$body-color: $gray-900;
|
|
17
|
-
$border-color: $gray-600;
|
|
18
|
-
$body-bg: $gray-200;
|
|
19
|
-
$card-bg: $gray-500;
|
|
20
|
-
$input-bg: $gray-100;
|
package/dist/_variables.scss
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
// primary color
|
|
2
|
-
$primary: #8405FF !default;
|
|
3
|
-
$secondary: #C182FF !default;
|
|
4
|
-
$tertiary: #2F3342 !default;
|
|
5
|
-
|
|
6
|
-
// color system
|
|
7
|
-
$blue: #1761FD !default;
|
|
8
|
-
$indigo: #8405FF !default;
|
|
9
|
-
$purple: #9F9DFF !default;
|
|
10
|
-
$purple-36: #9CA1DE;
|
|
11
|
-
$pink: #FD3C97 !default;
|
|
12
|
-
$red: #E36065 !default;
|
|
13
|
-
$red-light: #FF9D9D !default;
|
|
14
|
-
$orange: #FCB37C !default;
|
|
15
|
-
$yellow: #FCE07C !default;
|
|
16
|
-
$green: #03DABA !default;
|
|
17
|
-
$teal: #03D87F !default;
|
|
18
|
-
$cyan: #60C5FE !default;
|
|
19
|
-
|
|
20
|
-
// gray
|
|
21
|
-
$white: #FFF !default;
|
|
22
|
-
$gray-100: #F5F5FF !default;
|
|
23
|
-
$gray-200: #f1f5fa !default;
|
|
24
|
-
$gray-300: #E5E4F7 !default;
|
|
25
|
-
$gray-400: #b6c2e4 !default;
|
|
26
|
-
$gray-500: #8997bd !default;
|
|
27
|
-
$gray-600: #7081b9 !default;
|
|
28
|
-
$gray-700: #303e67 !default;
|
|
29
|
-
$gray-800: #2c3652 !default;
|
|
30
|
-
$gray-900: #1d2c48 !default;
|
|
31
|
-
$black: #26282D !default;
|
|
32
|
-
|
|
33
|
-
$light: $gray-200 !default;
|
|
34
|
-
$dark: $gray-900 !default;
|
|
35
|
-
|
|
36
|
-
$white-3: #B9B9BA;
|
|
37
|
-
|
|
38
|
-
$black-2 : #161617;
|
|
39
|
-
$black-3 : #252526;
|
|
40
|
-
|
|
41
|
-
// fonts
|
|
42
|
-
$font-size-base: 1rem !default;
|
|
43
|
-
$font-family-sans-serif: "Public Sans", sans-serif;
|
|
44
|
-
$font-family-monospace: "Source Code Pro", monospace;
|
|
45
|
-
$font-size-xs: $font-size-base * 0.75 !default;
|
|
46
|
-
$font-size-md : $font-size-base * 1;
|
|
47
|
-
$font-size-xl: $font-size-base * 1.375;
|
|
48
|
-
|
|
49
|
-
// border
|
|
50
|
-
$block-border: 1px solid $black-3;
|
|
51
|
-
|
|
52
|
-
// border radius
|
|
53
|
-
$border-radius: 0.25rem !default;
|
|
54
|
-
$border-radius-lg: 0.5rem !default;
|
|
55
|
-
$border-radius-sm: 0.15rem !default;
|
|
56
|
-
|
|
57
|
-
// layout
|
|
58
|
-
$menu-width: 268px !default;
|
|
59
|
-
$spacer: 1rem !default;
|
|
60
|
-
|
|
61
|
-
// body
|
|
62
|
-
$body-color: $gray-800 !default;
|
|
63
|
-
$body-tertiary-color: #FFFFFF;
|
|
64
|
-
$body-tertiary-bg: #785EEA;
|
|
65
|
-
$border-color: $gray-300 !default;
|
|
66
|
-
$body-bg: $gray-100 !default;
|
|
67
|
-
$card-bg: $white !default;
|
|
68
|
-
$input-bg: $white !default;
|
|
69
|
-
|
|
70
|
-
// link
|
|
71
|
-
$link-color: $primary !default;
|
|
72
|
-
$link-decoration: none;
|
|
73
|
-
|
|
74
|
-
// border radius
|
|
75
|
-
$border-radius: .25rem !default;
|
|
76
|
-
$border-radius-sm: .15rem !default;
|
|
77
|
-
|
|
78
|
-
// shadow
|
|
79
|
-
$box-shadow-sm: 0 .125rem .25rem rgba($black, .075);
|
|
80
|
-
$box-shadow: 0 .5rem 1rem rgba($black, .15);
|
|
81
|
-
$box-shadow-lg: 0 1rem 3rem rgba($black, .175);
|
|
82
|
-
|
|
83
|
-
// boostrap flags
|
|
84
|
-
$enable-reduced-motion: false;
|
|
85
|
-
|
|
86
|
-
// element-plus
|
|
87
|
-
$types: primary, success, warning, danger, error, info !default;
|
|
88
|
-
$element-colors: (
|
|
89
|
-
'white': $white,
|
|
90
|
-
'black': $black,
|
|
91
|
-
'primary': (
|
|
92
|
-
'base': $primary,
|
|
93
|
-
),
|
|
94
|
-
'success': (
|
|
95
|
-
'base': $green,
|
|
96
|
-
),
|
|
97
|
-
'warning': (
|
|
98
|
-
'base': $orange,
|
|
99
|
-
),
|
|
100
|
-
'danger': (
|
|
101
|
-
'base': $red,
|
|
102
|
-
),
|
|
103
|
-
'error': (
|
|
104
|
-
'base': $red,
|
|
105
|
-
),
|
|
106
|
-
'info': (
|
|
107
|
-
'base': $cyan,
|
|
108
|
-
),
|
|
109
|
-
);
|
|
110
|
-
|
|
111
|
-
$popper-margin: .2rem;
|
|
112
|
-
|
|
113
|
-
$baseline-max-width: 730px;
|
|
114
|
-
|
|
115
|
-
// bootstrap
|
|
116
|
-
@import "bootstrap/scss/functions";
|
|
117
|
-
@import "bootstrap/scss/mixins";
|
|
118
|
-
@import "bootstrap/scss/vendor/rfs";
|
|
119
|
-
@import 'bootstrap/scss/variables';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const e = Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#f9826c","activityBar.background":"#24292e","activityBar.border":"#1b1f23","activityBar.foreground":"#e1e4e8","activityBar.inactiveForeground":"#6a737d","activityBarBadge.background":"#0366d6","activityBarBadge.foreground":"#fff","badge.background":"#044289","badge.foreground":"#c8e1ff","breadcrumb.activeSelectionForeground":"#d1d5da","breadcrumb.focusForeground":"#e1e4e8","breadcrumb.foreground":"#959da5","breadcrumbPicker.background":"#2b3036","button.background":"#176f2c","button.foreground":"#dcffe4","button.hoverBackground":"#22863a","button.secondaryBackground":"#444d56","button.secondaryForeground":"#fff","button.secondaryHoverBackground":"#586069","checkbox.background":"#444d56","checkbox.border":"#1b1f23","debugToolBar.background":"#2b3036","descriptionForeground":"#959da5","diffEditor.insertedTextBackground":"#28a74530","diffEditor.removedTextBackground":"#d73a4930","dropdown.background":"#2f363d","dropdown.border":"#1b1f23","dropdown.foreground":"#e1e4e8","dropdown.listBackground":"#24292e","editor.background":"#24292e","editor.findMatchBackground":"#ffd33d44","editor.findMatchHighlightBackground":"#ffd33d22","editor.focusedStackFrameHighlightBackground":"#2b6a3033","editor.foldBackground":"#58606915","editor.foreground":"#e1e4e8","editor.inactiveSelectionBackground":"#3392FF22","editor.lineHighlightBackground":"#2b3036","editor.linkedEditingBackground":"#3392FF22","editor.selectionBackground":"#3392FF44","editor.selectionHighlightBackground":"#17E5E633","editor.selectionHighlightBorder":"#17E5E600","editor.stackFrameHighlightBackground":"#C6902625","editor.wordHighlightBackground":"#17E5E600","editor.wordHighlightBorder":"#17E5E699","editor.wordHighlightStrongBackground":"#17E5E600","editor.wordHighlightStrongBorder":"#17E5E666","editorBracketHighlight.foreground1":"#79b8ff","editorBracketHighlight.foreground2":"#ffab70","editorBracketHighlight.foreground3":"#b392f0","editorBracketHighlight.foreground4":"#79b8ff","editorBracketHighlight.foreground5":"#ffab70","editorBracketHighlight.foreground6":"#b392f0","editorBracketMatch.background":"#17E5E650","editorBracketMatch.border":"#17E5E600","editorCursor.foreground":"#c8e1ff","editorError.foreground":"#f97583","editorGroup.border":"#1b1f23","editorGroupHeader.tabsBackground":"#1f2428","editorGroupHeader.tabsBorder":"#1b1f23","editorGutter.addedBackground":"#28a745","editorGutter.deletedBackground":"#ea4a5a","editorGutter.modifiedBackground":"#2188ff","editorIndentGuide.activeBackground":"#444d56","editorIndentGuide.background":"#2f363d","editorLineNumber.activeForeground":"#e1e4e8","editorLineNumber.foreground":"#444d56","editorOverviewRuler.border":"#1b1f23","editorWarning.foreground":"#ffea7f","editorWhitespace.foreground":"#444d56","editorWidget.background":"#1f2428","errorForeground":"#f97583","focusBorder":"#005cc5","foreground":"#d1d5da","gitDecoration.addedResourceForeground":"#34d058","gitDecoration.conflictingResourceForeground":"#ffab70","gitDecoration.deletedResourceForeground":"#ea4a5a","gitDecoration.ignoredResourceForeground":"#6a737d","gitDecoration.modifiedResourceForeground":"#79b8ff","gitDecoration.submoduleResourceForeground":"#6a737d","gitDecoration.untrackedResourceForeground":"#34d058","input.background":"#2f363d","input.border":"#1b1f23","input.foreground":"#e1e4e8","input.placeholderForeground":"#959da5","list.activeSelectionBackground":"#39414a","list.activeSelectionForeground":"#e1e4e8","list.focusBackground":"#044289","list.hoverBackground":"#282e34","list.hoverForeground":"#e1e4e8","list.inactiveFocusBackground":"#1d2d3e","list.inactiveSelectionBackground":"#282e34","list.inactiveSelectionForeground":"#e1e4e8","notificationCenterHeader.background":"#24292e","notificationCenterHeader.foreground":"#959da5","notifications.background":"#2f363d","notifications.border":"#1b1f23","notifications.foreground":"#e1e4e8","notificationsErrorIcon.foreground":"#ea4a5a","notificationsInfoIcon.foreground":"#79b8ff","notificationsWarningIcon.foreground":"#ffab70","panel.background":"#1f2428","panel.border":"#1b1f23","panelInput.border":"#2f363d","panelTitle.activeBorder":"#f9826c","panelTitle.activeForeground":"#e1e4e8","panelTitle.inactiveForeground":"#959da5","peekViewEditor.background":"#1f242888","peekViewEditor.matchHighlightBackground":"#ffd33d33","peekViewResult.background":"#1f2428","peekViewResult.matchHighlightBackground":"#ffd33d33","pickerGroup.border":"#444d56","pickerGroup.foreground":"#e1e4e8","progressBar.background":"#0366d6","quickInput.background":"#24292e","quickInput.foreground":"#e1e4e8","scrollbar.shadow":"#0008","scrollbarSlider.activeBackground":"#6a737d88","scrollbarSlider.background":"#6a737d33","scrollbarSlider.hoverBackground":"#6a737d44","settings.headerForeground":"#e1e4e8","settings.modifiedItemIndicator":"#0366d6","sideBar.background":"#1f2428","sideBar.border":"#1b1f23","sideBar.foreground":"#d1d5da","sideBarSectionHeader.background":"#1f2428","sideBarSectionHeader.border":"#1b1f23","sideBarSectionHeader.foreground":"#e1e4e8","sideBarTitle.foreground":"#e1e4e8","statusBar.background":"#24292e","statusBar.border":"#1b1f23","statusBar.debuggingBackground":"#931c06","statusBar.debuggingForeground":"#fff","statusBar.foreground":"#d1d5da","statusBar.noFolderBackground":"#24292e","statusBarItem.prominentBackground":"#282e34","statusBarItem.remoteBackground":"#24292e","statusBarItem.remoteForeground":"#d1d5da","tab.activeBackground":"#24292e","tab.activeBorder":"#24292e","tab.activeBorderTop":"#f9826c","tab.activeForeground":"#e1e4e8","tab.border":"#1b1f23","tab.hoverBackground":"#24292e","tab.inactiveBackground":"#1f2428","tab.inactiveForeground":"#959da5","tab.unfocusedActiveBorder":"#24292e","tab.unfocusedActiveBorderTop":"#1b1f23","tab.unfocusedHoverBackground":"#24292e","terminal.ansiBlack":"#586069","terminal.ansiBlue":"#2188ff","terminal.ansiBrightBlack":"#959da5","terminal.ansiBrightBlue":"#79b8ff","terminal.ansiBrightCyan":"#56d4dd","terminal.ansiBrightGreen":"#85e89d","terminal.ansiBrightMagenta":"#b392f0","terminal.ansiBrightRed":"#f97583","terminal.ansiBrightWhite":"#fafbfc","terminal.ansiBrightYellow":"#ffea7f","terminal.ansiCyan":"#39c5cf","terminal.ansiGreen":"#34d058","terminal.ansiMagenta":"#b392f0","terminal.ansiRed":"#ea4a5a","terminal.ansiWhite":"#d1d5da","terminal.ansiYellow":"#ffea7f","terminal.foreground":"#d1d5da","terminal.tab.activeBorder":"#f9826c","terminalCursor.background":"#586069","terminalCursor.foreground":"#79b8ff","textBlockQuote.background":"#24292e","textBlockQuote.border":"#444d56","textCodeBlock.background":"#2f363d","textLink.activeForeground":"#c8e1ff","textLink.foreground":"#79b8ff","textPreformat.foreground":"#d1d5da","textSeparator.foreground":"#586069","titleBar.activeBackground":"#24292e","titleBar.activeForeground":"#e1e4e8","titleBar.border":"#1b1f23","titleBar.inactiveBackground":"#1f2428","titleBar.inactiveForeground":"#959da5","tree.indentGuidesStroke":"#2f363d","welcomePage.buttonBackground":"#2f363d","welcomePage.buttonHoverBackground":"#444d56"},"displayName":"GitHub Dark","name":"github-dark","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6a737d"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language"],"settings":{"foreground":"#79b8ff"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#b392f0"}},{"scope":"variable.parameter.function","settings":{"foreground":"#e1e4e8"}},{"scope":"entity.name.tag","settings":{"foreground":"#85e89d"}},{"scope":"keyword","settings":{"foreground":"#f97583"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#f97583"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#e1e4e8"}},{"scope":["string","punctuation.definition.string","string punctuation.section.embedded source"],"settings":{"foreground":"#9ecbff"}},{"scope":"support","settings":{"foreground":"#79b8ff"}},{"scope":"meta.property-name","settings":{"foreground":"#79b8ff"}},{"scope":"variable","settings":{"foreground":"#ffab70"}},{"scope":"variable.other","settings":{"foreground":"#e1e4e8"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"carriage-return","settings":{"background":"#f97583","content":"^M","fontStyle":"italic underline","foreground":"#24292e"}},{"scope":"message.error","settings":{"foreground":"#fdaeb7"}},{"scope":"string variable","settings":{"foreground":"#79b8ff"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#dbedff"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#dbedff"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#85e89d"}},{"scope":"support.constant","settings":{"foreground":"#79b8ff"}},{"scope":"support.variable","settings":{"foreground":"#79b8ff"}},{"scope":"meta.module-reference","settings":{"foreground":"#79b8ff"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#ffab70"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"markup.quote","settings":{"foreground":"#85e89d"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#e1e4e8"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#e1e4e8"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#79b8ff"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#86181d","foreground":"#fdaeb7"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#144620","foreground":"#85e89d"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#c24e00","foreground":"#ffab70"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#79b8ff","foreground":"#2f363d"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#b392f0"}},{"scope":"meta.diff.header","settings":{"foreground":"#79b8ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"meta.output","settings":{"foreground":"#79b8ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#d1d5da"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#fdaeb7"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"fontStyle":"underline","foreground":"#dbedff"}}],"type":"dark"}'));
|
|
2
|
-
export {
|
|
3
|
-
e as default
|
|
4
|
-
};
|