@opengis/admin 0.1.15 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-page-CfJc5bjM.js → add-page-DU60zL6t.js} +1 -1
- package/dist/{admin-interface-CiYzG2NM.js → admin-interface-gm773DzD.js} +1 -1
- package/dist/{admin-view-LqLuXpCN.js → admin-view-CfY_rVQ4.js} +1 -1
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +24 -24
- package/dist/{card-page-7uHNNziD.js → card-page-ZWU3SEtH.js} +1 -1
- package/dist/{card-view-DW4_NM5R.js → card-view-CwZPYXyJ.js} +1 -1
- package/dist/{edit-page-BgL7NUrZ.js → edit-page-C6mgpZBS.js} +1 -1
- package/dist/{import-file-BAbTF5uU.js → import-file-C5Tvx4dB.js} +811 -805
- package/module/settings/card/admin.users.table/general_info.hbs +31 -0
- package/module/settings/card/admin.users.table/index.yml +7 -0
- package/module/settings/card/admin.users.table/user_roles.hbs +26 -0
- package/module/settings/cls/core.actions.json +14 -0
- package/module/settings/cls/core.scope.json +14 -0
- package/module/settings/cls/properties.site_status.json +14 -0
- package/module/settings/cls/properties.widget_status.json +14 -0
- package/module/settings/cls/users.user_type.json +14 -0
- package/module/settings/form/admin.access.form.json +37 -0
- package/module/settings/form/admin.properties.form.json +16 -0
- package/module/settings/form/admin.roles.form.json +20 -0
- package/module/settings/form/admin.routes.form.json +26 -0
- package/module/settings/form/admin.user_roles.form.json +22 -0
- package/module/settings/form/admin.users.form.json +90 -0
- package/module/settings/form/user.user_roles.form.json +14 -0
- package/module/settings/interface/admin.properties.html +1 -0
- package/module/settings/interface/admin.properties.json +5 -0
- package/module/settings/interface/admin.roles.html +1 -0
- package/module/settings/interface/admin.roles.json +5 -0
- package/module/settings/interface/admin.routes.html +1 -0
- package/module/settings/interface/admin.routes.json +5 -0
- package/module/settings/interface/admin.users.html +1 -0
- package/module/settings/interface/admin.users.json +5 -0
- package/module/settings/menu.json +34 -0
- package/module/settings/select/core.menu_id.sql +1 -0
- package/module/settings/select/core.roles.json +3 -0
- package/module/settings/select/core.roles.sql +1 -0
- package/module/settings/select/core.routes.sql +1 -0
- package/module/settings/select/core.user_uid.sql +2 -0
- package/module/settings/table/admin.access.table.json +78 -0
- package/module/settings/table/admin.properties.table.json +33 -0
- package/module/settings/table/admin.roles.table.json +59 -0
- package/module/settings/table/admin.routes.table.json +54 -0
- package/module/settings/table/admin.user_roles.table.json +67 -0
- package/module/settings/table/admin.users.table.json +65 -0
- package/package.json +2 -1
- package/plugin.js +9 -5
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<div class="panel panel-info">
|
|
2
|
+
<div class="panel-heading">
|
|
3
|
+
<i class="fa fa-info-circle"></i> Загальна інформація
|
|
4
|
+
</div>
|
|
5
|
+
<div class="panel-body">
|
|
6
|
+
<table class="table table-striped">
|
|
7
|
+
<tbody>
|
|
8
|
+
<tr>
|
|
9
|
+
<th>ПІБ</th>
|
|
10
|
+
<td>{{sur_name}} {{user_name}} {{father_name}}</td>
|
|
11
|
+
</tr>
|
|
12
|
+
<tr>
|
|
13
|
+
<th>Email</th>
|
|
14
|
+
<td> {{{coalesce email '-'}}}</td>
|
|
15
|
+
</tr>
|
|
16
|
+
<tr>
|
|
17
|
+
<th>Телефон</th>
|
|
18
|
+
<td>{{coalesce phone '-'}}</td>
|
|
19
|
+
</tr>
|
|
20
|
+
<tr>
|
|
21
|
+
<th>Логін</th>
|
|
22
|
+
<td>{{coalesce login '-'}}</td>
|
|
23
|
+
</tr>
|
|
24
|
+
<tr>
|
|
25
|
+
<th>Тип користувача</th>
|
|
26
|
+
<td>{{select (coalesce user_type 'regular') data="users.user_type" return="-"}}</td>
|
|
27
|
+
</tr>
|
|
28
|
+
</tbody>
|
|
29
|
+
</table>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<a reload=1 modal_title="Додати роль" obj="user_uid={{id}}" add="admin.user_roles" form="user.user_roles.form"
|
|
2
|
+
class="btn btn-primary">Додати</a>
|
|
3
|
+
|
|
4
|
+
{{#contentList table="admin.user_roles" query="user_uid='{{id}}'" order="cdate desc" limit="50"}}
|
|
5
|
+
<table class="table table-bordered">
|
|
6
|
+
<thead>
|
|
7
|
+
<th>Група</th>
|
|
8
|
+
<th>Закінчення терміну дії доступу до групи</th>
|
|
9
|
+
<th>Дії</th>
|
|
10
|
+
</thead>
|
|
11
|
+
<tbody>
|
|
12
|
+
{{#each rows}}
|
|
13
|
+
<tr>
|
|
14
|
+
<td>{{select role_id data="core.roles"}}</td>
|
|
15
|
+
<td>{{formatDate expiration}}</td>
|
|
16
|
+
<td>
|
|
17
|
+
<a edit="admin.user_roles/{{ugr_id}}" form="user.user_roles.form" class="btn btn-default btn-xs"><i
|
|
18
|
+
class="fa fa-edit"></i></a>
|
|
19
|
+
<a reload=1 del="admin.user_roles/{{ugr_id}}" class="btn btn-default btn-xs"><i
|
|
20
|
+
class="fa fa-trash"></i></a>
|
|
21
|
+
</td>
|
|
22
|
+
</tr>
|
|
23
|
+
{{/each}}
|
|
24
|
+
</tbody>
|
|
25
|
+
</table>
|
|
26
|
+
{{/contentList}}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"route_id": {
|
|
3
|
+
"ua": "Інтерфейс",
|
|
4
|
+
"type": "Select",
|
|
5
|
+
"data": "core.routes",
|
|
6
|
+
"validators": [
|
|
7
|
+
"required"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
"role_id": {
|
|
11
|
+
"ua": "Група",
|
|
12
|
+
"type": "Select",
|
|
13
|
+
"data": "core.roles"
|
|
14
|
+
},
|
|
15
|
+
"user_uid": {
|
|
16
|
+
"ua": "Користувач",
|
|
17
|
+
"type": "Select",
|
|
18
|
+
"data": "core.user_uid"
|
|
19
|
+
},
|
|
20
|
+
"actions": {
|
|
21
|
+
"ua": "Дії",
|
|
22
|
+
"type": "Select",
|
|
23
|
+
"multi": true,
|
|
24
|
+
"data": "core.actions",
|
|
25
|
+
"validators": [
|
|
26
|
+
"required"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"scope": {
|
|
30
|
+
"ua": "Доступ до даних",
|
|
31
|
+
"type": "Select",
|
|
32
|
+
"data": "core.scope",
|
|
33
|
+
"validators": [
|
|
34
|
+
"required"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": {
|
|
3
|
+
"ua": "Назва",
|
|
4
|
+
"type": "text",
|
|
5
|
+
"validators": [
|
|
6
|
+
"required"
|
|
7
|
+
]
|
|
8
|
+
},
|
|
9
|
+
"enabled": {
|
|
10
|
+
"ua": "On/Off",
|
|
11
|
+
"type": "Switcher"
|
|
12
|
+
},
|
|
13
|
+
"info": {
|
|
14
|
+
"ua": "Опис",
|
|
15
|
+
"type": "textarea",
|
|
16
|
+
"validators": [
|
|
17
|
+
"required"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"alias": {
|
|
3
|
+
"ua": "Назва файлу інтерфейсу",
|
|
4
|
+
"type": "Text",
|
|
5
|
+
"validators": [
|
|
6
|
+
"required"
|
|
7
|
+
]
|
|
8
|
+
},
|
|
9
|
+
"title": {
|
|
10
|
+
"ua": "Назва інтерфейсу українською",
|
|
11
|
+
"type": "text"
|
|
12
|
+
},
|
|
13
|
+
"public": {
|
|
14
|
+
"ua": "Ознака чи для всіх показується",
|
|
15
|
+
"type": "Switcher"
|
|
16
|
+
},
|
|
17
|
+
"menu_id": {
|
|
18
|
+
"ua": "Пункт меню (для collapse)",
|
|
19
|
+
"type": "Select",
|
|
20
|
+
"data": "core.menu_id"
|
|
21
|
+
},
|
|
22
|
+
"enabled": {
|
|
23
|
+
"ua": "On/Off",
|
|
24
|
+
"type": "Switcher"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"role_id": {
|
|
3
|
+
"ua": "Група",
|
|
4
|
+
"type": "Select",
|
|
5
|
+
"data": "core.roles",
|
|
6
|
+
"validators": [
|
|
7
|
+
"required"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
"user_uid": {
|
|
11
|
+
"ua": "Користувач",
|
|
12
|
+
"type": "Select",
|
|
13
|
+
"data": "core.user_uid",
|
|
14
|
+
"validators": [
|
|
15
|
+
"required"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"expiration": {
|
|
19
|
+
"ua": "Закінчення терміну дії доступу до групи",
|
|
20
|
+
"type": "DatePicker"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"d1": {
|
|
3
|
+
"type": "HTML",
|
|
4
|
+
"text": "<h3 class='text-center'>Акаунт</h3><br>"
|
|
5
|
+
},
|
|
6
|
+
"user_name": {
|
|
7
|
+
"ua": "Ім'я",
|
|
8
|
+
"type": "text"
|
|
9
|
+
},
|
|
10
|
+
"sur_name": {
|
|
11
|
+
"ua": "Прізвище",
|
|
12
|
+
"type": "text"
|
|
13
|
+
},
|
|
14
|
+
"father_name": {
|
|
15
|
+
"ua": "По-батькові",
|
|
16
|
+
"type": "text"
|
|
17
|
+
},
|
|
18
|
+
"email": {
|
|
19
|
+
"ua": "e-mail",
|
|
20
|
+
"type": "text"
|
|
21
|
+
},
|
|
22
|
+
"phone": {
|
|
23
|
+
"ua": "Телефон",
|
|
24
|
+
"type": "text"
|
|
25
|
+
},
|
|
26
|
+
"d2": {
|
|
27
|
+
"type": "HTML",
|
|
28
|
+
"text": "<h3 class='text-center'>Логін / пароль</h3><br>"
|
|
29
|
+
},
|
|
30
|
+
"login": {
|
|
31
|
+
"ua": "Логін",
|
|
32
|
+
"type": "text"
|
|
33
|
+
},
|
|
34
|
+
"password": {
|
|
35
|
+
"ua": "Пароль",
|
|
36
|
+
"type": "text",
|
|
37
|
+
"validators": [
|
|
38
|
+
"required"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"d3": {
|
|
42
|
+
"type": "HTML",
|
|
43
|
+
"text": "<h3 class='text-center'>Рівень доступу</h3><br>"
|
|
44
|
+
},
|
|
45
|
+
"user_type": {
|
|
46
|
+
"ua": "Тип користувача",
|
|
47
|
+
"data": "users.user_type",
|
|
48
|
+
"type": "select"
|
|
49
|
+
},
|
|
50
|
+
"enabled": {
|
|
51
|
+
"ua": "On/Off",
|
|
52
|
+
"type": "Switcher"
|
|
53
|
+
},
|
|
54
|
+
"d4": {
|
|
55
|
+
"type": "HTML",
|
|
56
|
+
"text": "<h3 class='text-center'>Профіль</h3><br>"
|
|
57
|
+
},
|
|
58
|
+
"avatar": {
|
|
59
|
+
"ua": "Аватар",
|
|
60
|
+
"type": "file"
|
|
61
|
+
},
|
|
62
|
+
"d5": {
|
|
63
|
+
"type": "HTML",
|
|
64
|
+
"text": "<h3 class='text-center'>Налаштування доступу</h3><br>"
|
|
65
|
+
},
|
|
66
|
+
"groups": {
|
|
67
|
+
"title": false,
|
|
68
|
+
"type": "DataTable",
|
|
69
|
+
"ua": "Групи доступу",
|
|
70
|
+
"parent_id": "user_uid",
|
|
71
|
+
"table": "admin.user_roles",
|
|
72
|
+
"col": 12,
|
|
73
|
+
"colModel": [
|
|
74
|
+
{
|
|
75
|
+
"name": "role_id",
|
|
76
|
+
"ua": "Група",
|
|
77
|
+
"type": "Select",
|
|
78
|
+
"data": "core.roles",
|
|
79
|
+
"validators": [
|
|
80
|
+
"required"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "expiration",
|
|
85
|
+
"ua": "Закінчення терміну дії доступу до групи",
|
|
86
|
+
"type": "DatePicker"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{{{_table name="admin.properties.table"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{{{_table name="admin.roles.table"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{{{_table name="admin.routes.table"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{{{_table name="admin.users.table"}}}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"ua": "Управління",
|
|
4
|
+
"en": "Management",
|
|
5
|
+
"name": "administration",
|
|
6
|
+
"icon": "fa fa-cogs",
|
|
7
|
+
"menu": [
|
|
8
|
+
{
|
|
9
|
+
"path": "admin.properties",
|
|
10
|
+
"table": "admin.properties.table",
|
|
11
|
+
"ua": "Налаштування",
|
|
12
|
+
"en": "Settings"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"path": "admin.users",
|
|
16
|
+
"table": "admin.users.table",
|
|
17
|
+
"ua": "Користувачі",
|
|
18
|
+
"en": "Users"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"path": "admin.roles",
|
|
22
|
+
"table": "admin.roles.table",
|
|
23
|
+
"ua": "Ролі",
|
|
24
|
+
"en": "Roles"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"path": "admin.routes",
|
|
28
|
+
"table": "admin.routes.table",
|
|
29
|
+
"ua": "Інтерфейси",
|
|
30
|
+
"en": "Routes"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
select menu_id, name from admin.menu order by name
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
select role_id, name from admin.roles order by name
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
select interface_id, coalesce(title,'') || '('||coalesce(alias,'')||')' as text from admin.interface_list order by title
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"columns": [
|
|
3
|
+
{
|
|
4
|
+
"name": "route_id",
|
|
5
|
+
"data": "core.routes",
|
|
6
|
+
"title": "Interface"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"name": "actions",
|
|
10
|
+
"data": "core.actions",
|
|
11
|
+
"title": "Actions"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "role_id",
|
|
15
|
+
"data": "core.roles",
|
|
16
|
+
"title": "Група"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "user_uid",
|
|
20
|
+
"data": "core.user_uid",
|
|
21
|
+
"title": "Користувач"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "scope",
|
|
25
|
+
"data": "core.scope",
|
|
26
|
+
"title": "Доступ до даних"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "access_granted",
|
|
30
|
+
"data": "core.user_uid",
|
|
31
|
+
"title": "Хто надав доступ"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "access_granted_time",
|
|
35
|
+
"format": "date",
|
|
36
|
+
"title": "Дата надання доступу"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"ua": "Доступи",
|
|
40
|
+
"form": "admin.access.form",
|
|
41
|
+
"table": "admin.access",
|
|
42
|
+
"order": "cdate desc",
|
|
43
|
+
"meta": {
|
|
44
|
+
"title": "access_id",
|
|
45
|
+
"search": "route_id"
|
|
46
|
+
},
|
|
47
|
+
"filters": [
|
|
48
|
+
{
|
|
49
|
+
"id": "route_id",
|
|
50
|
+
"label": "Interface",
|
|
51
|
+
"data": "core.routes",
|
|
52
|
+
"type": "Select"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"id": "role_id",
|
|
56
|
+
"label": "Група",
|
|
57
|
+
"data": "core.roles",
|
|
58
|
+
"type": "Select"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"id": "user_uid",
|
|
62
|
+
"label": "Користувач",
|
|
63
|
+
"data": "core.user_uid",
|
|
64
|
+
"type": "Select"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"id": "access_granted",
|
|
68
|
+
"label": "Хто надав доступ",
|
|
69
|
+
"data": "core.user_uid",
|
|
70
|
+
"type": "Select"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "access_granted_time",
|
|
74
|
+
"label": "Дата надання доступу",
|
|
75
|
+
"type": "Date"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"columns": [
|
|
3
|
+
{
|
|
4
|
+
"name": "property_key",
|
|
5
|
+
"title": "Ключ",
|
|
6
|
+
"format": "text"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"name": "property_text",
|
|
10
|
+
"title": "Значення",
|
|
11
|
+
"format": "text"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"ua": "Налаштування",
|
|
15
|
+
"form": "admin.properties.form",
|
|
16
|
+
"table": "admin.properties",
|
|
17
|
+
"order": "cdate desc",
|
|
18
|
+
"meta": {
|
|
19
|
+
"search": "property_key,property_text"
|
|
20
|
+
},
|
|
21
|
+
"filters": [
|
|
22
|
+
{
|
|
23
|
+
"ua": "Ключ",
|
|
24
|
+
"name": "property_key",
|
|
25
|
+
"type": "text"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"ua": "Значення",
|
|
29
|
+
"name": "property_text",
|
|
30
|
+
"type": "text"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ua": "Групи",
|
|
3
|
+
"form": "admin.roles.form",
|
|
4
|
+
"table": "admin.roles",
|
|
5
|
+
"order": "cdate desc",
|
|
6
|
+
"sql": [
|
|
7
|
+
{
|
|
8
|
+
"sql": "select count(user_uid) as user_count from admin.user_roles where role_id=t.role_id",
|
|
9
|
+
"name": "user_count"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"sql": "select count(route_id) as routes_count from admin.access where role_id=t.role_id",
|
|
13
|
+
"name": "routes_count"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"columns": [
|
|
17
|
+
{
|
|
18
|
+
"name": "name",
|
|
19
|
+
"format": "text",
|
|
20
|
+
"title": "Назва"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "user_count",
|
|
24
|
+
"format": "text",
|
|
25
|
+
"title": "Кількість користувачів"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "routes_count",
|
|
29
|
+
"format": "text",
|
|
30
|
+
"title": "Кількість інтерфейсів"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "cdate",
|
|
34
|
+
"format": "date",
|
|
35
|
+
"title": "Створено"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "info",
|
|
39
|
+
"format": "text",
|
|
40
|
+
"title": "Опис"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "enabled",
|
|
44
|
+
"format": "switcher",
|
|
45
|
+
"title": "On / Off"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"meta": {
|
|
49
|
+
"title": "role_id",
|
|
50
|
+
"search": "name"
|
|
51
|
+
},
|
|
52
|
+
"filters": [
|
|
53
|
+
{
|
|
54
|
+
"ua": "Назва",
|
|
55
|
+
"name": "name",
|
|
56
|
+
"type": "text"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|