Skip to content

Commit 6ca3f66

Browse files
committed
chore(branding): replace @realMaskNetwork with @masknetwork
update mentions and links across README, tests, components, and plugins
1 parent ff00647 commit 6ca3f66

File tree

56 files changed

+379
-104
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+379
-104
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ For general introductions, see [Mask.io](https://mask.io).
3434

3535
- [User Forum](https://github.com/DimensionDev/Maskbook/discussions)
3636
- [Report Bug][report-bug]
37-
- [X (formerly Twitter)](https://x.com/realMaskNetwork)
37+
- [X (formerly Twitter)](https://x.com/masknetwork)
3838
- [Facebook](https://www.facebook.com/masknetwork)
3939
- [Telegram](https://t.me/maskbook_group)
4040
- [Discord](https://discord.gg/4SVXvj7)

packages/encryption/tests/twitter-encode-decode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { test, expect } from 'vitest'
22
import { TwitterDecoder } from '../src/index.js'
33
test('Can decode Twitter text payload', () => {
4-
const payload = `This tweet is encrypted with #mask_io (@realMaskNetwork). \u{1F4EA}\u{1F511}
4+
const payload = `This tweet is encrypted with #mask_io (@masknetwork). \u{1F4EA}\u{1F511}
55
66
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.`
77
expect(TwitterDecoder(payload)).toMatchSnapshot('Twitter example')

packages/mask/content-script/components/CompositionDialog/useSubmit.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ export function useSubmit(onClose: () => void, reason: 'timeline' | 'popup' | 'r
9292
function decorateEncryptedText(encrypted: string, _: I18nContext['_'], meta?: Meta): string | null {
9393
if (!meta) return null
9494
const hasOfficialAccount = Sniffings.is_twitter_page || Sniffings.is_facebook_page
95-
const officialAccount = Sniffings.is_twitter_page ? _(msg`realMaskNetwork`) : _(msg`masknetwork`)
9695
const token = meta.has(RedPacketMetaKey) || meta.has(SolanaRedPacketMetaKey) ? _(msg`a token`) : _(msg`an NFT`)
9796
const sns = SOCIAL_MEDIA_NAME[activatedSiteAdaptorUI!.networkIdentifier]
9897

@@ -102,7 +101,7 @@ function decorateEncryptedText(encrypted: string, _: I18nContext['_'], meta?: Me
102101
const promote_red_packet2 = _(msg`🧧🧧🧧 Try sending Lucky Drop to your friends with Mask.io.`)
103102
return hasOfficialAccount ?
104103
promote_red_packet +
105-
_(msg`Follow @${officialAccount} for Web3 updates and insights.`) +
104+
_(msg`Follow @masknetwork for Web3 updates and insights.`) +
106105
` \n\n${promote_red_packet2}\n\n${encrypted}`
107106
: `${promote_red_packet}\n\n${promote_red_packet2}\n\n${encrypted}`
108107
} else if (meta.has(`${PluginID.FileService}:3`)) {

packages/mask/content-script/components/InjectedComponents/SetupGuide/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function SetupGuideUI() {
3737
msg`Hello Mask world. This is my first encrypted message. Install https://mask.io to send me encrypted post.`,
3838
)
3939
if (networkIdentifier === EnhanceableSite.Twitter) {
40-
content += _(msg`Follow @realMaskNetwork to explore Web3.`)
40+
content += _(msg`Follow @masknetwork to explore Web3.`)
4141
}
4242

4343
activatedSiteAdaptorUI!.automation.maskCompositionDialog?.open?.(

packages/mask/content-script/site-adaptors/twitter.com/customization/i18n.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { i18n } from '@lingui/core'
55
export const i18NOverwriteTwitter: SiteAdaptorUI.Customization.I18NOverwrite = {
66
postBoxEncryptedTextWrapper(encrypted: string) {
77
return (
8-
i18n._(msg`This tweet is encrypted with #mask_io (@realMaskNetwork). 📪🔑`) +
8+
i18n._(msg`This tweet is encrypted with #mask_io (@masknetwork). 📪🔑`) +
99
'\n\n' +
1010
i18n._(
1111
msg`🎭 🎭🎭 Tired of plaintext? Try to send encrypted messages to your friends. Install ${encrypted} to send your first encrypted tweet.`,

packages/mask/content-script/site-adaptors/twitter.com/injection/PostDialogHint.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import { useCallback } from 'react'
2-
import { clamp } from 'lodash-es'
31
import { MutationObserverWatcher, type LiveSelector } from '@dimensiondev/holoflows-kit'
2+
import { useLingui } from '@lingui/react/macro'
43
import { CrossIsolationMessages, sayHelloShowed } from '@masknet/shared-base'
54
import { makeStyles, MaskColorVar } from '@masknet/theme'
65
import { makeTypedMessageText } from '@masknet/typed-message'
76
import { alpha } from '@mui/material'
7+
import { clamp } from 'lodash-es'
8+
import { useCallback } from 'react'
89
import { PostDialogHint } from '../../../components/InjectedComponents/PostDialogHint.js'
910
import { attachReactTreeWithContainer } from '../../../utils/shadow-root/renderInShadowRoot.js'
1011
import { startWatch, type WatchOptions } from '../../../utils/startWatch.js'
1112
import { twitterBase } from '../base.js'
1213
import { hasEditor, isCompose } from '../utils/postBox.js'
1314
import { isReplyPageSelector, postEditorInPopupSelector, searchReplyToolbarSelector } from '../utils/selector.js'
14-
import { useLingui } from '@lingui/react/macro'
1515

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

9494
CrossIsolationMessages.events.compositionDialogEvent.sendToLocal({

packages/mask/shared-ui/locale/en-US.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/mask/shared-ui/locale/en-US.po

Lines changed: 25 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/mask/shared-ui/locale/ja-JP.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/mask/shared-ui/locale/ja-JP.po

Lines changed: 25 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)