Skip to content

Commit

Permalink
feat: support meta
Browse files Browse the repository at this point in the history
  • Loading branch information
oeyoews committed Oct 25, 2024
1 parent 2ee3b6b commit 0186ff8
Show file tree
Hide file tree
Showing 7 changed files with 501 additions and 253 deletions.
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"emeraldwalk.runonsave": {
"commands": [
{
"match": "package.json",
"isAsync": true,
"cmd": "npm run update"
}
]
},
// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": false,
// Disable the default formatter, use eslint instead
Expand Down
16 changes: 10 additions & 6 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@
"presentation": {
"reveal": "never"
},
"problemMatcher": {
"background": {
"activeOnStart": false,
"beginsPattern": "Build start",
"endsPattern": "Build success"
"problemMatcher": [
{
"base": "$ts-webpack-watch",
"background": {
"activeOnStart": false,
"beginsPattern": "Build start",
"endsPattern": "Build success"
}
}
}
],
"group": "build"
}
]
}
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,34 @@
## Usage

* 点击侧边栏出现的小猫图片, 点击右上方的齿轮图标, 请先配置你的TiddlyWiki地址.

## Commands

<!-- commands -->

| Command | Title |
| ----------------------- | ---------------------------------- |
| `usewiki2.tiddlywiki` | UseWiki2: Add Journal |
| `usewiki2.wikiinfo` | Usewiki2: Info |
| `usewiki2.openwiki` | Usewiki2: Open TiddlyWiki Instance |
| `usewiki2.opensettings` | Usewiki2: Settings |

<!-- commands -->

## Configurations

<!-- configs -->

| Key | Description | Type | Default |
| -------------------------- | ---------------------------------------------------------------------------------------------- | --------- | ----------------------------------------- |
| `usewiki2.enableSendSound` | 启用发送声音 | `boolean` | `false` |
| `usewiki2.placeholder` | 默认提示符 | `string` | `"Write something... Ctrl+Enter to save"` |
| `usewiki2.defaultTag` | 默认标签 | `string` | `"Journal"` |
| `usewiki2.defaultUsername` | 默认用户名 | `string` | `""` |
| `usewiki2.ip` | 你的TiddlyWiki地址 (请确定你已经启动了[太微](https://tiddlywiki.com/#Installing%20TiddlyWiki%20on%20Node.js)) | `string` | `"127.0.0.1"` |
| `usewiki2.port` | 端口 (请确定你已经启动了太微) | `number` | `8080` |
| `usewiki2.enableHttps` | Enable or Disable HTTPS(untest for https) | `boolean` | `false` |
| `usewiki2.type` | 选择要使用的文本格式 (Markdown 或 TiddlyWiki) | `string` | `"text/vnd.tiddlywiki"` |
<!-- ## TODO
* [ ] 加入条目标题配置, author
Expand All @@ -55,4 +83,4 @@ https://github.com/microsoft/vscode-extension-samples/blob/main/webview-view-sam
## Related Projects

* [usewiki2](https://github.com/oeyoews/usewiki2)
* [other tiddlywiki projects](https://github.com/stars/oeyoews/lists/tiddlywiki)
* [other tiddlywiki projects](https://github.com/stars/oeyoews/lists/tiddlywiki)
21 changes: 17 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"publisher": "oeyoews",
"name": "usewiki2",
"displayName": "usewiki2",
"version": "1.7.0",
"version": "1.8.0",
"private": true,
"packageManager": "[email protected]",
"description": "",
Expand Down Expand Up @@ -33,6 +33,7 @@
],
"contributes": {
"configuration": {
"type": "object",
"title": "UseWiki2",
"properties": {
"usewiki2.enableSendSound": {
Expand Down Expand Up @@ -155,6 +156,7 @@
"scripts": {
"build": "tsup src/index.ts --external vscode",
"dev": "nr build --watch",
"update": "vscode-ext-gen --output src/generated/meta.ts",
"lint": "eslint .",
"vscode:prepublish": "nr build",
"publish": "vsce publish --no-dependencies",
Expand All @@ -177,13 +179,24 @@
"rimraf": "^5.0.9",
"tsup": "^7.2.0",
"typescript": "^5.5.4",
"vite": "^4.5.3",
"vitest": "^0.34.6"
"vite": "^5.4.1",
"vitest": "^2.0.5",
"vscode-ext-gen": "^0.4.1"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.mjs"
}
},
"files": [
"dist",
"res",
"react-dist",
"LICENSE"
]
],
"dependencies": {
"reactive-vscode": "0.2.0"
}
}
Loading

0 comments on commit 0186ff8

Please sign in to comment.