commit 73c8ee1e203081b5d2a088483d52230d3d88909a Author: Riyyi Date: Sun Nov 24 03:03:20 2024 +0100 Initial commit 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 0000000..18993ad Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1 @@ + diff --git a/src/app.vue b/src/app.vue new file mode 100644 index 0000000..a43864c --- /dev/null +++ b/src/app.vue @@ -0,0 +1,5 @@ + 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" +}