commit 166eea22aaacaa5cf5216ce8d281a04060525a91 Author: LittleSheep Date: Tue Jul 2 23:07:22 2024 +0800 :tada: Initial Commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..183a1c4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,26 @@ +# Nuxt dev/build outputs +.output +.data +.nuxt +.nitro +.cache +dist + +# Node dependencies +node_modules +*.lockb +*.lock + +# Logs +logs +*.log + +# Misc +.DS_Store +.fleet +.idea + +# Local env files +.env +.env.* +!.env.example diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..6404b10 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,8 @@ +{ + "$schema": "https://json.schemastore.org/prettierrc", + "semi": false, + "tabWidth": 2, + "singleQuote": false, + "printWidth": 120, + "trailingComma": "all" +} diff --git a/app.vue b/app.vue new file mode 100644 index 0000000..f244147 --- /dev/null +++ b/app.vue @@ -0,0 +1,11 @@ + + + diff --git a/assets/logo.png b/assets/logo.png new file mode 100755 index 0000000..34aecb6 Binary files /dev/null and b/assets/logo.png differ diff --git a/components/product/Carousel.vue b/components/product/Carousel.vue new file mode 100644 index 0000000..df5b6a6 --- /dev/null +++ b/components/product/Carousel.vue @@ -0,0 +1,45 @@ + + + diff --git a/content/products/roadsign.mdx b/content/products/roadsign.mdx new file mode 100644 index 0000000..91b0c73 --- /dev/null +++ b/content/products/roadsign.mdx @@ -0,0 +1,6 @@ +--- +thumbnail: /thumbnails/products/roadsign.webp +title: RoadSign +description: The reserve proxy that powered our network. Powerful and easy to use. +archived: true +--- diff --git a/content/products/solar-network.mdx b/content/products/solar-network.mdx new file mode 100644 index 0000000..91a2049 --- /dev/null +++ b/content/products/solar-network.mdx @@ -0,0 +1,6 @@ +--- +thumbnail: /thumbnails/products/solar-network.webp +title: Solar Network +description: Solar Network is Solsynth LLC's core product in the internet. +url: https://lian.solsynth.dev +--- diff --git a/layouts/default.vue b/layouts/default.vue new file mode 100644 index 0000000..15ba9b7 --- /dev/null +++ b/layouts/default.vue @@ -0,0 +1,25 @@ + + + diff --git a/nuxt.config.ts b/nuxt.config.ts new file mode 100644 index 0000000..24289a0 --- /dev/null +++ b/nuxt.config.ts @@ -0,0 +1,43 @@ +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 LLC", + titleTemplate: "%s | Solsynth", + link: [{ rel: "icon", type: "image/png", href: "/favicon.png" }], + }, + }, + content: { + api: { + baseURL: "/api/content", + }, + highlight: { + theme: "github-dark", + }, + }, + build: { + transpile: ["vuetify"], + }, + modules: [ + "@unocss/nuxt", + "@nuxt/content", + "@nuxt/image", + (_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..5284d7c --- /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.13", + "@mdi/font": "^7.4.47", + "@nuxt/content": "^2.13.0", + "@nuxt/image": "^1.7.0", + "nuxt": "^3.12.2", + "vue": "latest" + }, + "devDependencies": { + "@unocss/nuxt": "^0.61.0", + "@unocss/reset": "^0.61.0", + "vite-plugin-vuetify": "^2.0.3", + "vuetify": "^3.6.10" + } +} diff --git a/pages/index.vue b/pages/index.vue new file mode 100644 index 0000000..9047ea0 --- /dev/null +++ b/pages/index.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/pages/products/[...slug].vue b/pages/products/[...slug].vue new file mode 100644 index 0000000..684fc8c --- /dev/null +++ b/pages/products/[...slug].vue @@ -0,0 +1,25 @@ + + + diff --git a/pages/products/index.vue b/pages/products/index.vue new file mode 100644 index 0000000..6015384 --- /dev/null +++ b/pages/products/index.vue @@ -0,0 +1,3 @@ + diff --git a/plugins/vuetify.ts b/plugins/vuetify.ts new file mode 100644 index 0000000..be7a2b0 --- /dev/null +++ b/plugins/vuetify.ts @@ -0,0 +1,38 @@ +import '@fontsource/roboto/latin.css'; +import '@mdi/font/css/materialdesignicons.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({ + ssr: true, + blueprint: md3, + directives, + components: { + ...components, + ...labsComponents, + }, + 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.png b/public/favicon.png new file mode 100755 index 0000000..34aecb6 Binary files /dev/null and b/public/favicon.png differ diff --git a/public/thumbnails/products/roadsign.webp b/public/thumbnails/products/roadsign.webp new file mode 100644 index 0000000..8635e4e Binary files /dev/null and b/public/thumbnails/products/roadsign.webp differ diff --git a/public/thumbnails/products/solar-network.webp b/public/thumbnails/products/solar-network.webp new file mode 100644 index 0000000..e758ab1 Binary files /dev/null and b/public/thumbnails/products/solar-network.webp differ 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..e5a90eb --- /dev/null +++ b/uno.config.ts @@ -0,0 +1,3 @@ +import { defineConfig } from "unocss" + +export default defineConfig({})