Skip to content

Commit

Permalink
feat: update ui
Browse files Browse the repository at this point in the history
  • Loading branch information
oeyoews committed Jul 6, 2024
1 parent c04fcd3 commit a7bb5b9
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 19 deletions.
7 changes: 5 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"recommendations": ["Vue.volar"]
}
"recommendations": [
"Vue.volar",
"bradlc.vscode-tailwindcss"
]
}
2 changes: 2 additions & 0 deletions components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ declare module 'vue' {
export interface GlobalComponents {
ElButton: typeof import('element-plus/es')['ElButton']
ElDrawer: typeof import('element-plus/es')['ElDrawer']
ElForm: typeof import('element-plus/es')['ElForm']
ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElInput: typeof import('element-plus/es')['ElInput']
ElLink: typeof import('element-plus/es')['ElLink']
ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm']
Expand Down
47 changes: 31 additions & 16 deletions entrypoints/sidepanel/Sidepanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import * as WI from '@/utils/icons';
import saveMarkdown from '@/utils/saveMarkdown';
import save2TiddlyWiki from '@/utils/save2TiddlyWiki';
import { html2md, md2html } from '@/utils/parser';
import { ElMessage as notify } from 'element-plus';
import { ElButton, ElMessage as notify } from 'element-plus';
import { checkStatus } from '@/utils/checkStatus';
import {
isCheckTw5Storage,
Expand Down Expand Up @@ -381,27 +381,42 @@ const toggleInfoDialog = () => {
<div>
<h2>TiddlyWiki5 登录认证</h2>
<div class="flex gap-2">
<ElInput v-model.trim.number="username" />
<ElInput
v-model.trim.number="password"
type="password"
show-password />
<ElButton
@click="
saveAuth({
username,
password,
})
"
>保存</ElButton
>
<el-form label-width="68px">
<el-form-item label="用户名">
<ElInput
v-model.trim.number="username"
clearable />
</el-form-item>
<el-form-item label="密码">
<ElInput
v-model.trim.number="password"
type="password"
clearable
show-password />
</el-form-item>
<el-form-item label="">
<ElButton
type="success"
plain
@click="
saveAuth({
username,
password,
})
"
>保存</ElButton
>
</el-form-item>
</el-form>
</div>
</div>

<div>
<h2>Nodejs TiddlyWiki5 端口</h2>
<div class="flex gap-2">
<ElInput v-model.trim.number="port" />
<ElInput
v-model.trim.number="port"
clearable />
<ElButton
type="success"
plain
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "usewiki2",
"description": "Convert HTML to Markdown, and save to your computer, support nodejs tiddlywiki",
"private": true,
"version": "3.5.0",
"version": "3.5.1",
"type": "module",
"scripts": {
"dev": "wxt",
Expand Down

0 comments on commit a7bb5b9

Please sign in to comment.