@bbki.ng/site 1.1.8 → 1.1.10

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.10
4
+
5
+ ## 1.1.9
6
+
3
7
  ## 1.1.8
4
8
 
5
9
  ## 1.1.7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/site",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "description": "code behind bbki.ng",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -15,43 +15,30 @@ export const ReloadPrompt = () => {
15
15
  onOfflineReady() {
16
16
  console.log("App is offline-ready");
17
17
  toast("", {
18
- description: "已支持离线访问。",
18
+ description: "已支持离线访问",
19
19
  position: "bottom-center",
20
- actionButtonStyle: {
21
- backgroundColor: "#fff",
22
- color: "rgb(37,99,235)",
23
- },
24
20
  });
25
21
  },
26
22
  });
27
23
 
28
- // @ts-ignore
29
- const appVer = GLOBAL_BBKING_VERSION;
30
-
31
24
  useEffect(() => {
32
25
  if (!needRefresh) {
33
- console.log("版本 v" + appVer + ",无需更新。");
26
+ console.log("无需更新");
34
27
  return;
35
28
  }
36
29
 
37
- toast("", {
38
- description: "检测到更新,当前版本 v" + appVer + "。是否更新?",
39
- dismissible: false,
40
- position: "bottom-center",
41
- actionButtonStyle: {
42
- backgroundColor: "#fff",
43
- color: "rgb(37,99,235)",
44
- },
45
- action: {
46
- label: "是",
47
- onClick: () => {
48
- if (!needRefresh) {
49
- setNeedRefresh(false);
50
- return;
51
- }
52
- updateServiceWorker(true);
53
- },
54
- },
30
+ updateServiceWorker(true).then(() => {
31
+ // @ts-ignore
32
+ const appVer = GLOBAL_BBKING_VERSION;
33
+
34
+ toast("", {
35
+ description: "已自动更新到 v" + appVer + "。",
36
+ position: "bottom-center",
37
+ });
38
+
39
+ if (!needRefresh) {
40
+ setNeedRefresh(false);
41
+ }
55
42
  });
56
43
  }, [needRefresh]);
57
44
 
@@ -15,8 +15,8 @@ const Projects = () => {
15
15
 
16
16
  export default () => {
17
17
  return (
18
- <MySuspense>
19
- <Projects />
20
- </MySuspense>
18
+ // <MySuspense>
19
+ <Projects />
20
+ // </MySuspense>
21
21
  );
22
22
  };
@@ -31,8 +31,8 @@ const Posts = (props: TxtProps) => {
31
31
 
32
32
  export default (props: TxtProps) => {
33
33
  return (
34
- <MySuspense>
35
- <Posts {...props} />
36
- </MySuspense>
34
+ // <MySuspense>
35
+ <Posts {...props} />
36
+ // </MySuspense>
37
37
  );
38
38
  };