mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-28 23:50:08 +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.
55 lines
3.3 KiB
TypeScript
55 lines
3.3 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const perm: TranslationStrings = {
|
|
'perm.title': 'Pengaturan Izin',
|
|
'perm.subtitle': 'Kendalikan siapa yang bisa melakukan tindakan di aplikasi',
|
|
'perm.saved': 'Pengaturan izin disimpan',
|
|
'perm.resetDefaults': 'Kembalikan ke default',
|
|
'perm.customized': 'dikustomisasi',
|
|
'perm.level.admin': 'Hanya Admin',
|
|
'perm.level.tripOwner': 'Pemilik perjalanan',
|
|
'perm.level.tripMember': 'Anggota perjalanan',
|
|
'perm.level.everybody': 'Semua orang',
|
|
'perm.cat.trip': 'Manajemen Perjalanan',
|
|
'perm.cat.members': 'Manajemen Anggota',
|
|
'perm.cat.files': 'File',
|
|
'perm.cat.content': 'Konten & Jadwal',
|
|
'perm.cat.extras': 'Anggaran, Perlengkapan & Kolaborasi',
|
|
'perm.action.trip_create': 'Buat perjalanan',
|
|
'perm.action.trip_edit': 'Edit detail perjalanan',
|
|
'perm.action.trip_delete': 'Hapus perjalanan',
|
|
'perm.action.trip_archive': 'Arsipkan / batalkan arsip perjalanan',
|
|
'perm.action.trip_cover_upload': 'Unggah gambar sampul',
|
|
'perm.action.member_manage': 'Tambah / hapus anggota',
|
|
'perm.action.file_upload': 'Unggah file',
|
|
'perm.action.file_edit': 'Edit metadata file',
|
|
'perm.action.file_delete': 'Hapus file',
|
|
'perm.action.place_edit': 'Tambah / edit / hapus tempat',
|
|
'perm.action.day_edit': 'Edit hari, catatan & penugasan',
|
|
'perm.action.reservation_edit': 'Kelola reservasi',
|
|
'perm.action.budget_edit': 'Kelola anggaran',
|
|
'perm.action.packing_edit': 'Kelola daftar perlengkapan',
|
|
'perm.action.collab_edit': 'Kolaborasi (catatan, polling, chat)',
|
|
'perm.action.share_manage': 'Kelola tautan berbagi',
|
|
'perm.actionHint.trip_create': 'Siapa yang bisa membuat perjalanan baru',
|
|
'perm.action.journal_link': 'Tautkan jurnal',
|
|
'perm.actionHint.trip_edit': 'Siapa yang bisa mengubah nama, tanggal, deskripsi, dan mata uang perjalanan',
|
|
'perm.actionHint.trip_delete': 'Siapa yang bisa menghapus perjalanan secara permanen',
|
|
'perm.actionHint.trip_archive': 'Siapa yang bisa mengarsipkan atau membatalkan arsip perjalanan',
|
|
'perm.actionHint.trip_cover_upload': 'Siapa yang bisa mengunggah atau mengganti gambar sampul',
|
|
'perm.actionHint.member_manage': 'Siapa yang bisa mengundang atau menghapus anggota perjalanan',
|
|
'perm.actionHint.file_upload': 'Siapa yang bisa mengunggah file ke perjalanan',
|
|
'perm.actionHint.file_edit': 'Siapa yang bisa mengedit deskripsi dan tautan file',
|
|
'perm.actionHint.file_delete': 'Siapa yang bisa memindahkan file ke sampah atau menghapusnya secara permanen',
|
|
'perm.actionHint.place_edit': 'Siapa yang bisa menambah, mengedit, atau menghapus tempat',
|
|
'perm.actionHint.day_edit': 'Siapa yang bisa mengedit hari, catatan hari, dan penugasan tempat',
|
|
'perm.actionHint.reservation_edit': 'Siapa yang bisa membuat, mengedit, atau menghapus reservasi',
|
|
'perm.actionHint.budget_edit': 'Siapa yang bisa membuat, mengedit, atau menghapus item anggaran',
|
|
'perm.actionHint.packing_edit': 'Siapa yang bisa mengelola item perlengkapan dan tas',
|
|
'perm.actionHint.collab_edit': 'Siapa yang bisa membuat catatan, polling, dan mengirim pesan',
|
|
'perm.actionHint.share_manage': 'Siapa yang bisa membuat atau menghapus tautan berbagi publik',
|
|
'perm.actionHint.journal_link':
|
|
'Siapa yang dapat menautkan jurnal dari Journey ke perjalanan dan membukanya untuk anggotanya',
|
|
};
|
|
export default perm;
|