Skip to content

Commit

Permalink
feat: update menus
Browse files Browse the repository at this point in the history
  • Loading branch information
oeyoews committed Oct 23, 2024
1 parent 8736115 commit aabb95b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 19 deletions.
24 changes: 7 additions & 17 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": "0.8.1",
"version": "0.8.2",
"private": true,
"packageManager": "[email protected]",
"description": "",
Expand Down Expand Up @@ -99,11 +99,6 @@
"command": "usewiki2.wikiinfo",
"group": "navigation",
"when": "view == usewiki2"
},
{
"command": "usewiki2.refreshwiki",
"group": "navigation",
"when": "view == usewiki2"
}
]
},
Expand All @@ -128,26 +123,21 @@
"commands": [
{
"command": "usewiki2.tiddlywiki",
"title": "UseWiki2: Journal 太微之书"
"title": "UseWiki2: Add Journal"
},
{
"command": "usewiki2.openwiki",
"title": "Open 打开太微",
"command": "usewiki2.wikiinfo",
"title": "usewiki2: Info",
"icon": "$(info)"
},
{
"command": "usewiki2.wikiinfo",
"title": "太微详情",
"command": "usewiki2.openwiki",
"title": "usewiki2: Open TiddlyWiki Instance",
"icon": "res/tw.svg"
},
{
"command": "usewiki2.refreshwiki",
"title": "Refresh",
"icon": "$(refresh)"
},
{
"command": "usewiki2.opensettings",
"title": "设置",
"title": "usewiki2: Settings",
"icon": "$(gear)"
}
]
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function App() {
return (
// vscode-dark
<div className="relative h-screen">
<h1 className="text-3xl font-bold">TiddlyWiki</h1>
<h1 className="text-3xl font-bold">TiddlyWiki5</h1>
<ContextMenu>
<ContextMenuTrigger className="i-lucide-more-horizontal hidden">
More
Expand Down
6 changes: 5 additions & 1 deletion src/commands/wikiInfo.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import * as vscode from 'vscode';
import fetchData from '../featchData';

export async function cli() {
const data = await fetchData();
// 居中弹窗显示详情
vscode.window
.showInformationMessage('wikiinfo', 'version', 'username')
.showInformationMessage(
`TiddlyWiki5: ${data.tiddlywiki_version}(${data.username})`
)
.then((selection) => {
// if (selection === '选项1') {
// vscode.window.showInformationMessage('你选择了选项1');
Expand Down

0 comments on commit aabb95b

Please sign in to comment.