windmill-components 1.352.5 → 1.352.7
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/assets/app.css +52 -58
- package/package/components/DisplayResult.svelte +2 -0
- package/package/components/EditableSchemaForm.svelte +42 -40
- package/package/components/EditableSchemaForm.svelte.d.ts +1 -0
- package/package/components/EditorBar.svelte +2 -2
- package/package/components/FlowGraphViewerStep.svelte +3 -0
- package/package/components/FlowViewer.svelte +3 -0
- package/package/components/HighlightCode.svelte +3 -0
- package/package/components/HighlightTheme.svelte +318 -0
- package/package/components/HighlightTheme.svelte.d.ts +14 -0
- package/package/components/JobArgs.svelte +3 -0
- package/package/components/ResourceEditor.svelte +138 -141
- package/package/components/ResourceEditor.svelte.d.ts +9 -2
- package/package/components/ResourceEditorDrawer.svelte +45 -0
- package/package/components/ResourceEditorDrawer.svelte.d.ts +21 -0
- package/package/components/ResourcePicker.svelte +2 -2
- package/package/components/RunChart.svelte +6 -2
- package/package/components/SchemaViewer.svelte +3 -0
- package/package/components/SupabaseConnect.svelte +3 -0
- package/package/components/apps/editor/AppExportButton.svelte +3 -0
- package/package/components/apps/editor/componentsPanel/ThemeDrawer.svelte +3 -0
- package/package/components/apps/editor/settingsPanel/CSSMigrationModal.svelte +3 -0
- package/package/components/apps/editor/settingsPanel/ComponentControl.svelte +3 -0
- package/package/components/details/DetailPageDetailPanel.svelte +3 -0
- package/package/components/details/WebhooksPanel.svelte +3 -0
- package/package.json +17 -1
- package/package/components/ChartHighlightTheme.svelte +0 -65
- package/package/components/ChartHighlightTheme.svelte.d.ts +0 -14
package/package/assets/app.css
CHANGED
|
@@ -28,33 +28,6 @@
|
|
|
28
28
|
list-style-type: '- ';
|
|
29
29
|
padding-left: 3rem;
|
|
30
30
|
}
|
|
31
|
-
.splitpanes--vertical > .splitpanes__pane {
|
|
32
|
-
transition: none !important;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.splitpanes--horizontal > .splitpanes__pane {
|
|
36
|
-
transition: none !important;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.monaco-workbench > .notifications-toasts.visible {
|
|
40
|
-
display: none !important;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.monaco-editor .suggest-widget {
|
|
44
|
-
z-index: 10001 !important;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.nowrap pre code.hljs {
|
|
48
|
-
whitespace: normal !important;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.z5000 {
|
|
52
|
-
z-index: 5000 !important;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.foo {
|
|
56
|
-
color: red !important;
|
|
57
|
-
}
|
|
58
31
|
.autocomplete-list-item-create {
|
|
59
32
|
@apply !text-primary-inverse !bg-surface-inverse;
|
|
60
33
|
}
|
|
@@ -74,25 +47,23 @@
|
|
|
74
47
|
.autocomplete-list {
|
|
75
48
|
@apply !bg-surface;
|
|
76
49
|
}
|
|
77
|
-
pre code.hljs {
|
|
78
|
-
overflow: visible !important;
|
|
79
|
-
}
|
|
80
50
|
|
|
81
|
-
|
|
82
|
-
|
|
51
|
+
.ol-overlaycontainer-stopevent {
|
|
52
|
+
@apply flex flex-col justify-start items-end;
|
|
83
53
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
border-bottom-width: 0px !important;
|
|
54
|
+
.ol-control button {
|
|
55
|
+
@apply w-7 h-7 center-center bg-surface border text-secondary
|
|
56
|
+
rounded mt-1 mr-1 shadow duration-200 hover:bg-surface-hover focus:bg-surface-hover;
|
|
88
57
|
}
|
|
89
58
|
|
|
90
|
-
|
|
91
|
-
|
|
59
|
+
/* Components */
|
|
60
|
+
.component-wrapper {
|
|
61
|
+
@apply rounded-component border overflow-hidden border-gray-300 dark:border-gray-600;
|
|
92
62
|
}
|
|
93
63
|
|
|
94
|
-
.
|
|
95
|
-
|
|
64
|
+
.app-editor-input {
|
|
65
|
+
@apply rounded-component border border-gray-300 dark:border-gray-500 focus:border-gray-300 focus:dark:border-gray-500 focus:!ring-1 focus:!ring-blue-300;
|
|
66
|
+
@apply placeholder:text-gray-400 dark:placeholder:text-gray-600;
|
|
96
67
|
}
|
|
97
68
|
}
|
|
98
69
|
|
|
@@ -117,6 +88,47 @@
|
|
|
117
88
|
}
|
|
118
89
|
}
|
|
119
90
|
|
|
91
|
+
.splitpanes--vertical > .splitpanes__pane {
|
|
92
|
+
transition: none !important;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.splitpanes--horizontal > .splitpanes__pane {
|
|
96
|
+
transition: none !important;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.monaco-workbench > .notifications-toasts.visible {
|
|
100
|
+
display: none !important;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.monaco-editor .suggest-widget {
|
|
104
|
+
z-index: 10001 !important;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.z5000 {
|
|
108
|
+
z-index: 5000 !important;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.foo {
|
|
112
|
+
color: red !important;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
svelte-virtual-list-row {
|
|
116
|
+
overflow: visible !important;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
svelte-virtual-list-contents > * + * {
|
|
120
|
+
border-top-width: 1px !important;
|
|
121
|
+
border-bottom-width: 0px !important;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.monaco-editor textarea:focus {
|
|
125
|
+
box-shadow: none !important;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.Template-editor span.mtk20 {
|
|
129
|
+
color: black !important;
|
|
130
|
+
}
|
|
131
|
+
|
|
120
132
|
.grid-cell-centered {
|
|
121
133
|
display: flex;
|
|
122
134
|
align-items: center;
|
|
@@ -129,21 +141,3 @@
|
|
|
129
141
|
.grid-cell-centered .selected-item {
|
|
130
142
|
margin-top: -4px;
|
|
131
143
|
}
|
|
132
|
-
|
|
133
|
-
.ol-overlaycontainer-stopevent {
|
|
134
|
-
@apply flex flex-col justify-start items-end;
|
|
135
|
-
}
|
|
136
|
-
.ol-control button {
|
|
137
|
-
@apply w-7 h-7 center-center bg-surface border text-secondary
|
|
138
|
-
rounded mt-1 mr-1 shadow duration-200 hover:bg-surface-hover focus:bg-surface-hover;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/* Components */
|
|
142
|
-
.component-wrapper {
|
|
143
|
-
@apply rounded-component border overflow-hidden border-gray-300 dark:border-gray-600;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.app-editor-input {
|
|
147
|
-
@apply rounded-component border border-gray-300 dark:border-gray-500 focus:border-gray-300 focus:dark:border-gray-500 focus:!ring-1 focus:!ring-blue-300;
|
|
148
|
-
@apply placeholder:text-gray-400 dark:placeholder:text-gray-600;
|
|
149
|
-
}
|
|
@@ -19,6 +19,7 @@ import Popover from './Popover.svelte';
|
|
|
19
19
|
import DownloadCsv from './table/DownloadCsv.svelte';
|
|
20
20
|
import { convertJsonToCsv } from './table/tableUtils';
|
|
21
21
|
import Tooltip from './Tooltip.svelte';
|
|
22
|
+
import HighlightTheme from './HighlightTheme.svelte';
|
|
22
23
|
export let result;
|
|
23
24
|
export let requireHtmlApproval = false;
|
|
24
25
|
export let filename = undefined;
|
|
@@ -260,6 +261,7 @@ let globalForceJson = false;
|
|
|
260
261
|
let seeS3PreviewFileFromList = '';
|
|
261
262
|
</script>
|
|
262
263
|
|
|
264
|
+
<HighlightTheme />
|
|
263
265
|
{#if is_render_all}
|
|
264
266
|
<div class="flex flex-col w-full gap-6">
|
|
265
267
|
{#if !noControls}
|
|
@@ -231,48 +231,50 @@ let editor = undefined;
|
|
|
231
231
|
<div class="flex flex-row gap-2">
|
|
232
232
|
{argName}
|
|
233
233
|
{#if !uiOnly}
|
|
234
|
-
<
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
<
|
|
241
|
-
color="light"
|
|
242
|
-
size="xs2"
|
|
243
|
-
nonCaptureEvent
|
|
244
|
-
startIcon={{ icon: Pen }}
|
|
245
|
-
iconOnly
|
|
246
|
-
/>
|
|
247
|
-
</svelte:fragment>
|
|
248
|
-
<Label label="Name">
|
|
249
|
-
<div class="flex flex-col gap-2">
|
|
250
|
-
<input
|
|
251
|
-
type="text"
|
|
252
|
-
class="w-full !bg-surface"
|
|
253
|
-
value={argName}
|
|
254
|
-
id={argName + i}
|
|
255
|
-
on:keydown={(event) => {
|
|
256
|
-
if (event.key === 'Enter') {
|
|
257
|
-
renameProperty(argName, argName + i)
|
|
258
|
-
close(null)
|
|
259
|
-
}
|
|
260
|
-
}}
|
|
261
|
-
/>
|
|
234
|
+
<div on:click|stopPropagation|preventDefault>
|
|
235
|
+
<Popup
|
|
236
|
+
floatingConfig={{ strategy: 'absolute', placement: 'bottom-end' }}
|
|
237
|
+
containerClasses="border rounded-lg shadow-lg p-4 bg-surface"
|
|
238
|
+
let:close
|
|
239
|
+
>
|
|
240
|
+
<svelte:fragment slot="button">
|
|
262
241
|
<Button
|
|
263
|
-
variant="border"
|
|
264
242
|
color="light"
|
|
265
|
-
size="
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
243
|
+
size="xs2"
|
|
244
|
+
nonCaptureEvent
|
|
245
|
+
startIcon={{ icon: Pen }}
|
|
246
|
+
iconOnly
|
|
247
|
+
/>
|
|
248
|
+
</svelte:fragment>
|
|
249
|
+
<Label label="Name">
|
|
250
|
+
<div class="flex flex-col gap-2">
|
|
251
|
+
<input
|
|
252
|
+
type="text"
|
|
253
|
+
class="w-full !bg-surface"
|
|
254
|
+
value={argName}
|
|
255
|
+
id={argName + i}
|
|
256
|
+
on:keydown={(event) => {
|
|
257
|
+
if (event.key === 'Enter') {
|
|
258
|
+
renameProperty(argName, argName + i)
|
|
259
|
+
close(null)
|
|
260
|
+
}
|
|
261
|
+
}}
|
|
262
|
+
/>
|
|
263
|
+
<Button
|
|
264
|
+
variant="border"
|
|
265
|
+
color="light"
|
|
266
|
+
size="xs"
|
|
267
|
+
on:click={() => {
|
|
268
|
+
renameProperty(argName, argName + i)
|
|
269
|
+
close(null)
|
|
270
|
+
}}
|
|
271
|
+
>
|
|
272
|
+
Rename
|
|
273
|
+
</Button>
|
|
274
|
+
</div>
|
|
275
|
+
</Label>
|
|
276
|
+
</Popup>
|
|
277
|
+
</div>
|
|
276
278
|
{/if}
|
|
277
279
|
</div>
|
|
278
280
|
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
<script>import { ResourceService, VariableService } from '../gen';
|
|
5
5
|
import { workspaceStore } from '../stores';
|
|
6
6
|
import ItemPicker from './ItemPicker.svelte';
|
|
7
|
-
import ResourceEditor from './ResourceEditor.svelte';
|
|
8
7
|
import VariableEditor from './VariableEditor.svelte';
|
|
9
8
|
import Button from './common/button/Button.svelte';
|
|
10
9
|
import HighlightCode from './HighlightCode.svelte';
|
|
@@ -27,6 +26,7 @@ import ScriptGen from './copilot/ScriptGen.svelte';
|
|
|
27
26
|
import { getResetCode } from '../script_helpers';
|
|
28
27
|
import CodeCompletionStatus from './copilot/CodeCompletionStatus.svelte';
|
|
29
28
|
import Popover from './Popover.svelte';
|
|
29
|
+
import ResourceEditorDrawer from './ResourceEditorDrawer.svelte';
|
|
30
30
|
export let lang;
|
|
31
31
|
export let editor;
|
|
32
32
|
export let websocketAlive;
|
|
@@ -470,7 +470,7 @@ $res = json_decode(curl_exec($ch));`)
|
|
|
470
470
|
await ResourceService.listResourceType({ workspace: $workspaceStore ?? 'NO_W' })}
|
|
471
471
|
/>
|
|
472
472
|
{/if}
|
|
473
|
-
<
|
|
473
|
+
<ResourceEditorDrawer bind:this={resourceEditor} on:refresh={resourcePicker.openDrawer} />
|
|
474
474
|
<VariableEditor bind:this={variableEditor} on:create={variablePicker.openDrawer} />
|
|
475
475
|
|
|
476
476
|
<div class="flex justify-between items-center overflow-y-auto w-full p-0.5">
|
|
@@ -13,11 +13,14 @@ import { hubBaseUrlStore } from '../stores';
|
|
|
13
13
|
import { twMerge } from 'tailwind-merge';
|
|
14
14
|
import FlowModuleScript from './flows/content/FlowModuleScript.svelte';
|
|
15
15
|
import { Copy } from 'lucide-svelte';
|
|
16
|
+
import HighlightTheme from './HighlightTheme.svelte';
|
|
16
17
|
export let schema = undefined;
|
|
17
18
|
export let stepDetail = undefined;
|
|
18
19
|
let codeViewer;
|
|
19
20
|
</script>
|
|
20
21
|
|
|
22
|
+
<HighlightTheme />
|
|
23
|
+
|
|
21
24
|
<Drawer bind:this={codeViewer} size="900px">
|
|
22
25
|
<DrawerContent title={'Expanded Code'} on:close={codeViewer.closeDrawer}>
|
|
23
26
|
{#if stepDetail && typeof stepDetail != 'string'}
|
|
@@ -8,6 +8,7 @@ import FlowGraphViewer from './FlowGraphViewer.svelte';
|
|
|
8
8
|
import { Clipboard } from 'lucide-svelte';
|
|
9
9
|
import YAML from 'yaml';
|
|
10
10
|
import { yaml } from 'svelte-highlight/languages';
|
|
11
|
+
import HighlightTheme from './HighlightTheme.svelte';
|
|
11
12
|
export let flow;
|
|
12
13
|
export let initialOpen = undefined;
|
|
13
14
|
export let noSide = false;
|
|
@@ -30,6 +31,8 @@ function toAny(x) {
|
|
|
30
31
|
}
|
|
31
32
|
</script>
|
|
32
33
|
|
|
34
|
+
<HighlightTheme />
|
|
35
|
+
|
|
33
36
|
<Tabs bind:selected={tab}>
|
|
34
37
|
{#if !noGraph}
|
|
35
38
|
<Tab value="ui">Graph</Tab>
|
|
@@ -11,6 +11,7 @@ import php from 'svelte-highlight/languages/php';
|
|
|
11
11
|
import { Button } from './common';
|
|
12
12
|
import { copyToClipboard } from '../utils';
|
|
13
13
|
import { ClipboardCopy } from 'lucide-svelte';
|
|
14
|
+
import HighlightTheme from './HighlightTheme.svelte';
|
|
14
15
|
export let code = '';
|
|
15
16
|
export let language;
|
|
16
17
|
export let lines = false;
|
|
@@ -51,6 +52,8 @@ function getLang(lang) {
|
|
|
51
52
|
$: lang = getLang(language);
|
|
52
53
|
</script>
|
|
53
54
|
|
|
55
|
+
<HighlightTheme />
|
|
56
|
+
|
|
54
57
|
<div class="relative overflow-x-auto">
|
|
55
58
|
<Button
|
|
56
59
|
wrapperClasses="absolute top-2 right-2 z-20"
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
<script>"use strict";
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<style global>
|
|
5
|
+
:global(pre) :global(code.hljs) {
|
|
6
|
+
display: block;
|
|
7
|
+
overflow-x: auto;
|
|
8
|
+
padding: 1em;
|
|
9
|
+
overflow: visible !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:global(code.hljs) {
|
|
13
|
+
padding: 3px 5px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:global(.dark) :global(.hljs) {
|
|
17
|
+
background: #2e3440;
|
|
18
|
+
}
|
|
19
|
+
:global(.dark) :global(.hljs),
|
|
20
|
+
:global(.dark) :global(.hljs-subst) {
|
|
21
|
+
color: #d8dee9;
|
|
22
|
+
}
|
|
23
|
+
:global(.dark) :global(.hljs-selector-tag) {
|
|
24
|
+
color: #81a1c1;
|
|
25
|
+
}
|
|
26
|
+
:global(.dark) :global(.hljs-selector-id) {
|
|
27
|
+
color: #8fbcbb;
|
|
28
|
+
font-weight: bold;
|
|
29
|
+
}
|
|
30
|
+
:global(.dark) :global(.hljs-selector-class) {
|
|
31
|
+
color: #8fbcbb;
|
|
32
|
+
}
|
|
33
|
+
:global(.dark) :global(.hljs-selector-attr) {
|
|
34
|
+
color: #8fbcbb;
|
|
35
|
+
}
|
|
36
|
+
:global(.dark) :global(.hljs-property) {
|
|
37
|
+
color: #88c0d0;
|
|
38
|
+
}
|
|
39
|
+
:global(.dark) :global(.hljs-selector-pseudo) {
|
|
40
|
+
color: #88c0d0;
|
|
41
|
+
}
|
|
42
|
+
:global(.dark) :global(.hljs-addition) {
|
|
43
|
+
background-color: rgba(163, 190, 140, 0.5);
|
|
44
|
+
}
|
|
45
|
+
:global(.dark) :global(.hljs-deletion) {
|
|
46
|
+
background-color: rgba(191, 97, 106, 0.5);
|
|
47
|
+
}
|
|
48
|
+
:global(.dark) :global(.hljs-built_in),
|
|
49
|
+
:global(.dark) :global(.hljs-type) {
|
|
50
|
+
color: #8fbcbb;
|
|
51
|
+
}
|
|
52
|
+
:global(.dark) :global(.hljs-class) {
|
|
53
|
+
color: #8fbcbb;
|
|
54
|
+
}
|
|
55
|
+
:global(.dark) :global(.hljs-function) {
|
|
56
|
+
color: #88c0d0;
|
|
57
|
+
}
|
|
58
|
+
:global(.dark) :global(.hljs-title.hljs-function),
|
|
59
|
+
:global(.dark) :global(.hljs-function) > :global(.hljs-title) {
|
|
60
|
+
color: #88c0d0;
|
|
61
|
+
}
|
|
62
|
+
:global(.dark) :global(.hljs-keyword),
|
|
63
|
+
:global(.dark) :global(.hljs-literal),
|
|
64
|
+
:global(.dark) :global(.hljs-symbol) {
|
|
65
|
+
color: #81a1c1;
|
|
66
|
+
}
|
|
67
|
+
:global(.dark) :global(.hljs-number) {
|
|
68
|
+
color: #b48ead;
|
|
69
|
+
}
|
|
70
|
+
:global(.dark) :global(.hljs-regexp) {
|
|
71
|
+
color: #ebcb8b;
|
|
72
|
+
}
|
|
73
|
+
:global(.dark) :global(.hljs-string) {
|
|
74
|
+
color: #a3be8c;
|
|
75
|
+
}
|
|
76
|
+
:global(.dark) :global(.hljs-title) {
|
|
77
|
+
color: #8fbcbb;
|
|
78
|
+
}
|
|
79
|
+
:global(.dark) :global(.hljs-params) {
|
|
80
|
+
color: #d8dee9;
|
|
81
|
+
}
|
|
82
|
+
:global(.dark) :global(.hljs-bullet) {
|
|
83
|
+
color: #81a1c1;
|
|
84
|
+
}
|
|
85
|
+
:global(.dark) :global(.hljs-code) {
|
|
86
|
+
color: #8fbcbb;
|
|
87
|
+
}
|
|
88
|
+
:global(.dark) :global(.hljs-emphasis) {
|
|
89
|
+
font-style: italic;
|
|
90
|
+
}
|
|
91
|
+
:global(.dark) :global(.hljs-formula) {
|
|
92
|
+
color: #8fbcbb;
|
|
93
|
+
}
|
|
94
|
+
:global(.dark) :global(.hljs-strong) {
|
|
95
|
+
font-weight: bold;
|
|
96
|
+
}
|
|
97
|
+
:global(.dark) :global(.hljs-link:hover) {
|
|
98
|
+
-webkit-text-decoration: underline;
|
|
99
|
+
text-decoration: underline;
|
|
100
|
+
}
|
|
101
|
+
:global(.dark) :global(.hljs-quote) {
|
|
102
|
+
color: #4c566a;
|
|
103
|
+
}
|
|
104
|
+
:global(.dark) :global(.hljs-comment) {
|
|
105
|
+
color: #4c566a;
|
|
106
|
+
}
|
|
107
|
+
:global(.dark) :global(.hljs-doctag) {
|
|
108
|
+
color: #8fbcbb;
|
|
109
|
+
}
|
|
110
|
+
:global(.dark) :global(.hljs-meta),
|
|
111
|
+
:global(.dark) :global(.hljs-meta) :global(.hljs-keyword) {
|
|
112
|
+
color: #5e81ac;
|
|
113
|
+
}
|
|
114
|
+
:global(.dark) :global(.hljs-meta) :global(.hljs-string) {
|
|
115
|
+
color: #a3be8c;
|
|
116
|
+
}
|
|
117
|
+
:global(.dark) :global(.hljs-attr) {
|
|
118
|
+
color: #8fbcbb;
|
|
119
|
+
}
|
|
120
|
+
:global(.dark) :global(.hljs-attribute) {
|
|
121
|
+
color: #d8dee9;
|
|
122
|
+
}
|
|
123
|
+
:global(.dark) :global(.hljs-name) {
|
|
124
|
+
color: #81a1c1;
|
|
125
|
+
}
|
|
126
|
+
:global(.dark) :global(.hljs-section) {
|
|
127
|
+
color: #88c0d0;
|
|
128
|
+
}
|
|
129
|
+
:global(.dark) :global(.hljs-tag) {
|
|
130
|
+
color: #81a1c1;
|
|
131
|
+
}
|
|
132
|
+
:global(.dark) :global(.hljs-variable) {
|
|
133
|
+
color: #d8dee9;
|
|
134
|
+
}
|
|
135
|
+
:global(.dark) :global(.hljs-template-variable) {
|
|
136
|
+
color: #d8dee9;
|
|
137
|
+
}
|
|
138
|
+
:global(.dark) :global(.hljs-template-tag) {
|
|
139
|
+
color: #5e81ac;
|
|
140
|
+
}
|
|
141
|
+
:global(.dark) :global(.language-abnf) :global(.hljs-attribute) {
|
|
142
|
+
color: #88c0d0;
|
|
143
|
+
}
|
|
144
|
+
:global(.dark) :global(.language-abnf) :global(.hljs-symbol) {
|
|
145
|
+
color: #ebcb8b;
|
|
146
|
+
}
|
|
147
|
+
:global(.dark) :global(.language-apache) :global(.hljs-attribute) {
|
|
148
|
+
color: #88c0d0;
|
|
149
|
+
}
|
|
150
|
+
:global(.dark) :global(.language-apache) :global(.hljs-section) {
|
|
151
|
+
color: #81a1c1;
|
|
152
|
+
}
|
|
153
|
+
:global(.dark) :global(.language-arduino) :global(.hljs-built_in) {
|
|
154
|
+
color: #88c0d0;
|
|
155
|
+
}
|
|
156
|
+
:global(.dark) :global(.language-aspectj) :global(.hljs-meta) {
|
|
157
|
+
color: #d08770;
|
|
158
|
+
}
|
|
159
|
+
:global(.dark) :global(.language-aspectj) > :global(.hljs-title) {
|
|
160
|
+
color: #88c0d0;
|
|
161
|
+
}
|
|
162
|
+
:global(.dark) :global(.language-bnf) :global(.hljs-attribute) {
|
|
163
|
+
color: #8fbcbb;
|
|
164
|
+
}
|
|
165
|
+
:global(.dark) :global(.language-clojure) :global(.hljs-name) {
|
|
166
|
+
color: #88c0d0;
|
|
167
|
+
}
|
|
168
|
+
:global(.dark) :global(.language-clojure) :global(.hljs-symbol) {
|
|
169
|
+
color: #ebcb8b;
|
|
170
|
+
}
|
|
171
|
+
:global(.dark) :global(.language-coq) :global(.hljs-built_in) {
|
|
172
|
+
color: #88c0d0;
|
|
173
|
+
}
|
|
174
|
+
:global(.dark) :global(.language-cpp) :global(.hljs-meta) :global(.hljs-string) {
|
|
175
|
+
color: #8fbcbb;
|
|
176
|
+
}
|
|
177
|
+
:global(.dark) :global(.language-css) :global(.hljs-built_in) {
|
|
178
|
+
color: #88c0d0;
|
|
179
|
+
}
|
|
180
|
+
:global(.dark) :global(.language-css) :global(.hljs-keyword) {
|
|
181
|
+
color: #d08770;
|
|
182
|
+
}
|
|
183
|
+
:global(.dark) :global(.language-diff) :global(.hljs-meta) {
|
|
184
|
+
color: #8fbcbb;
|
|
185
|
+
}
|
|
186
|
+
:global(.dark) :global(.language-ebnf) :global(.hljs-attribute) {
|
|
187
|
+
color: #8fbcbb;
|
|
188
|
+
}
|
|
189
|
+
:global(.dark) :global(.language-glsl) :global(.hljs-built_in) {
|
|
190
|
+
color: #88c0d0;
|
|
191
|
+
}
|
|
192
|
+
:global(.dark) :global(.language-groovy) :global(.hljs-meta:not(:first-child)) {
|
|
193
|
+
color: #d08770;
|
|
194
|
+
}
|
|
195
|
+
:global(.dark) :global(.language-haxe) :global(.hljs-meta) {
|
|
196
|
+
color: #d08770;
|
|
197
|
+
}
|
|
198
|
+
:global(.dark) :global(.language-java) :global(.hljs-meta) {
|
|
199
|
+
color: #d08770;
|
|
200
|
+
}
|
|
201
|
+
:global(.dark) :global(.language-ldif) :global(.hljs-attribute) {
|
|
202
|
+
color: #8fbcbb;
|
|
203
|
+
}
|
|
204
|
+
:global(.dark) :global(.language-lisp) :global(.hljs-name) {
|
|
205
|
+
color: #88c0d0;
|
|
206
|
+
}
|
|
207
|
+
:global(.dark) :global(.language-lua) :global(.hljs-built_in) {
|
|
208
|
+
color: #88c0d0;
|
|
209
|
+
}
|
|
210
|
+
:global(.dark) :global(.language-moonscript) :global(.hljs-built_in) {
|
|
211
|
+
color: #88c0d0;
|
|
212
|
+
}
|
|
213
|
+
:global(.dark) :global(.language-nginx) :global(.hljs-attribute) {
|
|
214
|
+
color: #88c0d0;
|
|
215
|
+
}
|
|
216
|
+
:global(.dark) :global(.language-nginx) :global(.hljs-section) {
|
|
217
|
+
color: #5e81ac;
|
|
218
|
+
}
|
|
219
|
+
:global(.dark) :global(.language-pf) :global(.hljs-built_in) {
|
|
220
|
+
color: #88c0d0;
|
|
221
|
+
}
|
|
222
|
+
:global(.dark) :global(.language-processing) :global(.hljs-built_in) {
|
|
223
|
+
color: #88c0d0;
|
|
224
|
+
}
|
|
225
|
+
:global(.dark) :global(.language-scss) :global(.hljs-keyword) {
|
|
226
|
+
color: #81a1c1;
|
|
227
|
+
}
|
|
228
|
+
:global(.dark) :global(.language-stylus) :global(.hljs-keyword) {
|
|
229
|
+
color: #81a1c1;
|
|
230
|
+
}
|
|
231
|
+
:global(.dark) :global(.language-swift) :global(.hljs-meta) {
|
|
232
|
+
color: #d08770;
|
|
233
|
+
}
|
|
234
|
+
:global(.dark) :global(.language-vim) :global(.hljs-built_in) {
|
|
235
|
+
color: #88c0d0;
|
|
236
|
+
font-style: italic;
|
|
237
|
+
}
|
|
238
|
+
:global(.dark) :global(.language-yaml) :global(.hljs-meta) {
|
|
239
|
+
color: #d08770;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
:global(.hljs) {
|
|
243
|
+
color: #24292e;
|
|
244
|
+
background: #ffffff;
|
|
245
|
+
}
|
|
246
|
+
:global(.hljs-doctag),
|
|
247
|
+
:global(.hljs-keyword),
|
|
248
|
+
:global(.hljs-meta) :global(.hljs-keyword),
|
|
249
|
+
:global(.hljs-template-tag),
|
|
250
|
+
:global(.hljs-template-variable),
|
|
251
|
+
:global(.hljs-type),
|
|
252
|
+
:global(.hljs-variable.language_) {
|
|
253
|
+
color: #d73a49;
|
|
254
|
+
}
|
|
255
|
+
:global(.hljs-title),
|
|
256
|
+
:global(.hljs-title.class_),
|
|
257
|
+
:global(.hljs-title.class_.inherited__),
|
|
258
|
+
:global(.hljs-title.function_) {
|
|
259
|
+
color: #6f42c1;
|
|
260
|
+
}
|
|
261
|
+
:global(.hljs-attr),
|
|
262
|
+
:global(.hljs-attribute),
|
|
263
|
+
:global(.hljs-literal),
|
|
264
|
+
:global(.hljs-meta),
|
|
265
|
+
:global(.hljs-number),
|
|
266
|
+
:global(.hljs-operator),
|
|
267
|
+
:global(.hljs-variable),
|
|
268
|
+
:global(.hljs-selector-attr),
|
|
269
|
+
:global(.hljs-selector-class),
|
|
270
|
+
:global(.hljs-selector-id) {
|
|
271
|
+
color: #005cc5;
|
|
272
|
+
}
|
|
273
|
+
:global(.hljs-regexp),
|
|
274
|
+
:global(.hljs-string),
|
|
275
|
+
:global(.hljs-meta) :global(.hljs-string) {
|
|
276
|
+
color: #032f62;
|
|
277
|
+
}
|
|
278
|
+
:global(.hljs-built_in),
|
|
279
|
+
:global(.hljs-symbol) {
|
|
280
|
+
color: #e36209;
|
|
281
|
+
}
|
|
282
|
+
:global(.hljs-comment),
|
|
283
|
+
:global(.hljs-code),
|
|
284
|
+
:global(.hljs-formula) {
|
|
285
|
+
color: #6a737d;
|
|
286
|
+
}
|
|
287
|
+
:global(.hljs-name),
|
|
288
|
+
:global(.hljs-quote),
|
|
289
|
+
:global(.hljs-selector-tag),
|
|
290
|
+
:global(.hljs-selector-pseudo) {
|
|
291
|
+
color: #22863a;
|
|
292
|
+
}
|
|
293
|
+
:global(.hljs-subst) {
|
|
294
|
+
color: #24292e;
|
|
295
|
+
}
|
|
296
|
+
:global(.hljs-section) {
|
|
297
|
+
color: #005cc5;
|
|
298
|
+
font-weight: bold;
|
|
299
|
+
}
|
|
300
|
+
:global(.hljs-bullet) {
|
|
301
|
+
color: #735c0f;
|
|
302
|
+
}
|
|
303
|
+
:global(.hljs-emphasis) {
|
|
304
|
+
color: #24292e;
|
|
305
|
+
font-style: italic;
|
|
306
|
+
}
|
|
307
|
+
:global(.hljs-strong) {
|
|
308
|
+
color: #24292e;
|
|
309
|
+
font-weight: bold;
|
|
310
|
+
}
|
|
311
|
+
:global(.hljs-addition) {
|
|
312
|
+
color: #22863a;
|
|
313
|
+
background-color: #f0fff4;
|
|
314
|
+
}
|
|
315
|
+
:global(.hljs-deletion) {
|
|
316
|
+
color: #b31d28;
|
|
317
|
+
background-color: #ffeef0;
|
|
318
|
+
}</style>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type HighlightThemeProps = typeof __propDef.props;
|
|
10
|
+
export type HighlightThemeEvents = typeof __propDef.events;
|
|
11
|
+
export type HighlightThemeSlots = typeof __propDef.slots;
|
|
12
|
+
export default class HighlightTheme extends SvelteComponent<HighlightThemeProps, HighlightThemeEvents, HighlightThemeSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -8,6 +8,7 @@ import DataTable from './table/DataTable.svelte';
|
|
|
8
8
|
import Cell from './table/Cell.svelte';
|
|
9
9
|
import Head from './table/Head.svelte';
|
|
10
10
|
import Row from './table/Row.svelte';
|
|
11
|
+
import HighlightTheme from './HighlightTheme.svelte';
|
|
11
12
|
export let args;
|
|
12
13
|
export let argLabel = undefined;
|
|
13
14
|
let jsonViewer;
|
|
@@ -85,6 +86,8 @@ ${Object.entries(args)
|
|
|
85
86
|
</DataTable>
|
|
86
87
|
</div>
|
|
87
88
|
|
|
89
|
+
<HighlightTheme />
|
|
90
|
+
|
|
88
91
|
<Drawer bind:this={jsonViewer} size="900px">
|
|
89
92
|
<DrawerContent title="Expanded Args" on:close={jsonViewer.closeDrawer}>
|
|
90
93
|
<svelte:fragment slot="actions">
|