Merge pull request #19 from ZiuChen/v1.1.2

V1.1.2
This commit is contained in:
ZiuChen 2022-08-18 22:10:59 +08:00 committed by GitHub
commit 8175ade0bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 24 additions and 39 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1660717892395" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="22407" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M800 128h-160c0-70.6-57.4-128-128-128s-128 57.4-128 128H224C171 128 128 171 128 224v704c0 53 43 96 96 96h576c53 0 96-43 96-96V224c0-53-43-96-96-96zM512 80c26.6 0 48 21.4 48 48s-21.4 48-48 48-48-21.4-48-48 21.4-48 48-48z m288 836c0 6.6-5.4 12-12 12H236c-6.6 0-12-5.4-12-12V236c0-6.6 5.4-12 12-12h84v72c0 13.2 10.8 24 24 24h336c13.2 0 24-10.8 24-24v-72h84c6.6 0 12 5.4 12 12z" p-id="22408"></path></svg>

After

Width:  |  Height:  |  Size: 779 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1660718050496" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1010" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M213.333333 405.333333L320 597.333333h-213.333333L213.333333 405.333333M128 170.666667h170.666667v170.666666H128V170.666667m85.333333 682.666666a85.333333 85.333333 0 0 0 85.333334-85.333333 85.333333 85.333333 0 0 0-85.333334-85.333333 85.333333 85.333333 0 0 0-85.333333 85.333333 85.333333 85.333333 0 0 0 85.333333 85.333333M384 213.333333v85.333334h512V213.333333H384m0 597.333334h512v-85.333334H384v85.333334m0-256h512v-85.333334H384v85.333334z" fill="" p-id="1011"></path></svg>

After

Width:  |  Height:  |  Size: 862 B

BIN
docs/logo/logo-high.psd Normal file

Binary file not shown.

BIN
docs/logo/logo-medium.psd Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -1,5 +1,5 @@
{
"version": "1.1.1",
"version": "1.1.2",
"pluginName": "剪贴板",
"description": "强大的剪贴板管理工具",
"author": "ZiuChen",

View File

@ -88,12 +88,6 @@ class DB {
this.updateDataBase()
this.updateDataBaseLocal()
}
filterDataBaseViaData(key) {
// 过滤展示数据
const filterValue = key.toLowerCase()
const textItems = this.dataBase.data.filter((item) => item.type === 'text')
return textItems.filter((item) => item.data.toLowerCase().indexOf(filterValue) !== -1)
}
filterDataBaseViaId(id) {
return this.dataBase.data.filter((item) => item.id === id)
}
@ -185,7 +179,6 @@ const copy = (item) => {
utools.copyFile(paths)
break
}
utools.outPlugin()
utools.hideMainWindow()
}

View File

@ -22,10 +22,10 @@
>
查看全部
</div>
{{ item.data.slice(0, 500).trim() }}
<div>{{ item.data.slice(0, 500).trim() }}</div>
</template>
<template v-if="item.type === 'image'">
<img :src="item.data" alt="Image" />
<img class="clip-data-image" :src="item.data" alt="Image" />
<div class="clip-data-status">{{ item.size }}</div>
</template>
<template v-if="item.type === 'file'">
@ -34,7 +34,7 @@
v-if="JSON.parse(item.data).length >= 8"
@click.stop="handleDataClick(item)"
>
点此查看全部>>
查看全部
</div>
<FileList :data="JSON.parse(item.data)" />
</template>

View File

@ -45,16 +45,20 @@
white-space: pre-wrap;
flex-direction: column;
color: @text-color;
background-color: @bg-color;
img {
max-height: 150px;
img.clip-data-image {
max-height: 140px; // 比外框 max-height少一点 因为有 5px的边框
max-width: 90%;
padding: 5px;
background-color: @text-color-lighter;
border-radius: 5px;
}
.clip-data-status {
position: absolute;
width: fit-content;
color: @bg-color;
background-color: @text-color;
background-color: @text-color-lighter;
border-radius: 5px;
padding: 3px;
}
}
}

View File

@ -32,30 +32,16 @@ const showList = ref([]) // 展示的数据
const updateShowList = (type) => {
//
if (type === 'all') {
if (filterText.value) {
//
showList.value = list.value
.filter((item) => item.type !== 'image')
.filter((item) => item.data.indexOf(filterText.value) !== -1)
.slice(0, GAP)
} else {
//
showList.value = list.value
.filter((item) => item.data.indexOf(filterText.value) !== -1)
.slice(0, GAP)
}
} else if (type === 'image') {
// DataURL
showList.value = list.value.filter((item) => item.type === type).slice(0, GAP)
} else {
// `file` stringifydata
// `text` data
showList.value = list.value
.filter((item) => item.type === type)
.filter((item) => item.data.indexOf(filterText.value) !== -1)
.slice(0, GAP)
}
.filter((item) => (type === 'all' ? item : item.type === type)) // all type
.filter((item) => (filterText.value ? item.type !== 'image' : item)) // DataURL
.filter(
(item) =>
filterText.value
? item.data.toLowerCase().indexOf(filterText.value.toLowerCase()) !== -1 //
: item //
)
.slice(0, GAP) //
window.toTop()
}