@bbki.ng/site 1.0.11 → 1.0.13

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.0.13
4
+
5
+ ## 1.0.12
6
+
3
7
  ## 1.0.11
4
8
 
5
9
  ## 1.0.10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/site",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
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.30",
19
+ "@bbki.ng/components": "workspace:2.1.32",
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
@@ -49,7 +49,7 @@ export const App = () => {
49
49
  return (
50
50
  <SWR>
51
51
  <HotKeyNav>
52
- <Stickers />
52
+ {/*<Stickers />*/}
53
53
  <GlobalLoadingStateProvider>
54
54
  <Routes>
55
55
  <Route path="/" element={<Layout />}>
@@ -1,15 +1,17 @@
1
1
  import React from "react";
2
2
  import { FunctionComponent } from "react";
3
3
  import { ArticlePage } from "@/components/article";
4
- import { ThreeColLayout, ErrorBoundary } from "@bbki.ng/components";
4
+ import { ThreeColLayout, ErrorBoundary, Link } from "@bbki.ng/components";
5
5
 
6
6
  export const withArticleWrapper =
7
7
  (Component: FunctionComponent<any>): FunctionComponent<any> =>
8
8
  (props: any) => {
9
9
  return (
10
- <ArticlePage {...props}>
11
- <Component />
12
- </ArticlePage>
10
+ <>
11
+ <ArticlePage {...props}>
12
+ <Component />
13
+ </ArticlePage>
14
+ </>
13
15
  );
14
16
  };
15
17
 
@@ -1,10 +1,20 @@
1
1
  import React from "react";
2
- import { Article } from "@bbki.ng/components";
2
+ import { LinkList } from "@bbki.ng/components";
3
3
 
4
4
  export const Cover = (props: { className: string }) => {
5
5
  return (
6
- <Article title="">
7
- <div className="bg-white">This page intentionally left blank</div>
8
- </Article>
6
+ <LinkList
7
+ links={[
8
+ {
9
+ to: "/projects",
10
+ name: "ls *.png",
11
+ },
12
+ {
13
+ to: "/blog",
14
+ name: "ls *.md",
15
+ },
16
+ ]}
17
+ title="history"
18
+ />
9
19
  );
10
20
  };
@@ -3,7 +3,7 @@ import { MySuspense } from "@/components";
3
3
  import { useParams } from "react-router-dom";
4
4
  import { useProjects } from "@/hooks/use_projects";
5
5
  import { imageFormatter } from "@/utils";
6
- import { Gallery, Nav } from "@bbki.ng/components";
6
+ import { Gallery, Nav, Link } from "@bbki.ng/components";
7
7
  import { usePaths } from "@/hooks";
8
8
  import { ImageUploader } from "@/components/ImageUploader";
9
9
 
@@ -30,7 +30,11 @@ const ProjectDetail = () => {
30
30
  <Gallery images={projects.images.map(imageFormatter)}>
31
31
  {renderUploader()}
32
32
  </Gallery>
33
- <Nav paths={usePaths()} mini className="justify-center py-32 md:hidden" />
33
+ <div className="w-full flex justify-center">
34
+ <Link to="/projects" className="w-full py-32 md:hidden text-center">
35
+ cd ..
36
+ </Link>
37
+ </div>
34
38
  </>
35
39
  );
36
40
  };
@@ -2,7 +2,7 @@ import React, { ReactElement } from "react";
2
2
  import { MdxArticleList } from "@/articles";
3
3
  import { withArticleWrapper } from "@/components";
4
4
  import { MdxArticle } from "@/types/articles";
5
- import { Article, NotFound } from "@bbki.ng/components";
5
+ import { NotFound, Link } from "@bbki.ng/components";
6
6
  import { useParams } from "react-router-dom";
7
7
  import { usePosts } from "@/hooks/use_posts";
8
8
  import { ArticlePage } from "@/components/article";