-
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.
Merge pull request #125 from Badhan-BUET-Zone/test-branch
Test branch
- Loading branch information
Showing
13 changed files
with
228 additions
and
43 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -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
Oops, something went wrong.