diff --git a/.dockerignore b/.dockerignore
index a9f7bc4..dbd5eff 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -1,6 +1,7 @@
# Exclude a bunch of stuff which can make the build context a larger than it needs to be
tests/
build/
+dist/
lib/
node_modules/
electron_app/
diff --git a/.gitignore b/.gitignore
index 4d29575..800f3a8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,7 @@
# production
/build
+/dist
# misc
.DS_Store
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..ef74429
--- /dev/null
+++ b/index.html
@@ -0,0 +1,149 @@
+
+
+
+
+
+
+
+
+
+
+
+ Synapse-Admin
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/package.json b/package.json
index 563d2c2..d9bec4a 100644
--- a/package.json
+++ b/package.json
@@ -13,12 +13,14 @@
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.5.2",
+ "@vitejs/plugin-react": "^4.0.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-prettier": "^5.1.3",
"jest-fetch-mock": "^3.0.3",
- "prettier": "^3.2.5"
+ "prettier": "^3.2.5",
+ "vite": "^4.0.0"
},
"dependencies": {
"@mui/icons-material": "^5.15.7",
@@ -31,12 +33,11 @@
"ra-language-italian": "^3.13.1",
"react": "^18.0.0",
"react-admin": "^4.16.9",
- "react-dom": "^18.0.0",
- "react-scripts": "^5.0.1"
+ "react-dom": "^18.0.0"
},
"scripts": {
- "start": "REACT_APP_VERSION=$(git describe --tags) react-scripts start",
- "build": "REACT_APP_VERSION=$(git describe --tags) react-scripts build",
+ "start": "REACT_APP_VERSION=$(git describe --tags) vite serve",
+ "build": "REACT_APP_VERSION=$(git describe --tags) vite build",
"fix:other": "yarn prettier --write",
"fix:code": "yarn test:lint --fix",
"fix": "yarn fix:code && yarn fix:other",
@@ -44,8 +45,7 @@
"test:code": "react-scripts test",
"test:lint": "eslint --ignore-path .gitignore --ext .js,.jsx .",
"test:style": "yarn prettier --list-different",
- "test": "yarn test:style && yarn test:lint && yarn test:code",
- "eject": "react-scripts eject"
+ "test": "yarn test:style && yarn test:lint && yarn test:code"
},
"eslintConfig": {
"extends": "react-app"
diff --git a/public/index.html b/public/index.html
index 2b90907..745d645 100644
--- a/public/index.html
+++ b/public/index.html
@@ -46,4 +46,4 @@