Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ For general introductions, see [Mask.io](https://mask.io).

- [User Forum](https://github.com/DimensionDev/Maskbook/discussions)
- [Report Bug][report-bug]
- [X (formerly Twitter)](https://x.com/realMaskNetwork)
- [X (formerly Twitter)](https://x.com/masknetwork)
- [Facebook](https://www.facebook.com/masknetwork)
- [Telegram](https://t.me/maskbook_group)
- [Discord](https://discord.gg/4SVXvj7)
Expand Down
2 changes: 1 addition & 1 deletion packages/encryption/tests/twitter-encode-decode.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test, expect } from 'vitest'
import { TwitterDecoder } from '../src/index.js'
test('Can decode Twitter text payload', () => {
const payload = `This tweet is encrypted with #mask_io (@realMaskNetwork). \u{1F4EA}\u{1F511}
const payload = `This tweet is encrypted with #mask_io (@masknetwork). \u{1F4EA}\u{1F511}

Install https://mask.io/?PostData_v1=%204/4.mFXgbxPDrAD6PYRHWJW5IVlHObuFYs/LUyd08kkUkKimTx4opjHXjrgorrsyTPidL0lkeqdXnW3EzEacdlPJChko-Q5Wy113UMHYy1aV1Wheqwy/vM3PLMVaoKW/HyIL/SjJtim75bWMSHmj+vzMYwV59jLJqlTjJqhz5ObdZhAsWwRJGYIzEkg+.SKlWOvMpyF9T1jL2pr95kA_=.ehROC4d3QudYHEABcBTpSuxLvxM=._.Aq/bVWAKvodJuURGk3enjE1gUiu2SELM8IIKIlNGqOWM.1.dHdpdHRlci5jb20vd2lsbHlvbnRvdXI=%40 to decrypt it.`
expect(TwitterDecoder(payload)).toMatchSnapshot('Twitter example')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ export function useSubmit(onClose: () => void, reason: 'timeline' | 'popup' | 'r
function decorateEncryptedText(encrypted: string, _: I18nContext['_'], meta?: Meta): string | null {
if (!meta) return null
const hasOfficialAccount = Sniffings.is_twitter_page || Sniffings.is_facebook_page
const officialAccount = Sniffings.is_twitter_page ? _(msg`realMaskNetwork`) : _(msg`masknetwork`)
const token = meta.has(RedPacketMetaKey) || meta.has(SolanaRedPacketMetaKey) ? _(msg`a token`) : _(msg`an NFT`)
const sns = SOCIAL_MEDIA_NAME[activatedSiteAdaptorUI!.networkIdentifier]

Expand All @@ -102,7 +101,7 @@ function decorateEncryptedText(encrypted: string, _: I18nContext['_'], meta?: Me
const promote_red_packet2 = _(msg`🧧🧧🧧 Try sending Lucky Drop to your friends with Mask.io.`)
return hasOfficialAccount ?
promote_red_packet +
_(msg`Follow @${officialAccount} for Web3 updates and insights.`) +
_(msg`Follow @masknetwork for Web3 updates and insights.`) +
` \n\n${promote_red_packet2}\n\n${encrypted}`
: `${promote_red_packet}\n\n${promote_red_packet2}\n\n${encrypted}`
} else if (meta.has(`${PluginID.FileService}:3`)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function SetupGuideUI() {
msg`Hello Mask world. This is my first encrypted message. Install https://mask.io to send me encrypted post.`,
)
if (networkIdentifier === EnhanceableSite.Twitter) {
content += _(msg`Follow @realMaskNetwork to explore Web3.`)
content += _(msg`Follow @masknetwork to explore Web3.`)
}

activatedSiteAdaptorUI!.automation.maskCompositionDialog?.open?.(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { i18n } from '@lingui/core'
export const i18NOverwriteTwitter: SiteAdaptorUI.Customization.I18NOverwrite = {
postBoxEncryptedTextWrapper(encrypted: string) {
return (
i18n._(msg`This tweet is encrypted with #mask_io (@realMaskNetwork). 📪🔑`) +
i18n._(msg`This tweet is encrypted with #mask_io (@masknetwork). 📪🔑`) +
'\n\n' +
i18n._(
msg`🎭 🎭🎭 Tired of plaintext? Try to send encrypted messages to your friends. Install ${encrypted} to send your first encrypted tweet.`,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { useCallback } from 'react'
import { clamp } from 'lodash-es'
import { MutationObserverWatcher, type LiveSelector } from '@dimensiondev/holoflows-kit'
import { useLingui } from '@lingui/react/macro'
import { CrossIsolationMessages, sayHelloShowed } from '@masknet/shared-base'
import { makeStyles, MaskColorVar } from '@masknet/theme'
import { makeTypedMessageText } from '@masknet/typed-message'
import { alpha } from '@mui/material'
import { clamp } from 'lodash-es'
import { useCallback } from 'react'
import { PostDialogHint } from '../../../components/InjectedComponents/PostDialogHint.js'
import { attachReactTreeWithContainer } from '../../../utils/shadow-root/renderInShadowRoot.js'
import { startWatch, type WatchOptions } from '../../../utils/startWatch.js'
import { twitterBase } from '../base.js'
import { hasEditor, isCompose } from '../utils/postBox.js'
import { isReplyPageSelector, postEditorInPopupSelector, searchReplyToolbarSelector } from '../utils/selector.js'
import { useLingui } from '@lingui/react/macro'

const useStyles = makeStyles()((theme) => ({
iconButton: {
Expand Down Expand Up @@ -88,7 +88,7 @@ function PostDialogHintAtTwitter({ reason }: { reason: 'timeline' | 'popup' }) {
sayHelloShowed[twitterBase.networkIdentifier].value ?
undefined
: makeTypedMessageText(
t`Hello Mask world. This is my first encrypted message. Install https://mask.io to send me encrypted post. Follow @realMaskNetwork to explore Web3.`,
t`Hello Mask world. This is my first encrypted message. Install https://mask.io to send me encrypted post. Follow @masknetwork to explore Web3.`,
)

CrossIsolationMessages.events.compositionDialogEvent.sendToLocal({
Expand Down
6 changes: 6 additions & 0 deletions packages/mask/shared-ui/locale/en-US.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 24 additions & 8 deletions packages/mask/shared-ui/locale/en-US.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions packages/mask/shared-ui/locale/ja-JP.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 24 additions & 8 deletions packages/mask/shared-ui/locale/ja-JP.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions packages/mask/shared-ui/locale/ko-KR.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading