mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-03 06:24:30 +00:00
* feat(project): add recent viewed files section to project folder tree * feat(webui): disable toolbar buttons and context menu in recents page * test(core): optimize recents cap test execution time * feat(webui): show hint text in recents page top toolbar * feat(webui): rename recents section to Recently Viewed * refactor(core): consolidate recents methods into AssetService * fix(api): forward pagination parameters in folder children endpoint (#349) * fix(project-recents): scope views and disable recents mutations * fix(api): allow recent views in demo mode * fix(api): limit demo recent view exception to post
29 lines
1.3 KiB
JavaScript
Generated
29 lines
1.3 KiB
JavaScript
Generated
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{}} Recents_Toolbar_HintInputs */
|
|
|
|
const en_recents_toolbar_hint = /** @type {(inputs: Recents_Toolbar_HintInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`This page displays the 100 most recent files you viewed in this project.`)
|
|
};
|
|
|
|
const zh_recents_toolbar_hint = /** @type {(inputs: Recents_Toolbar_HintInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`此页面显示您最近在当前项目中查看过的 100 个文件。`)
|
|
};
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "This page displays the 100 most recent files you viewed in this project." |
|
|
*
|
|
* @param {Recents_Toolbar_HintInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const recents_toolbar_hint = /** @type {((inputs?: Recents_Toolbar_HintInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Recents_Toolbar_HintInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === "en") return en_recents_toolbar_hint(inputs)
|
|
return zh_recents_toolbar_hint(inputs)
|
|
}); |