@bbki.ng/site 2.0.44 → 2.0.45

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
+ ## 2.0.45
4
+
3
5
  ## 2.0.44
4
6
 
5
7
  ## 2.0.43
package/index.html CHANGED
@@ -4,7 +4,10 @@
4
4
  <title>bbki.ng</title>
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
6
  <meta name="description" content="baby king" />
7
- <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
7
+ <meta
8
+ name="apple-mobile-web-app-status-bar-style"
9
+ content="black-translucent"
10
+ />
8
11
  <link
9
12
  rel="preload"
10
13
  href="https://api.bbki.ng/projects"
@@ -26,7 +29,11 @@
26
29
  type="image/png"
27
30
  sizes="16x16"
28
31
  />
29
- <link rel="apple-touch-icon" href="/apple-touch-icon.png" sizes="180x180" />
32
+ <link
33
+ rel="apple-touch-icon"
34
+ href="/apple-touch-icon.png?v=1.0"
35
+ sizes="180x180"
36
+ />
30
37
  <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
31
38
  <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
32
39
  <link rel="mask-icon" href="/favicon.svg" color="#FFFFFF" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/site",
3
- "version": "2.0.44",
3
+ "version": "2.0.45",
4
4
  "description": "code behind bbki.ng",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,10 +1,11 @@
1
1
  import React, { ReactElement, useContext, useEffect } from "react";
2
- import { Tags, Article } from "@bbki.ng/components";
2
+ import { Tags, Article, Button } from "@bbki.ng/components";
3
3
  import { ROUTES } from "@/constants";
4
4
  import classNames from "classnames";
5
5
  import { GlobalLoadingContext } from "@/context/global_loading_state_provider";
6
6
  import { useSafeArticleLoading } from "@/hooks/use_safe_loading";
7
7
  import { OpenHeartReaction, Reaction } from "../reaction/oh_reaction";
8
+ import { useNavigate } from "react-router-dom";
8
9
 
9
10
  export type ArticlePageProps = {
10
11
  tags?: string[];
@@ -17,6 +18,7 @@ export type ArticlePageProps = {
17
18
 
18
19
  export const ArticlePage = (props: ArticlePageProps) => {
19
20
  const { tags: tagNames, title, description, headless } = props;
21
+ const navgation = useNavigate();
20
22
  const loading = useSafeArticleLoading(0.2, 5);
21
23
  const defaultTag = { children: "目录", to: "/blog" };
22
24
  const tags = tagNames
@@ -46,6 +48,28 @@ export const ArticlePage = (props: ArticlePageProps) => {
46
48
  </Article>
47
49
  <div className="px-16">
48
50
  <Reaction title={title} />
51
+ <Button
52
+ className="mt-128"
53
+ btnType="button"
54
+ onClick={() => {
55
+ navgation(-1);
56
+ }}
57
+ >
58
+ <svg
59
+ data-testid="geist-icon"
60
+ height="16"
61
+ stroke-linejoin="round"
62
+ viewBox="0 0 16 16"
63
+ width="16"
64
+ >
65
+ <path
66
+ fill-rule="evenodd"
67
+ clip-rule="evenodd"
68
+ d="M6.46966 13.7803L6.99999 14.3107L8.06065 13.25L7.53032 12.7197L3.56065 8.75001H14.25H15V7.25001H14.25H3.56065L7.53032 3.28034L8.06065 2.75001L6.99999 1.68935L6.46966 2.21968L1.39644 7.2929C1.00592 7.68342 1.00592 8.31659 1.39644 8.70711L6.46966 13.7803Z"
69
+ fill="currentColor"
70
+ ></path>
71
+ </svg>
72
+ </Button>
49
73
  </div>
50
74
  </>
51
75
  );