Skip to content

Commit 3ec8fdf

Browse files
committed
feat: 🎸 tauri v2
1 parent c85d826 commit 3ec8fdf

61 files changed

Lines changed: 19902 additions & 4690 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

next.config.js

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
11
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
2-
const path = require('path')
3-
4-
const headers = [
5-
{
6-
key: 'Access-Control-Allow-Origin',
7-
value: '*',
8-
},
9-
]
102

113
module.exports = {
12-
async headers() {
13-
return [
14-
{
15-
source: '/fonts/(.*)',
16-
headers,
17-
},
18-
]
4+
// Ensure Next.js uses SSG instead of SSR
5+
// https://nextjs.org/docs/pages/building-your-application/deploying/static-exports
6+
output: 'export',
7+
// Note: This feature is required to use the Next.js Image component in SSG mode.
8+
// See https://nextjs.org/docs/messages/export-image-api for different workarounds.
9+
images: {
10+
unoptimized: true,
1911
},
2012
webpack: (config, { isServer, webpack, dev }) => {
2113
config.module.rules

package.json

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"scripts": {
55
"postinstall": "patch-package",
66
"dev": "next dev -p 3001",
7-
"build": "next build && next export",
7+
"build": "next build",
88
"start": "next start",
99
"build:icon": "tauri icon ./src-tauri/app-logo.png",
1010
"tauri": "tauri",
@@ -25,33 +25,43 @@
2525
"@radix-ui/react-toggle-group": "^1.0.4",
2626
"@tailwindcss/forms": "^0.5.6",
2727
"@tailwindcss/typography": "^0.5.10",
28-
"@tauri-apps/api": "^1.3.0",
29-
"@vercel/analytics": "^1.0.0",
28+
"@tauri-apps/api": ">=2.0.0-beta.0",
29+
"@tauri-apps/plugin-clipboard-manager": "^2.1.0-beta.3",
30+
"@tauri-apps/plugin-dialog": "^2.0.0-beta.5",
31+
"@tauri-apps/plugin-fs": "^2.0.0-beta.5",
32+
"@tauri-apps/plugin-os": "^2.0.0-beta.5",
33+
"@tauri-apps/plugin-process": "^2.0.0-beta.5",
34+
"@tauri-apps/plugin-shell": "^2.0.0-beta.6",
35+
"@tauri-apps/plugin-updater": "^2.0.0-beta.5",
3036
"class-variance-authority": "^0.7.0",
3137
"clsx": "^2.0.0",
3238
"dayjs": "1.11.9",
3339
"hast-util-to-html": "^8.0.4",
3440
"i18next": "^23.4.6",
41+
"i18next-browser-languagedetector": "^8.0.0",
3542
"lucide-react": "^0.293.0",
3643
"markmap-common": "^0.15.0",
3744
"markmap-lib": "^0.15.2",
3845
"markmap-toolbar": "^0.15.0",
3946
"markmap-view": "^0.15.0",
4047
"mathjax-full": "3.0.1",
4148
"monaco-editor-webpack-plugin": "^7.0.1",
42-
"next": "^13.4.19",
49+
"next": "^14.2.5",
4350
"node-fetch": "^3.2.3",
4451
"qrcode": "^1.5.0",
4552
"react": "^18.2.0",
4653
"react-dom": "^18.2.0",
54+
"react-hotkeys-hook": "^4.5.0",
55+
"react-i18next": "^14.1.2",
56+
"react-resizable-panels": "^2.0.20",
4757
"tailwind-merge": "^2.0.0",
4858
"tailwindcss-animate": "^1.0.7"
4959
},
5060
"devDependencies": {
5161
"@babel/standalone": "^7.17.8",
5262
"@mdx-js/mdx": "^3.0.0",
5363
"@slidev/parser": "^0.36.10",
54-
"@tauri-apps/cli": "^1.5.14",
64+
"@tauri-apps/cli": "^2.0.0-beta.20",
5565
"@tauri-release/cli": "^0.2.5",
5666
"@types/node": "20.5.6",
5767
"@types/react": "18.2.46",

0 commit comments

Comments
 (0)