@bbki.ng/site 1.1.18 → 1.1.20
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 +4 -0
- package/dev-dist/sw.js +1 -1
- package/package.json +2 -2
- package/src/app.tsx +1 -3
- package/src/articles/now.mdx +6 -3
- package/src/components/Footer.tsx +1 -1
- package/src/components/reload_prompt/index.tsx +3 -4
- package/src/pages/cover/index.tsx +21 -14
package/CHANGELOG.md
CHANGED
package/dev-dist/sw.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bbki.ng/site",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.20",
|
|
4
4
|
"description": "code behind bbki.ng",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"url": "git+https://github.com/bbbottle/bbki.ng.git"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@bbki.ng/components": "workspace:2.1.
|
|
19
|
+
"@bbki.ng/components": "workspace:2.1.39",
|
|
20
20
|
"@supabase/supabase-js": "^1.30.6",
|
|
21
21
|
"classnames": "2.3.1",
|
|
22
22
|
"react": "^18.0.0",
|
package/src/app.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useContext } from "react";
|
|
2
2
|
import { Routes, Route, Outlet } from "react-router-dom";
|
|
3
|
-
import { Nav, Page, NotFound
|
|
3
|
+
import { Nav, Page, NotFound } from "@bbki.ng/components";
|
|
4
4
|
import { HotKeyNav, Stickers } from "./components";
|
|
5
5
|
import { threeColWrapper } from "@/components/with_wrapper";
|
|
6
6
|
import { Cover } from "./pages";
|
|
@@ -21,7 +21,6 @@ import {
|
|
|
21
21
|
GlobalLoadingStateProvider,
|
|
22
22
|
} from "@/global_loading_state_provider";
|
|
23
23
|
import { UploadPage } from "@/pages/upload";
|
|
24
|
-
import { Footer } from "@/components/Footer";
|
|
25
24
|
|
|
26
25
|
const Layout = () => {
|
|
27
26
|
const { isLoading } = useContext(GlobalLoadingContext);
|
|
@@ -32,7 +31,6 @@ const Layout = () => {
|
|
|
32
31
|
<Nav paths={usePaths()} className="blur-cover" loading={isLoading} />
|
|
33
32
|
}
|
|
34
33
|
main={<Outlet />}
|
|
35
|
-
footer={<Footer />}
|
|
36
34
|
/>
|
|
37
35
|
</>
|
|
38
36
|
);
|
package/src/articles/now.mdx
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
---
|
|
2
|
-
title:
|
|
2
|
+
title: ""
|
|
3
3
|
---
|
|
4
4
|
|
|
5
5
|
import { MovieList } from "@/components/movie_list";
|
|
6
6
|
import { BookList } from "@/components/book_list";
|
|
7
7
|
|
|
8
8
|
## 编码
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
- game dev
|
|
10
11
|
|
|
11
12
|
## 阅读
|
|
13
|
+
|
|
12
14
|
<BookList />
|
|
13
15
|
|
|
14
16
|
## 电影
|
|
15
|
-
|
|
17
|
+
|
|
18
|
+
<MovieList />
|
|
@@ -14,7 +14,7 @@ export const Footer = () => {
|
|
|
14
14
|
const appVer = GLOBAL_BBKING_VERSION;
|
|
15
15
|
const tagUrl = `https://github.com/bbbottle/bottle/releases/tag/@bbki.ng/site@${appVer}`;
|
|
16
16
|
return (
|
|
17
|
-
<div className="
|
|
17
|
+
<div className="mt-32">
|
|
18
18
|
<Tag to={tagUrl} prefix="v" external>
|
|
19
19
|
{appVer}
|
|
20
20
|
</Tag>
|
|
@@ -24,7 +24,7 @@ export const ReloadPrompt = () => {
|
|
|
24
24
|
toast("", {
|
|
25
25
|
description: "发现新版本,是否更新?",
|
|
26
26
|
duration: 10000,
|
|
27
|
-
position: "
|
|
27
|
+
position: "top-center",
|
|
28
28
|
actionButtonStyle: {
|
|
29
29
|
backgroundColor: "#fff",
|
|
30
30
|
color: "rgb(37,99,235)",
|
|
@@ -34,10 +34,9 @@ export const ReloadPrompt = () => {
|
|
|
34
34
|
onClick: () => {
|
|
35
35
|
updateServiceWorker(false).then(() => {
|
|
36
36
|
// @ts-ignore
|
|
37
|
-
const appVer = GLOBAL_BBKING_VERSION;
|
|
38
37
|
toast("", {
|
|
39
|
-
description:
|
|
40
|
-
position: "
|
|
38
|
+
description: `已更新`,
|
|
39
|
+
position: "top-center",
|
|
41
40
|
});
|
|
42
41
|
setNeedRefresh(false);
|
|
43
42
|
});
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { LinkList } from "@bbki.ng/components";
|
|
3
2
|
import { CenterLinkList } from "@/components";
|
|
3
|
+
import { Footer } from "@/components/Footer";
|
|
4
4
|
|
|
5
5
|
export const Cover = (props: { className: string }) => {
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
const appVer = GLOBAL_BBKING_VERSION;
|
|
8
|
+
const tagUrl = `https://github.com/bbbottle/bottle/releases/tag/@bbki.ng/site@${appVer}`;
|
|
9
|
+
|
|
6
10
|
return (
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
<div className="w-fit m-auto">
|
|
12
|
+
<CenterLinkList
|
|
13
|
+
links={[
|
|
14
|
+
{
|
|
15
|
+
to: "/projects",
|
|
16
|
+
name: "cd ./projects",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
to: "/blog",
|
|
20
|
+
name: "cd ./blog",
|
|
21
|
+
},
|
|
22
|
+
]}
|
|
23
|
+
title=" "
|
|
24
|
+
/>
|
|
25
|
+
<Footer />
|
|
26
|
+
</div>
|
|
20
27
|
);
|
|
21
28
|
};
|