@bbki.ng/site 0.0.34 → 0.0.37
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": "0.0.
|
|
3
|
+
"version": "0.0.37",
|
|
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.
|
|
19
|
+
"@bbki.ng/components": "workspace:2.1.27",
|
|
20
20
|
"@supabase/supabase-js": "^1.30.6",
|
|
21
21
|
"classnames": "2.3.1",
|
|
22
22
|
"react": "^18.0.0",
|
|
@@ -2,14 +2,11 @@ import React, { useContext, useEffect } from "react";
|
|
|
2
2
|
import { GlobalLoadingContext } from "@/global_loading_state_provider";
|
|
3
3
|
import { LoadingSpiral } from "@bbki.ng/components";
|
|
4
4
|
|
|
5
|
-
export const Spinner = (props:
|
|
5
|
+
export const Spinner = (props: { disableDotIndicator?: boolean }) => {
|
|
6
6
|
const {
|
|
7
7
|
disableDotIndicator,
|
|
8
|
-
multiplier = 10000,
|
|
9
|
-
color = [209, 213, 219, 1],
|
|
10
|
-
offset = -0.3,
|
|
11
|
-
length = 0.3,
|
|
12
8
|
} = props;
|
|
9
|
+
|
|
13
10
|
const { setIsLoading } = useContext(GlobalLoadingContext);
|
|
14
11
|
|
|
15
12
|
useEffect(() => {
|
|
@@ -23,11 +20,10 @@ export const Spinner = (props: any) => {
|
|
|
23
20
|
}, []);
|
|
24
21
|
|
|
25
22
|
return (
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
/>
|
|
23
|
+
<div className="h-full w-full grid place-items-center">
|
|
24
|
+
<LoadingSpiral
|
|
25
|
+
className="relative -top-128"
|
|
26
|
+
/>
|
|
27
|
+
</div>
|
|
32
28
|
);
|
|
33
29
|
};
|
package/src/constants/routes.ts
CHANGED
|
@@ -12,7 +12,7 @@ export const ROUTE_NAME = {
|
|
|
12
12
|
unknown: "未知",
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
export const GITHUB_REPO_ADDRESS = "https://github.com/bbbottle/
|
|
15
|
+
export const GITHUB_REPO_ADDRESS = "https://github.com/bbbottle/bottle/tree/main/packages/site";
|
|
16
16
|
export const OSS_ADDRESS = "https://zjh-im-res.oss-cn-shenzhen.aliyuncs.com";
|
|
17
17
|
export const API_ENDPOINT = "https://api.bbki.ng";
|
|
18
18
|
export const API = {
|
package/src/demo/SpinnerDemo.tsx
CHANGED