Skip to content

Commit

Permalink
feat(public): 更新导航链接并添加新工具
Browse files Browse the repository at this point in the history
- 新增 UU
  • Loading branch information
xkloveme committed Nov 19, 2024
1 parent 3004aea commit b4aba39
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 17 deletions.
23 changes: 16 additions & 7 deletions public/nav.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@
"url": {
"开发者": "https://tool.lu/",
"通用": "http://www.atoolbox.net/",
"UU在线": "https://uutool.cn/type/code/",
"devv": "https://devv.ai/zh",
"iodraw": "https://www.iodraw.com/diagram/",
"速写板": "https://www.suxieban.com/#",
"hello图床": "https://www.helloimg.com/upload",
"文件转换": "https://www.aconvert.com/cn/pdf/",
"网速测试": "http://test.ustc.edu.cn/",
"被墙测试": "https://www.kkce.com/wall/",
"vslite": "https://vslite.dev/"
"在线MD": "https://doocs.github.io/md/",
"在线HTML": "https://www.min2k.com/tools/min-webpage/"
}
},
{
Expand Down Expand Up @@ -49,11 +52,17 @@
}
},
{
"label": "小康黑科技",
"url": "https://www.jixiaokang.com/black-tool/#/qrcode/"
},
{
"label": "小康函数",
"url": "https://www.jixiaokang.com/jxk/"
"label": "小康合集",
"url": {
"小康黑科技": "https://www.jixiaokang.com/black-tool/#/qrcode/",
"小康文档": "http://doc.frp.jixiaokang.com/",
"小康博客": "http://www.jixiaokang.com/",
"小康笔记": "http://notes.frp.jixiaokang.com/",
"小康绘图": "http://draw.frp.jixiaokang.com/",
"小康阅读": "http://read.frp.jixiaokang.com/#/",
"小康在线文档": "http://xkloveme.jixiaokang.com/",
"小康影视": "http://tv.frp.jixiaokang.com/",
"小康函数": "https://www.jixiaokang.com/jxk/"
}
}
]
24 changes: 24 additions & 0 deletions src/components/ChangeData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,30 @@
<pre v-html="res"></pre>
</div>
</div>

<dialog id="my_modal_4" class="modal">
<div class="modal-box w-11/12 max-w-5xl">
<h3 class="font-bold text-lg">表格生成配置</h3>
<div class="w-full">
<label class="label">
<span class="label-text">生成标题key(默认title)</span>
</label>
<input type="text" @change="handlChangeData" v-model="title" placeholder="title" class="input input-bordered w-full " />
</div>
<div class="w-full">
<label class="label">
<span class="label-text">生成数据key(默认dataIndex)</span>
</label>
<input type="text" @change="handlChangeData" v-model="dataIndex" placeholder="dataIndex" class="input input-bordered w-full max-w-xs" />
</div>
<div class="modal-action">
<form method="dialog">

<button class="btn">关闭</button>
</form>
</div>
</div>
</dialog>
</div>
</template>

Expand Down
19 changes: 19 additions & 0 deletions src/components/Devtools.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,25 @@
<div v-html="res" class="bg-gray-50 p-4 rounded-md text-gray-700 break-words">
</div>
</div>
<dialog id="my_modal_4" class="modal">
<div class="modal-box w-11/12 max-w-5xl">
<h3 class="font-bold text-lg">加密配置</h3>
<div class="w-full">
<label class="label">
<span class="label-text">密钥key</span>
</label>
<input type="text" @change="handlChangeData" v-model="key" placeholder="密钥key"
class="input input-bordered w-full " />
</div>

<div class="modal-action">
<form method="dialog">

<button class="btn">关闭</button>
</form>
</div>
</div>
</dialog>
</div>
</template>
<script setup>
Expand Down
76 changes: 66 additions & 10 deletions src/components/Qrcode.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
* @Date: 2023-09-19
* @LastEditTime:2024-11-19 10:26:51
* @LastEditTime:2024-11-19 10:36:17
* @LastEditors:xkloveme
* @FileDesc:new page
* @FilePath:/black-tool/src/components/Qrcode.vue
Expand Down Expand Up @@ -52,18 +52,74 @@
</div>

<!-- 弹窗部分样式修改 -->
<dialog id="my_modal_3" class="modal">
<div class="modal-box w-11/12 max-w-5xl bg-white">
<h3 class="font-bold text-lg text-gray-800">保存链接到配置</h3>
<div class="form-control w-full">
<dialog id="my_modal_3" class="modal ">
<div class="modal-box w-11/12 max-w-5xl">
<h3 class="font-bold text-lg">保存链接到配置</h3>
<div class="w-full">
<label class="label">
<span class="label-text text-gray-700">链接标题</span>
<span class="label-text">链接标题</span>
</label>
<input type="text" v-model="linkConfig.title"
class="input input-bordered w-full bg-white text-gray-700"
placeholder="标题" />
<input type="text" @change="handlChangeData" v-model="linkConfig.title" placeholder="标题"
class="input input-bordered w-full " />
</div>
<div class="w-full">
<label class="label">
<span class="label-text">链接地址</span>
</label>
<input type="text" @change="handlChangeData" v-model="linkConfig.url" placeholder="链接地址"
class="input input-bordered w-full text-emerald" />
</div>
<!-- <iframe ref="iframe" :src="iframeUrl" frameborder="0"></iframe> -->
<div class="modal-action">
<form method="dialog">
<button @click="saveLink" class="btn btn-accent mr-4">保存</button>
<button class="btn">关闭</button>
</form>
</div>
</div>
</dialog>

<dialog id="my_modal_4" class="modal">
<div class="modal-box max-w-5xl bg-gray-900">
<div>
<table class="table w-full table-zebra">
<!-- head -->
<thead>
<tr class="bg-gray-900 text-emerald my-2">
<th align="center">操作</th>
<th align="left">标题和链接</th>
</tr>
</thead>
<tbody>
<!-- row 1 -->
<tr v-for="(item, index) in urlList" :key="item.url" class="border-b border-gray-500">
<th class="flex w-30 mt-4">
<button @click="dellink(index)" class="btn btn-outline btn-xs btn-secondary">删除</button>

<form method="dialog">
<button @click="handlUseLink(item)" class="btn btn-outline btn-xs btn-accent ml-4"
for="my_modal_4">使用</button>
</form>
</th>
<td class="w-5/6 overflow-hidden">
<a :href="item.url" target="_blank" className="btn btn-active btn-link text-blue lowercase text-left">{{
item.url }}</a>
<br />
<span class="badge badge-ghost badge-lg text-red text-left text-lg p-2">{{ item.title }}</span>
</td>

</tr>

</tbody>

</table>
</div>
<div class="modal-action">
<form method="dialog">

<button class="btn">关闭</button>
</form>
</div>
<!-- 其他弹窗内容... -->
</div>
</dialog>
</div>
Expand Down

0 comments on commit b4aba39

Please sign in to comment.