Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Irfan Maulana
committed
Mar 21, 2019
1 parent
032ccb0
commit 9a414a9
Showing
9 changed files
with
2,408 additions
and
1,770 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,11 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
browser: true, | ||
node: true | ||
}, | ||
parserOptions: { | ||
parser: 'babel-eslint' | ||
}, | ||
extends: ['standard'] | ||
}; |
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,13 +1,28 @@ | ||
import { getData as getDataLocal, setData as setDataLocal } from './src/local-storage'; | ||
import { getData as getDataSession, setData as setDataSession } from './src/session-storage'; | ||
import { | ||
getData as getDataLocal, | ||
setData as setDataLocal, | ||
removeItem as removeItemLocal, | ||
clear as clearLocal | ||
} from './src/local-storage'; | ||
|
||
import { | ||
getData as getDataSession, | ||
setData as setDataSession, | ||
removeItem as removeItemSession, | ||
clear as clearSession | ||
} from './src/session-storage'; | ||
|
||
export default { | ||
localStorage: { | ||
getData: getDataLocal, | ||
setData: setDataLocal, | ||
removeItem: removeItemLocal, | ||
clear: clearLocal | ||
}, | ||
sessionStorage: { | ||
getData: getDataSession, | ||
setData: setDataSession, | ||
removeItem: removeItemSession, | ||
clear: clearSession | ||
} | ||
} | ||
}; |
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
Oops, something went wrong.