@bbki.ng/site 1.1.17 → 1.1.19

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.1.19
4
+
5
+ ## 1.1.18
6
+
3
7
  ## 1.1.17
4
8
 
5
9
  ## 1.1.16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/site",
3
- "version": "1.1.17",
3
+ "version": "1.1.19",
4
4
  "description": "code behind bbki.ng",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,5 +1,4 @@
1
- import React, { useEffect } from "react";
2
- import { toast, Toaster } from "sonner";
1
+ import { toast } from "sonner";
3
2
 
4
3
  // @ts-ignore
5
4
  import { useRegisterSW } from "virtual:pwa-register/react";
@@ -35,9 +34,8 @@ export const ReloadPrompt = () => {
35
34
  onClick: () => {
36
35
  updateServiceWorker(false).then(() => {
37
36
  // @ts-ignore
38
- const appVer = GLOBAL_BBKING_VERSION;
39
- toast("", {
40
- description: `已更新到 v${appVer}`,
37
+ toast.success("", {
38
+ description: `已更新`,
41
39
  position: "bottom-center",
42
40
  });
43
41
  setNeedRefresh(false);
@@ -24,7 +24,7 @@ const Posts = (props: TxtProps) => {
24
24
  );
25
25
  }
26
26
 
27
- const links = [...ArticleList, ...titleList];
27
+ const links = [...titleList, ...ArticleList];
28
28
 
29
29
  return <CenterLinkList links={props.articleList || links} title=" " />;
30
30
  };