@bbki.ng/site 1.0.12 → 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,7 @@
1
1
  # @bbki.ng/site
2
2
 
3
+ ## 1.0.13
4
+
3
5
  ## 1.0.12
4
6
 
5
7
  ## 1.0.11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/site",
3
- "version": "1.0.12",
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.31",
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",
@@ -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
 
@@ -7,11 +7,11 @@ export const Cover = (props: { className: string }) => {
7
7
  links={[
8
8
  {
9
9
  to: "/projects",
10
- name: "cd /projects",
10
+ name: "ls *.png",
11
11
  },
12
12
  {
13
13
  to: "/blog",
14
- name: "cd /posts",
14
+ name: "ls *.md",
15
15
  },
16
16
  ]}
17
17
  title="history"
@@ -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";