mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-04 23:24:21 +00:00
fix(webui): sidebar selection styling, kanban active state, pointer cursors, and owner dashboard (#344)
* fix(webui): update sidebar selection styling, kanban active state, and pointer cursors * feat(webui): move dashboard to left sidebar and prevent mount animation * fix(e2e): update create-project test to click Home button in sidebar
This commit is contained in:
+1
@@ -1,3 +1,4 @@
|
||||
export * from "./home.js";
|
||||
export * from "./dashboard.js";
|
||||
export * from "./notifications.js";
|
||||
export * from "./uploads.js";
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
/* eslint-disable */
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
export * from './home.js'
|
||||
export * from './dashboard.js'
|
||||
export * from './notifications.js'
|
||||
export * from './uploads.js'
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Home" |
|
||||
*
|
||||
* @param {HomeInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const home: ((inputs?: HomeInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<HomeInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type HomeInputs = {};
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} HomeInputs */
|
||||
|
||||
const en_home = /** @type {(inputs: HomeInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Home`)
|
||||
};
|
||||
|
||||
const zh_home = /** @type {(inputs: HomeInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`主页`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Home" |
|
||||
*
|
||||
* @param {HomeInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const home = /** @type {((inputs?: HomeInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<HomeInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_home(inputs)
|
||||
return zh_home(inputs)
|
||||
});
|
||||
Reference in New Issue
Block a user