mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-02-02 11:08:13 -05:00
✨ Feature(custom): support force refresh gallery page
This commit is contained in:
parent
3e17647a7a
commit
cafb4d590a
@ -63,6 +63,7 @@ UPLOAD_AREA: Upload
|
|||||||
UPLOAD_VIEW_HINT: Click to open picbeds settings
|
UPLOAD_VIEW_HINT: Click to open picbeds settings
|
||||||
MANAGE_PAGE: Manage
|
MANAGE_PAGE: Manage
|
||||||
GALLERY: Gallery
|
GALLERY: Gallery
|
||||||
|
REFRESH: Refresh
|
||||||
MANUAL: Manual
|
MANUAL: Manual
|
||||||
OPEN_MANUAL_LINK: Manual
|
OPEN_MANUAL_LINK: Manual
|
||||||
OPEN_MANUAL_LINK_HINT: Will open the manual link in your browser, do you want to continue?
|
OPEN_MANUAL_LINK_HINT: Will open the manual link in your browser, do you want to continue?
|
||||||
|
@ -63,6 +63,7 @@ UPLOAD_AREA: 上传
|
|||||||
UPLOAD_VIEW_HINT: 点击打开图床设置
|
UPLOAD_VIEW_HINT: 点击打开图床设置
|
||||||
MANAGE_PAGE: 管理
|
MANAGE_PAGE: 管理
|
||||||
GALLERY: 相册
|
GALLERY: 相册
|
||||||
|
REFRESH: 刷新
|
||||||
MANUAL: 手册
|
MANUAL: 手册
|
||||||
OPEN_MANUAL_LINK: 前往手册
|
OPEN_MANUAL_LINK: 前往手册
|
||||||
OPEN_MANUAL_LINK_HINT: 即将打开PicList使用手册网页, 是否继续?
|
OPEN_MANUAL_LINK_HINT: 即将打开PicList使用手册网页, 是否继续?
|
||||||
|
@ -63,6 +63,7 @@ UPLOAD_AREA: 上傳
|
|||||||
UPLOAD_VIEW_HINT: 點擊打開圖床設定
|
UPLOAD_VIEW_HINT: 點擊打開圖床設定
|
||||||
MANAGE_PAGE: 管理
|
MANAGE_PAGE: 管理
|
||||||
GALLERY: 相簿
|
GALLERY: 相簿
|
||||||
|
REFRESH: 刷新
|
||||||
MANUAL: 手冊
|
MANUAL: 手冊
|
||||||
OPEN_MANUAL_LINK: 手冊
|
OPEN_MANUAL_LINK: 手冊
|
||||||
OPEN_MANUAL_LINK_HINT: 即將打開PicList使用手冊網頁,是否繼續?
|
OPEN_MANUAL_LINK_HINT: 即將打開PicList使用手冊網頁,是否繼續?
|
||||||
|
@ -335,6 +335,11 @@ export default {
|
|||||||
settingWindow.hide()
|
settingWindow.hide()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
ipcMain.on('refreshSettingWindow', () => {
|
||||||
|
const settingWindow = windowManager.get(IWindowList.SETTING_WINDOW)!
|
||||||
|
settingWindow.webContents.reloadIgnoringCache()
|
||||||
|
})
|
||||||
|
|
||||||
// from mini window
|
// from mini window
|
||||||
ipcMain.on('syncPicBed', () => {
|
ipcMain.on('syncPicBed', () => {
|
||||||
if (windowManager.has(IWindowList.SETTING_WINDOW)) {
|
if (windowManager.has(IWindowList.SETTING_WINDOW)) {
|
||||||
|
@ -22,7 +22,28 @@
|
|||||||
:active-text="$T('SETTINGS_OPEN')"
|
:active-text="$T('SETTINGS_OPEN')"
|
||||||
:inactive-text="$T('SETTINGS_CLOSE')"
|
:inactive-text="$T('SETTINGS_CLOSE')"
|
||||||
@change="handleDeleteCloudFile"
|
@change="handleDeleteCloudFile"
|
||||||
/></span>
|
/>
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
@click="refreshPage"
|
||||||
|
>
|
||||||
|
<el-tooltip
|
||||||
|
class="item"
|
||||||
|
effect="dark"
|
||||||
|
:content="$T('REFRESH')"
|
||||||
|
placement="bottom"
|
||||||
|
:persistent="false"
|
||||||
|
teleported
|
||||||
|
>
|
||||||
|
<el-icon
|
||||||
|
size="25"
|
||||||
|
style="cursor: pointer; margin-left: 10px;"
|
||||||
|
>
|
||||||
|
<Refresh />
|
||||||
|
</el-icon>
|
||||||
|
</el-tooltip>
|
||||||
|
</el-button>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<transition name="el-zoom-in-top">
|
<transition name="el-zoom-in-top">
|
||||||
<el-row v-show="handleBarActive">
|
<el-row v-show="handleBarActive">
|
||||||
@ -447,7 +468,7 @@ import { PASTE_TEXT, GET_PICBEDS } from '#/events/constants'
|
|||||||
import { CheckboxValueType, ElMessageBox, ElNotification, ElMessage } from 'element-plus'
|
import { CheckboxValueType, ElMessageBox, ElNotification, ElMessage } from 'element-plus'
|
||||||
|
|
||||||
// Element Plus 图标
|
// Element Plus 图标
|
||||||
import { InfoFilled, Close, CaretBottom, Document, Edit, Delete, CaretTop, Sort } from '@element-plus/icons-vue'
|
import { InfoFilled, Close, CaretBottom, Document, Edit, Delete, CaretTop, Sort, Refresh } from '@element-plus/icons-vue'
|
||||||
|
|
||||||
// Electron 相关
|
// Electron 相关
|
||||||
import {
|
import {
|
||||||
@ -653,6 +674,10 @@ function handleChooseImage (val: CheckboxValueType, index: number) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function refreshPage () {
|
||||||
|
ipcRenderer.send('refreshSettingWindow')
|
||||||
|
}
|
||||||
|
|
||||||
function clearChoosedList () {
|
function clearChoosedList () {
|
||||||
isShiftKeyPress.value = false
|
isShiftKeyPress.value = false
|
||||||
Object.keys(choosedList).forEach(key => {
|
Object.keys(choosedList).forEach(key => {
|
||||||
|
1
src/universal/types/i18n.d.ts
vendored
1
src/universal/types/i18n.d.ts
vendored
@ -61,6 +61,7 @@ interface ILocales {
|
|||||||
UPLOAD_VIEW_HINT: string
|
UPLOAD_VIEW_HINT: string
|
||||||
MANAGE_PAGE: string
|
MANAGE_PAGE: string
|
||||||
GALLERY: string
|
GALLERY: string
|
||||||
|
REFRESH: string
|
||||||
MANUAL: string
|
MANUAL: string
|
||||||
OPEN_MANUAL_LINK: string
|
OPEN_MANUAL_LINK: string
|
||||||
OPEN_MANUAL_LINK_HINT: string
|
OPEN_MANUAL_LINK_HINT: string
|
||||||
|
Loading…
Reference in New Issue
Block a user