Skip to content

Commit

Permalink
优化:软件图标尺寸
Browse files Browse the repository at this point in the history
  • Loading branch information
modstart committed Nov 4, 2024
1 parent 13cbd08 commit 2bd21fd
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- 优化:默认禁用 GPU 加速功能
- 优化:获取可用端口逻辑功能优化
- 优化:Windows 系统下进程输出编码乱码问题
- 优化:软件图标尺寸

## v0.0.2

Expand Down
12 changes: 10 additions & 2 deletions electron/mapi/file/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,17 @@ const deletes = async (path: string, option?: { isFullPath?: boolean, }) => {
}
const stat = fs.statSync(fp)
if (stat.isDirectory()) {
fs.rmdirSync(fp, {recursive: true})
try {
fs.rmdirSync(fp, {recursive: true})
} catch (e) {
console.log('mapi.file.deletes.error', e)
}
} else {
fs.unlinkSync(fp)
try {
fs.unlinkSync(fp)
} catch (e) {
console.log('mapi.file.deletes.error', e)
}
}
}
const rename = async (pathOld: string, pathNew: string, option?: {
Expand Down
Binary file modified electron/resources/build/appx/Square150x150Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified electron/resources/build/appx/Square44x44Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified electron/resources/build/appx/StoreLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified electron/resources/build/appx/Wide310x150Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified electron/resources/build/logo.icns
Binary file not shown.
Binary file modified electron/resources/build/logo.ico
Binary file not shown.
Binary file modified electron/resources/build/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified electron/resources/build/logo_1024x1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified electron/resources/extra/common/tray/icon.ico
Binary file not shown.
Binary file modified electron/resources/extra/common/tray/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified electron/resources/extra/mac/tray/iconTemplate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified electron/resources/extra/mac/tray/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified electron/resources/extra/mac/tray/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/Video/VideoGenCreate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ onMounted(async () => {
})
const doSubmit = async () => {
formData.value.param = paramForm.value.getValue()
formData.value.param = paramForm.value?.getValue() as any
if (!formData.value.serverKey) {
Dialog.tipError(t('请选择模型'))
return
Expand Down
1 change: 1 addition & 0 deletions src/components/Video/VideoTemplateDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ defineExpose({
<a-table :scroll="{maxHeight:'60vh'}"
:columns="columns"
:pagination="false"
row-key="id"
:data="records">
<template #video="{ record }">
<div class="p-2 shadow rounded-lg bg-gray-400 inline-block">
Expand Down
8 changes: 7 additions & 1 deletion src/components/common/VideoPlayer.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import Player from 'xgplayer';
import 'xgplayer/dist/index.min.css';
import {onMounted, ref} from "vue";
import {onBeforeUnmount, onMounted, ref} from "vue";
const videoContainer = ref<HTMLDivElement | undefined>(undefined);
Expand Down Expand Up @@ -38,6 +38,12 @@ onMounted(() => {
});
})
onBeforeUnmount(() => {
if (player) {
player.destroy();
}
})
</script>

<template>
Expand Down

0 comments on commit 2bd21fd

Please sign in to comment.