From 6a2cba6ed76a8fc34ed7fec55e0ff2dd3be3e960 Mon Sep 17 00:00:00 2001
From: Andrei Hudalla <46633092+paranoidPhantom@users.noreply.github.com>
Date: Wed, 25 Sep 2024 12:48:10 -0500
Subject: [PATCH] feat: add invitation management to root admin section
---
app/components/manage/option/Root.vue | 223 ++++++++++++++++++++++++++
1 file changed, 223 insertions(+)
diff --git a/app/components/manage/option/Root.vue b/app/components/manage/option/Root.vue
index a2ba797..de65b1b 100644
--- a/app/components/manage/option/Root.vue
+++ b/app/components/manage/option/Root.vue
@@ -1,4 +1,6 @@
+
+
+ Приглашение админа
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ perm }}
+ val !== perm,
+ )
+ "
+ />
+
+
+
+ {
+ if (newAdminState.perm === 'root')
+ return;
+ newAdminState.perms.push(
+ newAdminState.perm,
+ );
+ newAdminState.perm = '';
+ }
+ "
+ />
+ {
+ if (newAdminState.perm === 'root')
+ return;
+ newAdminState.perms.push(
+ newAdminState.perm,
+ );
+ newAdminState.perm = '';
+ }
+ "
+ />
+
+
+
+
+
+
{
@click="sectionActive = sectionActive ? '' : 'true'"
/>
+ Пользователи
{{ new Date(row.created_at).toLocaleDateString("ru") }}@{{
@@ -121,6 +280,70 @@ const removeRole = async (uid: string, role: string) => {
+
+ Приглашения
+
+
+
+
+ {{ site_url }}/register/{{ row.id }}
+
+
+
+
+
+
+ {{ new Date(row.created_at).toLocaleDateString("ru") }}@{{
+ new Date(row.created_at).toLocaleTimeString("ru")
+ }}
+
+
+ {{
+ row.activated_at
+ ? `${new Date(row.created_at).toLocaleDateString("ru")}
+ @${new Date(row.created_at).toLocaleTimeString("ru")}`
+ : "-"
+ }}
+
+
+
+ {{ perm }}
+
+
+
+
+