feat: add app logo and

release workflow
This commit is contained in:
Yidadaa
2023-06-15 02:49:08 +08:00
parent 80d5bfd7c0
commit 6264c02543
26 changed files with 122 additions and 13 deletions

View File

@@ -60,7 +60,7 @@ export const useAccessStore = create<AccessControlStore>()(
);
},
fetch() {
if (fetchState > 0) return;
if (fetchState > 0 || getClientConfig()?.buildMode === "export") return;
fetchState = 1;
fetch("/api/config", {
method: "post",

View File

@@ -1,6 +1,7 @@
import { create } from "zustand";
import { persist } from "zustand/middleware";
import { StoreKey } from "../constant";
import { getBuildConfig } from "../config/build";
export enum SubmitKey {
Enter = "Enter",
@@ -21,7 +22,7 @@ export const DEFAULT_CONFIG = {
avatar: "1f603",
fontSize: 14,
theme: Theme.Auto as Theme,
tightBorder: false,
tightBorder: !getBuildConfig().isApp,
sendPreviewBubble: true,
sidebarWidth: 300,