Skip to content

Commit

Permalink
✨ Feature(custom): remove telegra.ph
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuingsmile committed Sep 11, 2024
1 parent 281859d commit cb2e076
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 108 deletions.
3 changes: 0 additions & 3 deletions src/i18n/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,6 @@ export const EN: ILocales = {
PICBED_QINIU_MESSAGE_OPTIONS: 'Ex. ?imageslim',
PICBED_QINIU_MESSAGE_URL: 'Ex. https://xxx.yyy.glb.clouddn.com',

// telegraph
PICBED_TELEGRAPH: 'Telegraph',

// imgur
PICBED_IMGUR: 'Imgur',
PICBED_IMGUR_CLIENTID: 'Set ClientId',
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const ZH_CN = {
PICBED_QINIU_MESSAGE_AREA: '例如:z0',
PICBED_QINIU_MESSAGE_OPTIONS: '例如:?imageslim',
PICBED_QINIU_MESSAGE_URL: '例如:https://xxx.yyy.glb.clouddn.com',
PICBED_TELEGRAPH: 'Telegraph',

// imgur
PICBED_IMGUR: 'Imgur',
PICBED_IMGUR_CLIENTID: '设定ClientId',
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/zh-TW.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const ZH_TW: ILocales = {
PICBED_QINIU_MESSAGE_AREA: '例如:z0',
PICBED_QINIU_MESSAGE_OPTIONS: '例如:?imageslim',
PICBED_QINIU_MESSAGE_URL: '例如:https://xxx.yyy.glb.clouddn.com',
PICBED_TELEGRAPH: 'Telegraph',

// imgur
PICBED_IMGUR: 'Imgur',
PICBED_IMGUR_CLIENTID: '設定ClientId',
Expand Down
1 change: 0 additions & 1 deletion src/plugins/commander/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export const uploaderTranslators = (ctx: IPicGo) => {
sftpplist: ctx.i18n.translate<ILocalesKey>('PICBED_SFTPPLIST'),
smms: ctx.i18n.translate<ILocalesKey>('PICBED_SMMS'),
tcyun: ctx.i18n.translate<ILocalesKey>('PICBED_TENCENTCLOUD'),
telegraphplist: ctx.i18n.translate<ILocalesKey>('PICBED_TELEGRAPH'),
upyun: ctx.i18n.translate<ILocalesKey>('PICBED_UPYUN'),
webdavplist: ctx.i18n.translate<ILocalesKey>('PICBED_WEBDAVPLIST')
} as IStringKeyMap<any>
Expand Down
2 changes: 0 additions & 2 deletions src/plugins/uploader/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import qiniuUploader from './qiniu'
import sftpUploader from './sftp'
import smmsUploader from './smms'
import tcYunUploader from './tcyun'
import telegraphUploader from './telegraph'
import upYunUploader from './upyun'
import webdavplistUploader from './webdav'

Expand All @@ -32,7 +31,6 @@ const buildInUploaders = () => {
sftpUploader(ctx)
smmsUploader(ctx)
tcYunUploader(ctx)
telegraphUploader(ctx)
upYunUploader(ctx)
webdavplistUploader(ctx)
}
Expand Down
98 changes: 0 additions & 98 deletions src/plugins/uploader/telegraph.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/plugins/uploader/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export const buildInUploaderNames = {
sftpplist: 'sftpplist',
smms: 'smms',
tcyun: 'tcyun',
telegraphplist: 'telegraphplist',
upyun: 'upyun',
webdavplist: 'webdavplist'
}
5 changes: 4 additions & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,10 @@ export type IStringKeyMap<T> = Record<string, T extends T ? T : any>

export type ICLIConfigs = Record<string, IStringKeyMap<any>>

/** Telegraph 图床配置项 */
/**
* Telegraph 图床配置项
* @deprecated since v1.9.6
*/
export interface ITelegraphConfig {
proxy?: string
}
Expand Down

0 comments on commit cb2e076

Please sign in to comment.