diff --git a/frontend/package-lock.json b/frontend/package-lock.json index e8197aa..9a8559d 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -9,6 +9,7 @@ "version": "0.0.0", "dependencies": { "react": "^19.1.0", + "react-beautiful-dnd": "^13.1.1", "react-dom": "^19.1.0" }, "devDependencies": { @@ -245,6 +246,14 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@babel/runtime": { + "version": "7.27.4", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.4.tgz", + "integrity": "sha512-t3yaEOuGu9NlIZ+hIeGbBjFtZT7j2cb2tg0fuaJKeGotchRjjLfrBA9Kwf8quhpP1EUuxModQg04q/mBwyg8uA==", + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/template": { "version": "7.27.2", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", @@ -1264,6 +1273,15 @@ "integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==", "dev": true }, + "node_modules/@types/hoist-non-react-statics": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.6.tgz", + "integrity": "sha512-lPByRJUer/iN/xa4qpyL0qmL11DqNW81iU/IG1S3uvRUq4oKagz8VCxZjiWkumgt66YT3vOdDgZ0o32sGKtCEw==", + "dependencies": { + "@types/react": "*", + "hoist-non-react-statics": "^3.3.0" + } + }, "node_modules/@types/json-schema": { "version": "7.0.15", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", @@ -1274,7 +1292,6 @@ "version": "19.1.6", "resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.6.tgz", "integrity": "sha512-JeG0rEWak0N6Itr6QUx+X60uQmN+5t3j9r/OVDtWzFXKaj6kD1BwJzOksD0FF6iWxZlbE1kB0q9vtnU2ekqa1Q==", - "dev": true, "dependencies": { "csstype": "^3.0.2" } @@ -1288,6 +1305,17 @@ "@types/react": "^19.0.0" } }, + "node_modules/@types/react-redux": { + "version": "7.1.34", + "resolved": "https://registry.npmjs.org/@types/react-redux/-/react-redux-7.1.34.tgz", + "integrity": "sha512-GdFaVjEbYv4Fthm2ZLvj1VSCedV7TqE5y1kNwnjSdBOTXuRSgowux6J8TAct15T3CKBr63UMk+2CO7ilRhyrAQ==", + "dependencies": { + "@types/hoist-non-react-statics": "^3.3.0", + "@types/react": "*", + "hoist-non-react-statics": "^3.3.0", + "redux": "^4.0.0" + } + }, "node_modules/@vitejs/plugin-react": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.5.0.tgz", @@ -1503,11 +1531,18 @@ "node": ">= 8" } }, + "node_modules/css-box-model": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/css-box-model/-/css-box-model-1.2.1.tgz", + "integrity": "sha512-a7Vr4Q/kd/aw96bnJG332W9V9LkJO69JRcaCYDUqjp6/z0w6VcZjgAcTbgFxEPfBgdnAwlh3iwu+hLopa+flJw==", + "dependencies": { + "tiny-invariant": "^1.0.6" + } + }, "node_modules/csstype": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", - "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", - "dev": true + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" }, "node_modules/debug": { "version": "4.4.1", @@ -1902,6 +1937,19 @@ "node": ">=8" } }, + "node_modules/hoist-non-react-statics": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", + "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", + "dependencies": { + "react-is": "^16.7.0" + } + }, + "node_modules/hoist-non-react-statics/node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" + }, "node_modules/ignore": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", @@ -1966,8 +2014,7 @@ "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "node_modules/js-yaml": { "version": "4.1.0", @@ -2066,6 +2113,17 @@ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, "node_modules/lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", @@ -2075,6 +2133,11 @@ "yallist": "^3.0.2" } }, + "node_modules/memoize-one": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-5.2.1.tgz", + "integrity": "sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==" + }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -2123,6 +2186,14 @@ "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", "dev": true }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/optionator": { "version": "0.9.4", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", @@ -2255,6 +2326,21 @@ "node": ">= 0.8.0" } }, + "node_modules/prop-types": { + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "dependencies": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + } + }, + "node_modules/prop-types/node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" + }, "node_modules/punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", @@ -2264,6 +2350,11 @@ "node": ">=6" } }, + "node_modules/raf-schd": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/raf-schd/-/raf-schd-4.0.3.tgz", + "integrity": "sha512-tQkJl2GRWh83ui2DiPTJz9wEiMN20syf+5oKfB03yYP7ioZcJwsIK8FjrtLwH1m7C7e+Tt2yYBlrOpdT+dyeIQ==" + }, "node_modules/react": { "version": "19.1.0", "resolved": "https://registry.npmjs.org/react/-/react-19.1.0.tgz", @@ -2272,6 +2363,25 @@ "node": ">=0.10.0" } }, + "node_modules/react-beautiful-dnd": { + "version": "13.1.1", + "resolved": "https://registry.npmjs.org/react-beautiful-dnd/-/react-beautiful-dnd-13.1.1.tgz", + "integrity": "sha512-0Lvs4tq2VcrEjEgDXHjT98r+63drkKEgqyxdA7qD3mvKwga6a5SscbdLPO2IExotU1jW8L0Ksdl0Cj2AF67nPQ==", + "deprecated": "react-beautiful-dnd is now deprecated. Context and options: https://github.com/atlassian/react-beautiful-dnd/issues/2672", + "dependencies": { + "@babel/runtime": "^7.9.2", + "css-box-model": "^1.2.0", + "memoize-one": "^5.1.1", + "raf-schd": "^4.0.2", + "react-redux": "^7.2.0", + "redux": "^4.0.4", + "use-memo-one": "^1.1.1" + }, + "peerDependencies": { + "react": "^16.8.5 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.8.5 || ^17.0.0 || ^18.0.0" + } + }, "node_modules/react-dom": { "version": "19.1.0", "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.1.0.tgz", @@ -2283,6 +2393,35 @@ "react": "^19.1.0" } }, + "node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" + }, + "node_modules/react-redux": { + "version": "7.2.9", + "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-7.2.9.tgz", + "integrity": "sha512-Gx4L3uM182jEEayZfRbI/G11ZpYdNAnBs70lFVMNdHJI76XYtR+7m0MN+eAs7UHBPhWXcnFPaS+9owSCJQHNpQ==", + "dependencies": { + "@babel/runtime": "^7.15.4", + "@types/react-redux": "^7.1.20", + "hoist-non-react-statics": "^3.3.2", + "loose-envify": "^1.4.0", + "prop-types": "^15.7.2", + "react-is": "^17.0.2" + }, + "peerDependencies": { + "react": "^16.8.3 || ^17 || ^18" + }, + "peerDependenciesMeta": { + "react-dom": { + "optional": true + }, + "react-native": { + "optional": true + } + } + }, "node_modules/react-refresh": { "version": "0.17.0", "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz", @@ -2292,6 +2431,14 @@ "node": ">=0.10.0" } }, + "node_modules/redux": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/redux/-/redux-4.2.1.tgz", + "integrity": "sha512-LAUYz4lc+Do8/g7aeRa8JkyDErK6ekstQaqWQrNRW//MY1TvCEpMtpTWvlQ+FPbWCx+Xixu/6SHt5N0HR+SB4w==", + "dependencies": { + "@babel/runtime": "^7.9.2" + } + }, "node_modules/resolve-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", @@ -2408,6 +2555,11 @@ "node": ">=8" } }, + "node_modules/tiny-invariant": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz", + "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==" + }, "node_modules/tinyglobby": { "version": "0.2.14", "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz", @@ -2475,6 +2627,14 @@ "punycode": "^2.1.0" } }, + "node_modules/use-memo-one": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz", + "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, "node_modules/vite": { "version": "6.3.5", "resolved": "https://registry.npmjs.org/vite/-/vite-6.3.5.tgz", diff --git a/frontend/package.json b/frontend/package.json index 89b8d1b..9a6dfe2 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -11,6 +11,7 @@ }, "dependencies": { "react": "^19.1.0", + "react-beautiful-dnd": "^13.1.1", "react-dom": "^19.1.0" }, "devDependencies": { diff --git a/frontend/src/App.css b/frontend/src/App.css index 508097c..9e36f1e 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -1,24 +1,19 @@ body { margin: 0; padding: 0; - height: 100%; - width: 100%; background-color: #121212; font-family: 'Segoe UI', sans-serif; - display: flex; + color: white; justify-content: center; - align-items: flex-start; } .App { display: flex; flex-direction: column; align-items: center; - justify-content: start; - min-height: 100vh; padding: 2rem; + min-height: 100vh; text-align: center; - max-width: 1000px; } .main-title { diff --git a/frontend/src/style/AppGrid.css b/frontend/src/style/AppGrid.css index 17c5850..9c18bdb 100644 --- a/frontend/src/style/AppGrid.css +++ b/frontend/src/style/AppGrid.css @@ -1,9 +1,7 @@ .app-grid { display: grid; - grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); + grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); max-width: 1000px; - margin: 0 auto; - gap: 1rem; + gap: 1.5rem; justify-items: center; - padding: 1rem; } diff --git a/old/frontend/.gitignore b/old/frontend/.gitignore deleted file mode 100644 index 4d29575..0000000 --- a/old/frontend/.gitignore +++ /dev/null @@ -1,23 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# production -/build - -# misc -.DS_Store -.env.local -.env.development.local -.env.test.local -.env.production.local - -npm-debug.log* -yarn-debug.log* -yarn-error.log* diff --git a/old/frontend/.woodpecker.yaml b/old/frontend/.woodpecker.yaml deleted file mode 100644 index 448c63f..0000000 --- a/old/frontend/.woodpecker.yaml +++ /dev/null @@ -1,26 +0,0 @@ -when: - event: - - push - branch: - - master - -steps: - - name: tag - image: alpine - commands: - - export TAG_DATE=$(date +%Y%m%d) - - export SHORT_SHA=${CI_COMMIT_SHA:0:7} - - echo "TAGS=latest,$TAG_DATE-$SHORT_SHA" > .tags.env - - - name: docker - image: woodpeckerci/plugin-docker - settings: - repo: harbor.dvirlabs.com/my-apps/navix-frontend - tag_file: .tags.env - dockerfile: Dockerfile - context: . - registry: harbor.dvirlabs.com - username: - from_secret: harbor_user - password: - from_secret: harbor_password diff --git a/old/frontend/Dockerfile b/old/frontend/Dockerfile deleted file mode 100644 index 5bb2461..0000000 --- a/old/frontend/Dockerfile +++ /dev/null @@ -1,8 +0,0 @@ -FROM node:18-alpine as build -WORKDIR /app -COPY . . -RUN npm install && npm run build - -FROM nginx:alpine -COPY --from=build /app/build /usr/share/nginx/html -EXPOSE 80 diff --git a/old/frontend/README.md b/old/frontend/README.md deleted file mode 100644 index 58beeac..0000000 --- a/old/frontend/README.md +++ /dev/null @@ -1,70 +0,0 @@ -# Getting Started with Create React App - -This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). - -## Available Scripts - -In the project directory, you can run: - -### `npm start` - -Runs the app in the development mode.\ -Open [http://localhost:3000](http://localhost:3000) to view it in your browser. - -The page will reload when you make changes.\ -You may also see any lint errors in the console. - -### `npm test` - -Launches the test runner in the interactive watch mode.\ -See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. - -### `npm run build` - -Builds the app for production to the `build` folder.\ -It correctly bundles React in production mode and optimizes the build for the best performance. - -The build is minified and the filenames include the hashes.\ -Your app is ready to be deployed! - -See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. - -### `npm run eject` - -**Note: this is a one-way operation. Once you `eject`, you can't go back!** - -If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. - -Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own. - -You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it. - -## Learn More - -You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). - -To learn React, check out the [React documentation](https://reactjs.org/). - -### Code Splitting - -This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) - -### Analyzing the Bundle Size - -This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) - -### Making a Progressive Web App - -This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) - -### Advanced Configuration - -This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) - -### Deployment - -This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) - -### `npm run build` fails to minify - -This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) diff --git a/old/frontend/package.json b/old/frontend/package.json deleted file mode 100644 index 9f2892b..0000000 --- a/old/frontend/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "frontend", - "version": "0.1.0", - "private": true, - "dependencies": { - "@testing-library/dom": "^10.4.0", - "@testing-library/jest-dom": "^6.6.3", - "@testing-library/react": "^16.3.0", - "@testing-library/user-event": "^13.5.0", - "axios": "^1.9.0", - "react": "^19.1.0", - "react-beautiful-dnd": "^13.1.1", - "react-dom": "^19.1.0", - "react-scripts": "5.0.1", - "web-vitals": "^2.1.4" - }, - "scripts": { - "start": "react-scripts start", - "build": "react-scripts build", - "test": "react-scripts test", - "eject": "react-scripts eject" - }, - "eslintConfig": { - "extends": [ - "react-app", - "react-app/jest" - ] - }, - "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] - } -} diff --git a/old/frontend/public/favicon.ico b/old/frontend/public/favicon.ico deleted file mode 100644 index a11777c..0000000 Binary files a/old/frontend/public/favicon.ico and /dev/null differ diff --git a/old/frontend/public/index.html b/old/frontend/public/index.html deleted file mode 100644 index aa069f2..0000000 --- a/old/frontend/public/index.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - React App - - - -
- - - diff --git a/old/frontend/public/logo192.png b/old/frontend/public/logo192.png deleted file mode 100644 index fc44b0a..0000000 Binary files a/old/frontend/public/logo192.png and /dev/null differ diff --git a/old/frontend/public/logo512.png b/old/frontend/public/logo512.png deleted file mode 100644 index a4e47a6..0000000 Binary files a/old/frontend/public/logo512.png and /dev/null differ diff --git a/old/frontend/public/manifest.json b/old/frontend/public/manifest.json deleted file mode 100644 index 080d6c7..0000000 --- a/old/frontend/public/manifest.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "short_name": "React App", - "name": "Create React App Sample", - "icons": [ - { - "src": "favicon.ico", - "sizes": "64x64 32x32 24x24 16x16", - "type": "image/x-icon" - }, - { - "src": "logo192.png", - "type": "image/png", - "sizes": "192x192" - }, - { - "src": "logo512.png", - "type": "image/png", - "sizes": "512x512" - } - ], - "start_url": ".", - "display": "standalone", - "theme_color": "#000000", - "background_color": "#ffffff" -} diff --git a/old/frontend/public/robots.txt b/old/frontend/public/robots.txt deleted file mode 100644 index e9e57dc..0000000 --- a/old/frontend/public/robots.txt +++ /dev/null @@ -1,3 +0,0 @@ -# https://www.robotstxt.org/robotstxt.html -User-agent: * -Disallow: diff --git a/old/frontend/src/App.css b/old/frontend/src/App.css deleted file mode 100644 index 40048ce..0000000 --- a/old/frontend/src/App.css +++ /dev/null @@ -1,13 +0,0 @@ -.App { - text-align: center; - padding: 1rem; - background-color: #121212; - min-height: 100vh; - color: white; - font-family: sans-serif; -} - -.main-title { - font-size: 2.5rem; - margin-bottom: 5rem; -} diff --git a/old/frontend/src/App.js b/old/frontend/src/App.js deleted file mode 100644 index 8bf8874..0000000 --- a/old/frontend/src/App.js +++ /dev/null @@ -1,25 +0,0 @@ -import React, { useEffect, useState } from "react"; -import { fetchApps, saveAppOrder } from "./services/apps"; -import AppGrid from "./components/AppGrid"; -import "./App.css"; - -function App() { - const [apps, setApps] = useState([]); - - useEffect(() => { - fetchApps(setApps); - }, []); - - const handleReorder = (newOrder) => { - saveAppOrder(newOrder, setApps); - }; - - return ( -
-

🔷 Navix

- -
- ); -} - -export default App; \ No newline at end of file diff --git a/old/frontend/src/App.test.js b/old/frontend/src/App.test.js deleted file mode 100644 index 1f03afe..0000000 --- a/old/frontend/src/App.test.js +++ /dev/null @@ -1,8 +0,0 @@ -import { render, screen } from '@testing-library/react'; -import App from './App'; - -test('renders learn react link', () => { - render(); - const linkElement = screen.getByText(/learn react/i); - expect(linkElement).toBeInTheDocument(); -}); diff --git a/old/frontend/src/components/AppCard.js b/old/frontend/src/components/AppCard.js deleted file mode 100644 index 0c1b0fe..0000000 --- a/old/frontend/src/components/AppCard.js +++ /dev/null @@ -1,14 +0,0 @@ -import React from 'react'; -import '../style/AppCard.css'; - -function AppCard({ name, icon, description, url }) { - return ( - - {name} -

{name}

-

{description}

-
- ); -} - -export default AppCard; diff --git a/old/frontend/src/components/AppGrid.js b/old/frontend/src/components/AppGrid.js deleted file mode 100644 index 5531863..0000000 --- a/old/frontend/src/components/AppGrid.js +++ /dev/null @@ -1,53 +0,0 @@ -import React from "react"; -import { DragDropContext, Droppable, Draggable } from "react-beautiful-dnd"; -import AppCard from "./AppCard"; -import "../style/AppGrid.css"; - -function AppGrid({ apps, onReorder }) { - const handleDragEnd = (result) => { - if (!result.destination) return; - - const reordered = Array.from(apps); - const [removed] = reordered.splice(result.source.index, 1); - reordered.splice(result.destination.index, 0, removed); - - onReorder(reordered); - }; - - return ( - - - {(provided) => ( -
- {apps.map((app, index) => ( - - {(provided) => ( -
- -
- )} -
- ))} - {provided.placeholder} -
- )} -
-
- ); -} - -export default AppGrid; diff --git a/old/frontend/src/index.css b/old/frontend/src/index.css deleted file mode 100644 index ec2585e..0000000 --- a/old/frontend/src/index.css +++ /dev/null @@ -1,13 +0,0 @@ -body { - margin: 0; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', - 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', - sans-serif; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -code { - font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', - monospace; -} diff --git a/old/frontend/src/index.js b/old/frontend/src/index.js deleted file mode 100644 index d563c0f..0000000 --- a/old/frontend/src/index.js +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react'; -import ReactDOM from 'react-dom/client'; -import './index.css'; -import App from './App'; -import reportWebVitals from './reportWebVitals'; - -const root = ReactDOM.createRoot(document.getElementById('root')); -root.render( - - - -); - -// If you want to start measuring performance in your app, pass a function -// to log results (for example: reportWebVitals(console.log)) -// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals -reportWebVitals(); diff --git a/old/frontend/src/logo.svg b/old/frontend/src/logo.svg deleted file mode 100644 index 9dfc1c0..0000000 --- a/old/frontend/src/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/old/frontend/src/reportWebVitals.js b/old/frontend/src/reportWebVitals.js deleted file mode 100644 index 5253d3a..0000000 --- a/old/frontend/src/reportWebVitals.js +++ /dev/null @@ -1,13 +0,0 @@ -const reportWebVitals = onPerfEntry => { - if (onPerfEntry && onPerfEntry instanceof Function) { - import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { - getCLS(onPerfEntry); - getFID(onPerfEntry); - getFCP(onPerfEntry); - getLCP(onPerfEntry); - getTTFB(onPerfEntry); - }); - } -}; - -export default reportWebVitals; diff --git a/old/frontend/src/services/apps.js b/old/frontend/src/services/apps.js deleted file mode 100644 index 7adc1d5..0000000 --- a/old/frontend/src/services/apps.js +++ /dev/null @@ -1,21 +0,0 @@ -import axios from "axios"; - -const BASE_URL = "http://localhost:8000"; - -export const fetchApps = async (setApps) => { - try { - const res = await axios.get(`${BASE_URL}/apps`); - setApps(res.data); - } catch (err) { - console.error("Failed to fetch apps:", err); - } -}; - -export const saveAppOrder = async (newOrder, setApps) => { - try { - await axios.put(`${BASE_URL}/apps`, newOrder); - setApps(newOrder); - } catch (err) { - console.error("Failed to save app order:", err); - } -}; diff --git a/old/frontend/src/setupTests.js b/old/frontend/src/setupTests.js deleted file mode 100644 index 8f2609b..0000000 --- a/old/frontend/src/setupTests.js +++ /dev/null @@ -1,5 +0,0 @@ -// jest-dom adds custom jest matchers for asserting on DOM nodes. -// allows you to do things like: -// expect(element).toHaveTextContent(/react/i) -// learn more: https://github.com/testing-library/jest-dom -import '@testing-library/jest-dom'; diff --git a/old/frontend/src/style/AppCard.css b/old/frontend/src/style/AppCard.css deleted file mode 100644 index 375940c..0000000 --- a/old/frontend/src/style/AppCard.css +++ /dev/null @@ -1,26 +0,0 @@ -.app-card { - background-color: #1e1e1e; - color: #fff; - padding: 1.3rem; - border-radius: 12px; - text-align: center; - text-decoration: none; - width: 150px; - height: 150px; - transition: transform 0.2s ease; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; -} - -.app-card:hover { - transform: scale(1.05); - background-color: #2a2a2a; -} - -.app-icon { - width: 40px; - height: 40px; - margin-bottom: 0.5rem; -} diff --git a/old/frontend/src/style/AppGrid.css b/old/frontend/src/style/AppGrid.css deleted file mode 100644 index b5db9d8..0000000 --- a/old/frontend/src/style/AppGrid.css +++ /dev/null @@ -1,14 +0,0 @@ -.app-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); - max-width: 1000px; - margin: 0 auto; - gap: 1rem; - justify-items: center; - padding: 1rem; -} - -.draggable-wrapper { - display: flex; - justify-content: center; -} \ No newline at end of file