mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-10-30 00:05:57 +00:00
* feat: change isProductPro logic (#12712) * fix: tighten frontend RBAC permission guards (#12717) * fix: tighten frontend RBAC permission guards * feat: add permission directive coverage * refactor frontend global store usage * fix: harden file access and fallback handling * feat: improve frontend permission handling --------- Co-authored-by: CityFun <31820853+zhengkunwang223@users.noreply.github.com>
33 lines
696 B
Go
33 lines
696 B
Go
declare namespace Menu {
|
|
interface MenuOptions {
|
|
path: string;
|
|
title: string;
|
|
icon?: string;
|
|
isLink?: string;
|
|
close?: boolean;
|
|
children?: MenuOptions[];
|
|
}
|
|
}
|
|
|
|
declare type Recordable<T = any> = Record<string, T>;
|
|
|
|
declare interface ViteEnv {
|
|
VITE_API_URL: string;
|
|
VITE_PORT: number;
|
|
VITE_OPEN: boolean;
|
|
VITE_GLOB_APP_TITLE: string;
|
|
VITE_DROP_CONSOLE: boolean;
|
|
VITE_PROXY_URL: string;
|
|
VITE_BUILD_GZIP: boolean;
|
|
VITE_REPORT: boolean;
|
|
PANEL_XPACK: boolean;
|
|
}
|
|
|
|
declare interface RouterButton {
|
|
label: string;
|
|
path?: string;
|
|
name?: string;
|
|
count?: number;
|
|
permission?: string | string[];
|
|
}
|