@lipme/vue-blast-viewer 1.0.2 → 1.0.3
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/.vscode/extensions.json +3 -0
- package/index.html +13 -0
- package/lipme-vue-blast-viewer-1.0.0.tgz +0 -0
- package/lipme-vue-blast-viewer-1.0.1.tgz +0 -0
- package/lipme-vue-blast-viewer-1.0.2.tgz +0 -0
- package/lipme-vue-blast-viewer-1.0.3.tgz +0 -0
- package/package.json +5 -5
- package/src/App.vue +548 -0
- package/src/assets/hero.png +0 -0
- package/src/assets/vite.svg +1 -0
- package/src/assets/vue.svg +1 -0
- package/src/components/BlastAlignmentDetails.vue +581 -0
- package/src/components/BlastGraphicViewer.vue +477 -0
- package/src/components/BlastHeader.vue +259 -0
- package/src/components/BlastHitTable.vue +669 -0
- package/src/components/BlastViewer.vue +232 -0
- package/src/main.ts +5 -0
- package/src/mockData.ts +457 -0
- package/src/style.css +258 -0
- package/src/types.ts +59 -0
- package/tsconfig.app.json +14 -0
- package/tsconfig.json +28 -0
- package/vite.config.ts +24 -0
- package/vue-blast-viewer-1.0.0.tgz +0 -0
- package/dist/src/App.vue.d.ts +0 -3
- package/dist/src/components/BlastAlignmentDetails.vue.d.ts +0 -10
- package/dist/src/components/BlastGraphicViewer.vue.d.ts +0 -12
- package/dist/src/components/BlastHeader.vue.d.ts +0 -11
- package/dist/src/components/BlastHitTable.vue.d.ts +0 -13
- package/dist/src/components/BlastViewer.vue.d.ts +0 -10
- package/dist/src/main.d.ts +0 -0
- package/dist/src/mockData.d.ts +0 -3
- package/dist/src/types.d.ts +0 -53
- package/dist/vue-blast-viewer.css +0 -2
- package/dist/vue-blast-viewer.js +0 -670
- package/dist/vue-blast-viewer.umd.cjs +0 -2
- /package/{dist → public}/favicon.svg +0 -0
- /package/{dist → public}/icons.svg +0 -0
- /package/{dist/src/index.d.ts → src/index.ts} +0 -0
package/index.html
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>blast-viewer-demo</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="app"></div>
|
|
11
|
+
<script type="module" src="/src/main.ts"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lipme/vue-blast-viewer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Interactive BLAST alignment visualizer for Vue 3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -27,12 +27,9 @@
|
|
|
27
27
|
},
|
|
28
28
|
"./style.css": "./dist/style.css"
|
|
29
29
|
},
|
|
30
|
-
"files": [
|
|
31
|
-
"dist"
|
|
32
|
-
],
|
|
33
30
|
"scripts": {
|
|
34
31
|
"dev": "vite",
|
|
35
|
-
"build": "vite build",
|
|
32
|
+
"build": "vite build && vue-tsc --declaration --emitDeclarationOnly --outDir dist",
|
|
36
33
|
"preview": "vite preview"
|
|
37
34
|
},
|
|
38
35
|
"peerDependencies": {
|
|
@@ -47,5 +44,8 @@
|
|
|
47
44
|
"vite-plugin-dts": "^5.0.2",
|
|
48
45
|
"vue": "^3.5.38",
|
|
49
46
|
"vue-tsc": "^3.3.5"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"vue": "^3.4.21"
|
|
50
50
|
}
|
|
51
51
|
}
|
package/src/App.vue
ADDED
|
@@ -0,0 +1,548 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref, onMounted, computed } from 'vue';
|
|
3
|
+
import BlastViewer from './components/BlastViewer.vue';
|
|
4
|
+
import { insulinBlastnData, sox9BlastpData } from './mockData';
|
|
5
|
+
import type { BlastRoot } from './types';
|
|
6
|
+
|
|
7
|
+
// Theme
|
|
8
|
+
const theme = ref<'dark' | 'light'>('dark');
|
|
9
|
+
|
|
10
|
+
const setAndSaveTheme = (newTheme: 'dark' | 'light') => {
|
|
11
|
+
theme.value = newTheme;
|
|
12
|
+
document.documentElement.setAttribute('data-theme', newTheme);
|
|
13
|
+
localStorage.setItem('bioblast-theme', newTheme);
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const toggleTheme = () => {
|
|
17
|
+
setAndSaveTheme(theme.value === 'dark' ? 'light' : 'dark');
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
onMounted(() => {
|
|
21
|
+
const savedTheme = localStorage.getItem('bioblast-theme') as 'dark' | 'light';
|
|
22
|
+
if (savedTheme) {
|
|
23
|
+
setAndSaveTheme(savedTheme);
|
|
24
|
+
} else if (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches) {
|
|
25
|
+
setAndSaveTheme('light');
|
|
26
|
+
} else {
|
|
27
|
+
setAndSaveTheme('dark');
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
// State
|
|
32
|
+
const activeDatasetName = ref<'insulin' | 'sox9' | 'custom'>('insulin');
|
|
33
|
+
const activeData = ref<BlastRoot | null>(insulinBlastnData);
|
|
34
|
+
const rawJsonInput = ref('');
|
|
35
|
+
const showJsonPaste = ref(false);
|
|
36
|
+
const jsonParseError = ref<string | null>(null);
|
|
37
|
+
|
|
38
|
+
// Drag and drop state
|
|
39
|
+
const isDragging = ref(false);
|
|
40
|
+
|
|
41
|
+
// Methods
|
|
42
|
+
const selectDataset = (name: 'insulin' | 'sox9') => {
|
|
43
|
+
activeDatasetName.value = name;
|
|
44
|
+
showJsonPaste.value = false;
|
|
45
|
+
jsonParseError.value = null;
|
|
46
|
+
activeData.value = name === 'insulin' ? insulinBlastnData : sox9BlastpData;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
const handleFileUpload = (event: Event) => {
|
|
50
|
+
const file = (event.target as HTMLInputElement).files?.[0];
|
|
51
|
+
if (!file) return;
|
|
52
|
+
parseFile(file);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const handleFileDrop = (event: DragEvent) => {
|
|
56
|
+
isDragging.value = false;
|
|
57
|
+
const file = event.dataTransfer?.files?.[0];
|
|
58
|
+
if (!file) return;
|
|
59
|
+
parseFile(file);
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const parseFile = (file: File) => {
|
|
63
|
+
const reader = new FileReader();
|
|
64
|
+
reader.onload = (e) => {
|
|
65
|
+
try {
|
|
66
|
+
const text = e.target?.result as string;
|
|
67
|
+
const parsed = JSON.parse(text);
|
|
68
|
+
validateAndLoadJson(parsed);
|
|
69
|
+
} catch (err: any) {
|
|
70
|
+
jsonParseError.value = `Failed to parse file: ${err.message}`;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
reader.readAsText(file);
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
const handlePasteSubmit = () => {
|
|
77
|
+
jsonParseError.value = null;
|
|
78
|
+
if (!rawJsonInput.value.trim()) {
|
|
79
|
+
jsonParseError.value = 'Please paste some JSON first.';
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
try {
|
|
84
|
+
const parsed = JSON.parse(rawJsonInput.value);
|
|
85
|
+
validateAndLoadJson(parsed);
|
|
86
|
+
} catch (err: any) {
|
|
87
|
+
jsonParseError.value = `Invalid JSON: ${err.message}`;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
const validateAndLoadJson = (data: any) => {
|
|
92
|
+
// Loose validation of BLAST JSON output format
|
|
93
|
+
if (data && (data.BlastOutput2 || (data[0] && data[0].report) || data.report)) {
|
|
94
|
+
let formattedData: BlastRoot;
|
|
95
|
+
|
|
96
|
+
if (data.BlastOutput2) {
|
|
97
|
+
formattedData = data;
|
|
98
|
+
} else if (Array.isArray(data)) {
|
|
99
|
+
formattedData = { BlastOutput2: data };
|
|
100
|
+
} else {
|
|
101
|
+
formattedData = { BlastOutput2: [{ report: data.report || data }] };
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
activeData.value = formattedData;
|
|
105
|
+
activeDatasetName.value = 'custom';
|
|
106
|
+
jsonParseError.value = null;
|
|
107
|
+
showJsonPaste.value = false;
|
|
108
|
+
rawJsonInput.value = '';
|
|
109
|
+
} else {
|
|
110
|
+
jsonParseError.value = 'JSON format is invalid. Must contain BlastOutput2 or report data.';
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
// Dynamic templates for links
|
|
115
|
+
const queryLinkTemplate = computed(() => {
|
|
116
|
+
const isProt = activeData.value?.BlastOutput2[0].report.program.toLowerCase().includes('p');
|
|
117
|
+
const db = isProt ? 'protein' : 'nuccore';
|
|
118
|
+
return `https://www.ncbi.nlm.nih.gov/${db}/{accession}`;
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
const subjectLinkTemplate = computed(() => {
|
|
122
|
+
if (activeDatasetName.value === 'sox9') {
|
|
123
|
+
return 'https://www.uniprot.org/uniprotkb/{accession}/entry';
|
|
124
|
+
}
|
|
125
|
+
const isProt = activeData.value?.BlastOutput2[0].report.program.toLowerCase().includes('p');
|
|
126
|
+
const db = isProt ? 'protein' : 'nucleotide';
|
|
127
|
+
return `https://www.ncbi.nlm.nih.gov/${db}/{accession}`;
|
|
128
|
+
});
|
|
129
|
+
</script>
|
|
130
|
+
|
|
131
|
+
<template>
|
|
132
|
+
<div class="app-wrapper">
|
|
133
|
+
<header class="app-header">
|
|
134
|
+
<div class="header-content container">
|
|
135
|
+
<div class="brand">
|
|
136
|
+
<button @click="toggleTheme" class="btn btn-secondary btn-sm" aria-label="Toggle theme">
|
|
137
|
+
{{ theme === 'dark' ? '☀️ Light' : '🌙 Dark' }}
|
|
138
|
+
</button>
|
|
139
|
+
<span class="helix-logo">🧬</span>
|
|
140
|
+
<div class="brand-text">
|
|
141
|
+
<h1>BioBLAST <span class="accent-text">Viewer</span></h1>
|
|
142
|
+
<p>Interactive biological sequence alignment visualizer for Vue 3</p>
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
<div class="header-actions">
|
|
146
|
+
<a href="https://github.com/ncbi/blast" target="_blank" class="btn btn-secondary btn-sm">
|
|
147
|
+
NCBI BLAST Website
|
|
148
|
+
</a>
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
</header>
|
|
152
|
+
|
|
153
|
+
<main class="container">
|
|
154
|
+
<!-- Selector & Upload Banner -->
|
|
155
|
+
<section class="demo-controls glass-panel fade-in">
|
|
156
|
+
<div class="controls-desc">
|
|
157
|
+
<h3>Load BLAST Result Data</h3>
|
|
158
|
+
<p>Choose an example result, upload a BLAST JSON file, or paste raw JSON directly.</p>
|
|
159
|
+
</div>
|
|
160
|
+
|
|
161
|
+
<div class="controls-actions">
|
|
162
|
+
<!-- Preloaded Selectors -->
|
|
163
|
+
<div class="presets">
|
|
164
|
+
<button
|
|
165
|
+
class="btn"
|
|
166
|
+
:class="activeDatasetName === 'insulin' ? 'btn-primary' : 'btn-secondary'"
|
|
167
|
+
@click="selectDataset('insulin')"
|
|
168
|
+
>
|
|
169
|
+
Insulin DNA (blastn)
|
|
170
|
+
</button>
|
|
171
|
+
<button
|
|
172
|
+
class="btn"
|
|
173
|
+
:class="activeDatasetName === 'sox9' ? 'btn-primary' : 'btn-secondary'"
|
|
174
|
+
@click="selectDataset('sox9')"
|
|
175
|
+
>
|
|
176
|
+
Sox9 Protein (blastp)
|
|
177
|
+
</button>
|
|
178
|
+
</div>
|
|
179
|
+
|
|
180
|
+
<div class="divider"></div>
|
|
181
|
+
|
|
182
|
+
<!-- Upload / Paste Actions -->
|
|
183
|
+
<div class="custom-actions">
|
|
184
|
+
<!-- Hidden File Input -->
|
|
185
|
+
<label class="btn btn-secondary upload-btn">
|
|
186
|
+
📁 Upload JSON
|
|
187
|
+
<input
|
|
188
|
+
type="file"
|
|
189
|
+
accept=".json"
|
|
190
|
+
class="hidden-file-input"
|
|
191
|
+
@change="handleFileUpload"
|
|
192
|
+
/>
|
|
193
|
+
</label>
|
|
194
|
+
|
|
195
|
+
<button
|
|
196
|
+
class="btn btn-secondary"
|
|
197
|
+
:class="{ 'btn-primary': showJsonPaste }"
|
|
198
|
+
@click="showJsonPaste = !showJsonPaste; jsonParseError = null"
|
|
199
|
+
>
|
|
200
|
+
📝 Paste Raw JSON
|
|
201
|
+
</button>
|
|
202
|
+
</div>
|
|
203
|
+
</div>
|
|
204
|
+
|
|
205
|
+
<!-- JSON Paste Area -->
|
|
206
|
+
<div v-if="showJsonPaste" class="paste-section fade-in">
|
|
207
|
+
<textarea
|
|
208
|
+
v-model="rawJsonInput"
|
|
209
|
+
placeholder="Paste your BLAST JSON results output here..."
|
|
210
|
+
class="input-text json-textarea"
|
|
211
|
+
rows="6"
|
|
212
|
+
></textarea>
|
|
213
|
+
<div class="paste-actions">
|
|
214
|
+
<button class="btn btn-primary" @click="handlePasteSubmit">
|
|
215
|
+
Render BLAST Data
|
|
216
|
+
</button>
|
|
217
|
+
<button class="btn btn-secondary" @click="showJsonPaste = false; rawJsonInput = ''">
|
|
218
|
+
Cancel
|
|
219
|
+
</button>
|
|
220
|
+
</div>
|
|
221
|
+
</div>
|
|
222
|
+
|
|
223
|
+
<!-- Drag & Drop Zone -->
|
|
224
|
+
<div
|
|
225
|
+
class="drag-drop-zone"
|
|
226
|
+
:class="{ 'dragging': isDragging }"
|
|
227
|
+
@dragover.prevent="isDragging = true"
|
|
228
|
+
@dragleave.prevent="isDragging = false"
|
|
229
|
+
@drop.prevent="handleFileDrop"
|
|
230
|
+
>
|
|
231
|
+
<span class="drag-icon">📥</span>
|
|
232
|
+
<span class="drag-text">
|
|
233
|
+
{{ isDragging ? 'Drop file here!' : 'Drag & drop a BLAST JSON output file here to view' }}
|
|
234
|
+
</span>
|
|
235
|
+
</div>
|
|
236
|
+
|
|
237
|
+
<!-- Error Banner -->
|
|
238
|
+
<div v-if="jsonParseError" class="error-banner fade-in">
|
|
239
|
+
<span class="err-icon">❌</span>
|
|
240
|
+
<span class="err-msg">{{ jsonParseError }}</span>
|
|
241
|
+
<span class="close-err" @click="jsonParseError = null">✕</span>
|
|
242
|
+
</div>
|
|
243
|
+
</section>
|
|
244
|
+
|
|
245
|
+
<!-- Main BLAST Viewer Container -->
|
|
246
|
+
<section class="viewer-section">
|
|
247
|
+
<div v-if="activeDatasetName === 'custom'" class="custom-data-badge fade-in">
|
|
248
|
+
Showing uploaded custom BLAST result
|
|
249
|
+
<button class="reset-preset-link" @click="selectDataset('insulin')">
|
|
250
|
+
(Reset to Example)
|
|
251
|
+
</button>
|
|
252
|
+
</div>
|
|
253
|
+
|
|
254
|
+
<BlastViewer
|
|
255
|
+
:blast-data="activeData"
|
|
256
|
+
:query-link="queryLinkTemplate"
|
|
257
|
+
:subject-link="subjectLinkTemplate"
|
|
258
|
+
:theme="theme"
|
|
259
|
+
/>
|
|
260
|
+
</section>
|
|
261
|
+
</main>
|
|
262
|
+
|
|
263
|
+
<footer class="app-footer">
|
|
264
|
+
<div class="footer-content container">
|
|
265
|
+
<p>Built with Vue 3, Vite & Vanilla CSS. Supporting NCBI BLAST JSON formats.</p>
|
|
266
|
+
</div>
|
|
267
|
+
</footer>
|
|
268
|
+
</div>
|
|
269
|
+
</template>
|
|
270
|
+
|
|
271
|
+
<style scoped>
|
|
272
|
+
.app-wrapper {
|
|
273
|
+
display: flex;
|
|
274
|
+
flex-direction: column;
|
|
275
|
+
min-height: 100vh;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.app-header {
|
|
279
|
+
background: var(--bg-header);
|
|
280
|
+
backdrop-filter: blur(8px);
|
|
281
|
+
-webkit-backdrop-filter: blur(8px);
|
|
282
|
+
border-bottom: 1px solid var(--border-color);
|
|
283
|
+
position: sticky;
|
|
284
|
+
top: 0;
|
|
285
|
+
z-index: 50;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.header-content {
|
|
289
|
+
display: flex;
|
|
290
|
+
justify-content: space-between;
|
|
291
|
+
align-items: center;
|
|
292
|
+
padding: 1rem 1.5rem;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.brand {
|
|
296
|
+
display: flex;
|
|
297
|
+
align-items: center;
|
|
298
|
+
gap: 1rem;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.helix-logo {
|
|
302
|
+
font-size: 2.25rem;
|
|
303
|
+
line-height: 1;
|
|
304
|
+
animation: spin-pulse 8s infinite linear;
|
|
305
|
+
display: inline-block;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
@keyframes spin-pulse {
|
|
309
|
+
0% { transform: rotate(0deg) scale(1); }
|
|
310
|
+
50% { transform: rotate(180deg) scale(1.15); }
|
|
311
|
+
100% { transform: rotate(360deg) scale(1); }
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.brand-text h1 {
|
|
315
|
+
font-size: 1.35rem;
|
|
316
|
+
font-weight: 700;
|
|
317
|
+
letter-spacing: -0.02em;
|
|
318
|
+
line-height: 1.1;
|
|
319
|
+
color: var(--text-primary);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.accent-text {
|
|
323
|
+
color: var(--color-primary);
|
|
324
|
+
background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
|
|
325
|
+
-webkit-background-clip: text;
|
|
326
|
+
-webkit-text-fill-color: transparent;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.brand-text p {
|
|
330
|
+
font-size: 0.75rem;
|
|
331
|
+
color: var(--text-secondary);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
main {
|
|
335
|
+
flex-grow: 1;
|
|
336
|
+
display: flex;
|
|
337
|
+
flex-direction: column;
|
|
338
|
+
gap: 2rem;
|
|
339
|
+
padding-bottom: 4rem;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.demo-controls {
|
|
343
|
+
padding: 1.5rem;
|
|
344
|
+
display: flex;
|
|
345
|
+
flex-direction: column;
|
|
346
|
+
gap: 1.25rem;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.controls-desc h3 {
|
|
350
|
+
font-size: 1.05rem;
|
|
351
|
+
font-weight: 600;
|
|
352
|
+
margin-bottom: 0.15rem;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.controls-desc p {
|
|
356
|
+
font-size: 0.8rem;
|
|
357
|
+
color: var(--text-secondary);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.controls-actions {
|
|
361
|
+
display: flex;
|
|
362
|
+
align-items: center;
|
|
363
|
+
flex-wrap: wrap;
|
|
364
|
+
gap: 1rem;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.presets {
|
|
368
|
+
display: flex;
|
|
369
|
+
gap: 0.75rem;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.divider {
|
|
373
|
+
width: 1px;
|
|
374
|
+
height: 24px;
|
|
375
|
+
background: var(--border-color);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.custom-actions {
|
|
379
|
+
display: flex;
|
|
380
|
+
gap: 0.75rem;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.upload-btn {
|
|
384
|
+
position: relative;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.hidden-file-input {
|
|
388
|
+
position: absolute;
|
|
389
|
+
top: 0;
|
|
390
|
+
left: 0;
|
|
391
|
+
width: 100%;
|
|
392
|
+
height: 100%;
|
|
393
|
+
opacity: 0;
|
|
394
|
+
cursor: pointer;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.paste-section {
|
|
398
|
+
display: flex;
|
|
399
|
+
flex-direction: column;
|
|
400
|
+
gap: 0.75rem;
|
|
401
|
+
background: var(--bg-secondary);
|
|
402
|
+
padding: 1rem;
|
|
403
|
+
border-radius: var(--radius-sm);
|
|
404
|
+
border: 1px solid var(--border-color);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.json-textarea {
|
|
408
|
+
width: 100%;
|
|
409
|
+
font-family: var(--font-mono);
|
|
410
|
+
font-size: 0.8rem;
|
|
411
|
+
resize: vertical;
|
|
412
|
+
background: var(--bg-primary);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.paste-actions {
|
|
416
|
+
display: flex;
|
|
417
|
+
gap: 0.75rem;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.drag-drop-zone {
|
|
421
|
+
border: 2px dashed var(--border-color);
|
|
422
|
+
border-radius: var(--radius-sm);
|
|
423
|
+
padding: 1rem;
|
|
424
|
+
display: flex;
|
|
425
|
+
align-items: center;
|
|
426
|
+
justify-content: center;
|
|
427
|
+
gap: 0.75rem;
|
|
428
|
+
transition: all var(--transition-fast);
|
|
429
|
+
background: var(--bg-overlay-1);
|
|
430
|
+
user-select: none;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.drag-drop-zone.dragging {
|
|
434
|
+
border-color: var(--color-primary);
|
|
435
|
+
background: var(--color-primary-glow);
|
|
436
|
+
transform: scale(0.995);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.drag-icon {
|
|
440
|
+
font-size: 1.5rem;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.drag-text {
|
|
444
|
+
font-size: 0.85rem;
|
|
445
|
+
color: var(--text-secondary);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.error-banner {
|
|
449
|
+
background: rgba(239, 68, 68, 0.1);
|
|
450
|
+
border: 1px solid rgba(239, 68, 68, 0.3);
|
|
451
|
+
border-radius: var(--radius-sm);
|
|
452
|
+
padding: 0.75rem 1rem;
|
|
453
|
+
display: flex;
|
|
454
|
+
align-items: center;
|
|
455
|
+
gap: 0.75rem;
|
|
456
|
+
position: relative;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.err-icon {
|
|
460
|
+
font-size: 1rem;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.err-msg {
|
|
464
|
+
font-size: 0.85rem;
|
|
465
|
+
color: var(--color-danger);
|
|
466
|
+
font-weight: 500;
|
|
467
|
+
padding-right: 1.5rem;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.close-err {
|
|
471
|
+
position: absolute;
|
|
472
|
+
right: 0.75rem;
|
|
473
|
+
top: 50%;
|
|
474
|
+
transform: translateY(-50%);
|
|
475
|
+
cursor: pointer;
|
|
476
|
+
color: var(--color-danger);
|
|
477
|
+
font-size: 0.8rem;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.close-err:hover {
|
|
481
|
+
opacity: 0.8;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.viewer-section {
|
|
485
|
+
display: flex;
|
|
486
|
+
flex-direction: column;
|
|
487
|
+
gap: 1rem;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.custom-data-badge {
|
|
491
|
+
align-self: flex-start;
|
|
492
|
+
background: rgba(139, 92, 246, 0.15);
|
|
493
|
+
color: var(--color-secondary);
|
|
494
|
+
border: 1px solid rgba(139, 92, 246, 0.3);
|
|
495
|
+
padding: 0.35rem 0.75rem;
|
|
496
|
+
border-radius: 50px;
|
|
497
|
+
font-size: 0.75rem;
|
|
498
|
+
font-weight: 600;
|
|
499
|
+
display: flex;
|
|
500
|
+
align-items: center;
|
|
501
|
+
gap: 0.5rem;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.reset-preset-link {
|
|
505
|
+
background: transparent;
|
|
506
|
+
border: none;
|
|
507
|
+
color: var(--text-secondary);
|
|
508
|
+
cursor: pointer;
|
|
509
|
+
font-size: 0.75rem;
|
|
510
|
+
text-decoration: underline;
|
|
511
|
+
font-weight: 500;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.reset-preset-link:hover {
|
|
515
|
+
color: var(--text-primary);
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.app-footer {
|
|
519
|
+
background: var(--bg-secondary);
|
|
520
|
+
border-top: 1px solid var(--border-color);
|
|
521
|
+
padding: 1.5rem;
|
|
522
|
+
text-align: center;
|
|
523
|
+
margin-top: auto;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.footer-content p {
|
|
527
|
+
font-size: 0.75rem;
|
|
528
|
+
color: var(--text-muted);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
@media (max-width: 768px) {
|
|
532
|
+
.header-content {
|
|
533
|
+
flex-direction: column;
|
|
534
|
+
gap: 1rem;
|
|
535
|
+
}
|
|
536
|
+
.controls-actions {
|
|
537
|
+
flex-direction: column;
|
|
538
|
+
align-items: stretch;
|
|
539
|
+
}
|
|
540
|
+
.presets, .custom-actions {
|
|
541
|
+
display: grid;
|
|
542
|
+
grid-template-columns: 1fr 1fr;
|
|
543
|
+
}
|
|
544
|
+
.divider {
|
|
545
|
+
display: none;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
</style>
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="77" height="47" fill="none" aria-labelledby="vite-logo-title" viewBox="0 0 77 47"><title id="vite-logo-title">Vite</title><style>.parenthesis{fill:#000}@media (prefers-color-scheme:dark){.parenthesis{fill:#fff}}</style><path fill="#9135ff" d="M40.151 45.71c-.663.844-2.02.374-2.02-.699V34.708a2.26 2.26 0 0 0-2.262-2.262H24.493c-.92 0-1.457-1.04-.92-1.788l7.479-10.471c1.07-1.498 0-3.578-1.842-3.578H15.443c-.92 0-1.456-1.04-.92-1.788l9.696-13.576c.213-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.472c-1.07 1.497 0 3.578 1.842 3.578h11.376c.944 0 1.474 1.087.89 1.83L40.153 45.712z"/><mask id="a" width="48" height="47" x="14" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#000" d="M40.047 45.71c-.663.843-2.02.374-2.02-.699V34.708a2.26 2.26 0 0 0-2.262-2.262H24.389c-.92 0-1.457-1.04-.92-1.788l7.479-10.472c1.07-1.497 0-3.578-1.842-3.578H15.34c-.92 0-1.456-1.04-.92-1.788l9.696-13.575c.213-.297.556-.474.92-.474H53.93c.92 0 1.456 1.04.92 1.788L47.37 13.03c-1.07 1.498 0 3.578 1.842 3.578h11.376c.944 0 1.474 1.088.89 1.831L40.049 45.712z"/></mask><g mask="url(#a)"><g filter="url(#b)"><ellipse cx="5.508" cy="14.704" fill="#eee6ff" rx="5.508" ry="14.704" transform="rotate(269.814 20.96 11.29)scale(-1 1)"/></g><g filter="url(#c)"><ellipse cx="10.399" cy="29.851" fill="#eee6ff" rx="10.399" ry="29.851" transform="rotate(89.814 -16.902 -8.275)scale(1 -1)"/></g><g filter="url(#d)"><ellipse cx="5.508" cy="30.487" fill="#8900ff" rx="5.508" ry="30.487" transform="rotate(89.814 -19.197 -7.127)scale(1 -1)"/></g><g filter="url(#e)"><ellipse cx="5.508" cy="30.599" fill="#8900ff" rx="5.508" ry="30.599" transform="rotate(89.814 -25.928 4.177)scale(1 -1)"/></g><g filter="url(#f)"><ellipse cx="5.508" cy="30.599" fill="#8900ff" rx="5.508" ry="30.599" transform="rotate(89.814 -25.738 5.52)scale(1 -1)"/></g><g filter="url(#g)"><ellipse cx="14.072" cy="22.078" fill="#eee6ff" rx="14.072" ry="22.078" transform="rotate(93.35 31.245 55.578)scale(-1 1)"/></g><g filter="url(#h)"><ellipse cx="3.47" cy="21.501" fill="#8900ff" rx="3.47" ry="21.501" transform="rotate(89.009 35.419 55.202)scale(-1 1)"/></g><g filter="url(#i)"><ellipse cx="3.47" cy="21.501" fill="#8900ff" rx="3.47" ry="21.501" transform="rotate(89.009 35.419 55.202)scale(-1 1)"/></g><g filter="url(#j)"><ellipse cx="14.592" cy="9.743" fill="#8900ff" rx="4.407" ry="29.108" transform="rotate(39.51 14.592 9.743)"/></g><g filter="url(#k)"><ellipse cx="61.728" cy="-5.321" fill="#8900ff" rx="4.407" ry="29.108" transform="rotate(37.892 61.728 -5.32)"/></g><g filter="url(#l)"><ellipse cx="55.618" cy="7.104" fill="#00c2ff" rx="5.971" ry="9.665" transform="rotate(37.892 55.618 7.104)"/></g><g filter="url(#m)"><ellipse cx="12.326" cy="39.103" fill="#8900ff" rx="4.407" ry="29.108" transform="rotate(37.892 12.326 39.103)"/></g><g filter="url(#n)"><ellipse cx="12.326" cy="39.103" fill="#8900ff" rx="4.407" ry="29.108" transform="rotate(37.892 12.326 39.103)"/></g><g filter="url(#o)"><ellipse cx="49.857" cy="30.678" fill="#8900ff" rx="4.407" ry="29.108" transform="rotate(37.892 49.857 30.678)"/></g><g filter="url(#p)"><ellipse cx="52.623" cy="33.171" fill="#00c2ff" rx="5.971" ry="15.297" transform="rotate(37.892 52.623 33.17)"/></g></g><path d="M6.919 0c-9.198 13.166-9.252 33.575 0 46.789h6.215c-9.25-13.214-9.196-33.623 0-46.789zm62.424 0h-6.215c9.198 13.166 9.252 33.575 0 46.789h6.215c9.25-13.214 9.196-33.623 0-46.789" class="parenthesis"/><defs><filter id="b" width="60.045" height="41.654" x="-5.564" y="16.92" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="7.659"/></filter><filter id="c" width="90.34" height="51.437" x="-40.407" y="-6.762" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="7.659"/></filter><filter id="d" width="79.355" height="29.4" x="-35.435" y="2.801" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="e" width="79.579" height="29.4" x="-30.84" y="20.8" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="f" width="79.579" height="29.4" x="-29.307" y="21.949" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="g" width="74.749" height="58.852" x="29.961" y="-17.13" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="7.659"/></filter><filter id="h" width="61.377" height="25.362" x="37.754" y="3.055" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="i" width="61.377" height="25.362" x="37.754" y="3.055" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="j" width="56.045" height="63.649" x="-13.43" y="-22.082" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="k" width="54.814" height="64.646" x="34.321" y="-37.644" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="l" width="33.541" height="35.313" x="38.847" y="-10.552" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="m" width="54.814" height="64.646" x="-15.081" y="6.78" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="n" width="54.814" height="64.646" x="-15.081" y="6.78" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="o" width="54.814" height="64.646" x="22.45" y="-1.645" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="p" width="39.409" height="43.623" x="32.919" y="11.36" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter></defs></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>
|