isite 2024.6.9 → 2024.8.2
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/LICENSE +21 -21
- package/README.md +1387 -1387
- package/apps/charts/site_files/html/PieChart.html +35 -35
- package/apps/charts/site_files/html/PieChart2.html +35 -35
- package/apps/charts/site_files/html/XYChart.html +42 -42
- package/apps/charts/site_files/html/column.html +60 -60
- package/apps/charts/site_files/html/gauge.html +44 -44
- package/apps/charts/site_files/html/index.html +92 -92
- package/apps/charts/site_files/html/line-graph.html +42 -42
- package/apps/charts/site_files/html/pie-chart-rounded-corners.html +38 -38
- package/apps/charts/site_files/html/simple-3D-pie-chart.html +43 -43
- package/apps/charts/site_files/js/chart-animated.js +2 -2
- package/apps/charts/site_files/json/PieChart.json +41 -41
- package/apps/charts/site_files/json/PieChart2.json +23 -23
- package/apps/charts/site_files/json/XYChart.json +74 -74
- package/apps/charts/site_files/json/bar-chart.json +99 -99
- package/apps/charts/site_files/json/column-chart.json +80 -80
- package/apps/charts/site_files/json/gauge.json +36 -36
- package/apps/charts/site_files/json/line-graph.json +1867 -1867
- package/apps/charts/site_files/json/pie-chart-rounded-corners.json +42 -42
- package/apps/charts/site_files/json/simple-3D-pie-chart.json +50 -50
- package/apps/client-side/package-lock.json +5 -5
- package/apps/client-side/package.json +21 -21
- package/apps/client-side/site_files/css/bootstrap3.css +5 -5
- package/apps/client-side/site_files/css/bootstrap4.css +6 -6
- package/apps/client-side/site_files/css/bootstrap5-addon.css +2 -2
- package/apps/client-side/site_files/css/bootstrap5.css +6 -6
- package/apps/client-side/site_files/css/checkbox.css +125 -125
- package/apps/client-side/site_files/css/font-awesome.css +4616 -4616
- package/apps/client-side/site_files/css/font-awesome.min.css +4 -4
- package/apps/client-side/site_files/css/fonts.css +85 -85
- package/apps/client-side/site_files/css/help.css +51 -51
- package/apps/client-side/site_files/css/images.css +4 -3
- package/apps/client-side/site_files/css/main-menu.css +66 -66
- package/apps/client-side/site_files/css/print.css +144 -144
- package/apps/client-side/site_files/css/prism.css +139 -139
- package/apps/client-side/site_files/css/progress.css +7 -7
- package/apps/client-side/site_files/css/radio.css +103 -103
- package/apps/client-side/site_files/css/scrollbar.css +13 -13
- package/apps/client-side/site_files/css/semantic.css +363 -363
- package/apps/client-side/site_files/css/table.css +87 -87
- package/apps/client-side/site_files/css/treeview.css +84 -84
- package/apps/client-side/site_files/css/ui.css +28 -28
- package/apps/client-side/site_files/fonts/fontawesome-webfont.svg +2671 -2671
- package/apps/client-side/site_files/fonts/glyphicons-halflings-regular.svg +287 -287
- package/apps/client-side/site_files/fonts/icons.svg +684 -684
- package/apps/client-side/site_files/js/angular-animate.js +4179 -4179
- package/apps/client-side/site_files/js/angular.js +36599 -36599
- package/apps/client-side/site_files/js/angular.min.js +351 -351
- package/apps/client-side/site_files/js/angular.min.js.map +8 -8
- package/apps/client-side/site_files/js/barcode.js +1 -1
- package/apps/client-side/site_files/js/base64.js +319 -319
- package/apps/client-side/site_files/js/bootstrap-5-directive.js +1456 -1456
- package/apps/client-side/site_files/js/bootstrap3.js +6 -6
- package/apps/client-side/site_files/js/bootstrap4.js +6 -6
- package/apps/client-side/site_files/js/bootstrap5.js +6 -6
- package/apps/client-side/site_files/js/custom.js +149 -149
- package/apps/client-side/site_files/js/directive.min.js +1 -1
- package/apps/client-side/site_files/js/hijri.js +965 -965
- package/apps/client-side/site_files/js/jquery.js +2 -2
- package/apps/client-side/site_files/js/moment.js +4511 -4511
- package/apps/client-side/site_files/js/prism.js +6 -6
- package/apps/client-side/site_files/js/qrcode.js +1398 -1398
- package/apps/client-side/site_files/js/semantic.js +10 -10
- package/apps/client-side/site_files/js/xlsx.js +23 -23
- package/apps/client-side/site_files/semantic-themes/default/assets/fonts/brand-icons.svg +1008 -1008
- package/apps/client-side/site_files/semantic-themes/default/assets/fonts/icons.svg +1518 -1518
- package/apps/client-side/site_files/semantic-themes/default/assets/fonts/outline-icons.svg +366 -366
- package/apps/client-side/site_files/webfonts/fa-brands-400.svg +3717 -3717
- package/apps/client-side/site_files/webfonts/fa-regular-400.svg +801 -801
- package/apps/client-side/site_files/webfonts/fa-solid-900.svg +5034 -5034
- package/apps/security/README.md +12 -12
- package/apps/security/app.js +288 -288
- package/apps/security/libs/notifications.js +89 -89
- package/apps/security/site_files/html/add_modal.html +36 -36
- package/apps/security/site_files/html/content.html +36 -36
- package/apps/security/site_files/html/delete_modal.html +31 -31
- package/apps/security/site_files/html/head.html +7 -7
- package/apps/security/site_files/html/index.html +80 -80
- package/apps/security/site_files/html/login_modal.html +24 -24
- package/apps/security/site_files/html/logout_modal.html +21 -21
- package/apps/security/site_files/html/navbar.html +8 -8
- package/apps/security/site_files/html/register_modal.html +32 -32
- package/apps/security/site_files/html/update_modal.html +28 -28
- package/apps/security/site_files/html/view.html +74 -74
- package/apps/security/site_files/html/view_modal.html +32 -32
- package/apps/security/site_files/js/app.js +1 -1
- package/apps/security/site_files/js/index.js +278 -278
- package/apps/security/site_files/js/login.js +35 -35
- package/apps/security/site_files/js/logout.js +22 -22
- package/apps/security/site_files/js/navbar.js +26 -26
- package/apps/security/site_files/js/register.js +30 -30
- package/apps/security/site_files/json/permissions.json +7 -7
- package/apps/security/site_files/json/roles.json +33 -33
- package/apps/security/site_files/json/words.json +28 -28
- package/gulpfile.js +17 -17
- package/index.js +1 -0
- package/isite.postman_collection.json +7 -7
- package/isite_files/css/bootstrap.css +5 -5
- package/isite_files/css/font-awesome.css +4 -4
- package/isite_files/css/prism.css +139 -139
- package/isite_files/fonts/fontawesome-webfont.svg +2671 -2671
- package/isite_files/fonts/glyphicons-halflings-regular.svg +287 -287
- package/isite_files/html/files.html +9 -9
- package/isite_files/html/head.html +12 -12
- package/isite_files/html/index.html +30 -30
- package/isite_files/html/installing.html +27 -27
- package/isite_files/html/navbar.html +51 -51
- package/isite_files/html/routes.html +13 -13
- package/isite_files/html/sessions.html +13 -13
- package/isite_files/html/vars.html +9 -9
- package/isite_files/js/angular.js +334 -334
- package/isite_files/js/bootstrap.js +6 -6
- package/isite_files/js/custom.js +149 -149
- package/isite_files/js/jquery.js +4 -4
- package/isite_files/js/prism.js +6 -6
- package/lib/README.md +1 -1
- package/lib/cookie.js +81 -81
- package/lib/dashboard.js +189 -189
- package/lib/mongodb.js +686 -686
- package/lib/parser.js +910 -910
- package/lib/session.js +158 -158
- package/lib/storage.js +6 -0
- package/lib/ws.js +4 -26
- package/object-options/lib/isite.code-workspace +10 -10
- package/object-options/lib/safty.js +13 -16
- package/package.json +55 -54
- package/ssl/create_ssl.sh +3 -3
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
module.exports = function init(site) {
|
|
2
|
-
|
|
3
|
-
site.on('user register', function (result) {
|
|
4
|
-
site.call('please monitor action',({obj : {
|
|
5
|
-
icon: '/images/users.png',
|
|
6
|
-
source: "Security System",
|
|
7
|
-
source_ar: "نظام الحماية",
|
|
8
|
-
message: "New user Register",
|
|
9
|
-
message_ar: "تم أشتراك مستخدم جديد",
|
|
10
|
-
value: result.doc.email,
|
|
11
|
-
value_ar: result.doc.email,
|
|
12
|
-
add: result.doc,
|
|
13
|
-
action: 'add'
|
|
14
|
-
}, result : result}))
|
|
15
|
-
})
|
|
16
|
-
|
|
17
|
-
site.on('user login', function (result) {
|
|
18
|
-
|
|
19
|
-
site.call('please monitor action',({obj : {
|
|
20
|
-
icon: '/images/users.png',
|
|
21
|
-
source: "Security System",
|
|
22
|
-
source_ar: "نظام الحماية",
|
|
23
|
-
message: "user Login",
|
|
24
|
-
message_ar: "مستخدم سجل دخول",
|
|
25
|
-
value: result.doc.email,
|
|
26
|
-
value_ar: result.doc.email,
|
|
27
|
-
action: 'info'
|
|
28
|
-
}, result : result}))
|
|
29
|
-
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
site.on('user logout', function (result) {
|
|
33
|
-
|
|
34
|
-
site.call('please monitor action',({obj : {
|
|
35
|
-
icon: '/images/users.png',
|
|
36
|
-
source: "Security System",
|
|
37
|
-
source_ar: "نظام الحماية",
|
|
38
|
-
message: "user Logout",
|
|
39
|
-
message_ar: "مستخدم سجل خروج",
|
|
40
|
-
value: result.doc.email,
|
|
41
|
-
value_ar: result.doc.email,
|
|
42
|
-
action: 'info'
|
|
43
|
-
}, result : result}))
|
|
44
|
-
|
|
45
|
-
})
|
|
46
|
-
|
|
47
|
-
site.on('user add', function (result) {
|
|
48
|
-
site.call('please monitor action',({obj : {
|
|
49
|
-
icon: '/images/users.png',
|
|
50
|
-
source: "Security System",
|
|
51
|
-
source_ar: "نظام الحماية",
|
|
52
|
-
message: "New user Added",
|
|
53
|
-
message_ar: "تم أضافة مستخدم جديد",
|
|
54
|
-
value: result.doc.email,
|
|
55
|
-
value_ar: result.doc.email,
|
|
56
|
-
add: result.doc,
|
|
57
|
-
action: 'add'
|
|
58
|
-
}, result : result}))
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
site.on('user update', function (result) {
|
|
62
|
-
|
|
63
|
-
site.call('please monitor action',({obj : {
|
|
64
|
-
icon: '/images/users.png',
|
|
65
|
-
source: "Security System",
|
|
66
|
-
source_ar: "نظام الحماية",
|
|
67
|
-
message: "user Updated",
|
|
68
|
-
message_ar: "تم تعديل مستخدم",
|
|
69
|
-
value: result.doc.email,
|
|
70
|
-
value_ar: result.doc.email,
|
|
71
|
-
update: site.objectDiff(result.update.$set, result.doc),
|
|
72
|
-
action: 'update'
|
|
73
|
-
}, result : result}))
|
|
74
|
-
})
|
|
75
|
-
|
|
76
|
-
site.on('user delete', function (result) {
|
|
77
|
-
site.call('please monitor action',({obj : {
|
|
78
|
-
icon: '/images/users.png',
|
|
79
|
-
source: "Security System",
|
|
80
|
-
source_ar: "نظام الحماية",
|
|
81
|
-
message: "user Deleted",
|
|
82
|
-
message_ar: "تم حذف مستخدم ",
|
|
83
|
-
value: result.doc.email,
|
|
84
|
-
value_ar: result.doc.email,
|
|
85
|
-
delete: result.doc,
|
|
86
|
-
action: 'delete'
|
|
87
|
-
}, result : result}))
|
|
88
|
-
})
|
|
89
|
-
|
|
1
|
+
module.exports = function init(site) {
|
|
2
|
+
|
|
3
|
+
site.on('user register', function (result) {
|
|
4
|
+
site.call('please monitor action',({obj : {
|
|
5
|
+
icon: '/images/users.png',
|
|
6
|
+
source: "Security System",
|
|
7
|
+
source_ar: "نظام الحماية",
|
|
8
|
+
message: "New user Register",
|
|
9
|
+
message_ar: "تم أشتراك مستخدم جديد",
|
|
10
|
+
value: result.doc.email,
|
|
11
|
+
value_ar: result.doc.email,
|
|
12
|
+
add: result.doc,
|
|
13
|
+
action: 'add'
|
|
14
|
+
}, result : result}))
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
site.on('user login', function (result) {
|
|
18
|
+
|
|
19
|
+
site.call('please monitor action',({obj : {
|
|
20
|
+
icon: '/images/users.png',
|
|
21
|
+
source: "Security System",
|
|
22
|
+
source_ar: "نظام الحماية",
|
|
23
|
+
message: "user Login",
|
|
24
|
+
message_ar: "مستخدم سجل دخول",
|
|
25
|
+
value: result.doc.email,
|
|
26
|
+
value_ar: result.doc.email,
|
|
27
|
+
action: 'info'
|
|
28
|
+
}, result : result}))
|
|
29
|
+
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
site.on('user logout', function (result) {
|
|
33
|
+
|
|
34
|
+
site.call('please monitor action',({obj : {
|
|
35
|
+
icon: '/images/users.png',
|
|
36
|
+
source: "Security System",
|
|
37
|
+
source_ar: "نظام الحماية",
|
|
38
|
+
message: "user Logout",
|
|
39
|
+
message_ar: "مستخدم سجل خروج",
|
|
40
|
+
value: result.doc.email,
|
|
41
|
+
value_ar: result.doc.email,
|
|
42
|
+
action: 'info'
|
|
43
|
+
}, result : result}))
|
|
44
|
+
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
site.on('user add', function (result) {
|
|
48
|
+
site.call('please monitor action',({obj : {
|
|
49
|
+
icon: '/images/users.png',
|
|
50
|
+
source: "Security System",
|
|
51
|
+
source_ar: "نظام الحماية",
|
|
52
|
+
message: "New user Added",
|
|
53
|
+
message_ar: "تم أضافة مستخدم جديد",
|
|
54
|
+
value: result.doc.email,
|
|
55
|
+
value_ar: result.doc.email,
|
|
56
|
+
add: result.doc,
|
|
57
|
+
action: 'add'
|
|
58
|
+
}, result : result}))
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
site.on('user update', function (result) {
|
|
62
|
+
|
|
63
|
+
site.call('please monitor action',({obj : {
|
|
64
|
+
icon: '/images/users.png',
|
|
65
|
+
source: "Security System",
|
|
66
|
+
source_ar: "نظام الحماية",
|
|
67
|
+
message: "user Updated",
|
|
68
|
+
message_ar: "تم تعديل مستخدم",
|
|
69
|
+
value: result.doc.email,
|
|
70
|
+
value_ar: result.doc.email,
|
|
71
|
+
update: site.objectDiff(result.update.$set, result.doc),
|
|
72
|
+
action: 'update'
|
|
73
|
+
}, result : result}))
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
site.on('user delete', function (result) {
|
|
77
|
+
site.call('please monitor action',({obj : {
|
|
78
|
+
icon: '/images/users.png',
|
|
79
|
+
source: "Security System",
|
|
80
|
+
source_ar: "نظام الحماية",
|
|
81
|
+
message: "user Deleted",
|
|
82
|
+
message_ar: "تم حذف مستخدم ",
|
|
83
|
+
value: result.doc.email,
|
|
84
|
+
value_ar: result.doc.email,
|
|
85
|
+
delete: result.doc,
|
|
86
|
+
action: 'delete'
|
|
87
|
+
}, result : result}))
|
|
88
|
+
})
|
|
89
|
+
|
|
90
90
|
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
<style>
|
|
2
|
-
#addUserModal .img {
|
|
3
|
-
width: 200px;
|
|
4
|
-
height: 200px;
|
|
5
|
-
margin: 5px;
|
|
6
|
-
padding: 5px;
|
|
7
|
-
border: 1px solid var(--background-color);
|
|
8
|
-
}
|
|
9
|
-
</style>
|
|
10
|
-
<style x-lang="ar">
|
|
11
|
-
label {
|
|
12
|
-
text-align: right;
|
|
13
|
-
}
|
|
14
|
-
</style>
|
|
15
|
-
|
|
16
|
-
<div id="addUserModal" class="modal">
|
|
17
|
-
<div class="modal-content">
|
|
18
|
-
<div class="modal-header">
|
|
19
|
-
<span class="close">×</span>
|
|
20
|
-
<p><i class="fa fa-plus"></i> ##word.security_new_user##</p>
|
|
21
|
-
</div>
|
|
22
|
-
<div class="modal-body">
|
|
23
|
-
<span ng-show="busy">
|
|
24
|
-
<i class="fa fa-spinner white fa-pulse fa-3x fa-fw"></i>
|
|
25
|
-
<span class="sr-only">Loading...</span>
|
|
26
|
-
</span>
|
|
27
|
-
|
|
28
|
-
<div x-import="security/content.html"></div>
|
|
29
|
-
</div>
|
|
30
|
-
<p>{{error}}</p>
|
|
31
|
-
<div class="modal-footer center">
|
|
32
|
-
<i-button type="add" label="##word.security_add_user##" ng-click="add()"></i-button>
|
|
33
|
-
<i-button type="exit" label="##word.close##" onclick="site.hideModal('#addUserModal')"></i-button>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
1
|
+
<style>
|
|
2
|
+
#addUserModal .img {
|
|
3
|
+
width: 200px;
|
|
4
|
+
height: 200px;
|
|
5
|
+
margin: 5px;
|
|
6
|
+
padding: 5px;
|
|
7
|
+
border: 1px solid var(--background-color);
|
|
8
|
+
}
|
|
9
|
+
</style>
|
|
10
|
+
<style x-lang="ar">
|
|
11
|
+
label {
|
|
12
|
+
text-align: right;
|
|
13
|
+
}
|
|
14
|
+
</style>
|
|
15
|
+
|
|
16
|
+
<div id="addUserModal" class="modal">
|
|
17
|
+
<div class="modal-content">
|
|
18
|
+
<div class="modal-header">
|
|
19
|
+
<span class="close">×</span>
|
|
20
|
+
<p><i class="fa fa-plus"></i> ##word.security_new_user##</p>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="modal-body">
|
|
23
|
+
<span ng-show="busy">
|
|
24
|
+
<i class="fa fa-spinner white fa-pulse fa-3x fa-fw"></i>
|
|
25
|
+
<span class="sr-only">Loading...</span>
|
|
26
|
+
</span>
|
|
27
|
+
|
|
28
|
+
<div x-import="security/content.html"></div>
|
|
29
|
+
</div>
|
|
30
|
+
<p>{{error}}</p>
|
|
31
|
+
<div class="modal-footer center">
|
|
32
|
+
<i-button type="add" label="##word.security_add_user##" ng-click="add()"></i-button>
|
|
33
|
+
<i-button type="exit" label="##word.close##" onclick="site.hideModal('#addUserModal')"></i-button>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
<div ng-hide="busy" class="row">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
<div class="col8">
|
|
5
|
-
|
|
6
|
-
<form class="form">
|
|
7
|
-
|
|
8
|
-
<div class="row">
|
|
9
|
-
<i-control v="r" class="col6" label="##word.security_user_email##" ng-model="user.email"></i-control>
|
|
10
|
-
<i-control v="r" class="col6" label="##word.security_user_password##" ng-model="user.password" type="password"></i-control>
|
|
11
|
-
</div>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<div class="row">
|
|
15
|
-
<i-control v="r" class="col6" label="##word.security_user_name##" ng-model="user.profile.name"></i-control>
|
|
16
|
-
<i-control v="r" class="col6" label="##word.security_user_mobile##" ng-model="user.profile.mobile"></i-control>
|
|
17
|
-
</div>
|
|
18
|
-
|
|
19
|
-
<i-textarea ng-model="user.profile.notes" label="##word.notes##"></i-textarea>
|
|
20
|
-
|
|
21
|
-
</form>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
</div>
|
|
25
|
-
|
|
26
|
-
<div class="col4">
|
|
27
|
-
|
|
28
|
-
<i-image category="users" ng-model="user.profile.image_url"></i-image>
|
|
29
|
-
<br>
|
|
30
|
-
<br>
|
|
31
|
-
<i-files category="users" label="##word.files##"ng-model="user.user.profile.files"></i-files>
|
|
32
|
-
<br>
|
|
33
|
-
<br>
|
|
34
|
-
<i-checklist primary="name" label="##word.security_roles##" items="roles" display="ar" ng-model="user.roles"></i-checklist>
|
|
35
|
-
|
|
36
|
-
</div>
|
|
1
|
+
<div ng-hide="busy" class="row">
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
<div class="col8">
|
|
5
|
+
|
|
6
|
+
<form class="form">
|
|
7
|
+
|
|
8
|
+
<div class="row">
|
|
9
|
+
<i-control v="r" class="col6" label="##word.security_user_email##" ng-model="user.email"></i-control>
|
|
10
|
+
<i-control v="r" class="col6" label="##word.security_user_password##" ng-model="user.password" type="password"></i-control>
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
<div class="row">
|
|
15
|
+
<i-control v="r" class="col6" label="##word.security_user_name##" ng-model="user.profile.name"></i-control>
|
|
16
|
+
<i-control v="r" class="col6" label="##word.security_user_mobile##" ng-model="user.profile.mobile"></i-control>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<i-textarea ng-model="user.profile.notes" label="##word.notes##"></i-textarea>
|
|
20
|
+
|
|
21
|
+
</form>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<div class="col4">
|
|
27
|
+
|
|
28
|
+
<i-image category="users" ng-model="user.profile.image_url"></i-image>
|
|
29
|
+
<br>
|
|
30
|
+
<br>
|
|
31
|
+
<i-files category="users" label="##word.files##"ng-model="user.user.profile.files"></i-files>
|
|
32
|
+
<br>
|
|
33
|
+
<br>
|
|
34
|
+
<i-checklist primary="name" label="##word.security_roles##" items="roles" display="ar" ng-model="user.roles"></i-checklist>
|
|
35
|
+
|
|
36
|
+
</div>
|
|
37
37
|
</div>
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
<style>
|
|
2
|
-
.img {
|
|
3
|
-
width: 200px;
|
|
4
|
-
height: 200px;
|
|
5
|
-
margin: 5px;
|
|
6
|
-
padding: 5px;
|
|
7
|
-
border: 1px solid var(--background-color);
|
|
8
|
-
}
|
|
9
|
-
</style>
|
|
10
|
-
|
|
11
|
-
<div id="deleteUserModal" class="modal">
|
|
12
|
-
<div class="modal-content">
|
|
13
|
-
<div class="modal-header">
|
|
14
|
-
<span class="close">×</span>
|
|
15
|
-
<p><i class="fa fa-plus"></i> ##word.user_details##</p>
|
|
16
|
-
</div>
|
|
17
|
-
<div class="modal-body">
|
|
18
|
-
<span ng-show="busy">
|
|
19
|
-
<i class="fa fa-spinner white fa-pulse fa-3x fa-fw"></i>
|
|
20
|
-
<span class="sr-only">Loading...</span>
|
|
21
|
-
</span>
|
|
22
|
-
|
|
23
|
-
<div x-import="security/view.html"></div>
|
|
24
|
-
</div>
|
|
25
|
-
<p>{{error}}</p>
|
|
26
|
-
<div class="modal-footer center">
|
|
27
|
-
<i-button type="delete" label="##word.delete##" ng-click="delete(user)"></i-button>
|
|
28
|
-
<i-button type="close" label="##word.close##" onclick="site.hideModal('#deleteUserModal')"></i-button>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
1
|
+
<style>
|
|
2
|
+
.img {
|
|
3
|
+
width: 200px;
|
|
4
|
+
height: 200px;
|
|
5
|
+
margin: 5px;
|
|
6
|
+
padding: 5px;
|
|
7
|
+
border: 1px solid var(--background-color);
|
|
8
|
+
}
|
|
9
|
+
</style>
|
|
10
|
+
|
|
11
|
+
<div id="deleteUserModal" class="modal">
|
|
12
|
+
<div class="modal-content">
|
|
13
|
+
<div class="modal-header">
|
|
14
|
+
<span class="close">×</span>
|
|
15
|
+
<p><i class="fa fa-plus"></i> ##word.user_details##</p>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="modal-body">
|
|
18
|
+
<span ng-show="busy">
|
|
19
|
+
<i class="fa fa-spinner white fa-pulse fa-3x fa-fw"></i>
|
|
20
|
+
<span class="sr-only">Loading...</span>
|
|
21
|
+
</span>
|
|
22
|
+
|
|
23
|
+
<div x-import="security/view.html"></div>
|
|
24
|
+
</div>
|
|
25
|
+
<p>{{error}}</p>
|
|
26
|
+
<div class="modal-footer center">
|
|
27
|
+
<i-button type="delete" label="##word.delete##" ng-click="delete(user)"></i-button>
|
|
28
|
+
<i-button type="close" label="##word.close##" onclick="site.hideModal('#deleteUserModal')"></i-button>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<meta charset="utf-8">
|
|
2
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
3
|
-
<meta name="viewport" content="width=device-width; initial-scale=1.0;">
|
|
4
|
-
<title>##word.brand_title## | ##word.brand_tag##</title>
|
|
5
|
-
<link rel="icon" type="image/png" href="/images/logo.png">
|
|
6
|
-
<link rel="stylesheet" href="x-css/site.css">
|
|
7
|
-
<link rel="stylesheet" href="x-css/theme_dark.css">
|
|
1
|
+
<meta charset="utf-8">
|
|
2
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
3
|
+
<meta name="viewport" content="width=device-width; initial-scale=1.0;">
|
|
4
|
+
<title>##word.brand_title## | ##word.brand_tag##</title>
|
|
5
|
+
<link rel="icon" type="image/png" href="/images/logo.png">
|
|
6
|
+
<link rel="stylesheet" href="x-css/site.css">
|
|
7
|
+
<link rel="stylesheet" href="x-css/theme_dark.css">
|
|
8
8
|
<link rel="stylesheet" href="x-css/font-awesome.css">
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en" data-ng-app="myApp">
|
|
3
|
-
<head x-import="head.html">
|
|
4
|
-
<style>
|
|
5
|
-
:root{
|
|
6
|
-
--navbar-background-color : #272727;
|
|
7
|
-
}
|
|
8
|
-
i-image.photo img {
|
|
9
|
-
width: 128px;
|
|
10
|
-
height: 128px;
|
|
11
|
-
border: none;
|
|
12
|
-
border-radius: 0px;
|
|
13
|
-
padding: 3px;
|
|
14
|
-
}
|
|
15
|
-
.user {
|
|
16
|
-
padding: 10px;
|
|
17
|
-
border: 1px solid #eee;
|
|
18
|
-
margin: 15px;
|
|
19
|
-
border-radius: 10px;
|
|
20
|
-
height: 250px;
|
|
21
|
-
width: 250px;
|
|
22
|
-
}
|
|
23
|
-
.user:hover {
|
|
24
|
-
transform: scale(1.1);
|
|
25
|
-
}
|
|
26
|
-
.user .email{
|
|
27
|
-
font-size: 14px;
|
|
28
|
-
}
|
|
29
|
-
.title {
|
|
30
|
-
font-weight: bold;
|
|
31
|
-
color: #000 !important;
|
|
32
|
-
}
|
|
33
|
-
</style>
|
|
34
|
-
</head>
|
|
35
|
-
|
|
36
|
-
<body class="##session.lang##">
|
|
37
|
-
|
|
38
|
-
<nav class="navbar" x-import="security/navbar.html" ng-controller="navbar"></nav>
|
|
39
|
-
<h2 class="center">Security</h2>
|
|
40
|
-
<div id="main-layout" class="container">
|
|
41
|
-
<div class="row">
|
|
42
|
-
<div class="row" ng-controller="security">
|
|
43
|
-
|
|
44
|
-
<div x-import="security/add_modal.html"></div>
|
|
45
|
-
<div x-import="security/update_modal.html"></div>
|
|
46
|
-
<div x-import="security/delete_modal.html"></div>
|
|
47
|
-
<div x-import="security/view_modal.html"></div>
|
|
48
|
-
<div x-permissions="user_management" class="top-actions">
|
|
49
|
-
<i-button type="add" ng-click="newuser()" label="##word.security_new_user##"></i-button>
|
|
50
|
-
|
|
51
|
-
<span ng-show="busy">
|
|
52
|
-
<i class="fa fa-spinner white fa-pulse fa-3x fa-fw"></i>
|
|
53
|
-
<span class="sr-only">Loading...</span>
|
|
54
|
-
</span>
|
|
55
|
-
</div>
|
|
56
|
-
<br />
|
|
57
|
-
<br />
|
|
58
|
-
<br />
|
|
59
|
-
<div x-permissions="security_manage " class="users pointer center loaded">
|
|
60
|
-
<div class="user inline-grid" ng-repeat="user in list" ng-click="details(user)">
|
|
61
|
-
<div class="row">
|
|
62
|
-
<i-image view class="photo hover" ng-model="user.profile.image_url"></i-image>
|
|
63
|
-
</div>
|
|
64
|
-
<div class="row">
|
|
65
|
-
<h2 class="text-center bold blue">
|
|
66
|
-
{{user.profile.name}}
|
|
67
|
-
<p class="text-center black email">{{user.email}}</p>
|
|
68
|
-
</h2>
|
|
69
|
-
</div>
|
|
70
|
-
</div>
|
|
71
|
-
</div>
|
|
72
|
-
</div>
|
|
73
|
-
</div>
|
|
74
|
-
</div>
|
|
75
|
-
|
|
76
|
-
<div x-import="scripts.html"></div>
|
|
77
|
-
<script x-import="security/index.js"></script>
|
|
78
|
-
|
|
79
|
-
</body>
|
|
80
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en" data-ng-app="myApp">
|
|
3
|
+
<head x-import="head.html">
|
|
4
|
+
<style>
|
|
5
|
+
:root{
|
|
6
|
+
--navbar-background-color : #272727;
|
|
7
|
+
}
|
|
8
|
+
i-image.photo img {
|
|
9
|
+
width: 128px;
|
|
10
|
+
height: 128px;
|
|
11
|
+
border: none;
|
|
12
|
+
border-radius: 0px;
|
|
13
|
+
padding: 3px;
|
|
14
|
+
}
|
|
15
|
+
.user {
|
|
16
|
+
padding: 10px;
|
|
17
|
+
border: 1px solid #eee;
|
|
18
|
+
margin: 15px;
|
|
19
|
+
border-radius: 10px;
|
|
20
|
+
height: 250px;
|
|
21
|
+
width: 250px;
|
|
22
|
+
}
|
|
23
|
+
.user:hover {
|
|
24
|
+
transform: scale(1.1);
|
|
25
|
+
}
|
|
26
|
+
.user .email{
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
}
|
|
29
|
+
.title {
|
|
30
|
+
font-weight: bold;
|
|
31
|
+
color: #000 !important;
|
|
32
|
+
}
|
|
33
|
+
</style>
|
|
34
|
+
</head>
|
|
35
|
+
|
|
36
|
+
<body class="##session.lang##">
|
|
37
|
+
|
|
38
|
+
<nav class="navbar" x-import="security/navbar.html" ng-controller="navbar"></nav>
|
|
39
|
+
<h2 class="center">Security</h2>
|
|
40
|
+
<div id="main-layout" class="container">
|
|
41
|
+
<div class="row">
|
|
42
|
+
<div class="row" ng-controller="security">
|
|
43
|
+
|
|
44
|
+
<div x-import="security/add_modal.html"></div>
|
|
45
|
+
<div x-import="security/update_modal.html"></div>
|
|
46
|
+
<div x-import="security/delete_modal.html"></div>
|
|
47
|
+
<div x-import="security/view_modal.html"></div>
|
|
48
|
+
<div x-permissions="user_management" class="top-actions">
|
|
49
|
+
<i-button type="add" ng-click="newuser()" label="##word.security_new_user##"></i-button>
|
|
50
|
+
|
|
51
|
+
<span ng-show="busy">
|
|
52
|
+
<i class="fa fa-spinner white fa-pulse fa-3x fa-fw"></i>
|
|
53
|
+
<span class="sr-only">Loading...</span>
|
|
54
|
+
</span>
|
|
55
|
+
</div>
|
|
56
|
+
<br />
|
|
57
|
+
<br />
|
|
58
|
+
<br />
|
|
59
|
+
<div x-permissions="security_manage " class="users pointer center loaded">
|
|
60
|
+
<div class="user inline-grid" ng-repeat="user in list" ng-click="details(user)">
|
|
61
|
+
<div class="row">
|
|
62
|
+
<i-image view class="photo hover" ng-model="user.profile.image_url"></i-image>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="row">
|
|
65
|
+
<h2 class="text-center bold blue">
|
|
66
|
+
{{user.profile.name}}
|
|
67
|
+
<p class="text-center black email">{{user.email}}</p>
|
|
68
|
+
</h2>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
<div x-import="scripts.html"></div>
|
|
77
|
+
<script x-import="security/index.js"></script>
|
|
78
|
+
|
|
79
|
+
</body>
|
|
80
|
+
</html>
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
<div data-ng-controller="login" id="loginModal" class="modal small" fixed>
|
|
2
|
-
<div class="modal-content">
|
|
3
|
-
<div class="modal-header">
|
|
4
|
-
<p class="bold font-22 text-center"><i class="fas fa-sign-in-alt"></i> ##word.security_login##</p>
|
|
5
|
-
<span class="close">×</span>
|
|
6
|
-
</div>
|
|
7
|
-
|
|
8
|
-
<div class="modal-body">
|
|
9
|
-
<p ng-show="busy" class="center"><i class="fas fa-spinner fa-pulse fa-3x fa-fw"></i></p>
|
|
10
|
-
|
|
11
|
-
<form ng-hide="busy">
|
|
12
|
-
<i-control label="##word.security_user_email##" ng-model="userEmail" ng-keydown="tryLogin($event)"></i-control>
|
|
13
|
-
<i-control type="password" label="##word.security_user_password##" ng-model="userPassword" ng-keydown="tryLogin($event)"></i-control>
|
|
14
|
-
</form>
|
|
15
|
-
|
|
16
|
-
<p class="red">{{error}}</p>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="modal-footer center">
|
|
19
|
-
<i-button ng-hide="busy" type="signin" ng-click="login()" label="##word.security_login##"></i-button>
|
|
20
|
-
<i-button ng-hide="busy" type="close" onclick="site.hideModal('#loginModal')" label="##word.close##"></i-button>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
<script x-import="security/login.js"></script>
|
|
1
|
+
<div data-ng-controller="login" id="loginModal" class="modal small" fixed>
|
|
2
|
+
<div class="modal-content">
|
|
3
|
+
<div class="modal-header">
|
|
4
|
+
<p class="bold font-22 text-center"><i class="fas fa-sign-in-alt"></i> ##word.security_login##</p>
|
|
5
|
+
<span class="close">×</span>
|
|
6
|
+
</div>
|
|
7
|
+
|
|
8
|
+
<div class="modal-body">
|
|
9
|
+
<p ng-show="busy" class="center"><i class="fas fa-spinner fa-pulse fa-3x fa-fw"></i></p>
|
|
10
|
+
|
|
11
|
+
<form ng-hide="busy">
|
|
12
|
+
<i-control label="##word.security_user_email##" ng-model="userEmail" ng-keydown="tryLogin($event)"></i-control>
|
|
13
|
+
<i-control type="password" label="##word.security_user_password##" ng-model="userPassword" ng-keydown="tryLogin($event)"></i-control>
|
|
14
|
+
</form>
|
|
15
|
+
|
|
16
|
+
<p class="red">{{error}}</p>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="modal-footer center">
|
|
19
|
+
<i-button ng-hide="busy" type="signin" ng-click="login()" label="##word.security_login##"></i-button>
|
|
20
|
+
<i-button ng-hide="busy" type="close" onclick="site.hideModal('#loginModal')" label="##word.close##"></i-button>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
<script x-import="security/login.js"></script>
|