-
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.
- Loading branch information
1 parent
5369d79
commit b559e53
Showing
6 changed files
with
17 additions
and
54 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
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,3 +1,3 @@ | ||
import { storageKeyValueStore } from 'src/stores/storageKeyValueStore' | ||
import { localStore } from 'svelte-storages' | ||
|
||
export const cities = storageKeyValueStore('cities', localStorage) | ||
export const cities = localStore('cities') |
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,9 +1,11 @@ | ||
import { storageKeyValueStore } from 'src/stores/storageKeyValueStore' | ||
import { localStore } from 'svelte-storages' | ||
|
||
/** | ||
* Settings store | ||
* | ||
* Keys: | ||
* - current_city | ||
* - locale | ||
* | ||
* - `current_city` | ||
* - `locale` | ||
*/ | ||
export const settings = storageKeyValueStore('settings', localStorage) | ||
export const settings = localStore('settings') |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { storageKeyValueStore } from 'src/stores/storageKeyValueStore' | ||
import { sessionStore } from 'svelte-storages' | ||
|
||
export const weather = storageKeyValueStore('weather', sessionStorage) | ||
export const weather = sessionStore('weather') |
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