Skip to content

Commit d3b00ff

Browse files
committed
⬆️ upgrade notion render
1 parent 8cfddc8 commit d3b00ff

File tree

4 files changed

+28
-27
lines changed

4 files changed

+28
-27
lines changed

apps/web/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,16 @@
7878
"next": "^13.5.3",
7979
"next-mdx-remote": "^4.1.0",
8080
"next-themes": "^0.2.1",
81-
"notion-client": "^7.7.1",
82-
"notion-utils": "^7.7.1",
81+
"notion-client": "^7.7.3",
82+
"notion-utils": "^7.7.3",
8383
"piexifjs": "^1.0.6",
8484
"react": "^18.2.0",
8585
"react-awesome-button": "^7.0.5",
8686
"react-dom": "^18.2.0",
8787
"react-hook-form": "^7.51.4",
8888
"react-icons": "^4.11.0",
8989
"react-image-crop": "^10.0.9",
90-
"react-notion-x": "^7.7.1",
90+
"react-notion-x": "^7.7.3",
9191
"react-photo-album": "^2.3.0",
9292
"react-tag-input-component": "^2.0.2",
9393
"react-use": "^17.4.0",
@@ -118,7 +118,7 @@
118118
"lerna": "^8.0.2",
119119
"lint-staged": "^13.2.2",
120120
"marked": "^11.2.0",
121-
"notion-types": "^7.7.1",
121+
"notion-types": "^7.7.3",
122122
"postcss": "^8.4.21",
123123
"prettier": "^2.8.8",
124124
"react-router-dom": "^6.6.1",

apps/web/pages/404.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ const redirectMap: Record<string, string> = {
2020
'/webpage': '/pagenote',
2121
'/post': '/sitemap',
2222
'/data': '/ext/setting#/data',
23-
'/backup': '/ext/setting#/backup',
23+
'/backup': '/ext/setting#/data/backup',
24+
'/skills':'/question',
2425
'/install':'/download',
26+
'/help':'/question',
2527
}
2628

2729
export default function Custom404(props: NotionDocProp) {

apps/web/service/server/notion.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Client } from '@notionhq/client'
2-
// todo 这个包,没有跟上 notion 官方的更新,2个月后再看看
32
import { NotionAPI } from 'notion-client'
43
// import { NotionAPI } from '@texonom/nclient'
54

yarn.lock

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18723,30 +18723,30 @@ normalize-url@^8.0.1:
1872318723
resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-8.1.0.tgz#d33504f67970decf612946fd4880bc8c0983486d"
1872418724
integrity sha512-X06Mfd/5aKsRHc0O0J5CUedwnPmnDtLF2+nq+KN9KSDlJHkPuh0JUviWjEWMe0SW/9TDdSLVPuk7L5gGTIA1/w==
1872518725

18726-
notion-client@^7.7.1:
18727-
version "7.7.1"
18728-
resolved "https://registry.yarnpkg.com/notion-client/-/notion-client-7.7.1.tgz#b0e4c2bf978c3dc16fdc032950f4e5de909276dc"
18729-
integrity sha512-xBz/+Lr7V40TpVpvMYb3Xw9lcxHhN+zvCc0JtNhVICTV5jnuMwIjQkSpaT8+gqlhBif+6DYEnMZptBrONWBPyQ==
18726+
notion-client@^7.7.3:
18727+
version "7.7.3"
18728+
resolved "https://registry.yarnpkg.com/notion-client/-/notion-client-7.7.3.tgz#980f4ce72578641d805bf776fa3fcb83037c6e00"
18729+
integrity sha512-rRRghrRDMVrUEEn1lyiyf3eGKCFAqVKvbkVau1X/36cUL7OhbwlP3XLSYVH5PCNJIRRIneB3oWTODOJvTPlppQ==
1873018730
dependencies:
18731-
notion-types "7.7.1"
18732-
notion-utils "7.7.1"
18731+
notion-types "7.7.3"
18732+
notion-utils "7.7.3"
1873318733
ofetch "^1.4.1"
1873418734
p-map "^7.0.3"
1873518735

18736-
notion-types@7.7.1, notion-types@^7.7.1:
18737-
version "7.7.1"
18738-
resolved "https://registry.yarnpkg.com/notion-types/-/notion-types-7.7.1.tgz#06c28e2cf503808ec88ff03d1351d756ea650f38"
18739-
integrity sha512-565D6k9rjRomec063p17iZe93ixhcomoDXy7K/Eq7t5826MUiU+g3IJiykoiDbBgx+cxn/4JHaHZIux+DYv74g==
18736+
notion-types@7.7.3, notion-types@^7.7.3:
18737+
version "7.7.3"
18738+
resolved "https://registry.yarnpkg.com/notion-types/-/notion-types-7.7.3.tgz#ecf394dfbd4a0c42809ef235c60d1c54315bd70a"
18739+
integrity sha512-6HCcLi9zEcVJsvVUvCZ2f5o4ANtKsRfQuUcU74Trsv6C5raug8ERtmeM2s7YJfuLuP74YVDDSIXugO+XkUBFxg==
1874018740

18741-
notion-utils@7.7.1, notion-utils@^7.7.1:
18742-
version "7.7.1"
18743-
resolved "https://registry.yarnpkg.com/notion-utils/-/notion-utils-7.7.1.tgz#bfe7d19aa054faa77a8fde30a4905156f91dfb18"
18744-
integrity sha512-NZuG45RBUtBIh9djHylehsmdyFpByvY+bND8Xh9ihIFs8T9QVBwGq4l7sNfDJv0Pl9cmXven5jkUDYs9bAJOFA==
18741+
notion-utils@7.7.3, notion-utils@^7.7.3:
18742+
version "7.7.3"
18743+
resolved "https://registry.yarnpkg.com/notion-utils/-/notion-utils-7.7.3.tgz#95641c8aa313e8a1e703622b30b4f743edc7e03a"
18744+
integrity sha512-MpOsUWdJJXKKc01zIYv90cxZZf7zL4dDSTssdqRFlDJsgGFFrD9uoKr0giOrMPiIoGwLka4TNeTORRDMYRZmoQ==
1874518745
dependencies:
1874618746
is-url-superb "^6.1.0"
1874718747
memoize "^10.1.0"
1874818748
normalize-url "^8.0.1"
18749-
notion-types "7.7.1"
18749+
notion-types "7.7.3"
1875018750
p-queue "^8.1.0"
1875118751

1875218752
npm-bundled@^1.1.2:
@@ -21887,16 +21887,16 @@ react-modal@^3.16.3:
2188721887
react-lifecycles-compat "^3.0.0"
2188821888
warning "^4.0.3"
2188921889

21890-
react-notion-x@^7.7.1:
21891-
version "7.7.1"
21892-
resolved "https://registry.yarnpkg.com/react-notion-x/-/react-notion-x-7.7.1.tgz#a1ca8c0f1663568f882f85272601870a47eeb701"
21893-
integrity sha512-M3xJaivcO6TnU2tEhoQEiFW2Uc5RcHzUqx3fJb8rlFbYD3QI2xOKY4XKVIuz9bN1BBftYVGjCacU50XELcUD5g==
21890+
react-notion-x@^7.7.3:
21891+
version "7.7.3"
21892+
resolved "https://registry.yarnpkg.com/react-notion-x/-/react-notion-x-7.7.3.tgz#9e01057ba4f9befe4913dbceda16c727eff85d8e"
21893+
integrity sha512-3VmReYPXaB4X3LYfo4oBQab/2MJ4GjhY1cExwLDq3MKjInmNdp4CtIONzZkXE4/JYqIujKN+nM1uF25xE5MJMw==
2189421894
dependencies:
2189521895
"@fisch0920/medium-zoom" "^1.0.7"
2189621896
"@matejmazur/react-katex" "^3.1.3"
2189721897
katex "^0.16.21"
21898-
notion-types "7.7.1"
21899-
notion-utils "7.7.1"
21898+
notion-types "7.7.3"
21899+
notion-utils "7.7.3"
2190021900
prismjs "^1.30.0"
2190121901
react-fast-compare "^3.2.0"
2190221902
react-hotkeys-hook "^4.5.1"

0 commit comments

Comments
 (0)