diff --git a/docs/components/TitleBar.vue b/docs/components/TitleBar.vue index 71d2c5f..787426c 100644 --- a/docs/components/TitleBar.vue +++ b/docs/components/TitleBar.vue @@ -2,6 +2,7 @@ // const appConfig = useAppConfig(); // appConfig.rayui.primary = 'red'; const route = useRoute() +const runtimeConfig = useRuntimeConfig().public diff --git a/docs/nuxt.config.ts b/docs/nuxt.config.ts index 25ac786..4564a1e 100644 --- a/docs/nuxt.config.ts +++ b/docs/nuxt.config.ts @@ -3,6 +3,7 @@ import defaultTheme from 'tailwindcss/defaultTheme' import colors from 'tailwindcss/colors' import module from '../src/module' import { excludeColors } from '../src/runtime/utils/colors' +import pkg from '../package.json' const { resolve } = createResolver(import.meta.url) @@ -34,6 +35,11 @@ export default defineNuxtConfig({ themes: ['material-theme-lighter', 'material-theme'], }, }, + runtimeConfig: { + public: { + version: pkg.version, + }, + }, routeRules: { '/components': { redirect: '/components/button' }, }, diff --git a/package.json b/package.json index 7bba434..18701cf 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "1.2.0", "description": "RayineSoft UI Components", "repository": "HoshinoSuzumi/rayine-ui", + "homepage": "https://rayui.uniiem.com", "license": "MIT", "type": "module", "exports": { @@ -54,4 +55,4 @@ "vitest": "^2.1.5", "vue-tsc": "^2.1.10" } -} +} \ No newline at end of file