mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-23 09:32:29 +01:00
cb4f8efbe6
Added Google Analytics to latest dev branch
27 lines
501 B
TypeScript
27 lines
501 B
TypeScript
import { action, Action } from 'easy-peasy';
|
|
|
|
export interface SiteSettings {
|
|
name: string;
|
|
locale: string;
|
|
recaptcha: {
|
|
enabled: boolean;
|
|
siteKey: string;
|
|
};
|
|
analytics: string;
|
|
}
|
|
|
|
export interface SettingsStore {
|
|
data?: SiteSettings;
|
|
setSettings: Action<SettingsStore, SiteSettings>;
|
|
}
|
|
|
|
const settings: SettingsStore = {
|
|
data: undefined,
|
|
|
|
setSettings: action((state, payload) => {
|
|
state.data = payload;
|
|
}),
|
|
};
|
|
|
|
export default settings;
|