Skip to content

Commit 2ced498

Browse files
committed
新增:插件管理隐藏系统插件版本
1 parent c93cc8a commit 2ced498

4 files changed

Lines changed: 14 additions & 4 deletions

File tree

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
## v0.3.0
22

3+
- 新增:插件管理隐藏系统插件版本
34
- 新增:setting.darkModeSupport 配置项,默认为false
5+
- 新增:focusany.util.base64ToBuffer 工具类方法
46
- 修复:插件管理左侧溢出样式异常问题
57
- 优化:插件发布错误提醒增加错误码
68
- 优化:打开开发者调试默认为激活状态

electron/preload/focusany.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,9 @@ export const FocusAny = {
428428
bufferToBase64(buffer: Buffer): string {
429429
return FileUtil.bufferToBase64(buffer)
430430
},
431+
base64ToBuffer(base64: string): Buffer {
432+
return FileUtil.base64ToBuffer(base64)
433+
},
431434
datetimeString(): string {
432435
return TimeUtil.datetimeString()
433436
},

sdk/focusany.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,10 @@ interface FocusAnyApi {
587587
* @param buffer
588588
*/
589589
bufferToBase64(buffer: Uint8Array): string;
590+
/**
591+
* Base64 转 Buffer
592+
*/
593+
base64ToBuffer(base64: string): Uint8Array;
590594
/**
591595
* 获取当前时间戳字符串
592596
*/

src/pages/System/SystemPlugin.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ const doInstallStore = async () => {
189189
</script>
190190

191191
<template>
192-
<div class="flex h-full">
192+
<div class="flex h-full select-none">
193193
<div class="w-52 flex-shrink-0 border-r border-default h-full flex flex-col relative">
194194
<div class="flex-grow overflow-y-auto p-1">
195195
<div v-for="(r,rIndex) in recordsFilter"
@@ -223,14 +223,15 @@ const doInstallStore = async () => {
223223
:class="recordCurrent.type===PluginType.SYSTEM?'dark:invert':'plugin-logo-filter'"/>
224224
</div>
225225
<div class="flex-grow w-0 truncate">
226-
<div class="text-lg leading-6">
227-
<span class="font-bold mr-2">{{ recordCurrent.title }}</span>
228-
<span class="text-gray-400">v{{ recordCurrent.version }}</span>
226+
<div class="text-lg leading-6 flex items-center">
227+
<div class="font-bold mr-2">{{ recordCurrent.title }}</div>
228+
<div class="text-gray-400" v-if="recordCurrent.type!==PluginType.SYSTEM">v{{ recordCurrent.version }}</div>
229229
<a-tooltip :content="'本地插件:'+recordCurrent.runtime?.root">
230230
<a-tag v-if="recordCurrent.type==='dir'" size="small" color="red" class="ml-2 text-xs">
231231
DEV
232232
</a-tag>
233233
</a-tooltip>
234+
<div class="flex-grow"></div>
234235
</div>
235236
<div class="text-gray-400 w-0">
236237
{{ recordCurrent.description }}

0 commit comments

Comments
 (0)