@bbki.ng/site 2.0.47 → 2.0.49
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bbki.ng/site",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.49",
|
|
4
4
|
"description": "code behind bbki.ng",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@extism/extism": "2.0.0-rc11",
|
|
20
|
-
"@bbki.ng/components": "workspace:2.6.
|
|
20
|
+
"@bbki.ng/components": "workspace:2.6.13",
|
|
21
21
|
"@supabase/supabase-js": "^1.35.4",
|
|
22
22
|
"classnames": "2.3.1",
|
|
23
23
|
"react": "^18.0.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"vaul": "1.1.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@bbki.ng/stylebase": "workspace:0.4.
|
|
33
|
+
"@bbki.ng/stylebase": "workspace:0.4.11",
|
|
34
34
|
"@mdx-js/mdx": "2.0.0-next.9",
|
|
35
35
|
"@mdx-js/react": "^1.6.22",
|
|
36
36
|
"@mdx-js/rollup": "3.0.0",
|
|
@@ -10,6 +10,7 @@ import { useNavigate } from "react-router-dom";
|
|
|
10
10
|
export type ArticlePageProps = {
|
|
11
11
|
tags?: string[];
|
|
12
12
|
title: string;
|
|
13
|
+
date?: string;
|
|
13
14
|
description?: any;
|
|
14
15
|
headless?: boolean;
|
|
15
16
|
className?: string;
|
|
@@ -37,6 +38,7 @@ export const ArticlePage = (props: ArticlePageProps) => {
|
|
|
37
38
|
<>
|
|
38
39
|
<Article
|
|
39
40
|
title={title}
|
|
41
|
+
date={props.date}
|
|
40
42
|
description={description}
|
|
41
43
|
className={`${props.className} mb-128`}
|
|
42
44
|
loading={loading}
|
package/src/blog/main.css
CHANGED
|
@@ -4,9 +4,19 @@
|
|
|
4
4
|
|
|
5
5
|
* {
|
|
6
6
|
-webkit-user-drag: none;
|
|
7
|
+
-webkit-font-smoothing: "antialiased";
|
|
7
8
|
font-weight: 400 !important;
|
|
8
9
|
}
|
|
9
10
|
|
|
11
|
+
html {
|
|
12
|
+
touch-action: manipulation;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
a,
|
|
16
|
+
button {
|
|
17
|
+
-webkit-tap-highlight-color: transparent;
|
|
18
|
+
}
|
|
19
|
+
|
|
10
20
|
body {
|
|
11
21
|
pointer-events: auto !important;
|
|
12
22
|
overflow: hidden !important;
|
|
@@ -50,9 +50,13 @@ export default () => {
|
|
|
50
50
|
return null;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
const date = posts.created_at ? posts.created_at.split("T")[0] : "";
|
|
54
|
+
|
|
55
|
+
console.log("posts", posts);
|
|
56
|
+
|
|
53
57
|
return (
|
|
54
58
|
<DropZone onDrop={reader} disabled={!isKing}>
|
|
55
|
-
<ArticlePage title={title}>
|
|
59
|
+
<ArticlePage title={title} date={date}>
|
|
56
60
|
<ArticleCtxMenu>
|
|
57
61
|
<div dangerouslySetInnerHTML={{ __html: posts.content }} />
|
|
58
62
|
</ArticleCtxMenu>
|