@bbki.ng/site 1.4.0 → 1.4.1

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.4.1
4
+
3
5
  ## 1.4.0
4
6
 
5
7
  ## 1.3.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/site",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
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
  "@bbki.ng/components": "workspace:2.4.0",
20
- "@supabase/supabase-js": "^1.30.6",
20
+ "@supabase/supabase-js": "^1.35.4",
21
21
  "classnames": "2.3.1",
22
22
  "react": "^18.0.0",
23
23
  "react-cusdis": "^2.1.3",
@@ -27,10 +27,12 @@ export const ArticleCtxMenu = (props: { children: ReactElement }) => {
27
27
  }
28
28
 
29
29
  const doDel = useCallback(() => {
30
- del(title).then(() => {
31
- toast.success("删除成功");
32
- nav("/");
33
- });
30
+ del(title)
31
+ .then(() => {
32
+ toast.success("删除成功");
33
+ nav("/blog");
34
+ })
35
+ .catch(console.log);
34
36
  }, [title]);
35
37
 
36
38
  return (
@@ -36,11 +36,11 @@ export const Login = () => {
36
36
  onClick={async () => {
37
37
  setIsLoading(true);
38
38
  return supabase.auth.signIn({
39
- provider: OauthProvider.Spotify,
39
+ provider: OauthProvider.Twitter,
40
40
  });
41
41
  }}
42
42
  >
43
- Spotify
43
+ Twitter
44
44
  </Button>
45
45
  </>
46
46
  </ArticlePage>
@@ -6,5 +6,5 @@ export interface BBKingSession extends Session {
6
6
 
7
7
  export enum OauthProvider {
8
8
  GITHUB = "github",
9
- Spotify = "spotify",
9
+ Twitter = "twitter",
10
10
  }