Translate remaining Chinese JSDoc and CSS comments to English
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -117,8 +117,8 @@ export const useFilesStore = defineStore('filesStore', {
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Uploads a CSV log file. 第一階段上傳
|
||||
* @param {Object} fromData 傳給後端的 Data
|
||||
* Uploads a CSV log file (first stage).
|
||||
* @param {Object} fromData - The form data to send to the backend.
|
||||
*/
|
||||
async upload(fromData) {
|
||||
const api = '/api/logs/csv-uploads';
|
||||
@@ -164,8 +164,8 @@ export const useFilesStore = defineStore('filesStore', {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Add a Log from an Uploaded CSV Log File. 第二階段上傳
|
||||
* @param {Object} data 傳給後端的 Data
|
||||
* Adds a log from an uploaded CSV log file (second stage).
|
||||
* @param {Object} data - The request payload for the backend.
|
||||
*/
|
||||
async uploadLog(data) {
|
||||
const uploadId = this.uploadId;
|
||||
@@ -193,9 +193,9 @@ export const useFilesStore = defineStore('filesStore', {
|
||||
},
|
||||
/**
|
||||
* Rename a Log
|
||||
* @param { string } type log | filter | log-check | filter-check,傳入以上任一個。
|
||||
* @param { number } id 檔案 ID
|
||||
* @param { string } name file's name
|
||||
* @param {string} type - The file type ('log', 'filter', 'log-check', or 'filter-check').
|
||||
* @param {number} id - The file ID.
|
||||
* @param {string} name - The file name.
|
||||
*/
|
||||
async rename(type, id, fileName) {
|
||||
// 先判斷有沒有 uploadLogId,有就設定 id 和 type;再判斷檔案型別。
|
||||
@@ -232,8 +232,8 @@ export const useFilesStore = defineStore('filesStore', {
|
||||
},
|
||||
/**
|
||||
* Get the Dependents of the files
|
||||
* @param { string } type log | filter | log-check | filter-check
|
||||
* @param { number } id 檔案 ID
|
||||
* @param {string} type - The file type ('log', 'filter', 'log-check', or 'filter-check').
|
||||
* @param {number} id - The file ID.
|
||||
*/
|
||||
async getDependents(type, id) {
|
||||
let api;
|
||||
@@ -261,8 +261,8 @@ export const useFilesStore = defineStore('filesStore', {
|
||||
},
|
||||
/**
|
||||
* Delete file
|
||||
* @param { string } type log | filter | log-check | filter-check
|
||||
* @param { number } id 檔案 ID
|
||||
* @param {string} type - The file type ('log', 'filter', 'log-check', or 'filter-check').
|
||||
* @param {number} id - The file ID.
|
||||
*/
|
||||
async deleteFile(type, id) {
|
||||
let api;
|
||||
@@ -298,8 +298,8 @@ export const useFilesStore = defineStore('filesStore', {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Remove a Deletion Record,真刪除被 Admin 或被其他帳號刪除的檔案
|
||||
* @param {number} id 檔案 ID
|
||||
* Removes a deletion record permanently.
|
||||
* @param {number} id - The file ID.
|
||||
*/
|
||||
async deletionRecord(id) {
|
||||
let api = '';
|
||||
@@ -317,9 +317,9 @@ export const useFilesStore = defineStore('filesStore', {
|
||||
},
|
||||
/**
|
||||
* Download file as CSV
|
||||
* @param { string } type log | filter | log-check | filter-check
|
||||
* @param { number } id 檔案 ID
|
||||
* @param { string } fileName file's name
|
||||
* @param {string} type - The file type ('log', 'filter', 'log-check', or 'filter-check').
|
||||
* @param {number} id - The file ID.
|
||||
* @param {string} fileName - The file name.
|
||||
*/
|
||||
async downloadFileCSV(type, id, fileName) {
|
||||
let api;
|
||||
|
||||
Reference in New Issue
Block a user