-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: better constant refactoring (#1131)
- Loading branch information
1 parent
6469fc8
commit af765fa
Showing
51 changed files
with
505 additions
and
414 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
class FileNames { | ||
static const likedAudios = 'likedAudios.json'; | ||
static const playlists = 'playlists.json'; | ||
static const pinnedAlbums = 'finallyFixedPinnedAlbums.json'; | ||
static const podcasts = 'podcasts.json'; | ||
static const podcastUpdates = 'podcastsupdates.json'; | ||
static const starredStations = 'uuidStarredStations.json'; | ||
static const lastPositions = 'lastPositions.json'; | ||
static const playerState = 'playerstate.json'; | ||
static const appState = 'appstate.json'; | ||
static const downloads = 'downloads.json'; | ||
static const feedsWithDownloads = 'feedswithdownloads.json'; | ||
static const coverStore = 'coverStore.json'; | ||
|
||
static const all = { | ||
likedAudios, | ||
playlists, | ||
pinnedAlbums, | ||
podcasts, | ||
podcastUpdates, | ||
starredStations, | ||
lastPositions, | ||
playerState, | ||
appState, | ||
downloads, | ||
feedsWithDownloads, | ||
coverStore, | ||
}; | ||
} |
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,21 @@ | ||
class PageIDs { | ||
static const settings = 'settings'; | ||
static const homePage = 'homePage'; | ||
static const selectedPage = 'selectedPageId'; | ||
static const localAudio = 'localAudio'; | ||
static const podcasts = 'podcasts'; | ||
static const radio = 'radio'; | ||
static const newPlaylist = 'newPlaylist'; | ||
static const likedAudios = 'likedAudios'; | ||
static const searchPage = 'searchPageId'; | ||
|
||
static const permanent = { | ||
homePage, | ||
searchPage, | ||
likedAudios, | ||
localAudio, | ||
podcasts, | ||
radio, | ||
settings, | ||
}; | ||
} |
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.