mirror of
https://github.com/pawelmalak/flame.git
synced 2026-03-10 14:33:11 +08:00
Added option to set custom day and month
This commit is contained in:
@@ -6,3 +6,4 @@ export * from './searchParser';
|
||||
export * from './redirectUrl';
|
||||
export * from './templateObjects';
|
||||
export * from './inputHandler';
|
||||
export * from './storeUIConfig';
|
||||
|
||||
8
client/src/utility/storeUIConfig.ts
Normal file
8
client/src/utility/storeUIConfig.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { Config } from '../interfaces';
|
||||
|
||||
export const storeUIConfig = <K extends keyof Config>(
|
||||
key: K,
|
||||
config: Config
|
||||
) => {
|
||||
localStorage.setItem(key, `${config[key]}`);
|
||||
};
|
||||
@@ -24,4 +24,7 @@ export const configTemplate: Config = {
|
||||
useAmericanDate: false,
|
||||
disableAutofocus: false,
|
||||
greetingsSchema: 'Good evening!;Good afternoon!;Good morning!;Good night!',
|
||||
daySchema: 'Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday',
|
||||
monthSchema:
|
||||
'January;February;March;April;May;June;July;August;September;October;November;December',
|
||||
};
|
||||
|
||||
@@ -16,6 +16,9 @@ export const otherSettingsTemplate: OtherSettingsForm = {
|
||||
unpinStoppedApps: true,
|
||||
useAmericanDate: false,
|
||||
greetingsSchema: 'Good evening!;Good afternoon!;Good morning!;Good night!',
|
||||
daySchema: 'Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday',
|
||||
monthSchema:
|
||||
'January;February;March;April;May;June;July;August;September;October;November;December',
|
||||
};
|
||||
|
||||
export const weatherSettingsTemplate: WeatherForm = {
|
||||
|
||||
Reference in New Issue
Block a user