support caching map data when map_data_fetch_proxy is set true
This commit is contained in:
+7
-2
@@ -65,12 +65,17 @@ export function* values<K extends string | number | symbol, V>(obj: Record<K, V>
|
||||
}
|
||||
}
|
||||
|
||||
export interface NameValue {
|
||||
export interface GenericNameValue<T> {
|
||||
readonly name: string;
|
||||
readonly value: T;
|
||||
}
|
||||
|
||||
export interface NameValue extends GenericNameValue<string> {
|
||||
readonly name: string;
|
||||
readonly value: string;
|
||||
}
|
||||
|
||||
export interface NameNumeralValue {
|
||||
export interface NameNumeralValue extends GenericNameValue<number> {
|
||||
readonly name: string;
|
||||
readonly value: number;
|
||||
}
|
||||
|
||||
@@ -5,3 +5,10 @@ export interface BrowserCacheStatistics {
|
||||
readonly mapCacheSize: number;
|
||||
readonly othersCacheSize: number;
|
||||
}
|
||||
|
||||
export interface SWMapCacheConfig {
|
||||
enabled: boolean;
|
||||
patterns: string[];
|
||||
maxEntries: number;
|
||||
maxAgeMilliseconds: number;
|
||||
}
|
||||
|
||||
@@ -62,6 +62,8 @@ export interface ApplicationSettings extends BaseApplicationSetting {
|
||||
hideCategoriesWithoutAccounts: boolean;
|
||||
// Exchange Rates Data Page
|
||||
currencySortByInExchangeRatesPage: number;
|
||||
// Browser Cache Settings
|
||||
mapCacheExpiration: number,
|
||||
// Statistics Settings
|
||||
statistics: {
|
||||
defaultChartDataType: number;
|
||||
@@ -187,6 +189,8 @@ export const DEFAULT_APPLICATION_SETTINGS: ApplicationSettings = {
|
||||
hideCategoriesWithoutAccounts: false,
|
||||
// Exchange Rates Data Page
|
||||
currencySortByInExchangeRatesPage: CurrencySortingType.Default.type,
|
||||
// Browser Cache Settings
|
||||
mapCacheExpiration: -1,
|
||||
// Statistics Settings
|
||||
statistics: {
|
||||
defaultChartDataType: ChartDataType.Default.type,
|
||||
|
||||
Reference in New Issue
Block a user