forked from FreeTubeApp/FreeTube
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 79030b4 Author: Emma <MarmadileManteater@proton.me> Date: Fri Feb 23 21:54:42 2024 -0500 bump version number commit 28803d1 Author: Emma <MarmadileManteater@proton.me> Date: Fri Feb 23 21:45:13 2024 -0500 Update yarn lock commit e517085 Merge: dafd7ab 979683c Author: Emma <MarmadileManteater@proton.me> Date: Fri Feb 23 18:40:03 2024 -0500 Merge branch 'development' of https://github.com/MarmadileManteater/FreeTubeCordova into development ... **Full Changelog**: 0.19.1.109...0.19.2.110
- Loading branch information
Showing
18 changed files
with
479 additions
and
255 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
{ | ||
"vueCompilerOptions": { | ||
"target": 2.7 | ||
}, | ||
"compilerOptions": { | ||
"strictNullChecks": true | ||
} | ||
} |
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,20 @@ | ||
import localforage from '../../node_modules/localforage/dist/localforage' | ||
import { requestDirectory, readFromFile, writeToFile } from '../renderer/helpers/cordova' | ||
|
||
export function createInstance(kwargs) { | ||
const instance = localforage.createInstance(kwargs) | ||
return { | ||
async getItem(key) { | ||
const fs = await requestDirectory() | ||
const data = await readFromFile(fs, key) | ||
// if the data is empty, fallback to localstorage | ||
if (data === '') return instance.getItem(key) | ||
// if not, return the data | ||
return data | ||
}, | ||
async setItem(key, value) { | ||
const fs = await requestDirectory() | ||
await writeToFile(fs, key, value) | ||
} | ||
} | ||
} |
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.