refactor: remove unused getChatChannelMeta import and update ringcentralPlugin meta
This commit is contained in:
parent
93132177df
commit
14adde06e0
@ -4,7 +4,6 @@ import {
|
|||||||
DEFAULT_ACCOUNT_ID,
|
DEFAULT_ACCOUNT_ID,
|
||||||
deleteAccountFromConfigSection,
|
deleteAccountFromConfigSection,
|
||||||
formatPairingApproveHint,
|
formatPairingApproveHint,
|
||||||
getChatChannelMeta,
|
|
||||||
migrateBaseNameToDefaultAccount,
|
migrateBaseNameToDefaultAccount,
|
||||||
missingTargetError,
|
missingTargetError,
|
||||||
normalizeAccountId,
|
normalizeAccountId,
|
||||||
@ -37,10 +36,8 @@ import {
|
|||||||
} from "./targets.js";
|
} from "./targets.js";
|
||||||
import type { RingCentralConfig } from "./types.js";
|
import type { RingCentralConfig } from "./types.js";
|
||||||
|
|
||||||
const meta = getChatChannelMeta("ringcentral");
|
|
||||||
|
|
||||||
const formatAllowFromEntry = (entry: string) =>
|
const formatAllowFromEntry = (entry: string) =>
|
||||||
entry
|
(entry ?? "")
|
||||||
.trim()
|
.trim()
|
||||||
.replace(/^(ringcentral|rc):/i, "")
|
.replace(/^(ringcentral|rc):/i, "")
|
||||||
.replace(/^user:/i, "")
|
.replace(/^user:/i, "")
|
||||||
@ -87,9 +84,11 @@ export const ringcentralDock: ChannelDock = {
|
|||||||
export const ringcentralPlugin: ChannelPlugin<ResolvedRingCentralAccount> = {
|
export const ringcentralPlugin: ChannelPlugin<ResolvedRingCentralAccount> = {
|
||||||
id: "ringcentral",
|
id: "ringcentral",
|
||||||
meta: {
|
meta: {
|
||||||
...meta,
|
id: "ringcentral",
|
||||||
label: "RingCentral",
|
label: "RingCentral",
|
||||||
selectionLabel: "RingCentral Team Messaging",
|
selectionLabel: "RingCentral Team Messaging",
|
||||||
|
docsPath: "/channels/ringcentral",
|
||||||
|
docsLabel: "ringcentral",
|
||||||
blurb: "RingCentral Team Messaging via REST API and WebSocket.",
|
blurb: "RingCentral Team Messaging via REST API and WebSocket.",
|
||||||
order: 56,
|
order: 56,
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user