From 8fcb9463797bf920b4d6ec6aa31b8bfe201a61f4 Mon Sep 17 00:00:00 2001 From: Phil Date: Wed, 9 Apr 2025 20:31:38 +0200 Subject: [PATCH 1/2] [GIT] Added gitignore,gitattributes for Frontend --- .gitattributes | 1 + .gitignore | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/.gitignore b/.gitignore index ddb179e..fd5937a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,29 @@ +# Frontend gitignore +frontend/logs +frontend/*.log +frontend/npm-debug.log* +frontend/yarn-debug.log* +frontend/yarn-error.log* +frontend/pnpm-debug.log* +frontend/lerna-debug.log* +frontend/node_modules +frontend/.DS_Store +frontend/dist +frontend/dist-ssr +frontend/coverage +frontend/*.local +frontend/cypress/videos/ +frontend/cypress/screenshots/ +frontend/.idea +frontend/*.suo +frontend/*.ntvs* +frontend/*.njsproj +frontend/*.sln +frontend/*.sw? +frontend/*.tsbuildinfo +frontend/.vscode +frontend/package-lock.json + # Binaries for programs and plugins *.exe *.exe~ -- 2.45.3 From f8c2300b19b1262cda85e077fc0631f0876da7ba Mon Sep 17 00:00:00 2001 From: Phil Date: Wed, 9 Apr 2025 20:32:39 +0200 Subject: [PATCH 2/2] [FRONTEND] Added boilerplate with daisyui / tailwijndcss --- frontend/.prettierrc.json | 6 ++++++ frontend/index.html | 13 +++++++++++++ frontend/jsconfig.json | 8 ++++++++ frontend/package.json | 25 +++++++++++++++++++++++++ frontend/public/favicon.ico | Bin 0 -> 4286 bytes frontend/src/App.vue | 14 ++++++++++++++ frontend/src/assets/main.css | 2 ++ frontend/src/components/Navbar.vue | 3 +++ frontend/src/main.js | 11 +++++++++++ frontend/src/router/index.js | 20 ++++++++++++++++++++ frontend/src/views/AboutView.vue | 3 +++ frontend/src/views/HomeView.vue | 9 +++++++++ frontend/vite.config.js | 20 ++++++++++++++++++++ 13 files changed, 134 insertions(+) create mode 100644 frontend/.prettierrc.json create mode 100644 frontend/index.html create mode 100644 frontend/jsconfig.json create mode 100644 frontend/package.json create mode 100644 frontend/public/favicon.ico create mode 100644 frontend/src/App.vue create mode 100644 frontend/src/assets/main.css create mode 100644 frontend/src/components/Navbar.vue create mode 100644 frontend/src/main.js create mode 100644 frontend/src/router/index.js create mode 100644 frontend/src/views/AboutView.vue create mode 100644 frontend/src/views/HomeView.vue create mode 100644 frontend/vite.config.js diff --git a/frontend/.prettierrc.json b/frontend/.prettierrc.json new file mode 100644 index 0000000..29a2402 --- /dev/null +++ b/frontend/.prettierrc.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://json.schemastore.org/prettierrc", + "semi": false, + "singleQuote": true, + "printWidth": 100 +} diff --git a/frontend/index.html b/frontend/index.html new file mode 100644 index 0000000..0b1cda6 --- /dev/null +++ b/frontend/index.html @@ -0,0 +1,13 @@ + + + + + + + Goshorly + + +
+ + + diff --git a/frontend/jsconfig.json b/frontend/jsconfig.json new file mode 100644 index 0000000..5a1f2d2 --- /dev/null +++ b/frontend/jsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "paths": { + "@/*": ["./src/*"] + } + }, + "exclude": ["node_modules", "dist"] +} diff --git a/frontend/package.json b/frontend/package.json new file mode 100644 index 0000000..b32fd91 --- /dev/null +++ b/frontend/package.json @@ -0,0 +1,25 @@ +{ + "name": "frontend", + "version": "0.0.0", + "private": true, + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "preview": "vite preview", + "format": "prettier --write src/" + }, + "dependencies": { + "@tailwindcss/vite": "^4.1.3", + "tailwindcss": "^4.1.3", + "vue": "^3.5.13", + "vue-router": "^4.5.0" + }, + "devDependencies": { + "@vitejs/plugin-vue": "^5.2.3", + "daisyui": "^5.0.17", + "prettier": "3.5.3", + "vite": "^6.2.4", + "vite-plugin-vue-devtools": "^7.7.2" + } +} diff --git a/frontend/public/favicon.ico b/frontend/public/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..df36fcfb72584e00488330b560ebcf34a41c64c2 GIT binary patch literal 4286 zcmds*O-Phc6o&64GDVCEQHxsW(p4>LW*W<827=Unuo8sGpRux(DN@jWP-e29Wl%wj zY84_aq9}^Am9-cWTD5GGEo#+5Fi2wX_P*bo+xO!)p*7B;iKlbFd(U~_d(U?#hLj56 zPhFkj-|A6~Qk#@g^#D^U0XT1cu=c-vu1+SElX9NR;kzAUV(q0|dl0|%h|dI$%VICy zJnu2^L*Te9JrJMGh%-P79CL0}dq92RGU6gI{v2~|)p}sG5x0U*z<8U;Ij*hB9z?ei z@g6Xq-pDoPl=MANPiR7%172VA%r)kevtV-_5H*QJKFmd;8yA$98zCxBZYXTNZ#QFk2(TX0;Y2dt&WitL#$96|gJY=3xX zpCoi|YNzgO3R`f@IiEeSmKrPSf#h#Qd<$%Ej^RIeeYfsxhPMOG`S`Pz8q``=511zm zAm)MX5AV^5xIWPyEu7u>qYs?pn$I4nL9J!=K=SGlKLXpE<5x+2cDTXq?brj?n6sp= zphe9;_JHf40^9~}9i08r{XM$7HB!`{Ys~TK0kx<}ZQng`UPvH*11|q7&l9?@FQz;8 zx!=3<4seY*%=OlbCbcae?5^V_}*K>Uo6ZWV8mTyE^B=DKy7-sdLYkR5Z?paTgK-zyIkKjIcpyO z{+uIt&YSa_$QnN_@t~L014dyK(fOOo+W*MIxbA6Ndgr=Y!f#Tokqv}n<7-9qfHkc3 z=>a|HWqcX8fzQCT=dqVbogRq!-S>H%yA{1w#2Pn;=e>JiEj7Hl;zdt-2f+j2%DeVD zsW0Ab)ZK@0cIW%W7z}H{&~yGhn~D;aiP4=;m-HCo`BEI+Kd6 z={Xwx{TKxD#iCLfl2vQGDitKtN>z|-AdCN|$jTFDg0m3O`WLD4_s#$S literal 0 HcmV?d00001 diff --git a/frontend/src/App.vue b/frontend/src/App.vue new file mode 100644 index 0000000..f09c37a --- /dev/null +++ b/frontend/src/App.vue @@ -0,0 +1,14 @@ + + + \ No newline at end of file diff --git a/frontend/src/assets/main.css b/frontend/src/assets/main.css new file mode 100644 index 0000000..74d8662 --- /dev/null +++ b/frontend/src/assets/main.css @@ -0,0 +1,2 @@ +@import "tailwindcss"; +@plugin "daisyui"; \ No newline at end of file diff --git a/frontend/src/components/Navbar.vue b/frontend/src/components/Navbar.vue new file mode 100644 index 0000000..ad1b0e8 --- /dev/null +++ b/frontend/src/components/Navbar.vue @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/frontend/src/main.js b/frontend/src/main.js new file mode 100644 index 0000000..5a5dbdb --- /dev/null +++ b/frontend/src/main.js @@ -0,0 +1,11 @@ +import './assets/main.css' + +import { createApp } from 'vue' +import App from './App.vue' +import router from './router' + +const app = createApp(App) + +app.use(router) + +app.mount('#app') diff --git a/frontend/src/router/index.js b/frontend/src/router/index.js new file mode 100644 index 0000000..25fe092 --- /dev/null +++ b/frontend/src/router/index.js @@ -0,0 +1,20 @@ +import { createRouter, createWebHistory } from 'vue-router' +import HomeView from '../views/HomeView.vue' + +const router = createRouter({ + history: createWebHistory(import.meta.env.BASE_URL), + routes: [ + { + path: '/', + name: 'home', + component: HomeView, + }, + { + path: '/about', + name: 'about', + component: () => import('../views/AboutView.vue'), + }, + ], +}) + +export default router diff --git a/frontend/src/views/AboutView.vue b/frontend/src/views/AboutView.vue new file mode 100644 index 0000000..7aba496 --- /dev/null +++ b/frontend/src/views/AboutView.vue @@ -0,0 +1,3 @@ + diff --git a/frontend/src/views/HomeView.vue b/frontend/src/views/HomeView.vue new file mode 100644 index 0000000..9789b9a --- /dev/null +++ b/frontend/src/views/HomeView.vue @@ -0,0 +1,9 @@ + + + diff --git a/frontend/vite.config.js b/frontend/vite.config.js new file mode 100644 index 0000000..1f5300c --- /dev/null +++ b/frontend/vite.config.js @@ -0,0 +1,20 @@ +import { fileURLToPath, URL } from 'node:url' + +import { defineConfig } from 'vite' +import tailwindcss from "@tailwindcss/vite"; +import vue from '@vitejs/plugin-vue' +import vueDevTools from 'vite-plugin-vue-devtools' + +// https://vite.dev/config/ +export default defineConfig({ + plugins: [ + tailwindcss(), + vue(), + vueDevTools(), + ], + resolve: { + alias: { + '@': fileURLToPath(new URL('./src', import.meta.url)) + }, + }, +}) -- 2.45.3