diff --git a/CHANGELOG.md b/CHANGELOG.md index abd2607..e518712 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## v2.7.3 + +`2023-02-25` + +### Feature +- 适配系统深色模式 [#118](https://github.com/Chanzhaoyu/chatgpt-web/issues/103) +### BugFix +- 修复用户消息能被渲染为 `HTML` 问题 [#117](https://github.com/Chanzhaoyu/chatgpt-web/issues/117) + ## v2.7.2 `2023-02-24` diff --git a/index.html b/index.html index 897ff1e..5daed11 100644 --- a/index.html +++ b/index.html @@ -61,6 +61,12 @@ transform: translateX(100%); } } + + @media (prefers-color-scheme: dark) { + body { + background: #121212; + } + }
diff --git a/package.json b/package.json index 653409f..5ec8aba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chatgpt-web", - "version": "2.7.2", + "version": "2.7.3", "private": false, "description": "ChatGPT Web", "author": "ChenZhaoYu ", @@ -24,7 +24,6 @@ }, "dependencies": { "@vueuse/core": "^9.13.0", - "github-markdown-css": "^5.2.0", "highlight.js": "^11.7.0", "marked": "^4.2.12", "naive-ui": "^2.34.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 752d1e7..f9191da 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,7 +15,6 @@ specifiers: axios: ^1.3.3 crypto-js: ^4.1.1 eslint: ^8.34.0 - github-markdown-css: ^5.2.0 highlight.js: ^11.7.0 husky: ^8.0.3 less: ^4.1.3 @@ -35,7 +34,6 @@ specifiers: dependencies: '@vueuse/core': 9.13.0_vue@3.2.47 - github-markdown-css: 5.2.0 highlight.js: 11.7.0 marked: 4.2.12 naive-ui: 2.34.3_vue@3.2.47 @@ -2526,10 +2524,6 @@ packages: through2: 4.0.2 dev: true - /github-markdown-css/5.2.0: - resolution: {integrity: sha512-hq5RaCInSUZ48bImOZpkppW2/MT44StRgsbsZ8YA4vJFwLKB/Vo3k7R2t+pUGqO+ThG0QDMi96TewV/B3vyItg==} - dev: false - /glob-parent/5.1.2: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} engines: {node: '>= 6'} diff --git a/src/App.vue b/src/App.vue index 729fdb9..88520c0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,10 +1,17 @@