Feature(custom): remove sponsor from menu

This commit is contained in:
Kuingsmile
2023-12-19 02:15:37 -08:00
parent 8ccdc2812f
commit 28e6f4787f
7 changed files with 0 additions and 57 deletions

View File

@@ -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 () {

View File

@@ -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')
})

View File

@@ -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'

View File

@@ -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