mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 14:53:45 +02:00
Fix recaptcha on login forms
This commit is contained in:
25
resources/scripts/state/settings.ts
Normal file
25
resources/scripts/state/settings.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { action, Action } from 'easy-peasy';
|
||||
|
||||
export interface SiteSettings {
|
||||
name: string;
|
||||
locale: string;
|
||||
recaptcha: {
|
||||
enabled: boolean;
|
||||
siteKey: 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;
|
||||
Reference in New Issue
Block a user