feat: add build date to web footer

This commit is contained in:
Fam Zheng 2026-04-06 12:59:19 +01:00
parent b5cecec485
commit dfedb6dd45
2 changed files with 21 additions and 0 deletions

View File

@ -27,6 +27,8 @@ const selectedArticleId = ref('')
const appTitle = ref('')
const chatOpen = ref(false)
const showSettings = ref(false)
declare const __BUILD_DATE__: string
const buildDate = __BUILD_DATE__
const showUserMenu = ref(false)
const editingTitle = ref(false)
const titleInput = ref('')
@ -399,6 +401,9 @@ function goHome() {
<ChatPanel />
</aside>
</div>
<footer class="app-footer">
<span>Built {{ buildDate }}</span>
</footer>
</div>
</template>
@ -636,4 +641,17 @@ function goHome() {
background: var(--bg-secondary);
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>

View File

@ -3,6 +3,9 @@ import vue from '@vitejs/plugin-vue'
export default defineConfig({
base: process.env.VITE_BASE_PATH || '/tori/',
define: {
__BUILD_DATE__: JSON.stringify(new Date().toISOString().slice(0, 10)),
},
plugins: [vue()],
server: {
proxy: {