mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-07 05:52:45 +08:00
✨ Feature(custom): remove sponsor from menu
This commit is contained in:
@@ -14,7 +14,6 @@ UPLOADING: Uploading
|
||||
QUICK_UPLOAD: Quick Upload
|
||||
UPLOAD_BY_CLIPBOARD: Upload by Clipboard
|
||||
HIDE_WINDOW: Hide Window
|
||||
SPONSOR_PICLIST: Sponsor PicList
|
||||
SHOW_PICBED_QRCODE: Show Picbed Qrcode
|
||||
PICBED_QRCODE: Picbed Qrcode
|
||||
ENABLE: Enable
|
||||
@@ -67,8 +66,6 @@ PICBEDS_MANAGE: Picbeds Manage
|
||||
PICLIST_SETTINGS: Settings
|
||||
PLUGIN_SETTINGS: Plugins
|
||||
PICLIST_SPONSOR_TEXT: If you like it, please don't forget to buy me a cup of coffee.
|
||||
ALIPAY: Alipay
|
||||
WECHATPAY: Wechat Pay
|
||||
CHOOSE_PICBED: Choose Picbed
|
||||
COPY_PICBED_CONFIG: Copy Picbed Config
|
||||
COPY_PICBED_CONFIG_SUCCEED: Copy Picbed Config Succeed
|
||||
|
||||
@@ -14,7 +14,6 @@ UPLOADING: 正在上传
|
||||
QUICK_UPLOAD: 快捷上传
|
||||
UPLOAD_BY_CLIPBOARD: 剪贴板图片上传
|
||||
HIDE_WINDOW: 隐藏窗口
|
||||
SPONSOR_PICLIST: 赞助 PicList
|
||||
SHOW_PICBED_QRCODE: 生成图床配置二维码
|
||||
PICBED_QRCODE: 图床配置二维码
|
||||
ENABLE: 启用
|
||||
@@ -67,8 +66,6 @@ PICBEDS_MANAGE: 图床管理
|
||||
PICLIST_SETTINGS: 设置
|
||||
PLUGIN_SETTINGS: 插件
|
||||
PICLIST_SPONSOR_TEXT: 如果你喜欢它,对你有帮助,可以请我喝杯蜜雪冰城~
|
||||
ALIPAY: 支付宝
|
||||
WECHATPAY: 微信支付
|
||||
CHOOSE_PICBED: 选择图床
|
||||
COPY_PICBED_CONFIG: 复制图床配置
|
||||
COPY_PICBED_CONFIG_SUCCEED: 复制图床配置成功
|
||||
|
||||
@@ -14,7 +14,6 @@ UPLOADING: 正在上傳
|
||||
QUICK_UPLOAD: 快速上傳
|
||||
UPLOAD_BY_CLIPBOARD: 剪貼簿圖片上傳
|
||||
HIDE_WINDOW: 隱藏視窗
|
||||
SPONSOR_PICLIST: 贊助 PicList
|
||||
SHOW_PICBED_QRCODE: 產生圖床配置 QRCODE
|
||||
PICBED_QRCODE: 圖床配置 QRCODE
|
||||
ENABLE: 啟用
|
||||
@@ -67,8 +66,6 @@ PICBEDS_MANAGE: 圖床管理
|
||||
PICLIST_SETTINGS: 設定
|
||||
PLUGIN_SETTINGS: 插件
|
||||
PICLIST_SPONSOR_TEXT: 如果你喜歡它,對你有幫助,不妨請我喝杯咖啡~
|
||||
ALIPAY: 支付寶
|
||||
WECHATPAY: 微信支付
|
||||
CHOOSE_PICBED: 選擇圖床
|
||||
COPY_PICBED_CONFIG: 複製圖床設定
|
||||
COPY_PICBED_CONFIG_SUCCEED: 複製圖床設定成功
|
||||
|
||||
@@ -26,7 +26,6 @@ import {
|
||||
PICGO_HANDLE_PLUGIN_DONE,
|
||||
PICGO_HANDLE_PLUGIN_ING,
|
||||
PICGO_TOGGLE_PLUGIN,
|
||||
SHOW_MAIN_PAGE_DONATION,
|
||||
SHOW_MAIN_PAGE_QRCODE
|
||||
} from '~/universal/events/constants'
|
||||
import { PicGo as PicGoCore } from 'piclist'
|
||||
@@ -122,12 +121,6 @@ const buildMainPageMenu = (win: BrowserWindow) => {
|
||||
})
|
||||
}
|
||||
},
|
||||
{
|
||||
label: T('SPONSOR_PICLIST'),
|
||||
click () {
|
||||
win?.webContents?.send(SHOW_MAIN_PAGE_DONATION)
|
||||
}
|
||||
},
|
||||
{
|
||||
label: T('SHOW_PICBED_QRCODE'),
|
||||
click () {
|
||||
|
||||
@@ -160,37 +160,6 @@
|
||||
</router-view>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-dialog
|
||||
v-model="visible"
|
||||
:title="$T('SPONSOR_PICLIST')"
|
||||
width="70%"
|
||||
top="10vh"
|
||||
append-to-body
|
||||
>
|
||||
{{ $T('PICLIST_SPONSOR_TEXT') }}
|
||||
<el-row class="support">
|
||||
<el-col :span="12">
|
||||
<img
|
||||
width="200"
|
||||
src="https://pichoro.msq.pub/images/zhifubao_money.jpg"
|
||||
:alt="$T('ALIPAY')"
|
||||
>
|
||||
<div class="support-title">
|
||||
{{ $T('ALIPAY') }}
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<img
|
||||
width="200"
|
||||
src="https://pichoro.msq.pub/images/wechat_money.jpg"
|
||||
:alt="$T('WECHATPAY')"
|
||||
>
|
||||
<div class="support-title">
|
||||
{{ $T('WECHATPAY') }}
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-dialog>
|
||||
<el-dialog
|
||||
v-model="qrcodeVisible"
|
||||
class="qrcode-dialog"
|
||||
@@ -302,7 +271,6 @@ import {
|
||||
CLOSE_WINDOW,
|
||||
SHOW_MAIN_PAGE_MENU,
|
||||
SHOW_MAIN_PAGE_QRCODE,
|
||||
SHOW_MAIN_PAGE_DONATION,
|
||||
GET_PICBEDS
|
||||
} from '~/universal/events/constants'
|
||||
|
||||
@@ -312,7 +280,6 @@ import { getConfig, sendToMain } from '@/utils/dataSender'
|
||||
const version = ref(process.env.NODE_ENV === 'production' ? pkg.version : 'Dev')
|
||||
const routerConfig = reactive(config)
|
||||
const defaultActive = ref(routerConfig.UPLOAD_PAGE)
|
||||
const visible = ref(false)
|
||||
const os = ref('')
|
||||
const $router = useRouter()
|
||||
const picBed: Ref<IPicBedType[]> = ref([])
|
||||
@@ -333,9 +300,6 @@ onBeforeMount(() => {
|
||||
ipcRenderer.on(SHOW_MAIN_PAGE_QRCODE, () => {
|
||||
qrcodeVisible.value = true
|
||||
})
|
||||
ipcRenderer.on(SHOW_MAIN_PAGE_DONATION, () => {
|
||||
visible.value = true
|
||||
})
|
||||
ipcRenderer.on('updateProgress', (_event: IpcRendererEvent, data: { progress: number}) => {
|
||||
progressShow.value = data.progress !== 100 && data.progress !== 0
|
||||
progressPercentage.value = data.progress
|
||||
@@ -419,7 +383,6 @@ onBeforeRouteUpdate(async (to) => {
|
||||
onBeforeUnmount(() => {
|
||||
ipcRenderer.removeListener(GET_PICBEDS, getPicBeds)
|
||||
ipcRenderer.removeAllListeners(SHOW_MAIN_PAGE_QRCODE)
|
||||
ipcRenderer.removeAllListeners(SHOW_MAIN_PAGE_DONATION)
|
||||
ipcRenderer.removeAllListeners('updateProgress')
|
||||
})
|
||||
|
||||
|
||||
@@ -33,7 +33,6 @@ export const SET_MINI_WINDOW_POS = 'SET_MINI_WINDOW_POS'
|
||||
export const RENAME_FILE_NAME = 'RENAME_FILE_NAME'
|
||||
export const GET_RENAME_FILE_NAME = 'GET_RENAME_FILE_NAME'
|
||||
export const SHOW_MAIN_PAGE_QRCODE = 'SHOW_MAIN_PAGE_QRCODE'
|
||||
export const SHOW_MAIN_PAGE_DONATION = 'SHOW_MAIN_PAGE_DONATION'
|
||||
export const FORCE_UPDATE = 'FORCE_UPDATE'
|
||||
export const OPEN_WINDOW = 'OPEN_WINDOW'
|
||||
export const GET_PICBEDS = 'GET_PICBEDS'
|
||||
|
||||
3
src/universal/types/i18n.d.ts
vendored
3
src/universal/types/i18n.d.ts
vendored
@@ -15,7 +15,6 @@ interface ILocales {
|
||||
QUICK_UPLOAD: string
|
||||
UPLOAD_BY_CLIPBOARD: string
|
||||
HIDE_WINDOW: string
|
||||
SPONSOR_PICLIST: string
|
||||
SHOW_PICBED_QRCODE: string
|
||||
PICBED_QRCODE: string
|
||||
ENABLE: string
|
||||
@@ -65,8 +64,6 @@ interface ILocales {
|
||||
PICLIST_SETTINGS: string
|
||||
PLUGIN_SETTINGS: string
|
||||
PICLIST_SPONSOR_TEXT: string
|
||||
ALIPAY: string
|
||||
WECHATPAY: string
|
||||
CHOOSE_PICBED: string
|
||||
COPY_PICBED_CONFIG: string
|
||||
COPY_PICBED_CONFIG_SUCCEED: string
|
||||
|
||||
Reference in New Issue
Block a user