From 73c8ee1e203081b5d2a088483d52230d3d88909a Mon Sep 17 00:00:00 2001 From: Riyyi Date: Sun, 24 Nov 2024 03:03:20 +0100 Subject: [PATCH] Initial commit --- .gitignore | 24 +++++++++++++ README.org | 34 ++++++++++++++++++ eslint.config.mjs | 6 ++++ nuxt.config.ts | 26 ++++++++++++++ package.json | 32 +++++++++++++++++ public/favicon.ico | Bin 0 -> 4286 bytes public/robots.txt | 1 + src/app.vue | 5 +++ src/app/spa-loading-template.html | 41 ++++++++++++++++++++++ src/components/AppAlert.vue | 5 +++ src/components/shared/Footer.vue | 2 ++ src/components/shared/Header.vue | 3 ++ src/components/shared/NavMenu.vue | 56 ++++++++++++++++++++++++++++++ src/layouts/default.vue | 5 +++ src/pages/index.vue | 8 +++++ src/pages/todos.vue | 24 +++++++++++++ src/server/tsconfig.json | 3 ++ tsconfig.json | 4 +++ 18 files changed, 279 insertions(+) create mode 100644 .gitignore create mode 100644 README.org create mode 100644 eslint.config.mjs create mode 100644 nuxt.config.ts create mode 100644 package.json create mode 100644 public/favicon.ico create mode 100644 public/robots.txt create mode 100644 src/app.vue create mode 100644 src/app/spa-loading-template.html create mode 100644 src/components/AppAlert.vue create mode 100644 src/components/shared/Footer.vue create mode 100644 src/components/shared/Header.vue create mode 100644 src/components/shared/NavMenu.vue create mode 100644 src/layouts/default.vue create mode 100644 src/pages/index.vue create mode 100644 src/pages/todos.vue create mode 100644 src/server/tsconfig.json create mode 100644 tsconfig.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4a7f73a --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ +# Nuxt dev/build outputs +.output +.data +.nuxt +.nitro +.cache +dist + +# Node dependencies +node_modules + +# Logs +logs +*.log + +# Misc +.DS_Store +.fleet +.idea + +# Local env files +.env +.env.* +!.env.example diff --git a/README.org b/README.org new file mode 100644 index 0000000..5741699 --- /dev/null +++ b/README.org @@ -0,0 +1,34 @@ +* Website + +Website, written in Typescript. + +* Libraries + +- Vue.js 3 +- Nuxt +- Pinia +- PrimeVue +- ESLint + +* Development + +The following editor setup has been used: + +#+BEGIN_SRC sh +$ bun x nuxi@latest init website +$ bun nuxi module add eslint +$ bun install --dev typescript +$ bun install --dev @vue/language-server +$ bun install --dev @vue/typescript-plugin + +$ bun install -g typescript +$ bun install -g @vue/language-server +$ bun install -g @vue/typescript-plugin + +# Pinia +$ bun install pinia + +# PrimeVue +$ bun install primevue primeicons @primevue/themes +$ bun install --dev @primevue/nuxt-module +#+END_SRC diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000..934c3a1 --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,6 @@ +// @ts-check +import withNuxt from './.nuxt/eslint.config.mjs' + +export default withNuxt( + // Your custom configs here +) diff --git a/nuxt.config.ts b/nuxt.config.ts new file mode 100644 index 0000000..c5cbb11 --- /dev/null +++ b/nuxt.config.ts @@ -0,0 +1,26 @@ +import Aura from "@primevue/themes/aura"; + +// https://nuxt.com/docs/api/configuration/nuxt-config +export default defineNuxtConfig({ + compatibilityDate: "2024-11-01", + css: [ + "primeicons/primeicons.css" + ], + devtools: { enabled: true }, + modules: [ + "@nuxt/eslint", + "@primevue/nuxt-module" + ], + primevue: { + options: { + theme: { + preset: Aura + } + } + }, + dir: { + public: "../public" + }, + srcDir: "src/", + ssr: false +}) diff --git a/package.json b/package.json new file mode 100644 index 0000000..b3ebb40 --- /dev/null +++ b/package.json @@ -0,0 +1,32 @@ +{ + "name": "website", + "private": true, + "type": "module", + "scripts": { + "build": "nuxt build", + "dev": "nuxt dev", + "generate": "nuxt generate", + "preview": "nuxt preview", + "postinstall": "nuxt prepare" + }, + "dependencies": { + "@primevue/themes": "^4.2.3", + "nuxt": "^3.14.1592", + "pinia": "^2.2.6", + "primeicons": "^7.0.0", + "primevue": "^4.2.3", + "vue": "latest", + "vue-router": "latest" + }, + "devDependencies": { + "@nuxt/eslint": "^0.7.1", + "@primevue/nuxt-module": "^4.2.3", + "@types/bun": "latest", + "@vue/language-server": "^2.1.10", + "@vue/typescript-plugin": "^2.1.10", + "typescript": "^5.7.2" + }, + "trustedDependencies": [ + "@parcel/watcher" + ] +} diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..18993ad91cfd43e03b074dd0b5cc3f37ab38e49c GIT binary patch literal 4286 zcmeHLOKuuL5PjK%MHWVi6lD zOGiREbCw`xmFozJ^aNatJY>w+g ze6a2@u~m#^BZm@8wco9#Crlli0uLb^3E$t2-WIc^#(?t)*@`UpuofJ(Uyh@F>b3Ph z$D^m8Xq~pTkGJ4Q`Q2)te3mgkWYZ^Ijq|hkiP^9`De={bQQ%heZC$QU2UpP(-tbl8 zPWD2abEew;oat@w`uP3J^YpsgT%~jT(Dk%oU}sa$7|n6hBjDj`+I;RX(>)%lm_7N{+B7Mu%H?422lE%MBJH!!YTN2oT7xr>>N-8OF$C&qU^ z>vLsa{$0X%q1fjOe3P1mCv#lN{xQ4_*HCSAZjTb1`}mlc+9rl8$B3OP%VT@mch_~G z7Y+4b{r>9e=M+7vSI;BgB?ryZDY4m>&wcHSn81VH1N~`0gvwH{ z8dv#hG|OK`>1;j7tM#B)Z7zDN?{6=dUal}$e + + + + diff --git a/src/app/spa-loading-template.html b/src/app/spa-loading-template.html new file mode 100644 index 0000000..a269337 --- /dev/null +++ b/src/app/spa-loading-template.html @@ -0,0 +1,41 @@ + +
+ diff --git a/src/components/AppAlert.vue b/src/components/AppAlert.vue new file mode 100644 index 0000000..0005648 --- /dev/null +++ b/src/components/AppAlert.vue @@ -0,0 +1,5 @@ + diff --git a/src/components/shared/Footer.vue b/src/components/shared/Footer.vue new file mode 100644 index 0000000..6beff51 --- /dev/null +++ b/src/components/shared/Footer.vue @@ -0,0 +1,2 @@ + diff --git a/src/components/shared/Header.vue b/src/components/shared/Header.vue new file mode 100644 index 0000000..d2f8842 --- /dev/null +++ b/src/components/shared/Header.vue @@ -0,0 +1,3 @@ + diff --git a/src/components/shared/NavMenu.vue b/src/components/shared/NavMenu.vue new file mode 100644 index 0000000..a1d40c9 --- /dev/null +++ b/src/components/shared/NavMenu.vue @@ -0,0 +1,56 @@ + + + diff --git a/src/layouts/default.vue b/src/layouts/default.vue new file mode 100644 index 0000000..931999c --- /dev/null +++ b/src/layouts/default.vue @@ -0,0 +1,5 @@ + diff --git a/src/pages/index.vue b/src/pages/index.vue new file mode 100644 index 0000000..d47860b --- /dev/null +++ b/src/pages/index.vue @@ -0,0 +1,8 @@ + diff --git a/src/pages/todos.vue b/src/pages/todos.vue new file mode 100644 index 0000000..141bdbb --- /dev/null +++ b/src/pages/todos.vue @@ -0,0 +1,24 @@ + + + diff --git a/src/server/tsconfig.json b/src/server/tsconfig.json new file mode 100644 index 0000000..b9ed69c --- /dev/null +++ b/src/server/tsconfig.json @@ -0,0 +1,3 @@ +{ + "extends": "../.nuxt/tsconfig.server.json" +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..a746f2a --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,4 @@ +{ + // https://nuxt.com/docs/guide/concepts/typescript + "extends": "./.nuxt/tsconfig.json" +}