Skip to content

Commit

Permalink
chore: mv RedPacket (#11964)
Browse files Browse the repository at this point in the history
* chore: mv rp

* refactor: cleanup

* chore: cleanup plugin id

* refactor: cleanup

* chore: up lock file
  • Loading branch information
guanbinrui authored Nov 29, 2024
1 parent d4854ab commit 7965c1e
Show file tree
Hide file tree
Showing 87 changed files with 2 additions and 6,951 deletions.
6 changes: 0 additions & 6 deletions packages/plugin-infra/src/site-adaptor/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export interface __SiteAdaptorContext__ {
currentVisitingProfile: Subscription<IdentityResolved | undefined>
currentNextIDPlatform: NextIDPlatform | undefined
currentPersonaIdentifier: Subscription<PersonaIdentifier | undefined>
share: undefined | ((text: string, source?: string) => void)
getPostURL: (identifier: PostIdentifier) => URL | null
getProfileURL: (identifier: ProfileIdentifier) => URL | null
getUserIdentity: ((useId: string) => Promise<IdentityResolved | undefined>) | undefined
Expand All @@ -19,22 +18,19 @@ export interface __SiteAdaptorContext__ {
publishPost: ((mediaObjects: Array<string | Blob>, options?: any) => Promise<string | null>) | undefined
getSearchedKeyword: (() => string) | undefined
connectPersona: () => Promise<void>
requestLogin?: (...args: any[]) => void
}
export let lastRecognizedProfile: __SiteAdaptorContext__['lastRecognizedProfile']
export let currentVisitingProfile: __SiteAdaptorContext__['currentVisitingProfile']
export let currentNextIDPlatform: NextIDPlatform | undefined
export let currentPersonaIdentifier: __SiteAdaptorContext__['currentPersonaIdentifier']
export let getPostURL: __SiteAdaptorContext__['getPostURL']
export let getProfileURL: __SiteAdaptorContext__['getProfileURL']
export let share: __SiteAdaptorContext__['share']
export let getUserIdentity: __SiteAdaptorContext__['getUserIdentity']
export let getPostIdFromNewPostToast: __SiteAdaptorContext__['getPostIdFromNewPostToast']
export let postMessage: __SiteAdaptorContext__['postMessage']
export let publishPost: __SiteAdaptorContext__['publishPost']
export let getSearchedKeyword: __SiteAdaptorContext__['getSearchedKeyword']
export let connectPersona: __SiteAdaptorContext__['connectPersona']
export let requestLogin: __SiteAdaptorContext__['requestLogin']
export function __setSiteAdaptorContext__(value: __SiteAdaptorContext__) {
;({
lastRecognizedProfile,
Expand All @@ -43,13 +39,11 @@ export function __setSiteAdaptorContext__(value: __SiteAdaptorContext__) {
currentPersonaIdentifier,
getPostURL,
getProfileURL,
share,
getUserIdentity,
getPostIdFromNewPostToast,
postMessage,
publishPost,
getSearchedKeyword,
connectPersona,
requestLogin,
} = value)
}
40 changes: 0 additions & 40 deletions packages/plugins/RedPacket/package.json

This file was deleted.

240 changes: 0 additions & 240 deletions packages/plugins/RedPacket/src/SiteAdaptor/ClaimRequirementsDialog.tsx

This file was deleted.

Loading

0 comments on commit 7965c1e

Please sign in to comment.