Skip to content

Commit

Permalink
update name
Browse files Browse the repository at this point in the history
  • Loading branch information
oeyoews committed Mar 23, 2024
1 parent 463065f commit 8e56429
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
13 changes: 6 additions & 7 deletions entrypoints/popup/Popup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ watch(isCheckTw5, (newValue, oldValue) => {
// message: '检测到 TiddlyWiki 5.x',
// type: 'success'
// })
checkStatus()
} else {
// @ts-ignore
status.value = ''
// ElMessage({
// message: '关闭 TiddlyWiki 5.x 检测',
// type: 'info'
Expand All @@ -121,10 +124,6 @@ watch(isCheckTw5, (newValue, oldValue) => {
function checkStatus() {
if (!isCheckTw5.value) {
return
}
fetch(`http://localhost:${port.value}/status`).then((res) => {
return res.json()
}).then((data) => {
Expand Down Expand Up @@ -159,9 +158,9 @@ watch(md, async () => {
watch(port, () => {
chrome.storage.local.set({ port: port.value })
setTimeout(() => {
if (isCheckTw5.value) {
checkStatus()
}, 1000);
}
})
const currentTime = dayjs(new Date()).utc().format('YYYYMMDDHHmmss')
Expand Down Expand Up @@ -277,7 +276,7 @@ const save2TiddlyWiki = async (title: string, text: string, port: number, url: s

<div class="items-center">

<h2>启动时检查 TiddlyWiki5 状态</h2>
<h2>连接 TiddlyWiki5</h2>
<el-switch v-model="isCheckTw5" />

<div>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "usewiki2",
"name": "Usewiki2",
"description": "manifest.json description",
"private": true,
"version": "0.0.8",
"version": "0.0.9",
"type": "module",
"scripts": {
"dev": "wxt",
Expand Down
2 changes: 1 addition & 1 deletion wxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default defineConfig({
'48': 'icons/icon48.png',
'128': 'icons/icon128.png',
},

name: 'Usewiki2',
permissions: [
'contextMenus',
// 'alarms',
Expand Down

0 comments on commit 8e56429

Please sign in to comment.