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
3 changes: 2 additions & 1 deletion app/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
"updateAvailable": "New version available",
"updateNow": "Update",
"isNotCanonicalUser": "You are currently logged in to a domain that is not your canonical domain. Please log in again after completing the migration process.",
"domainIsOffline": "Your domain {{ domain }} is currently in read-only mode due to being offline. Please wait until it is restored."
"domainIsOffline": "Your domain {{ domain }} is currently in read-only mode due to being offline. Please wait until it is restored.",
"v2MigrationNotice": "Switch from this client to the new app. Tap here for details."
},
"pages": {
"guestProfile": {
Expand Down
3 changes: 2 additions & 1 deletion app/public/locales/ja/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
"updateAvailable": "新しいバージョンが利用可能です",
"updateNow": "更新",
"isNotCanonicalUser": "現在所属ドメインではないドメインにログインしています。引っ越し作業が完了次第、再ログインしてください。",
"domainIsOffline": "あなたのドメイン{{ domain }}は現在オフラインの為、読み込み専用モードです。復旧までしばらくお待ちください。"
"domainIsOffline": "あなたのドメイン{{ domain }}は現在オフラインの為、読み込み専用モードです。復旧までしばらくお待ちください。",
"v2MigrationNotice": "お使いのクライアントから、新しくアプリへ切り替えましょう。詳しくはこちら"
},
"pages": {
"guestProfile": {
Expand Down
3 changes: 3 additions & 0 deletions app/public/locales/ko/translation.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"test": "테스트",
"app": {
"v2MigrationNotice": "지금 사용 중인 클라이언트에서 새 앱으로 전환해 주세요. 자세한 내용은 여기"
},
"common": {
"watch": "보기",
"watching": "보는중",
Expand Down
3 changes: 3 additions & 0 deletions app/public/locales/th/translation.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"test": "ทดสอบ",
"app": {
"v2MigrationNotice": "เปลี่ยนจากไคลเอนต์นี้ไปใช้แอปใหม่กันเถอะ ดูรายละเอียดที่นี่"
},
"common": {
"watch": "ดู",
"watching": "กำลังดู",
Expand Down
3 changes: 2 additions & 1 deletion app/public/locales/zh-Hans/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
"updateAvailable": "有新版本可用",
"updateNow": "更新",
"isNotCanonicalUser": "您当前登录的域不是您的规范域。请在完成迁移过程后重新登录。",
"domainIsOffline": "您的域 {{ domain }} 当前因离线而处于只读模式。请等待其恢复。"
"domainIsOffline": "您的域 {{ domain }} 当前因离线而处于只读模式。请等待其恢复。",
"v2MigrationNotice": "请从当前客户端切换到新应用。点击此处了解详情"
},
"pages": {
"guestProfile": {
Expand Down
3 changes: 2 additions & 1 deletion app/public/locales/zh-Hant/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
"updateAvailable": "有新版本可用",
"updateNow": "更新",
"isNotCanonicalUser": "您目前登入的網域不是您的標準網域。請在完成遷移程序後重新登入。",
"domainIsOffline": "您的網域 {{ domain }} 目前因離線而處於唯讀模式。請等待恢復。"
"domainIsOffline": "您的網域 {{ domain }} 目前因離線而處於唯讀模式。請等待恢復。",
"v2MigrationNotice": "請從目前的用戶端切換到新應用程式。點擊此處了解詳情"
},
"pages": {
"guestProfile": {
Expand Down
29 changes: 28 additions & 1 deletion app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -451,13 +451,40 @@ function App(): JSX.Element {
</Typography>
)}
</Box>
{location.pathname !== '/v2-migration' && (
<Box
sx={{
backgroundColor: 'primary.main',
width: '100%',
display: 'flex',
justifyContent: 'center'
}}
>
<Typography
sx={{
textAlign: 'center',
color: 'primary.contrastText',
fontSize: '0.8em',
fontWeight: 'bold',
padding: '10px',
textDecoration: 'underline',
cursor: 'pointer'
}}
onClick={() => {
navigate('/v2-migration')
}}
>
{t('app.v2MigrationNotice')}
</Typography>
</Box>
)}
<Box
sx={{
display: 'flex',
flex: 1,
maxWidth: isDeckPage ? undefined : '1280px',
width: '100%',
height: '100%',
minHeight: 0,
marginLeft: 'env(safe-area-inset-left)',
marginRight: 'env(safe-area-inset-right)'
}}
Expand Down
11 changes: 8 additions & 3 deletions app/src/components/welcome/AppStoreQR.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ const stores = [
}
]

export default function AppStoreQR(): JSX.Element {
export interface AppStoreQRProps {
title?: string
description?: string
}

export default function AppStoreQR(props: AppStoreQRProps): JSX.Element {
const { t } = useTranslation('', { keyPrefix: 'welcome' })
const theme = useTheme()

Expand Down Expand Up @@ -55,9 +60,9 @@ export default function AppStoreQR(): JSX.Element {
<SmartphoneIcon />
</Box>
<Box display="flex" flexDirection="column" gap={1}>
<Typography fontWeight={700}>{t('v2NoticeTitle')}</Typography>
<Typography fontWeight={700}>{props.title ?? t('v2NoticeTitle')}</Typography>
<Typography variant="body2" sx={{ opacity: 0.8 }}>
{t('v2NoticeDescription')}
{props.description ?? t('v2NoticeDescription')}
</Typography>
</Box>
</Box>
Expand Down
18 changes: 13 additions & 5 deletions app/src/pages/V2Migration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Box, Divider, Typography } from '@mui/material'
import { Helmet } from 'react-helmet-async'
import { CfmRenderer } from '../components/ui/CfmRenderer'
import { useClient } from '../context/ClientContext'
import AppStoreQR from '../components/welcome/AppStoreQR'

export function V2Migration(): JSX.Element {
const { client } = useClient()
Expand Down Expand Up @@ -49,7 +50,7 @@ ariakeサーバーでは、このスケジュールにてV2移行を行います
平行運用期間中はv1環境とv2環境の両方の利用が可能ですが、これはv2に移行するための期間ですので、できるだけv2環境をご利用いただけますようお願いいたします。
運用期間中、v1の投稿は定期的にv2環境へ転送されますが、v2環境の投稿はv1環境からは閲覧できません。

また、8/8日にActivityPub連携の切り替えを実施します。8/8まではv1での投稿がActivityPub環境に転送されますが、8/8移行はv2環境での投稿がActivityPub環境に転送されるようになります
また、8/8にActivityPub連携の切り替えを実施しました。現在はv2環境での投稿がActivityPub環境に転送されており、v1環境での投稿はActivityPub環境には転送されません

投稿当のデータはv2環境に自動的に移行されているため、v2環境にてマスターキーを使ってログインすることで、そのままご利用いただけます。

Expand All @@ -58,10 +59,17 @@ ariakeサーバーでは、このスケジュールにてV2移行を行います
## V2環境へのアクセス方法

V2環境へのアクセスは、専用アプリの利用がおすすめです。

ios: https://apps.apple.com/jp/app/concrnt-world/id6757524249
android: https://play.google.com/store/apps/details?id=world.concrnt.app&hl=ja

`}
emojiDict={{}}
/>
<Box sx={{ display: 'flex', justifyContent: 'center' }}>
<AppStoreQR
title="V2環境へは専用アプリで"
description="お使いのスマートフォンで下のQRコードを読み取るか、バッジをタップしてアプリを入手し、マスターキーでログインしてください。"
/>
</Box>
<CfmRenderer
messagebody={`
また、web版は所属しているサーバーのURL https://${client.server?.fqdn} から利用することもできます。
web版を利用する場合は、web版に直接マスターキーを利用してログインするのではなく、アプリを利用してログインするのがおすすめです。

Expand Down
Loading