From 895655d65780d404f9bc069e23d1c5aaa3419af2 Mon Sep 17 00:00:00 2001 From: wflixu Date: Sun, 28 Apr 2024 11:34:16 +0800 Subject: [PATCH 1/7] [chore] font-family about Chinese --- README.md | 9 +++++++-- src/style/styles.css | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f969d22..b6ccbf9 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,12 @@ A W.I.P desktop application for a new markup-based typesetting language, [typst] Typster is built using [Tauri](https://tauri.app/). -# screenshot +# features +- [ ] +- [ ] + + +## screenshot ![typster](./public/imgs/screen_projects.png) @@ -29,7 +34,7 @@ Typster is built using [Tauri](https://tauri.app/). ``` - xattr -c /Applications/appname.app + xattr -c /Applications/typster.app ``` ### rebuild app icon diff --git a/src/style/styles.css b/src/style/styles.css index 0ca104e..78dc5f9 100644 --- a/src/style/styles.css +++ b/src/style/styles.css @@ -5,7 +5,7 @@ body,html { margin: 0; padding: 0; - font-family: system-ui, -apple-system, Segoe UI, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", Roboto, Helvetica, Arial, sans-serif ; + font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei UI", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", Roboto, Helvetica, Arial, sans-serif ; color: var(--text-color) } From 594b60996570c49118b15987fe5a9214a529265b Mon Sep 17 00:00:00 2001 From: wflixu Date: Fri, 3 May 2024 14:34:32 +0800 Subject: [PATCH 2/7] [perf] editor preview and saved compile --- package.json | 7 +- pnpm-lock.yaml | 8 ++ src/components/MonacoEditor.vue | 26 ++-- src/shared/util.ts | 217 -------------------------------- 4 files changed, 22 insertions(+), 236 deletions(-) diff --git a/package.json b/package.json index 96b9697..d3a15a5 100644 --- a/package.json +++ b/package.json @@ -20,11 +20,12 @@ "github-markdown-css": "^5.5.1", "monaco-editor": "^0.46.0", "pinia": "^2.1.7", + "radash": "^12.1.0", "today-ui": "^0.0.23", - "vue": "^3.4.21", - "vue-router": "^4.3.0", "vscode-oniguruma": "^2.0.1", - "vscode-textmate": "^9.0.0" + "vscode-textmate": "^9.0.0", + "vue": "^3.4.21", + "vue-router": "^4.3.0" }, "devDependencies": { "@tauri-apps/cli": "^1.5.10", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 216247d..a472828 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -23,6 +23,9 @@ dependencies: pinia: specifier: ^2.1.7 version: 2.1.7(typescript@5.4.2)(vue@3.4.21) + radash: + specifier: ^12.1.0 + version: 12.1.0 today-ui: specifier: ^0.0.23 version: 0.0.23(vue@3.4.21) @@ -942,6 +945,11 @@ packages: picocolors: 1.0.0 source-map-js: 1.2.0 + /radash@12.1.0: + resolution: {integrity: sha512-b0Zcf09AhqKS83btmUeYBS8tFK7XL2e3RvLmZcm0sTdF1/UUlHSsjXdCcWNxe7yfmAlPve5ym0DmKGtTzP6kVQ==} + engines: {node: '>=14.18.0'} + dev: false + /regenerator-runtime@0.14.1: resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} dev: false diff --git a/src/components/MonacoEditor.vue b/src/components/MonacoEditor.vue index 7eb29fb..edc1a70 100644 --- a/src/components/MonacoEditor.vue +++ b/src/components/MonacoEditor.vue @@ -5,11 +5,12 @@