Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
oeyoews committed Oct 23, 2024
1 parent 7090fa2 commit 705b474
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Usewiki2

![alt text](banner.png)
![alt text](/~https://github.com/oeyoews/usewiki2-vscode/raw/main/banner.png)

> TiddlyWiki AnyWhere. 快速发送文本保存到Tiddlywiki, 随时随地记录下你的想法.
Expand Down
8 changes: 4 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": "0.8.3",
"version": "0.8.4",
"private": true,
"packageManager": "pnpm@9.0.6",
"description": "",
Expand Down Expand Up @@ -127,17 +127,17 @@
},
{
"command": "usewiki2.wikiinfo",
"title": "usewiki2: Info",
"title": "Usewiki2: Info",
"icon": "$(info)"
},
{
"command": "usewiki2.openwiki",
"title": "usewiki2: Open TiddlyWiki Instance",
"title": "Usewiki2: Open TiddlyWiki Instance",
"icon": "res/tw.svg"
},
{
"command": "usewiki2.opensettings",
"title": "usewiki2: Settings",
"title": "Usewiki2: Settings",
"icon": "$(gear)"
}
]
Expand Down
23 changes: 12 additions & 11 deletions packages/react/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>

<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>

</html>
7 changes: 4 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
import * as vscode from 'vscode';
import { usewikiViewProvider } from './webviews';

import * as usewikiCmd from './commands/usewikiCmd';
import * as openWiki from './commands/openWikiCmd';
import * as wikiInfo from './commands/wikiInfo';
import * as opensetting from './commands/openSettings';
import * as refreshWiki from './commands/refreshWiki';

// import * as usewikiCmd from './commands/usewikiCmd';
// import * as refreshWiki from './commands/refreshWiki';

export async function activate(context: vscode.ExtensionContext) {
const provider = new usewikiViewProvider(context);
context.subscriptions.push(
vscode.window.registerWebviewViewProvider('usewiki2', provider)
);

const cmds = [opensetting, wikiInfo, openWiki, usewikiCmd, refreshWiki];
const cmds = [opensetting, wikiInfo, openWiki];

// 注册命令
cmds.forEach((cmd: { name: string; cli: any }) => {
Expand Down

0 comments on commit 705b474

Please sign in to comment.