@necrolab/dashboard 0.4.40 → 0.4.42
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/.claude/settings.local.json +2 -1
- package/backend/api.js +0 -5
- package/package.json +2 -2
- package/src/views/Editor.vue +16 -16
package/backend/api.js
CHANGED
|
@@ -179,11 +179,6 @@ app.ws("/api/updates", async function (ws, req) {
|
|
|
179
179
|
}
|
|
180
180
|
});
|
|
181
181
|
|
|
182
|
-
// Root route - serve the main app
|
|
183
|
-
app.get("/", (req, res) => {
|
|
184
|
-
res.sendFile(path.join(__dirname, "../dist/index.html"));
|
|
185
|
-
});
|
|
186
|
-
|
|
187
182
|
// catches vue reloads
|
|
188
183
|
app.use(
|
|
189
184
|
["/login", "/console", "/editor", "/filter", "/profiles", "/accounts"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@necrolab/dashboard",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.42",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "rm -rf dist && vite build && npx workbox-cli generateSW workbox-config.cjs",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@faker-js/faker": "^7.6.0",
|
|
17
17
|
"@msgpack/msgpack": "^3.0.0-beta2",
|
|
18
|
-
"@necrolab/tm-renderer": "^0.1.
|
|
18
|
+
"@necrolab/tm-renderer": "^0.1.8",
|
|
19
19
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
20
20
|
"@vueuse/core": "^11.3.0",
|
|
21
21
|
"autoprefixer": "^10.4.21",
|
package/src/views/Editor.vue
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
<div class="card-dark p-2">
|
|
9
9
|
<div v-if="ui.profile.admin">
|
|
10
10
|
<h5 class="text-white text-xl font-bold flex gap-x-3 mb-3">Admin Editor</h5>
|
|
11
|
-
<div class="flex justify-between items-center gap-4 editor-controls-row">
|
|
12
|
-
<div class="w-64 flex flex-shrink-0 dropdown-container">
|
|
11
|
+
<div class="flex flex-col lg:flex-row lg:justify-between lg:items-center gap-4 editor-controls-row">
|
|
12
|
+
<div class="w-full lg:w-64 flex flex-shrink-0 dropdown-container">
|
|
13
13
|
<div class="relative flex-grow">
|
|
14
14
|
<Dropdown
|
|
15
15
|
class="bg-dark-500 border-2 border-r-0 border-dark-550 admin-file-dropdown w-full"
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
</button>
|
|
30
30
|
</div>
|
|
31
31
|
<!-- Admin editor buttons moved here -->
|
|
32
|
-
<div v-if="textEditorVisible" class="flex gap-
|
|
33
|
-
<button class="btn-action" @click="format()" v-if="isJsonFile()">
|
|
32
|
+
<div v-if="textEditorVisible" class="flex flex-wrap gap-2 justify-center lg:justify-end">
|
|
33
|
+
<button class="btn-action flex-shrink-0" @click="format()" v-if="isJsonFile()">
|
|
34
34
|
<svg
|
|
35
35
|
xmlns="http://www.w3.org/2000/svg"
|
|
36
36
|
width="16"
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
<path d="M21 14H3" />
|
|
48
48
|
<path d="M21 18H7" />
|
|
49
49
|
</svg>
|
|
50
|
-
<span>Format</span>
|
|
50
|
+
<span class="hidden sm:inline">Format</span>
|
|
51
51
|
</button>
|
|
52
|
-
<button class="btn-action" @click="saveAll">
|
|
52
|
+
<button class="btn-action flex-shrink-0" @click="saveAll">
|
|
53
53
|
<svg
|
|
54
54
|
xmlns="http://www.w3.org/2000/svg"
|
|
55
55
|
width="16"
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
<polyline points="17 21 17 13 7 13 7 21" />
|
|
66
66
|
<polyline points="7 3 7 8 15 8" />
|
|
67
67
|
</svg>
|
|
68
|
-
<span>Save File</span>
|
|
68
|
+
<span class="hidden sm:inline">Save File</span>
|
|
69
69
|
</button>
|
|
70
|
-
<button class="btn-action" @click="closeFile">
|
|
70
|
+
<button class="btn-action flex-shrink-0" @click="closeFile">
|
|
71
71
|
<svg
|
|
72
72
|
xmlns="http://www.w3.org/2000/svg"
|
|
73
73
|
width="16"
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
<line x1="18" y1="6" x2="6" y2="18"></line>
|
|
83
83
|
<line x1="6" y1="6" x2="18" y2="18"></line>
|
|
84
84
|
</svg>
|
|
85
|
-
<span>Close File</span>
|
|
85
|
+
<span class="hidden sm:inline">Close File</span>
|
|
86
86
|
</button>
|
|
87
87
|
</div>
|
|
88
88
|
</div>
|
|
@@ -133,8 +133,8 @@
|
|
|
133
133
|
<div class="border border-dark-650 my-8" />
|
|
134
134
|
|
|
135
135
|
<h5 class="text-white text-xl font-bold flex gap-x-3 mb-3">Proxy Editor</h5>
|
|
136
|
-
<div class="flex justify-between items-center gap-4 proxy-controls-row mb-4">
|
|
137
|
-
<div class="w-64 flex flex-shrink-0 dropdown-container">
|
|
136
|
+
<div class="flex flex-col lg:flex-row lg:justify-between lg:items-center gap-4 proxy-controls-row mb-4">
|
|
137
|
+
<div class="w-full lg:w-64 flex flex-shrink-0 dropdown-container">
|
|
138
138
|
<div class="relative flex-grow">
|
|
139
139
|
<Dropdown
|
|
140
140
|
class="bg-dark-500 border-2 border-dark-550 rounded-lg w-full h-10"
|
|
@@ -147,8 +147,8 @@
|
|
|
147
147
|
</div>
|
|
148
148
|
</div>
|
|
149
149
|
<!-- Proxy save button moved here -->
|
|
150
|
-
<div v-if="currentProxyList" class="flex gap-
|
|
151
|
-
<button class="btn-action
|
|
150
|
+
<div v-if="currentProxyList" class="flex flex-wrap gap-2 justify-center lg:justify-end">
|
|
151
|
+
<button class="btn-action flex-shrink-0" @click="saveProxies">
|
|
152
152
|
<svg
|
|
153
153
|
xmlns="http://www.w3.org/2000/svg"
|
|
154
154
|
width="16"
|
|
@@ -164,9 +164,9 @@
|
|
|
164
164
|
<polyline points="17 21 17 13 7 13 7 21" />
|
|
165
165
|
<polyline points="7 3 7 8 15 8" />
|
|
166
166
|
</svg>
|
|
167
|
-
<span>Save Proxies</span>
|
|
167
|
+
<span class="hidden sm:inline">Save Proxies</span>
|
|
168
168
|
</button>
|
|
169
|
-
<button class="btn-action
|
|
169
|
+
<button class="btn-action flex-shrink-0" @click="closeProxyFile">
|
|
170
170
|
<svg
|
|
171
171
|
xmlns="http://www.w3.org/2000/svg"
|
|
172
172
|
width="16"
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
<line x1="18" y1="6" x2="6" y2="18"></line>
|
|
182
182
|
<line x1="6" y1="6" x2="18" y2="18"></line>
|
|
183
183
|
</svg>
|
|
184
|
-
<span>Close File</span>
|
|
184
|
+
<span class="hidden sm:inline">Close File</span>
|
|
185
185
|
</button>
|
|
186
186
|
</div>
|
|
187
187
|
</div>
|