Map admins: owners invite friends to co-manage maps
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 6m2s
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 6m2s
Owners can invite players by name from the map workshop; invitees accept from their dashboard and then manage the map (details, locations, submission, refresh, contributions, appeals) through owner-delegated checks. Adds the map_admins table, invite/admin API endpoints, dashboard invite box, workshop admin management, and Russian translations.
This commit is contained in:
@@ -367,6 +367,44 @@ export type Database = {
|
||||
Update: Partial<AppealRecord>;
|
||||
Relationships: [];
|
||||
};
|
||||
map_admins: {
|
||||
Row: {
|
||||
created_at: string;
|
||||
dataset_id: string;
|
||||
id: string;
|
||||
invited_by: string;
|
||||
responded_at: string | null;
|
||||
state: string;
|
||||
user_id: string;
|
||||
};
|
||||
Insert: {
|
||||
created_at?: string;
|
||||
dataset_id: string;
|
||||
id?: string;
|
||||
invited_by: string;
|
||||
responded_at?: string | null;
|
||||
state?: string;
|
||||
user_id: string;
|
||||
};
|
||||
Update: {
|
||||
created_at?: string;
|
||||
dataset_id?: string;
|
||||
id?: string;
|
||||
invited_by?: string;
|
||||
responded_at?: string | null;
|
||||
state?: string;
|
||||
user_id?: string;
|
||||
};
|
||||
Relationships: [
|
||||
{
|
||||
foreignKeyName: "map_admins_dataset_id_fkey";
|
||||
columns: ["dataset_id"];
|
||||
isOneToOne: false;
|
||||
referencedRelation: "datasets";
|
||||
referencedColumns: ["id"];
|
||||
},
|
||||
];
|
||||
};
|
||||
catalog_servers: {
|
||||
Row: {
|
||||
address: string | null;
|
||||
|
||||
@@ -1110,5 +1110,21 @@
|
||||
"3–32 letters, numbers or underscores.": "3–32 латинские буквы, цифры или символы подчёркивания.",
|
||||
"Save username": "Сохранить имя пользователя",
|
||||
"Username saved.": "Имя пользователя сохранено.",
|
||||
"That username is already taken.": "Это имя пользователя уже занято."
|
||||
"That username is already taken.": "Это имя пользователя уже занято.",
|
||||
"Accept": "Принять",
|
||||
"Decline": "Отклонить",
|
||||
"Map admin": "Админ карты",
|
||||
"Map admins": "Админы карты",
|
||||
"Map admin invites": "Приглашения в админы карт",
|
||||
"Cancel invite": "Отменить приглашение",
|
||||
"Leave map": "Покинуть карту",
|
||||
"Send invite": "Отправить приглашение",
|
||||
"Player name or username": "Имя игрока или никнейм",
|
||||
"SHARED WITH YOU": "ВАМ ПРЕДЛОЖИЛИ",
|
||||
"· admin": "· админ",
|
||||
"· invite pending": "· приглашение ожидает",
|
||||
"{owner} invited you to manage {map}.": "{owner} приглашает вас управлять картой {map}.",
|
||||
"Invite friends to manage this map with you. They can edit details, choose locations, refresh the map and handle contributions after accepting your invite.": "Пригласите друзей управлять этой картой вместе с вами. После принятия приглашения они смогут редактировать детали, выбирать локации, обновлять карту и обрабатывать панорамы от игроков.",
|
||||
"You manage this map as an admin. The owner invited you to help run it.": "Вы управляете этой картой как админ. Владелец пригласил вас помогать с ней.",
|
||||
"Invite sent. Your friend can accept it from their dashboard.": "Приглашение отправлено. Ваш друг сможет принять его в своём кабинете."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user