Add JSDoc documentation and file headers to all source files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 18:55:36 +08:00
parent 3b7b6ae859
commit 7fec6cb63f
199 changed files with 2764 additions and 503 deletions

View File

@@ -1,20 +1,30 @@
// The Lucia project.
// Copyright 2023-2026 DSP, inc. All rights reserved.
// Authors:
// chiayin.kuo@dsp.im (chiayin), 2023/1/31
// cindy.chang@dsp.im (Cindy Chang), 2024/7/9
// imacat.yang@dsp.im (imacat), 2026/3/6
/**
* @module vite.config
* Vite build configuration with dev server proxy,
* path aliases, and test environment settings.
*/
import { fileURLToPath, URL } from "node:url";
import { defineConfig, loadEnv } from "vite";
import vue from "@vitejs/plugin-vue";
export default defineConfig(({ mode }) => {
// 取得 Vite 環境變數
const env = loadEnv(mode, process.cwd()).VUE_APP_API_URL;
return{
plugins: [vue()],
base: '/', // 這裡設置了 BASE_URL
// 設定路徑別名
base: '/',
resolve: {
alias: {
util: "util/",
"@": fileURLToPath(new URL("./src", import.meta.url)), // EX:"/@/components/Header.vue"
'/images': 'src/assets/images', // EX:<img src="/images/logo.png">
"@": fileURLToPath(new URL("./src", import.meta.url)),
'/images': 'src/assets/images',
}
},
server: {
@@ -22,9 +32,9 @@ export default defineConfig(({ mode }) => {
port: 58249,
proxy: {
'/api': {
target: env, // 指向後台伺服器位置
target: env,
changeOrigin: true,
rewrite: path => path.replace(/^\/api/, ''), // 修改實際的 Request Url將 '/api' 用 '' 替代
rewrite: path => path.replace(/^\/api/, ''),
}
},
},