mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 18:04:46 +02:00

* add config option to disable server descriptions * only disable server descriptions for users but not for admins * Add , * invert * unset description in server transformer if disabled * remove testing leftover --------- Co-authored-by: notCharles <charles@pelican.dev>
28 lines
548 B
TypeScript
28 lines
548 B
TypeScript
import { action, Action } from 'easy-peasy';
|
|
|
|
export interface SiteSettings {
|
|
name: string;
|
|
locale: string;
|
|
recaptcha: {
|
|
enabled: boolean;
|
|
siteKey: string;
|
|
};
|
|
usesSyncDriver: boolean;
|
|
serverDescriptionsEditable: boolean;
|
|
}
|
|
|
|
export interface SettingsStore {
|
|
data?: SiteSettings;
|
|
setSettings: Action<SettingsStore, SiteSettings>;
|
|
}
|
|
|
|
const settings: SettingsStore = {
|
|
data: undefined,
|
|
|
|
setSettings: action((state, payload) => {
|
|
state.data = payload;
|
|
}),
|
|
};
|
|
|
|
export default settings;
|