[Storage > Parity] Rewrite, rename

pull/55/head
Oj18 3 years ago
parent 7fcb5862cd
commit d1923d5f55

@ -8,8 +8,8 @@
- **Search text hints.** Now shows no results text for no results, and hints to go to an other category if there are results in that and not the current category.
- **Improved profile store.** Better and more reliable scrolling down to card and now highlight clears after a short time.
- ### Hybrid Storage
- **Heavy reduction in GooseMod wipes.** Sometimes when Discord updates (desktop) GooseMod settings and modules would get cleared due to a Discord client bug. This should now hopefully be eliminated or at least heavily reduced thanks to a new hybrid storage backup system.
- ### Parity Storage
- **Heavy reduction in GooseMod wipes / resets.** Sometimes when Discord updates (desktop) GooseMod settings and modules would get cleared due to a Discord client bug. This should now hopefully be eliminated or at least heavily reduced thanks to a new parity storage backup system.
- ### Tweaks Settings
- **Added tweaks setting section.** Includes new minor changes you can now toggle on or off. New settings (and more will likely be added in future updates):

@ -1,8 +1,5 @@
import fixLocalStorage from '../../util/discord/fixLocalStorage';
import * as hybrid_localStorage from './hyrbid/localStorage';
import * as hybrid_userDataCache from './hyrbid/userDataCache';
import paritySystems from './parity';
let storageCache = {};
@ -33,15 +30,13 @@ export const init = async () => {
export const restore = async () => {
console.log('GooseMod', 'Restoring storage...');
await hybrid_localStorage.restore({ set });
await hybrid_userDataCache.restore({ set });
for (const system of paritySystems) await system.restore({ set });
};
export const backup = async () => {
console.log('GooseMod', 'Backing up storage...');
await hybrid_localStorage.backup({ keys, get });
await hybrid_userDataCache.backup({ keys, get });
for (const system of paritySystems) await system.backup({ keys, get });
};
export const set = (key, value) => {

@ -0,0 +1,7 @@
import * as parity_localStorage from './localStorage';
import * as parity_userDataCache from './userDataCache';
export default [
parity_localStorage,
parity_userDataCache
];
Loading…
Cancel
Save