mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: more migration
This commit is contained in:
1 parent
a1721eb05e
commit
502dcf4e54
146 files changed
+481
-666
No files matched your search
@@ -1,28 +1,10 @@
|
||||
'use client';
|
||||
|
||||
import lodash from 'lodash';
|
||||
import lodash from 'lodash-es';
|
||||
import { create } from 'zustand';
|
||||
import { persist } from 'zustand/middleware';
|
||||
import { createContextualSafeStore } from '../../core/zustand/createContextualSafeStore';
|
||||
|
||||
interface WargamingLogin {
|
||||
id: number;
|
||||
token: string;
|
||||
expires: number;
|
||||
}
|
||||
|
||||
interface PatreonLogin {
|
||||
token: string;
|
||||
refreshToken: string;
|
||||
expires: number;
|
||||
}
|
||||
|
||||
export interface App {
|
||||
developerMode: boolean;
|
||||
logins: {
|
||||
wargaming?: WargamingLogin;
|
||||
patreon?: PatreonLogin;
|
||||
};
|
||||
policiesAgreementIndex: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
'use client';
|
||||
|
||||
import { create } from 'zustand';
|
||||
import { DuelMember } from './duel';
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
'use client';
|
||||
|
||||
import lodash from 'lodash';
|
||||
import lodash from 'lodash-es';
|
||||
import { create } from 'zustand';
|
||||
import { persist, subscribeWithSelector } from 'zustand/middleware';
|
||||
import { createContextualSafeStore } from '../core/zustand/createContextualSafeStore';
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
'use client';
|
||||
|
||||
import {
|
||||
type EngineDefinition,
|
||||
type GunDefinition,
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
'use client';
|
||||
|
||||
import * as radixColors from '@radix-ui/colors';
|
||||
import { create } from 'zustand';
|
||||
import { createContextualSafeStore } from '../../core/zustand/createContextualSafeStore';
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
import { persistentMap } from '@nanostores/persistent';
|
||||
|
||||
type PatreonLogin =
|
||||
| {
|
||||
token: undefined;
|
||||
}
|
||||
| {
|
||||
token: string;
|
||||
refreshToken: string;
|
||||
expires: string;
|
||||
};
|
||||
|
||||
export const $patreonLogin = persistentMap<PatreonLogin>('patreon:', {
|
||||
token: undefined,
|
||||
});
|
||||
@@ -1,7 +1,5 @@
|
||||
'use client';
|
||||
|
||||
import { IndividualTankStats, Region, Stat } from '@blitzkit/core';
|
||||
import lodash from 'lodash';
|
||||
import lodash from 'lodash-es';
|
||||
import { create } from 'zustand';
|
||||
import { persist } from 'zustand/middleware';
|
||||
import { createContextualSafeStore } from '../core/zustand/createContextualSafeStore';
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
'use client';
|
||||
|
||||
import { TankClass, Tier, TreeType } from '@blitzkit/core';
|
||||
import { create } from 'zustand';
|
||||
import { createContextualSafeStore } from '../core/zustand/createContextualSafeStore';
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
'use client';
|
||||
|
||||
import lodash from 'lodash';
|
||||
import lodash from 'lodash-es';
|
||||
import { create } from 'zustand';
|
||||
import { persist, subscribeWithSelector } from 'zustand/middleware';
|
||||
import { createContextualSafeStore } from '../../core/zustand/createContextualSafeStore';
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
'use client';
|
||||
|
||||
import { create } from 'zustand';
|
||||
import { createContextualSafeStore } from '../../core/zustand/createContextualSafeStore';
|
||||
import { TankPerformanceSortTypeNames } from './constants';
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
'use client';
|
||||
|
||||
import { ModelDefinition } from '@blitzkit/core';
|
||||
import { Vector3 } from 'three';
|
||||
import { create } from 'zustand';
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
'use client';
|
||||
|
||||
import { TankClass, Tier, TreeType } from '@blitzkit/core';
|
||||
import lodash from 'lodash';
|
||||
import lodash from 'lodash-es';
|
||||
import { create } from 'zustand';
|
||||
import { persist, subscribeWithSelector } from 'zustand/middleware';
|
||||
import { ENVIRONMENTS } from '../../app/tools/tankopedia/[id]/components/Lighting';
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
'use client';
|
||||
|
||||
import { create } from 'zustand';
|
||||
import { createContextualSafeStore } from '../core/zustand/createContextualSafeStore';
|
||||
import {
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
import { persistentMap } from '@nanostores/persistent';
|
||||
|
||||
type PatreonLogin =
|
||||
| {
|
||||
token: undefined;
|
||||
}
|
||||
| {
|
||||
token: string;
|
||||
id: string;
|
||||
expires: string;
|
||||
};
|
||||
|
||||
export const $wargamingLogin = persistentMap<PatreonLogin>('wargaming:', {
|
||||
token: undefined,
|
||||
});
|
||||
Reference in new issue
Block a user