@bbki.ng/site 1.1.20 → 1.1.22

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.22
4
+
5
+ ## 1.1.21
6
+
3
7
  ## 1.1.20
4
8
 
5
9
  ## 1.1.19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/site",
3
- "version": "1.1.20",
3
+ "version": "1.1.22",
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.39",
19
+ "@bbki.ng/components": "workspace:2.1.40",
20
20
  "@supabase/supabase-js": "^1.30.6",
21
21
  "classnames": "2.3.1",
22
22
  "react": "^18.0.0",
@@ -8,6 +8,8 @@ import { BookList } from "@/components/book_list";
8
8
  ## 编码
9
9
 
10
10
  - game dev
11
+ - c#
12
+ - unity
11
13
 
12
14
  ## 阅读
13
15
 
@@ -27,8 +27,10 @@ export const BookList = () => {
27
27
  );
28
28
  };
29
29
 
30
+ const filteredBooks = books.filter((m: any) => m.visible == 1);
31
+
30
32
  const renderRow = (index: number) => {
31
- const { name: title, link, status } = books[index];
33
+ const { name: title, link, status } = filteredBooks[index];
32
34
  return (
33
35
  <>
34
36
  <Table.Cell style={CELL_STYLE}>
@@ -42,7 +44,7 @@ export const BookList = () => {
42
44
  };
43
45
  return (
44
46
  <Table
45
- rowCount={books.length}
47
+ rowCount={filteredBooks.length}
46
48
  rowRenderer={renderRow}
47
49
  headerRenderer={renderHeader}
48
50
  />
@@ -10,6 +10,7 @@ const CELL_STYLE = {
10
10
 
11
11
  export const MovieList = () => {
12
12
  const { movies, isLoading, isError } = useMovies();
13
+
13
14
  if (isError) {
14
15
  return <Error error={isError} />;
15
16
  }
@@ -18,6 +19,8 @@ export const MovieList = () => {
18
19
  return <TableSkeleton />;
19
20
  }
20
21
 
22
+ const filteredMovies = movies.filter((m: any) => m.visible == 1);
23
+
21
24
  const renderHeader = () => {
22
25
  return (
23
26
  <>
@@ -28,7 +31,7 @@ export const MovieList = () => {
28
31
  };
29
32
 
30
33
  const renderRow = (index: number) => {
31
- const { name, link, status } = movies[index];
34
+ const { name, link, status } = filteredMovies[index];
32
35
  return (
33
36
  <>
34
37
  <Table.Cell style={CELL_STYLE}>
@@ -42,7 +45,7 @@ export const MovieList = () => {
42
45
  };
43
46
  return (
44
47
  <Table
45
- rowCount={movies.length}
48
+ rowCount={filteredMovies.length}
46
49
  rowRenderer={renderRow}
47
50
  headerRenderer={renderHeader}
48
51
  />
@@ -3,10 +3,6 @@ import { CenterLinkList } from "@/components";
3
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
-
10
6
  return (
11
7
  <div className="w-fit m-auto">
12
8
  <CenterLinkList
@@ -19,6 +15,10 @@ export const Cover = (props: { className: string }) => {
19
15
  to: "/blog",
20
16
  name: "cd ./blog",
21
17
  },
18
+ {
19
+ to: "/now",
20
+ name: "cd ./now",
21
+ },
22
22
  ]}
23
23
  title=" "
24
24
  />