fix: blink not launching or rendering on opening

This commit is contained in:
Prayag Prajapati committed 2024-11-09 18:31:31 +05:30
1 parent 61441b918c
commit d586c3e38d
31 files changed
+546 -279

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
import type { Api } from "@jellyfin/sdk";
import { ImageUrlsApi } from "@jellyfin/sdk/lib/utils/api/image-urls-api";
const getImageUrlsApi = (api: Api) => new ImageUrlsApi(api.configuration);
export default getImageUrlsApi;
+2 -2
View File
@@ -1,5 +1,5 @@
import type { RecommendedServerInfo } from "@jellyfin/sdk";
import { Store } from "@tauri-apps/plugin-store";
import { load } from "@tauri-apps/plugin-store";
export interface ServerInfo extends RecommendedServerInfo {
id: string;
@@ -10,7 +10,7 @@ export interface ServerStore {
servers: ServerInfo[];
}
const store = new Store(".servers.dat");
const store = await load(".servers.dat", { autoSave: true });
/**
* Set server in .servers.dat
+2 -2
View File
@@ -1,6 +1,6 @@
import { Store } from "@tauri-apps/plugin-store";
import { load } from "@tauri-apps/plugin-store";
const SettingsStore = new Store(".settings.dat");
const SettingsStore = await load(".settings.dat", { autoSave: true });
/**
* settingKey should be of type:
+2 -2
View File
@@ -1,4 +1,4 @@
import { Store } from "@tauri-apps/plugin-store";
import { load } from "@tauri-apps/plugin-store";
export interface UserStore {
user: {
@@ -7,7 +7,7 @@ export interface UserStore {
};
}
const user = new Store(".user.dat");
const user = await load(".user.dat", { autoSave: true });
/**
* Set User details to .user.dat