From 8ddaeea481a0e9edcf9f1d00c7b40a9486dedd3e Mon Sep 17 00:00:00 2001 From: Mahesh Bandara Wijerathna Date: Thu, 18 Apr 2024 17:43:34 +0530 Subject: [PATCH] Move the GUI source into `frontend` directory --- .env | 1 - frontend/.env | 1 + .env.production => frontend/.env.production | 0 index.html => frontend/index.html | 0 {public => frontend/public}/favicon.ico | Bin .../src}/assets/images/discord-button.svg | 0 {src => frontend/src}/assets/images/ko-fi.png | Bin {src => frontend/src}/assets/images/paypal.png | Bin .../src}/assets/images/telegram-button.svg | 0 {src => frontend/src}/assets/images/ufcr-logo.svg | 0 {src => frontend/src}/assets/styles/app.scss | 0 {src => frontend/src}/assets/styles/common.scss | 0 {src => frontend/src}/assets/styles/overrides.scss | 0 {src => frontend/src}/components/BlockVODCard.vue | 0 {src => frontend/src}/components/ModBinDL.vue | 0 {src => frontend/src}/components/ModConfig.vue | 0 {src => frontend/src}/components/ModMsgBox.vue | 0 {src => frontend/src}/components/ModSearchHelp.vue | 0 {src => frontend/src}/components/ModSupport.vue | 0 {src => frontend/src}/components/ModVODConfirm.vue | 0 {src => frontend/src}/components/ModViewFormats.vue | 0 {src => frontend/src}/components/Overlay.vue | 0 {src => frontend/src}/components/VAnchor.vue | 0 {src => frontend/src}/components/VImgSkeleton.vue | 0 {src => frontend/src}/components/VODCard.vue | 0 {src => frontend/src}/components/VProgressBar.vue | 0 {src => frontend/src}/main.js | 0 {src => frontend/src}/modules/ws-util.js | 0 {src => frontend/src}/pages/Landing.vue | 0 {src => frontend/src}/store/index.js | 0 {src => frontend/src}/store/modBinDL.js | 0 {src => frontend/src}/store/modViewFormats.js | 0 vite.config.mjs | 7 ++++++- 33 files changed, 7 insertions(+), 2 deletions(-) delete mode 100644 .env create mode 100644 frontend/.env rename .env.production => frontend/.env.production (100%) rename index.html => frontend/index.html (100%) rename {public => frontend/public}/favicon.ico (100%) rename {src => frontend/src}/assets/images/discord-button.svg (100%) rename {src => frontend/src}/assets/images/ko-fi.png (100%) rename {src => frontend/src}/assets/images/paypal.png (100%) rename {src => frontend/src}/assets/images/telegram-button.svg (100%) rename {src => frontend/src}/assets/images/ufcr-logo.svg (100%) rename {src => frontend/src}/assets/styles/app.scss (100%) rename {src => frontend/src}/assets/styles/common.scss (100%) rename {src => frontend/src}/assets/styles/overrides.scss (100%) rename {src => frontend/src}/components/BlockVODCard.vue (100%) rename {src => frontend/src}/components/ModBinDL.vue (100%) rename {src => frontend/src}/components/ModConfig.vue (100%) rename {src => frontend/src}/components/ModMsgBox.vue (100%) rename {src => frontend/src}/components/ModSearchHelp.vue (100%) rename {src => frontend/src}/components/ModSupport.vue (100%) rename {src => frontend/src}/components/ModVODConfirm.vue (100%) rename {src => frontend/src}/components/ModViewFormats.vue (100%) rename {src => frontend/src}/components/Overlay.vue (100%) rename {src => frontend/src}/components/VAnchor.vue (100%) rename {src => frontend/src}/components/VImgSkeleton.vue (100%) rename {src => frontend/src}/components/VODCard.vue (100%) rename {src => frontend/src}/components/VProgressBar.vue (100%) rename {src => frontend/src}/main.js (100%) rename {src => frontend/src}/modules/ws-util.js (100%) rename {src => frontend/src}/pages/Landing.vue (100%) rename {src => frontend/src}/store/index.js (100%) rename {src => frontend/src}/store/modBinDL.js (100%) rename {src => frontend/src}/store/modViewFormats.js (100%) diff --git a/.env b/.env deleted file mode 100644 index 1fd3707..0000000 --- a/.env +++ /dev/null @@ -1 +0,0 @@ -VITE_WS_URI= diff --git a/frontend/.env b/frontend/.env new file mode 100644 index 0000000..f870d7c --- /dev/null +++ b/frontend/.env @@ -0,0 +1 @@ +VITE_WS_URI=http://localhost:8383/ diff --git a/.env.production b/frontend/.env.production similarity index 100% rename from .env.production rename to frontend/.env.production diff --git a/index.html b/frontend/index.html similarity index 100% rename from index.html rename to frontend/index.html diff --git a/public/favicon.ico b/frontend/public/favicon.ico similarity index 100% rename from public/favicon.ico rename to frontend/public/favicon.ico diff --git a/src/assets/images/discord-button.svg b/frontend/src/assets/images/discord-button.svg similarity index 100% rename from src/assets/images/discord-button.svg rename to frontend/src/assets/images/discord-button.svg diff --git a/src/assets/images/ko-fi.png b/frontend/src/assets/images/ko-fi.png similarity index 100% rename from src/assets/images/ko-fi.png rename to frontend/src/assets/images/ko-fi.png diff --git a/src/assets/images/paypal.png b/frontend/src/assets/images/paypal.png similarity index 100% rename from src/assets/images/paypal.png rename to frontend/src/assets/images/paypal.png diff --git a/src/assets/images/telegram-button.svg b/frontend/src/assets/images/telegram-button.svg similarity index 100% rename from src/assets/images/telegram-button.svg rename to frontend/src/assets/images/telegram-button.svg diff --git a/src/assets/images/ufcr-logo.svg b/frontend/src/assets/images/ufcr-logo.svg similarity index 100% rename from src/assets/images/ufcr-logo.svg rename to frontend/src/assets/images/ufcr-logo.svg diff --git a/src/assets/styles/app.scss b/frontend/src/assets/styles/app.scss similarity index 100% rename from src/assets/styles/app.scss rename to frontend/src/assets/styles/app.scss diff --git a/src/assets/styles/common.scss b/frontend/src/assets/styles/common.scss similarity index 100% rename from src/assets/styles/common.scss rename to frontend/src/assets/styles/common.scss diff --git a/src/assets/styles/overrides.scss b/frontend/src/assets/styles/overrides.scss similarity index 100% rename from src/assets/styles/overrides.scss rename to frontend/src/assets/styles/overrides.scss diff --git a/src/components/BlockVODCard.vue b/frontend/src/components/BlockVODCard.vue similarity index 100% rename from src/components/BlockVODCard.vue rename to frontend/src/components/BlockVODCard.vue diff --git a/src/components/ModBinDL.vue b/frontend/src/components/ModBinDL.vue similarity index 100% rename from src/components/ModBinDL.vue rename to frontend/src/components/ModBinDL.vue diff --git a/src/components/ModConfig.vue b/frontend/src/components/ModConfig.vue similarity index 100% rename from src/components/ModConfig.vue rename to frontend/src/components/ModConfig.vue diff --git a/src/components/ModMsgBox.vue b/frontend/src/components/ModMsgBox.vue similarity index 100% rename from src/components/ModMsgBox.vue rename to frontend/src/components/ModMsgBox.vue diff --git a/src/components/ModSearchHelp.vue b/frontend/src/components/ModSearchHelp.vue similarity index 100% rename from src/components/ModSearchHelp.vue rename to frontend/src/components/ModSearchHelp.vue diff --git a/src/components/ModSupport.vue b/frontend/src/components/ModSupport.vue similarity index 100% rename from src/components/ModSupport.vue rename to frontend/src/components/ModSupport.vue diff --git a/src/components/ModVODConfirm.vue b/frontend/src/components/ModVODConfirm.vue similarity index 100% rename from src/components/ModVODConfirm.vue rename to frontend/src/components/ModVODConfirm.vue diff --git a/src/components/ModViewFormats.vue b/frontend/src/components/ModViewFormats.vue similarity index 100% rename from src/components/ModViewFormats.vue rename to frontend/src/components/ModViewFormats.vue diff --git a/src/components/Overlay.vue b/frontend/src/components/Overlay.vue similarity index 100% rename from src/components/Overlay.vue rename to frontend/src/components/Overlay.vue diff --git a/src/components/VAnchor.vue b/frontend/src/components/VAnchor.vue similarity index 100% rename from src/components/VAnchor.vue rename to frontend/src/components/VAnchor.vue diff --git a/src/components/VImgSkeleton.vue b/frontend/src/components/VImgSkeleton.vue similarity index 100% rename from src/components/VImgSkeleton.vue rename to frontend/src/components/VImgSkeleton.vue diff --git a/src/components/VODCard.vue b/frontend/src/components/VODCard.vue similarity index 100% rename from src/components/VODCard.vue rename to frontend/src/components/VODCard.vue diff --git a/src/components/VProgressBar.vue b/frontend/src/components/VProgressBar.vue similarity index 100% rename from src/components/VProgressBar.vue rename to frontend/src/components/VProgressBar.vue diff --git a/src/main.js b/frontend/src/main.js similarity index 100% rename from src/main.js rename to frontend/src/main.js diff --git a/src/modules/ws-util.js b/frontend/src/modules/ws-util.js similarity index 100% rename from src/modules/ws-util.js rename to frontend/src/modules/ws-util.js diff --git a/src/pages/Landing.vue b/frontend/src/pages/Landing.vue similarity index 100% rename from src/pages/Landing.vue rename to frontend/src/pages/Landing.vue diff --git a/src/store/index.js b/frontend/src/store/index.js similarity index 100% rename from src/store/index.js rename to frontend/src/store/index.js diff --git a/src/store/modBinDL.js b/frontend/src/store/modBinDL.js similarity index 100% rename from src/store/modBinDL.js rename to frontend/src/store/modBinDL.js diff --git a/src/store/modViewFormats.js b/frontend/src/store/modViewFormats.js similarity index 100% rename from src/store/modViewFormats.js rename to frontend/src/store/modViewFormats.js diff --git a/vite.config.mjs b/vite.config.mjs index 95f0d3c..e11b4d8 100644 --- a/vite.config.mjs +++ b/vite.config.mjs @@ -6,6 +6,11 @@ import vue from '@vitejs/plugin-vue'; // https://vitejs.dev/config/ export default defineConfig(async ({command}) => ({ + root: path.resolve(__dirname, 'frontend'), + build: { + outDir: path.resolve(__dirname, 'dist'), + emptyOutDir: true + }, plugins: [ vue(), { @@ -23,7 +28,7 @@ export default defineConfig(async ({command}) => ({ ], resolve: { alias: { - '@': path.resolve(__dirname, './src') + '@': path.resolve(__dirname, 'frontend', 'src') } }, server: {