@bbki.ng/site 1.8.6 → 1.8.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @bbki.ng/site
2
2
 
3
+ ## 1.8.8
4
+
5
+ ## 1.8.7
6
+
3
7
  ## 1.8.6
4
8
 
5
9
  ## 1.8.5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/site",
3
- "version": "1.8.6",
3
+ "version": "1.8.8",
4
4
  "description": "code behind bbki.ng",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -52,7 +52,7 @@ export const ImgCtxMenu = (props: {
52
52
  await delImg(props.id);
53
53
  await props.onRemoved?.();
54
54
  toast.success("删除成功", {
55
- position: "top-center",
55
+ position: "bottom-right",
56
56
  });
57
57
  setIsLoading(false);
58
58
  });
@@ -24,7 +24,7 @@ export const LoginMenuItem = () => {
24
24
  onClick={() => {
25
25
  supabase.auth.signOut().then(() => {
26
26
  toast.success("已退出登录", {
27
- position: "top-center",
27
+ position: "bottom-right",
28
28
  });
29
29
  });
30
30
  }}
@@ -33,7 +33,7 @@ export const ArticleCtxMenu = (props: { children: ReactElement }) => {
33
33
  del(title)
34
34
  .then(() => {
35
35
  toast.success("删除成功", {
36
- position: "top-center",
36
+ position: "bottom-right",
37
37
  });
38
38
  dot.setVisibility(false);
39
39
  nav("/blog");
@@ -26,7 +26,7 @@ export const ReloadPrompt = () => {
26
26
  toast("", {
27
27
  description: "发现新版本,是否更新?",
28
28
  duration: 10000,
29
- position: "top-center",
29
+ position: "bottom-right",
30
30
  actionButtonStyle: {
31
31
  backgroundColor: "#fff",
32
32
  color: "rgb(37,99,235)",
@@ -38,7 +38,7 @@ export const ReloadPrompt = () => {
38
38
  // @ts-ignore
39
39
  toast("", {
40
40
  description: `已更新`,
41
- position: "top-center",
41
+ position: "bottom-right",
42
42
  });
43
43
  setNeedRefresh(false);
44
44
  });
@@ -9,7 +9,7 @@ const plugin = await createPlugin("http://localhost:5173/demo.wasm", {
9
9
  toast: (cp: CurrentPlugin, offs: bigint) => {
10
10
  const content = cp.read(offs).text();
11
11
  toast.success(content, {
12
- position: "top-center",
12
+ position: "bottom-right",
13
13
  });
14
14
  },
15
15
  },
@@ -27,6 +27,10 @@ export const useFontLoading = () => {
27
27
  document.fonts.onloadingerror = handleFontLoadingError;
28
28
  document.fonts.onloading = handleFontLoading;
29
29
 
30
+ document.fonts.ready.then(() => {
31
+ handleFontLoadingDone();
32
+ });
33
+
30
34
  return () => {
31
35
  document.fonts.onloadingerror = null;
32
36
  document.fonts.onloading = null;
@@ -163,7 +163,7 @@ export const confirm = (message: string, exec: () => void) => {
163
163
  backgroundColor: "#fff",
164
164
  color: "rgb(37,99,235)",
165
165
  },
166
- position: "top-center",
166
+ position: "bottom-right",
167
167
  action: {
168
168
  label: "是",
169
169
  onClick: () => {