Skip to content

Commit

Permalink
feat: add some ports
Browse files Browse the repository at this point in the history
  • Loading branch information
oeyoews committed Jul 7, 2024
1 parent 6c1744c commit 3c05b91
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 2 additions & 0 deletions components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ declare module 'vue' {
ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElInput: typeof import('element-plus/es')['ElInput']
ElLink: typeof import('element-plus/es')['ElLink']
ElOption: typeof import('element-plus/es')['ElOption']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElSwitch: typeof import('element-plus/es')['ElSwitch']
ElTabPane: typeof import('element-plus/es')['ElTabPane']
ElTabs: typeof import('element-plus/es')['ElTabs']
Expand Down
18 changes: 16 additions & 2 deletions entrypoints/sidepanel/Sidepanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
} from '@/utils/storage';
// import getAI from '@/utils/openai';
const ports = [8000, 8080, 8001, 8081];
const devMode = import.meta.env.DEV;
const isDarkMode = ref(false);
const editRef = ref<HTMLInputElement>();
Expand Down Expand Up @@ -391,7 +392,7 @@ const toggleInfoDialog = () => {

<div class="">
<ElTabs
type="border-card"
type="card"
:model-value="currentTab">
<!-- preview -->
<ElTabPane
Expand Down Expand Up @@ -522,7 +523,20 @@ const toggleInfoDialog = () => {
maxlength="5"
minlength="1"
type="number"
placeholder="请输入端口号" />
placeholder="请输入端口号">
<template #prepend>
<el-select
v-model="port"
placeholder="端口"
style="width: 150px">
<template v-for="(port, index) in ports">
<el-option
:label="`端口${index + 1} (${port})`"
:value="port" />
</template>
</el-select>
</template>
</ElInput>
<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.8.1",
"version": "3.8.2",
"type": "module",
"scripts": {
"dev": "wxt",
Expand Down

0 comments on commit 3c05b91

Please sign in to comment.