system-dashboard-frontend 1.35.48 → 1.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -8
- package/src/App.svelte +1 -1
- package/src/main.mjs +5 -4
- package/src/pages/Units.svelte +13 -4
- package/vite.config.mts +30 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "system-dashboard-frontend",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.36.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"preview": "vite preview"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@kronos-integration/svelte-components": "^2.5.
|
|
30
|
+
"@kronos-integration/svelte-components": "^2.5.20",
|
|
31
31
|
"mf-styling": "^3.1.6",
|
|
32
32
|
"reader-line-iterator": "^1.2.0",
|
|
33
33
|
"svelte-command": "^1.1.50",
|
|
34
|
-
"svelte-common": "^6.10.
|
|
35
|
-
"svelte-guard-history-router": "^6.0.
|
|
36
|
-
"svelte-log-view": "^4.2.
|
|
37
|
-
"svelte-session-manager": "^2.2.
|
|
34
|
+
"svelte-common": "^6.10.13",
|
|
35
|
+
"svelte-guard-history-router": "^6.0.8",
|
|
36
|
+
"svelte-log-view": "^4.2.34",
|
|
37
|
+
"svelte-session-manager": "^2.2.18",
|
|
38
38
|
"svelte-websocket-store": "^1.1.34"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"@semantic-release/exec": "^6.0.3",
|
|
43
43
|
"@semantic-release/release-notes-generator": "^13.0.0",
|
|
44
44
|
"@sveltejs/vite-plugin-svelte": "^3.1.0",
|
|
45
|
-
"npm-pkgbuild": "^15.3.
|
|
45
|
+
"npm-pkgbuild": "^15.3.12",
|
|
46
46
|
"semantic-release": "^23.1.1",
|
|
47
47
|
"stylelint": "^16.5.0",
|
|
48
48
|
"stylelint-config-standard": "^36.0.0",
|
|
49
|
-
"svelte": "^
|
|
49
|
+
"svelte": "^5.0.0-next.135",
|
|
50
50
|
"vite": "^5.2.11",
|
|
51
51
|
"vite-plugin-compression2": "^1.1.0"
|
|
52
52
|
},
|
package/src/App.svelte
CHANGED
package/src/main.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import App from "./App.svelte";
|
|
2
1
|
import {} from "./service-worker/registration.mjs";
|
|
2
|
+
import { mount } from 'svelte';
|
|
3
|
+
import App from "./App.svelte";
|
|
4
|
+
|
|
5
|
+
const app = mount(App, { target: document.body});
|
|
3
6
|
|
|
4
|
-
export default
|
|
5
|
-
target: document.body
|
|
6
|
-
});
|
|
7
|
+
export default app;
|
package/src/pages/Units.svelte
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { ObjectLink } from "svelte-guard-history-router";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
sortable,
|
|
5
|
+
sorter,
|
|
6
|
+
filter,
|
|
7
|
+
keyPrefixStore,
|
|
8
|
+
Pagination,
|
|
9
|
+
pageNavigation
|
|
10
|
+
} from "svelte-common";
|
|
4
11
|
|
|
5
12
|
export let router;
|
|
6
13
|
|
|
@@ -45,7 +52,9 @@
|
|
|
45
52
|
</tr>
|
|
46
53
|
{/each}
|
|
47
54
|
</tbody>
|
|
48
|
-
<
|
|
49
|
-
<
|
|
50
|
-
|
|
55
|
+
<tfoot>
|
|
56
|
+
<tr>
|
|
57
|
+
<td colspan="2" use:pageNavigation={pg}></td>
|
|
58
|
+
</tr>
|
|
59
|
+
</tfoot>
|
|
51
60
|
</table>
|
package/vite.config.mts
CHANGED
|
@@ -4,10 +4,13 @@ import { compression } from "vite-plugin-compression2";
|
|
|
4
4
|
import { extractFromPackage } from "npm-pkgbuild";
|
|
5
5
|
|
|
6
6
|
export default defineConfig(async ({ command, mode }) => {
|
|
7
|
-
const res = extractFromPackage(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
const res = extractFromPackage(
|
|
8
|
+
{
|
|
9
|
+
dir: new URL("./", import.meta.url).pathname,
|
|
10
|
+
mode
|
|
11
|
+
},
|
|
12
|
+
process.env
|
|
13
|
+
);
|
|
11
14
|
const first = await res.next();
|
|
12
15
|
const pkg = first.value;
|
|
13
16
|
const properties = pkg.properties;
|
|
@@ -20,7 +23,12 @@ export default defineConfig(async ({ command, mode }) => {
|
|
|
20
23
|
process.env["VITE_API"] = properties["http.api.path"];
|
|
21
24
|
process.env["VITE_API_WS"] = properties["wss.api"];
|
|
22
25
|
process.env["VITE_JOURNAL_ENDPOINT"] = properties["journal.endpoint"];
|
|
23
|
-
|
|
26
|
+
|
|
27
|
+
let backend = properties["http.origin"] + properties["http.api.path"];
|
|
28
|
+
const api = properties["http.api.path"];
|
|
29
|
+
let rewrite = path => path.substring(api.length);
|
|
30
|
+
|
|
31
|
+
console.log(backend,api)
|
|
24
32
|
return {
|
|
25
33
|
base,
|
|
26
34
|
root: "src",
|
|
@@ -33,11 +41,26 @@ export default defineConfig(async ({ command, mode }) => {
|
|
|
33
41
|
}),
|
|
34
42
|
compression({
|
|
35
43
|
algorithm: "brotliCompress",
|
|
36
|
-
exclude: [
|
|
44
|
+
exclude: [
|
|
45
|
+
/\.(br)$/,
|
|
46
|
+
/\.(gz)$/,
|
|
47
|
+
/\.(png)$/,
|
|
48
|
+
/\.(jpg)$/,
|
|
49
|
+
/\.(webp)$/,
|
|
50
|
+
/\.(svg)$/
|
|
51
|
+
],
|
|
37
52
|
threshold: 500
|
|
38
53
|
})
|
|
39
54
|
],
|
|
40
|
-
server: {
|
|
55
|
+
server: {
|
|
56
|
+
host: true,
|
|
57
|
+
proxy: {
|
|
58
|
+
[api]: {
|
|
59
|
+
target: backend,
|
|
60
|
+
rewrite
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
41
64
|
build: {
|
|
42
65
|
outDir: "../build",
|
|
43
66
|
emptyOutDir: true,
|