mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-27 15:17:30 +00:00
80b6739362
A trip can now show one journal from the Journey addon as its own: any journal its owner picks, and one journal on as many trips as they like. The trip members chosen for the link get into the journal as viewers or editors, see it in their own journal list and follow it live, for as long as the link holds them and they stay on the trip. That access is never copied into journey_contributors. It is read where journal access is read: the contributor repository answers with the stronger of a direct role and a link role, the journal list and the live update recipients take the link members in, and the photo access check goes the same way. Every one of those reads starts from linkReach, which only counts members still on the linking trip, so unlinking, deselecting someone and their leaving the trip all end exactly what the link gave. A member who leaves is also taken off the link, so coming back later does not quietly reopen the journal. Linking or changing the members takes the journal's owner and the new journal_link trip permission (trip owner by default); unlinking takes either. /api/trips/:tripId/journal answers the link as each member may see it, /candidates says who a journal would be opened to for the first time, and four MCP tools do the same over the same service. A trip:journal:changed event tells the trip to look again.
54 lines
3.1 KiB
TypeScript
54 lines
3.1 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const perm: TranslationStrings = {
|
|
'perm.title': '権限設定',
|
|
'perm.subtitle': 'アプリ全体の操作権限を管理',
|
|
'perm.saved': '権限設定を保存しました',
|
|
'perm.resetDefaults': '既定に戻す',
|
|
'perm.customized': 'カスタマイズ済み',
|
|
'perm.level.admin': '管理者のみ',
|
|
'perm.level.tripOwner': '旅行オーナー',
|
|
'perm.level.tripMember': '旅行メンバー',
|
|
'perm.level.everybody': '全員',
|
|
'perm.cat.trip': '旅行管理',
|
|
'perm.cat.members': 'メンバー管理',
|
|
'perm.cat.files': 'ファイル',
|
|
'perm.cat.content': 'コンテンツと予定',
|
|
'perm.cat.extras': '予算・持ち物・コラボ',
|
|
'perm.action.trip_create': '旅行を作成',
|
|
'perm.action.trip_edit': '旅行詳細を編集',
|
|
'perm.action.trip_delete': '旅行を削除',
|
|
'perm.action.trip_archive': '旅行をアーカイブ/復元',
|
|
'perm.action.trip_cover_upload': 'カバー画像をアップロード',
|
|
'perm.action.member_manage': 'メンバーを追加/削除',
|
|
'perm.action.file_upload': 'ファイルをアップロード',
|
|
'perm.action.file_edit': 'ファイル情報を編集',
|
|
'perm.action.file_delete': 'ファイルを削除',
|
|
'perm.action.place_edit': '場所を追加/編集/削除',
|
|
'perm.action.day_edit': '日・メモ・割り当てを編集',
|
|
'perm.action.reservation_edit': '予約を管理',
|
|
'perm.action.budget_edit': '予算を管理',
|
|
'perm.action.packing_edit': '持ち物を管理',
|
|
'perm.action.collab_edit': 'コラボ(メモ・投票・チャット)',
|
|
'perm.action.share_manage': '共有リンクを管理',
|
|
'perm.actionHint.trip_create': '新しい旅行を作成できる人',
|
|
'perm.action.journal_link': 'ジャーナルをリンク',
|
|
'perm.actionHint.trip_edit': '旅行名や日付などを変更できる人',
|
|
'perm.actionHint.trip_delete': '旅行を完全に削除できる人',
|
|
'perm.actionHint.trip_archive': '旅行をアーカイブできる人',
|
|
'perm.actionHint.trip_cover_upload': 'カバー画像を変更できる人',
|
|
'perm.actionHint.member_manage': 'メンバーを招待/削除できる人',
|
|
'perm.actionHint.file_upload': 'ファイルをアップロードできる人',
|
|
'perm.actionHint.file_edit': 'ファイル説明やリンクを編集できる人',
|
|
'perm.actionHint.file_delete': 'ファイルをゴミ箱へ移動/完全削除できる人',
|
|
'perm.actionHint.place_edit': '場所を追加・編集・削除できる人',
|
|
'perm.actionHint.day_edit': '日やメモ、割り当てを編集できる人',
|
|
'perm.actionHint.reservation_edit': '予約を作成・編集・削除できる人',
|
|
'perm.actionHint.budget_edit': '予算項目を管理できる人',
|
|
'perm.actionHint.packing_edit': '持ち物やバッグを管理できる人',
|
|
'perm.actionHint.collab_edit': 'メモや投票、メッセージを作成できる人',
|
|
'perm.actionHint.share_manage': '公開共有リンクを管理できる人',
|
|
'perm.actionHint.journal_link': 'Journey のジャーナルを旅行にリンクし、メンバーに公開できる人',
|
|
};
|
|
export default perm;
|