Skip to content

Commit

Permalink
feat: 完善协同编辑 (#130)
Browse files Browse the repository at this point in the history
* feat: 完善协同编辑

* feat: 还原nextconfig
  • Loading branch information
coderz-w authored Oct 28, 2024
1 parent ca333df commit d6a28d5
Show file tree
Hide file tree
Showing 15 changed files with 510 additions and 62 deletions.
12 changes: 12 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ const nextConfig = {
experimental: {
optimizePackageImports: ['shiki'],
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: '**',
},
{
protocol: 'http',
hostname: '**',
},
],
},
async headers() {
return [
{
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"@radix-ui/react-dialog": "^1.1.1",
"@radix-ui/react-dropdown-menu": "^2.1.1",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-popover": "^1.1.1",
"@radix-ui/react-scroll-area": "^1.1.0",
"@radix-ui/react-select": "^2.1.1",
Expand All @@ -49,6 +50,7 @@
"minimatch": "^10.0.1",
"monaco-editor": "^0.50.0",
"next": "14.2.10",
"next-qrcode": "^2.5.1",
"nextjs-toploader": "^1.6.12",
"perfect-cursors": "^1.0.5",
"prettier": "3.3.2",
Expand Down
139 changes: 139 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/app/(main)/(router)/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ const LoginPage: FC = () => {
// 登录成功
// TODO 成功提示
setAuth(res.data);
localStorage.setItem('email', state.email);
router.push(searchParams.get('redirect') ?? '/');
} else {
// 登录失败
Expand Down
Loading

0 comments on commit d6a28d5

Please sign in to comment.