mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-02 14:04:50 +00:00
feat(quota): move usage monitoring to team dashboard (#327)
This commit is contained in:
+12
-3
@@ -1050,9 +1050,18 @@ export * from "./quota_scope_mode_all_members.js";
|
||||
export * from "./quota_scope_mode_all_members_desc.js";
|
||||
export * from "./quota_scope_mode_selected_members.js";
|
||||
export * from "./quota_scope_mode_selected_members_desc.js";
|
||||
export * from "./quota_view_usage.js";
|
||||
export * from "./quota_usage_records.js";
|
||||
export * from "./quota_usage_records_description.js";
|
||||
export * from "./quota_dashboard_description.js";
|
||||
export * from "./quota_reset_usage.js";
|
||||
export * from "./quota_reset_usage_confirm.js";
|
||||
export * from "./quota_reset_successfully.js";
|
||||
export * from "./failed_to_reset_quota.js";
|
||||
export * from "./failed_to_load_quota_usage.js";
|
||||
export * from "./quota_no_usage_records.js";
|
||||
export * from "./quota_expand_rule.js";
|
||||
export * from "./quota_collapse_rule.js";
|
||||
export * from "./quota_target_server.js";
|
||||
export * from "./quota_target_match.js";
|
||||
export * from "./quota_target_tool.js";
|
||||
export * from "./quota_team_shared_pool.js";
|
||||
export * from "./quota_role_shared_pool.js";
|
||||
export * from "./quota_available.js";
|
||||
|
||||
+12
-3
@@ -1052,9 +1052,18 @@ export * from './quota_scope_mode_all_members.js'
|
||||
export * from './quota_scope_mode_all_members_desc.js'
|
||||
export * from './quota_scope_mode_selected_members.js'
|
||||
export * from './quota_scope_mode_selected_members_desc.js'
|
||||
export * from './quota_view_usage.js'
|
||||
export * from './quota_usage_records.js'
|
||||
export * from './quota_usage_records_description.js'
|
||||
export * from './quota_dashboard_description.js'
|
||||
export * from './quota_reset_usage.js'
|
||||
export * from './quota_reset_usage_confirm.js'
|
||||
export * from './quota_reset_successfully.js'
|
||||
export * from './failed_to_reset_quota.js'
|
||||
export * from './failed_to_load_quota_usage.js'
|
||||
export * from './quota_no_usage_records.js'
|
||||
export * from './quota_expand_rule.js'
|
||||
export * from './quota_collapse_rule.js'
|
||||
export * from './quota_target_server.js'
|
||||
export * from './quota_target_match.js'
|
||||
export * from './quota_target_tool.js'
|
||||
export * from './quota_team_shared_pool.js'
|
||||
export * from './quota_role_shared_pool.js'
|
||||
export * from './quota_available.js'
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Failed to load quota usage" |
|
||||
*
|
||||
* @param {Failed_To_Load_Quota_UsageInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const failed_to_load_quota_usage: ((inputs?: Failed_To_Load_Quota_UsageInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Failed_To_Load_Quota_UsageInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Failed_To_Load_Quota_UsageInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Failed_To_Load_Quota_UsageInputs */
|
||||
|
||||
const en_failed_to_load_quota_usage = /** @type {(inputs: Failed_To_Load_Quota_UsageInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Failed to load quota usage`)
|
||||
};
|
||||
|
||||
const zh_failed_to_load_quota_usage = /** @type {(inputs: Failed_To_Load_Quota_UsageInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`加载配额使用量失败`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Failed to load quota usage" |
|
||||
*
|
||||
* @param {Failed_To_Load_Quota_UsageInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const failed_to_load_quota_usage = /** @type {((inputs?: Failed_To_Load_Quota_UsageInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Failed_To_Load_Quota_UsageInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_failed_to_load_quota_usage(inputs)
|
||||
return zh_failed_to_load_quota_usage(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Failed to reset quota usage" |
|
||||
*
|
||||
* @param {Failed_To_Reset_QuotaInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const failed_to_reset_quota: ((inputs?: Failed_To_Reset_QuotaInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Failed_To_Reset_QuotaInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Failed_To_Reset_QuotaInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Failed_To_Reset_QuotaInputs */
|
||||
|
||||
const en_failed_to_reset_quota = /** @type {(inputs: Failed_To_Reset_QuotaInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Failed to reset quota usage`)
|
||||
};
|
||||
|
||||
const zh_failed_to_reset_quota = /** @type {(inputs: Failed_To_Reset_QuotaInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`重置配额使用量失败`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Failed to reset quota usage" |
|
||||
*
|
||||
* @param {Failed_To_Reset_QuotaInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const failed_to_reset_quota = /** @type {((inputs?: Failed_To_Reset_QuotaInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Failed_To_Reset_QuotaInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_failed_to_reset_quota(inputs)
|
||||
return zh_failed_to_reset_quota(inputs)
|
||||
});
|
||||
Generated
Vendored
+5
-5
@@ -1,16 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Usage Records" |
|
||||
* | "Collapse quota rule" |
|
||||
*
|
||||
* @param {Quota_Usage_RecordsInputs} inputs
|
||||
* @param {Quota_Collapse_RuleInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_usage_records: ((inputs?: Quota_Usage_RecordsInputs, options?: {
|
||||
export const quota_collapse_rule: ((inputs?: Quota_Collapse_RuleInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Quota_Usage_RecordsInputs, {
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Quota_Collapse_RuleInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Quota_Usage_RecordsInputs = {};
|
||||
export type Quota_Collapse_RuleInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Quota_Collapse_RuleInputs */
|
||||
|
||||
const en_quota_collapse_rule = /** @type {(inputs: Quota_Collapse_RuleInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Collapse quota rule`)
|
||||
};
|
||||
|
||||
const zh_quota_collapse_rule = /** @type {(inputs: Quota_Collapse_RuleInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`收起配额规则`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Collapse quota rule" |
|
||||
*
|
||||
* @param {Quota_Collapse_RuleInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_collapse_rule = /** @type {((inputs?: Quota_Collapse_RuleInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Quota_Collapse_RuleInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_quota_collapse_rule(inputs)
|
||||
return zh_quota_collapse_rule(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Monitor live quota usage and reset individual usage windows." |
|
||||
*
|
||||
* @param {Quota_Dashboard_DescriptionInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_dashboard_description: ((inputs?: Quota_Dashboard_DescriptionInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Quota_Dashboard_DescriptionInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Quota_Dashboard_DescriptionInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Quota_Dashboard_DescriptionInputs */
|
||||
|
||||
const en_quota_dashboard_description = /** @type {(inputs: Quota_Dashboard_DescriptionInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Monitor live quota usage and reset individual usage windows.`)
|
||||
};
|
||||
|
||||
const zh_quota_dashboard_description = /** @type {(inputs: Quota_Dashboard_DescriptionInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`在仪表盘中监控实时配额使用情况,并重置单个使用窗口。`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Monitor live quota usage and reset individual usage windows." |
|
||||
*
|
||||
* @param {Quota_Dashboard_DescriptionInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_dashboard_description = /** @type {((inputs?: Quota_Dashboard_DescriptionInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Quota_Dashboard_DescriptionInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_quota_dashboard_description(inputs)
|
||||
return zh_quota_dashboard_description(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Expand quota rule" |
|
||||
*
|
||||
* @param {Quota_Expand_RuleInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_expand_rule: ((inputs?: Quota_Expand_RuleInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Quota_Expand_RuleInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Quota_Expand_RuleInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Quota_Expand_RuleInputs */
|
||||
|
||||
const en_quota_expand_rule = /** @type {(inputs: Quota_Expand_RuleInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Expand quota rule`)
|
||||
};
|
||||
|
||||
const zh_quota_expand_rule = /** @type {(inputs: Quota_Expand_RuleInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`展开配额规则`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Expand quota rule" |
|
||||
*
|
||||
* @param {Quota_Expand_RuleInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_expand_rule = /** @type {((inputs?: Quota_Expand_RuleInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Quota_Expand_RuleInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_quota_expand_rule(inputs)
|
||||
return zh_quota_expand_rule(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "No usage records found" |
|
||||
*
|
||||
* @param {Quota_No_Usage_RecordsInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_no_usage_records: ((inputs?: Quota_No_Usage_RecordsInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Quota_No_Usage_RecordsInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Quota_No_Usage_RecordsInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Quota_No_Usage_RecordsInputs */
|
||||
|
||||
const en_quota_no_usage_records = /** @type {(inputs: Quota_No_Usage_RecordsInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`No usage records found`)
|
||||
};
|
||||
|
||||
const zh_quota_no_usage_records = /** @type {(inputs: Quota_No_Usage_RecordsInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`暂无使用记录`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "No usage records found" |
|
||||
*
|
||||
* @param {Quota_No_Usage_RecordsInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_no_usage_records = /** @type {((inputs?: Quota_No_Usage_RecordsInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Quota_No_Usage_RecordsInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_quota_no_usage_records(inputs)
|
||||
return zh_quota_no_usage_records(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Quota usage reset successfully" |
|
||||
*
|
||||
* @param {Quota_Reset_SuccessfullyInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_reset_successfully: ((inputs?: Quota_Reset_SuccessfullyInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Quota_Reset_SuccessfullyInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Quota_Reset_SuccessfullyInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Quota_Reset_SuccessfullyInputs */
|
||||
|
||||
const en_quota_reset_successfully = /** @type {(inputs: Quota_Reset_SuccessfullyInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Quota usage reset successfully`)
|
||||
};
|
||||
|
||||
const zh_quota_reset_successfully = /** @type {(inputs: Quota_Reset_SuccessfullyInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`配额使用量重置成功`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Quota usage reset successfully" |
|
||||
*
|
||||
* @param {Quota_Reset_SuccessfullyInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_reset_successfully = /** @type {((inputs?: Quota_Reset_SuccessfullyInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Quota_Reset_SuccessfullyInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_quota_reset_successfully(inputs)
|
||||
return zh_quota_reset_successfully(inputs)
|
||||
});
|
||||
Generated
Vendored
+5
-5
@@ -1,16 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "View Usage" |
|
||||
* | "Reset Usage" |
|
||||
*
|
||||
* @param {Quota_View_UsageInputs} inputs
|
||||
* @param {Quota_Reset_UsageInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_view_usage: ((inputs?: Quota_View_UsageInputs, options?: {
|
||||
export const quota_reset_usage: ((inputs?: Quota_Reset_UsageInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Quota_View_UsageInputs, {
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Quota_Reset_UsageInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Quota_View_UsageInputs = {};
|
||||
export type Quota_Reset_UsageInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Quota_Reset_UsageInputs */
|
||||
|
||||
const en_quota_reset_usage = /** @type {(inputs: Quota_Reset_UsageInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Reset Usage`)
|
||||
};
|
||||
|
||||
const zh_quota_reset_usage = /** @type {(inputs: Quota_Reset_UsageInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`重置使用量`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Reset Usage" |
|
||||
*
|
||||
* @param {Quota_Reset_UsageInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_reset_usage = /** @type {((inputs?: Quota_Reset_UsageInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Quota_Reset_UsageInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_quota_reset_usage(inputs)
|
||||
return zh_quota_reset_usage(inputs)
|
||||
});
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Reset usage for {target}? Consumption will be cleared and a new quota window will start now." |
|
||||
*
|
||||
* @param {Quota_Reset_Usage_ConfirmInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_reset_usage_confirm: ((inputs: Quota_Reset_Usage_ConfirmInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Quota_Reset_Usage_ConfirmInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Quota_Reset_Usage_ConfirmInputs = {
|
||||
target: NonNullable<unknown>;
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{ target: NonNullable<unknown> }} Quota_Reset_Usage_ConfirmInputs */
|
||||
|
||||
const en_quota_reset_usage_confirm = /** @type {(inputs: Quota_Reset_Usage_ConfirmInputs) => LocalizedString} */ (i) => {
|
||||
return /** @type {LocalizedString} */ (`Reset usage for ${i?.target}? Consumption will be cleared and a new quota window will start now.`)
|
||||
};
|
||||
|
||||
const zh_quota_reset_usage_confirm = /** @type {(inputs: Quota_Reset_Usage_ConfirmInputs) => LocalizedString} */ (i) => {
|
||||
return /** @type {LocalizedString} */ (`确定要重置 ${i?.target} 的使用量吗?当前消耗将被清零,并立即开始新的配额周期。`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Reset usage for {target}? Consumption will be cleared and a new quota window will start now." |
|
||||
*
|
||||
* @param {Quota_Reset_Usage_ConfirmInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_reset_usage_confirm = /** @type {((inputs: Quota_Reset_Usage_ConfirmInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Quota_Reset_Usage_ConfirmInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_quota_reset_usage_confirm(inputs)
|
||||
return zh_quota_reset_usage_confirm(inputs)
|
||||
});
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Match: {value}" |
|
||||
*
|
||||
* @param {Quota_Target_MatchInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_target_match: ((inputs: Quota_Target_MatchInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Quota_Target_MatchInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Quota_Target_MatchInputs = {
|
||||
value: NonNullable<unknown>;
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{ value: NonNullable<unknown> }} Quota_Target_MatchInputs */
|
||||
|
||||
const en_quota_target_match = /** @type {(inputs: Quota_Target_MatchInputs) => LocalizedString} */ (i) => {
|
||||
return /** @type {LocalizedString} */ (`Match: ${i?.value}`)
|
||||
};
|
||||
|
||||
const zh_quota_target_match = /** @type {(inputs: Quota_Target_MatchInputs) => LocalizedString} */ (i) => {
|
||||
return /** @type {LocalizedString} */ (`匹配:${i?.value}`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Match: {value}" |
|
||||
*
|
||||
* @param {Quota_Target_MatchInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_target_match = /** @type {((inputs: Quota_Target_MatchInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Quota_Target_MatchInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_quota_target_match(inputs)
|
||||
return zh_quota_target_match(inputs)
|
||||
});
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Server: {value}" |
|
||||
*
|
||||
* @param {Quota_Target_ServerInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_target_server: ((inputs: Quota_Target_ServerInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Quota_Target_ServerInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Quota_Target_ServerInputs = {
|
||||
value: NonNullable<unknown>;
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{ value: NonNullable<unknown> }} Quota_Target_ServerInputs */
|
||||
|
||||
const en_quota_target_server = /** @type {(inputs: Quota_Target_ServerInputs) => LocalizedString} */ (i) => {
|
||||
return /** @type {LocalizedString} */ (`Server: ${i?.value}`)
|
||||
};
|
||||
|
||||
const zh_quota_target_server = /** @type {(inputs: Quota_Target_ServerInputs) => LocalizedString} */ (i) => {
|
||||
return /** @type {LocalizedString} */ (`服务:${i?.value}`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Server: {value}" |
|
||||
*
|
||||
* @param {Quota_Target_ServerInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_target_server = /** @type {((inputs: Quota_Target_ServerInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Quota_Target_ServerInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_quota_target_server(inputs)
|
||||
return zh_quota_target_server(inputs)
|
||||
});
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Tool: {value}" |
|
||||
*
|
||||
* @param {Quota_Target_ToolInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_target_tool: ((inputs: Quota_Target_ToolInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Quota_Target_ToolInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Quota_Target_ToolInputs = {
|
||||
value: NonNullable<unknown>;
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{ value: NonNullable<unknown> }} Quota_Target_ToolInputs */
|
||||
|
||||
const en_quota_target_tool = /** @type {(inputs: Quota_Target_ToolInputs) => LocalizedString} */ (i) => {
|
||||
return /** @type {LocalizedString} */ (`Tool: ${i?.value}`)
|
||||
};
|
||||
|
||||
const zh_quota_target_tool = /** @type {(inputs: Quota_Target_ToolInputs) => LocalizedString} */ (i) => {
|
||||
return /** @type {LocalizedString} */ (`工具:${i?.value}`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Tool: {value}" |
|
||||
*
|
||||
* @param {Quota_Target_ToolInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_target_tool = /** @type {((inputs: Quota_Target_ToolInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Quota_Target_ToolInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_quota_target_tool(inputs)
|
||||
return zh_quota_target_tool(inputs)
|
||||
});
|
||||
@@ -1,29 +0,0 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Quota_Usage_RecordsInputs */
|
||||
|
||||
const en_quota_usage_records = /** @type {(inputs: Quota_Usage_RecordsInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Usage Records`)
|
||||
};
|
||||
|
||||
const zh_quota_usage_records = /** @type {(inputs: Quota_Usage_RecordsInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`使用记录`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Usage Records" |
|
||||
*
|
||||
* @param {Quota_Usage_RecordsInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_usage_records = /** @type {((inputs?: Quota_Usage_RecordsInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Quota_Usage_RecordsInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_quota_usage_records(inputs)
|
||||
return zh_quota_usage_records(inputs)
|
||||
});
|
||||
-16
@@ -1,16 +0,0 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Real-time usage breakdown for this quota rule." |
|
||||
*
|
||||
* @param {Quota_Usage_Records_DescriptionInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_usage_records_description: ((inputs?: Quota_Usage_Records_DescriptionInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Quota_Usage_Records_DescriptionInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Quota_Usage_Records_DescriptionInputs = {};
|
||||
@@ -1,29 +0,0 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Quota_Usage_Records_DescriptionInputs */
|
||||
|
||||
const en_quota_usage_records_description = /** @type {(inputs: Quota_Usage_Records_DescriptionInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Real-time usage breakdown for this quota rule.`)
|
||||
};
|
||||
|
||||
const zh_quota_usage_records_description = /** @type {(inputs: Quota_Usage_Records_DescriptionInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`该配额规则的实时使用明细与生效状态。`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Real-time usage breakdown for this quota rule." |
|
||||
*
|
||||
* @param {Quota_Usage_Records_DescriptionInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_usage_records_description = /** @type {((inputs?: Quota_Usage_Records_DescriptionInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Quota_Usage_Records_DescriptionInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_quota_usage_records_description(inputs)
|
||||
return zh_quota_usage_records_description(inputs)
|
||||
});
|
||||
@@ -1,29 +0,0 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Quota_View_UsageInputs */
|
||||
|
||||
const en_quota_view_usage = /** @type {(inputs: Quota_View_UsageInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`View Usage`)
|
||||
};
|
||||
|
||||
const zh_quota_view_usage = /** @type {(inputs: Quota_View_UsageInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`查看使用量`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "View Usage" |
|
||||
*
|
||||
* @param {Quota_View_UsageInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const quota_view_usage = /** @type {((inputs?: Quota_View_UsageInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Quota_View_UsageInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_quota_view_usage(inputs)
|
||||
return zh_quota_view_usage(inputs)
|
||||
});
|
||||
Reference in New Issue
Block a user