mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
chore(deps): upgrade all dependencies, toolchains and images (#2825)
This commit is contained in:
1 parent
56e04e7b53
commit
3b552e00ef
510 files changed
+23614
-37473
No files matched your search
@@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import type {ValueOf} from '@fluxer/constants/src/ValueOf';
|
||||
import {action, makeAutoObservable} from 'mobx';
|
||||
import {makeAutoObservable} from 'mobx';
|
||||
|
||||
const InitializationState = {
|
||||
LOADING: 'LOADING',
|
||||
@@ -41,32 +41,27 @@ class Initialization {
|
||||
return this.state === InitializationState.READY;
|
||||
}
|
||||
|
||||
@action
|
||||
setLoading(): void {
|
||||
this.state = InitializationState.LOADING;
|
||||
this.error = null;
|
||||
}
|
||||
|
||||
@action
|
||||
setConnecting(): void {
|
||||
this.state = InitializationState.CONNECTING;
|
||||
this.error = null;
|
||||
}
|
||||
|
||||
@action
|
||||
setReady(): void {
|
||||
this.state = InitializationState.READY;
|
||||
this.hasCompletedInitialLoad = true;
|
||||
this.error = null;
|
||||
}
|
||||
|
||||
@action
|
||||
setError(error: string): void {
|
||||
this.state = InitializationState.ERROR;
|
||||
this.error = error;
|
||||
}
|
||||
|
||||
@action
|
||||
reset(): void {
|
||||
this.state = InitializationState.LOADING;
|
||||
this.hasCompletedInitialLoad = false;
|
||||
|
||||
@@ -26,6 +26,8 @@ import type {InstanceConfigResponse} from '@fluxer/schema/src/domains/admin/Admi
|
||||
import {makeAutoObservable, reaction, runInAction} from 'mobx';
|
||||
|
||||
export type {
|
||||
GifProvider,
|
||||
GifProviderInfo,
|
||||
InstanceCaptcha,
|
||||
InstanceCommunity,
|
||||
InstanceDiscoveryResponse,
|
||||
@@ -34,7 +36,6 @@ export type {
|
||||
InstanceServices,
|
||||
InstanceSsoConfig,
|
||||
};
|
||||
export type {GifProvider, GifProviderInfo};
|
||||
|
||||
export interface RuntimeConfigSnapshot {
|
||||
apiEndpoint: string;
|
||||
|
||||
Reference in new issue
Block a user