feat: add build date to web footer
This commit is contained in:
parent
b5cecec485
commit
dfedb6dd45
@ -27,6 +27,8 @@ const selectedArticleId = ref('')
|
|||||||
const appTitle = ref('')
|
const appTitle = ref('')
|
||||||
const chatOpen = ref(false)
|
const chatOpen = ref(false)
|
||||||
const showSettings = ref(false)
|
const showSettings = ref(false)
|
||||||
|
declare const __BUILD_DATE__: string
|
||||||
|
const buildDate = __BUILD_DATE__
|
||||||
const showUserMenu = ref(false)
|
const showUserMenu = ref(false)
|
||||||
const editingTitle = ref(false)
|
const editingTitle = ref(false)
|
||||||
const titleInput = ref('')
|
const titleInput = ref('')
|
||||||
@ -399,6 +401,9 @@ function goHome() {
|
|||||||
<ChatPanel />
|
<ChatPanel />
|
||||||
</aside>
|
</aside>
|
||||||
</div>
|
</div>
|
||||||
|
<footer class="app-footer">
|
||||||
|
<span>Built {{ buildDate }}</span>
|
||||||
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -636,4 +641,17 @@ function goHome() {
|
|||||||
background: var(--bg-secondary);
|
background: var(--bg-secondary);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.app-footer {
|
||||||
|
height: 24px;
|
||||||
|
min-height: 24px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-end;
|
||||||
|
padding: 0 16px;
|
||||||
|
font-size: 11px;
|
||||||
|
color: var(--text-tertiary, #888);
|
||||||
|
border-top: 1px solid var(--border);
|
||||||
|
background: var(--bg-primary);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -3,6 +3,9 @@ import vue from '@vitejs/plugin-vue'
|
|||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
base: process.env.VITE_BASE_PATH || '/tori/',
|
base: process.env.VITE_BASE_PATH || '/tori/',
|
||||||
|
define: {
|
||||||
|
__BUILD_DATE__: JSON.stringify(new Date().toISOString().slice(0, 10)),
|
||||||
|
},
|
||||||
plugins: [vue()],
|
plugins: [vue()],
|
||||||
server: {
|
server: {
|
||||||
proxy: {
|
proxy: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user