commit 4bd65aee9f712013c287fc6fc95208df44e9f2c8 Author: LittleSheep Date: Sat Mar 16 23:17:51 2024 +0800 :tada: 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.md b/README.md new file mode 100644 index 0000000..f5db2a2 --- /dev/null +++ b/README.md @@ -0,0 +1,75 @@ +# Nuxt 3 Minimal Starter + +Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more. + +## Setup + +Make sure to install the dependencies: + +```bash +# npm +npm install + +# pnpm +pnpm install + +# yarn +yarn install + +# bun +bun install +``` + +## Development Server + +Start the development server on `http://localhost:3000`: + +```bash +# npm +npm run dev + +# pnpm +pnpm run dev + +# yarn +yarn dev + +# bun +bun run dev +``` + +## Production + +Build the application for production: + +```bash +# npm +npm run build + +# pnpm +pnpm run build + +# yarn +yarn build + +# bun +bun run build +``` + +Locally preview production build: + +```bash +# npm +npm run preview + +# pnpm +pnpm run preview + +# yarn +yarn preview + +# bun +bun run preview +``` + +Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information. diff --git a/app.vue b/app.vue new file mode 100644 index 0000000..8ffa363 --- /dev/null +++ b/app.vue @@ -0,0 +1,8 @@ + diff --git a/assets/products/feature.jpg b/assets/products/feature.jpg new file mode 100644 index 0000000..d80b8ba Binary files /dev/null and b/assets/products/feature.jpg differ diff --git a/assets/products/solar.svg b/assets/products/solar.svg new file mode 100755 index 0000000..1a3fb1a --- /dev/null +++ b/assets/products/solar.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/bun.lockb b/bun.lockb new file mode 100755 index 0000000..3c26b6f Binary files /dev/null and b/bun.lockb differ diff --git a/content/products/solarpass.md b/content/products/solarpass.md new file mode 100644 index 0000000..9745469 --- /dev/null +++ b/content/products/solarpass.md @@ -0,0 +1,6 @@ +--- +icon: "https://id.solsynth.dev/favicon.svg" +name: "Solarpass" +code: "Hydrogen.Solarpass" +description: "The unified identity service for Solar Network." +--- \ No newline at end of file diff --git a/layouts/default.vue b/layouts/default.vue new file mode 100644 index 0000000..da83278 --- /dev/null +++ b/layouts/default.vue @@ -0,0 +1,26 @@ + + + diff --git a/nuxt.config.ts b/nuxt.config.ts new file mode 100644 index 0000000..416ec20 --- /dev/null +++ b/nuxt.config.ts @@ -0,0 +1,42 @@ +import vuetify, { transformAssetUrls } from "vite-plugin-vuetify"; + +// https://nuxt.com/docs/api/configuration/nuxt-config +export default defineNuxtConfig({ + devtools: { enabled: true }, + + app: { + head: { + title: "Solsynth", + meta: [ + { + name: "description", + content: + "Solsynth LLC official website. We build amazing, wonderful, open-source software.", + }, + ], + link: [{ rel: "icon", type: "image/xml+svg", href: "/favicon.svg" }], + }, + }, + content: {}, + + build: { + transpile: ["vuetify"], + }, + modules: [ + "@unocss/nuxt", + "@nuxt/content", + (_options, nuxt) => { + nuxt.hooks.hook("vite:extendConfig", (config) => { + // @ts-expect-error + config.plugins.push(vuetify({ autoImport: true })); + }); + }, + ], + vite: { + vue: { + template: { + transformAssetUrls, + }, + }, + }, +}); diff --git a/package.json b/package.json new file mode 100644 index 0000000..d19a959 --- /dev/null +++ b/package.json @@ -0,0 +1,26 @@ +{ + "name": "nuxt-app", + "private": true, + "type": "module", + "scripts": { + "build": "nuxt build", + "dev": "nuxt dev", + "generate": "nuxt generate", + "preview": "nuxt preview", + "postinstall": "nuxt prepare" + }, + "dependencies": { + "@fontsource/roboto": "^5.0.12", + "@mdi/font": "^7.4.47", + "@nuxt/content": "^2.12.1", + "nuxt": "^3.10.3", + "vue": "^3.4.21", + "vue-router": "^4.3.0" + }, + "devDependencies": { + "@unocss/nuxt": "^0.58.6", + "@unocss/reset": "^0.58.6", + "vite-plugin-vuetify": "^2.0.3", + "vuetify": "^3.5.9" + } +} diff --git a/pages/index.vue b/pages/index.vue new file mode 100644 index 0000000..7e99222 --- /dev/null +++ b/pages/index.vue @@ -0,0 +1,132 @@ + + + + + diff --git a/plugins/unocss.ts b/plugins/unocss.ts new file mode 100644 index 0000000..b6f50db --- /dev/null +++ b/plugins/unocss.ts @@ -0,0 +1,4 @@ +import "@unocss/reset/tailwind.css" +import "@fontsource/roboto/latin.css" + +export default defineNuxtPlugin(() => {}) \ No newline at end of file diff --git a/plugins/vuetify.ts b/plugins/vuetify.ts new file mode 100644 index 0000000..e7a0925 --- /dev/null +++ b/plugins/vuetify.ts @@ -0,0 +1,36 @@ +import "@mdi/font/css/materialdesignicons.min.css"; + +import "vuetify/styles"; +import { createVuetify } from "vuetify"; +import { md3 } from "vuetify/blueprints"; +import * as components from "vuetify/components"; +import * as labsComponents from "vuetify/labs/components"; +import * as directives from "vuetify/directives"; + +export default defineNuxtPlugin((app) => { + const vuetify = createVuetify({ + directives, + components: { + ...components, + ...labsComponents, + }, + blueprint: md3, + theme: { + defaultTheme: "original", + themes: { + original: { + colors: { + primary: "#4a5099", + secondary: "#2196f3", + accent: "#009688", + error: "#f44336", + warning: "#ff9800", + info: "#03a9f4", + success: "#4caf50", + }, + }, + }, + }, + }); + app.vueApp.use(vuetify); +}); diff --git a/public/favicon.svg b/public/favicon.svg new file mode 100755 index 0000000..8b0f492 --- /dev/null +++ b/public/favicon.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/server/tsconfig.json b/server/tsconfig.json new file mode 100644 index 0000000..b9ed69c --- /dev/null +++ b/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" +} diff --git a/uno.config.ts b/uno.config.ts new file mode 100644 index 0000000..199f2f2 --- /dev/null +++ b/uno.config.ts @@ -0,0 +1,5 @@ +import { defineConfig, presetAttributify, presetTypography, presetUno } from "unocss"; + +export default defineConfig({ + presets: [presetAttributify(), presetTypography(), presetUno({ preflight: false })] +}) \ No newline at end of file