Skip to content

Commit 7106e72

Browse files
author
Marco
committed
saving
1 parent f4757af commit 7106e72

File tree

25 files changed

+17286
-240
lines changed

25 files changed

+17286
-240
lines changed

components/clp-package-utils/clp_package_utils/scripts/start_clp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ def start_webui(
863863
get_clp_home() / "var" / "www" / "webui" / "client" / "settings.json"
864864
)
865865
server_settings_json_path = (
866-
get_clp_home() / "var" / "www" / "webui" / "server" / "dist" / "server" / "settings.json"
866+
get_clp_home() / "var" / "www" / "webui" / "server" / "dist" / "settings.json"
867867
)
868868

869869
validate_webui_config(clp_config, client_settings_json_path, server_settings_json_path)
@@ -978,7 +978,7 @@ def start_webui(
978978

979979
node_cmd = [
980980
str(CONTAINER_CLP_HOME / "bin" / "node-22"),
981-
str(container_webui_dir / "server" / "dist" / "server" / "src" / "main.js"),
981+
str(container_webui_dir / "server" / "dist" / "src" / "main.js"),
982982
]
983983
cmd = container_cmd + node_cmd
984984
subprocess.run(cmd, stdout=subprocess.DEVNULL, check=True)

components/webui/client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"@sinclair/typebox": "^0.34.25",
2222
"@tanstack/react-query": "^5.81.5",
2323
"@tanstack/react-query-devtools": "^5.81.5",
24+
"@webui/common": "^0.1.0",
2425
"antd": "^5.24.5",
2526
"axios": "^1.7.9",
2627
"chart.js": "^4.4.9",

components/webui/client/public/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"ClpStorageEngine": "clp",
3-
"ClpQueryEngine": "native",
3+
"ClpQueryEngine": "presto",
44
"MongoDbSearchResultsMetadataCollectionName": "results-metadata",
55
"SqlDbClpArchivesTableName": "clp_archives",
66
"SqlDbClpDatasetsTableName": "clp_datasets",

components/webui/client/src/api/socket/MongoSocketCollection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
ClientToServerEvents,
33
ServerToClientEvents,
4-
} from "@common/index.js";
4+
} from "@webui/common";
55
import {Socket} from "socket.io-client";
66

77
import {MongoSocketCursor} from "./MongoSocketCursor.js";

components/webui/client/src/api/socket/MongoSocketCursor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
QueryId,
44
Response,
55
ServerToClientEvents,
6-
} from "@common/index.js";
6+
} from "@webui/common";
77
import {Socket} from "socket.io-client";
88

99
import {Nullable} from "../../typings/common";

components/webui/client/src/api/socket/SocketSingleton.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
ClientToServerEvents,
33
ServerToClientEvents,
4-
} from "@common/index.js";
4+
} from "@webui/common";
55
import {
66
io,
77
Socket,

components/webui/client/src/pages/SearchPage/SearchState/useResultsMetadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {SearchResultsMetadataDocument} from "@common/index.js";
1+
import {SearchResultsMetadataDocument} from "@webui/common";
22

33
import MongoSocketCollection from "../../../api/socket/MongoSocketCollection";
44
import {useCursor} from "../../../api/socket/useCursor";

components/webui/client/src/pages/SearchPage/SearchState/useUpdateStateWithMetadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {useEffect} from "react";
22

3-
import {SEARCH_SIGNAL} from "@common/index.js";
3+
import {SEARCH_SIGNAL} from "@webui/common";
44

55
import useSearchStore from "./index";
66
import {SEARCH_UI_STATE} from "./typings";

components/webui/client/tsconfig/tsconfig.app.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"extends": "./tsconfig.base.json",
33
"include": [
44
"../src",
5-
"../common/**/*"
65
],
76

87
"compilerOptions": {
@@ -17,9 +16,6 @@
1716
"tsBuildInfoFile": "../node_modules/.tmp/tsconfig.app.tsbuildinfo",
1817
"useDefineForClassFields": true,
1918
"baseUrl": "../",
20-
"paths": {
21-
"@common/*": ["../common/*"], // Map imports from "@common/*" to the shared folder
22-
},
2319

2420
/* Bundler mode */
2521
"isolatedModules": true,

components/webui/client/vite.config.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import path from "node:path";
2-
31
import react from "@vitejs/plugin-react";
42
import {defineConfig} from "vite";
53

@@ -14,11 +12,6 @@ export default defineConfig({
1412
react(),
1513
],
1614
publicDir: "public",
17-
resolve: {
18-
alias: {
19-
"@common": path.resolve(__dirname, "../common"),
20-
},
21-
},
2215
server: {
2316
port: 8080,
2417
proxy: {
@@ -34,9 +27,5 @@ export default defineConfig({
3427
ws: true,
3528
},
3629
},
37-
fs: {
38-
// allow serving files from one level up (common folder)
39-
allow: [".."],
40-
},
4130
},
4231
});

0 commit comments

Comments
 (0)