mirror of
https://github.com/paricafe/misskey.git
synced 2025-04-15 11:29:39 -05:00
refactor
This commit is contained in:
parent
409cd4fbd3
commit
2dc2d2e4fe
3 changed files with 5 additions and 5 deletions
packages/frontend/src
|
@ -33,7 +33,7 @@ type PizzaxChannelMessage<T extends StateDef> = {
|
|||
userId?: string;
|
||||
};
|
||||
|
||||
export class Storage<T extends StateDef> {
|
||||
export class Pizzax<T extends StateDef> {
|
||||
public readonly ready: Promise<void>;
|
||||
public readonly loaded: Promise<void>;
|
||||
|
|
@ -11,13 +11,13 @@ import { hemisphere } from '@@/js/intl-const.js';
|
|||
import type { DeviceKind } from '@/utility/device-kind.js';
|
||||
import type { Plugin } from '@/plugin.js';
|
||||
import { miLocalStorage } from '@/local-storage.js';
|
||||
import { Storage } from '@/pizzax.js';
|
||||
import { Pizzax } from '@/lib/pizzax.js';
|
||||
import { DEFAULT_DEVICE_KIND } from '@/utility/device-kind.js';
|
||||
|
||||
/**
|
||||
* 「状態」を管理するストア(not「設定」)
|
||||
*/
|
||||
export const store = markRaw(new Storage('base', {
|
||||
export const store = markRaw(new Pizzax('base', {
|
||||
accountSetupWizard: {
|
||||
where: 'account',
|
||||
default: 0,
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
|
||||
import { markRaw } from 'vue';
|
||||
import type { Column } from '@/deck.js';
|
||||
import { Storage } from '@/pizzax.js';
|
||||
import { Pizzax } from '@/lib/pizzax.js';
|
||||
|
||||
// TODO: 消す(移行済みのため)
|
||||
export const deckStore = markRaw(new Storage('deck', {
|
||||
export const deckStore = markRaw(new Pizzax('deck', {
|
||||
profile: {
|
||||
where: 'deviceAccount',
|
||||
default: 'default',
|
||||
|
|
Loading…
Add table
Reference in a new issue