-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mahathir/#105/add cache and right button disable
- Loading branch information
1 parent
bd76196
commit 8663164
Showing
10 changed files
with
72 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { set, get, remove } from '@/localDatabase/helpers' | ||
|
||
export type YearMonthCountType = { | ||
[year: string]: { | ||
[month: string]: number; | ||
}; | ||
}; | ||
|
||
const storeKey = 'donationCountYearMonth' | ||
const save = (donationCountYearMonth: YearMonthCountType) => { | ||
set(storeKey, donationCountYearMonth) | ||
} | ||
const load = () => { | ||
return get(storeKey) | ||
} | ||
const clear = () => { | ||
remove(storeKey) | ||
} | ||
|
||
export default { | ||
save, load, clear | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import emailRecovery from './emailRecovery' | ||
import token from './token' | ||
import theme from './theme' | ||
import members from './members' | ||
import publicContacts from './publicContacts' | ||
import frontendSettings from './frontendSettings' | ||
import myProfile from "./myProfile"; | ||
import donationCountYearMonth from './donationCountYearMonth' | ||
const reset = () => { | ||
localStorage.clear() | ||
} | ||
|
||
export default { | ||
emailRecovery, | ||
token, | ||
theme, | ||
members, | ||
publicContacts, | ||
frontendSettings, | ||
myProfile, | ||
donationCountYearMonth, | ||
reset | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters