@bbki.ng/site 0.0.33 → 0.0.36

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,11 @@
1
1
  # @bbki.ng/site
2
2
 
3
+ ## 0.0.36
4
+
5
+ ## 0.0.35
6
+
7
+ ## 0.0.34
8
+
3
9
  ## 0.0.33
4
10
 
5
11
  ## 0.0.32
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/site",
3
- "version": "0.0.33",
3
+ "version": "0.0.36",
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.23",
19
+ "@bbki.ng/components": "workspace:2.1.26",
20
20
  "@supabase/supabase-js": "^1.30.6",
21
21
  "classnames": "2.3.1",
22
22
  "react": "^18.0.0",
@@ -27,7 +27,7 @@
27
27
  "swr": "^1.2.1"
28
28
  },
29
29
  "devDependencies": {
30
- "@bbki.ng/stylebase": "workspace:0.0.18",
30
+ "@bbki.ng/stylebase": "workspace:0.0.19",
31
31
  "@mdx-js/mdx": "2.0.0-next.9",
32
32
  "@mdx-js/react": "^1.6.22",
33
33
  "@tailwindcss/typography": "^0.5.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: any) => {
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
- <LoadingSpiral
27
- multiplier={multiplier}
28
- color={color}
29
- offset={offset}
30
- length={length}
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
  };
@@ -1,6 +1,6 @@
1
1
  import React, { ReactElement, ReactNode, Suspense } from "react";
2
- import { Spinner } from "./Spinner";
3
2
  import { ErrorBoundary } from "@bbki.ng/components";
3
+ import { Spinner } from "./Spinner";
4
4
 
5
5
  export const MySuspense = (props: {
6
6
  children: ReactNode;
@@ -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/bbki.ng";
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 = {
@@ -7,10 +7,6 @@ export const SpinnerDemo = () => {
7
7
  <DemoBox style={{ background: "#dc5530", borderColor: "white" }}>
8
8
  <Spinner
9
9
  disableDotIndicator
10
- offset={0}
11
- length={0.4}
12
- color={[255, 255, 255, 1]}
13
- multiplier={20000}
14
10
  />
15
11
  </DemoBox>
16
12
  );