mirror of
https://github.com/HoshinoSuzumi/rayine-ui.git
synced 2025-04-07 12:48:50 +08:00
chore: show the version of rayine-ui in the header
This commit is contained in:
parent
e06d10ec2c
commit
421de5a89a
@ -2,6 +2,7 @@
|
||||
// const appConfig = useAppConfig();
|
||||
// appConfig.rayui.primary = 'red';
|
||||
const route = useRoute()
|
||||
const runtimeConfig = useRuntimeConfig().public
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@ -11,18 +12,18 @@ const route = useRoute()
|
||||
>
|
||||
<NuxtLink to="/" class="text-neutral-900 dark:text-neutral-100">
|
||||
<h1 class="font-medium text-xl">
|
||||
RayineSoft<sup class="text-sm"> ©</sup>
|
||||
RayineUI<sup class="text-xs"> <span class="text-primary font-medium">{{ runtimeConfig.version }}</span></sup>
|
||||
</h1>
|
||||
<h2 class="font-normal text-xs">
|
||||
Common Components
|
||||
RayineSoft Components Lib
|
||||
</h2>
|
||||
</NuxtLink>
|
||||
<div class="flex items-center gap-4">
|
||||
<NuxtLink
|
||||
to="/getting-started"
|
||||
to="https://github.com/HoshinoSuzumi/rayine-ui"
|
||||
target="_blank"
|
||||
class="text-neutral-400 dark:text-neutral-500"
|
||||
active-class="!text-neutral-700 dark:!text-neutral-300"
|
||||
>Docs</NuxtLink>
|
||||
>GitHub</NuxtLink>
|
||||
</div>
|
||||
</header>
|
||||
</template>
|
||||
|
@ -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' },
|
||||
},
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user