Skip to content

Commit

Permalink
✨ Feature(custom): remove sponsor from menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuingsmile committed Dec 19, 2023
1 parent 8ccdc28 commit 28e6f47
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 57 deletions.
3 changes: 0 additions & 3 deletions public/i18n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions public/i18n/zh-CN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ UPLOADING: 正在上传
QUICK_UPLOAD: 快捷上传
UPLOAD_BY_CLIPBOARD: 剪贴板图片上传
HIDE_WINDOW: 隐藏窗口
SPONSOR_PICLIST: 赞助 PicList
SHOW_PICBED_QRCODE: 生成图床配置二维码
PICBED_QRCODE: 图床配置二维码
ENABLE: 启用
Expand Down Expand Up @@ -67,8 +66,6 @@ PICBEDS_MANAGE: 图床管理
PICLIST_SETTINGS: 设置
PLUGIN_SETTINGS: 插件
PICLIST_SPONSOR_TEXT: 如果你喜欢它,对你有帮助,可以请我喝杯蜜雪冰城~
ALIPAY: 支付宝
WECHATPAY: 微信支付
CHOOSE_PICBED: 选择图床
COPY_PICBED_CONFIG: 复制图床配置
COPY_PICBED_CONFIG_SUCCEED: 复制图床配置成功
Expand Down
3 changes: 0 additions & 3 deletions public/i18n/zh-TW.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ UPLOADING: 正在上傳
QUICK_UPLOAD: 快速上傳
UPLOAD_BY_CLIPBOARD: 剪貼簿圖片上傳
HIDE_WINDOW: 隱藏視窗
SPONSOR_PICLIST: 贊助 PicList
SHOW_PICBED_QRCODE: 產生圖床配置 QRCODE
PICBED_QRCODE: 圖床配置 QRCODE
ENABLE: 啟用
Expand Down Expand Up @@ -67,8 +66,6 @@ PICBEDS_MANAGE: 圖床管理
PICLIST_SETTINGS: 設定
PLUGIN_SETTINGS: 插件
PICLIST_SPONSOR_TEXT: 如果你喜歡它,對你有幫助,不妨請我喝杯咖啡~
ALIPAY: 支付寶
WECHATPAY: 微信支付
CHOOSE_PICBED: 選擇圖床
COPY_PICBED_CONFIG: 複製圖床設定
COPY_PICBED_CONFIG_SUCCEED: 複製圖床設定成功
Expand Down
7 changes: 0 additions & 7 deletions src/main/events/remotes/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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 () {
Expand Down
37 changes: 0 additions & 37 deletions src/renderer/layouts/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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'
Expand All @@ -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([])
Expand All @@ -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
Expand Down Expand Up @@ -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')
})
Expand Down
1 change: 0 additions & 1 deletion src/universal/events/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 0 additions & 3 deletions src/universal/types/i18n.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 28e6f47

Please sign in to comment.