isite 2024.10.2 → 2024.10.3
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/README.md +7 -7
- package/apps/charts/site_files/html/PieChart.html +1 -1
- package/apps/charts/site_files/html/PieChart2.html +1 -1
- package/apps/charts/site_files/html/XYChart.html +1 -1
- package/apps/charts/site_files/html/column.html +1 -1
- package/apps/charts/site_files/html/gauge.html +1 -1
- package/apps/charts/site_files/html/index.html +1 -1
- package/apps/charts/site_files/html/line-graph.html +1 -1
- package/apps/charts/site_files/html/pie-chart-rounded-corners.html +1 -1
- package/apps/charts/site_files/html/simple-3D-pie-chart.html +1 -1
- package/apps/client-side/README.md +2 -2
- package/apps/client-side/site_files/css/form.css +1 -0
- package/apps/client-side/site_files/html/require_features.html +1 -1
- package/apps/client-side/site_files/html/require_payments.html +1 -1
- package/apps/client-side/site_files/html/require_permissions.html +1 -1
- package/apps/client-side/site_files/html/words-old.html +1 -1
- package/apps/client-side/site_files/html/words.html +1 -3
- package/apps/client-side/site_files/js/WebShareEditor.js +1 -1
- package/apps/client-side/site_files/js/bootstrap-5-directive.js +4 -4
- package/apps/client-side/site_files/js/bootstrap-5-directive.min.js +1 -1
- package/apps/client-side/site_files/js/site.js +0 -4
- package/apps/client-side/site_files/js/site.min.js +1 -1
- package/apps/client-side/site_files/js/video.min.js +2 -2
- package/apps/security/site_files/html/add_modal.html +1 -1
- package/apps/security/site_files/html/content.html +1 -1
- package/apps/security/site_files/html/index.html +1 -1
- package/apps/security/site_files/html/navbar.html +2 -2
- package/apps/security/site_files/html/view.html +2 -2
- package/apps/security/site_files/js/navbar.js +1 -1
- package/apps/security/site_files/json/permissions.json +6 -6
- package/apps/security/site_files/json/roles.json +8 -8
- package/apps/security/site_files/json/words.json +27 -27
- package/apps/ui-print/site_files/html/content.html +1 -1
- package/apps/ui-print/site_files/html/image.html +1 -1
- package/apps/ui-print/site_files/html/index.html +1 -1
- package/apps/ui-print/site_files/html/svg.html +1 -1
- package/isite_files/css/custom.css +2 -0
- package/isite_files/html/index.html +1 -1
- package/lib/dashboard.js +1 -1
- package/lib/mongodb.js +56 -215
- package/lib/routing.js +27 -25
- package/lib/security.js +7 -7
- package/lib/session.js +1 -1
- package/lib/sessions.js +11 -6
- package/object-options/index.js +1 -1
- package/object-options/plugins/file-manager/site-files/html/index.html +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -637,8 +637,8 @@ site.var('siteBrand', 'XSite');
|
|
|
637
637
|
<h2>data name : ##data.name## , data age : ##data.age##</h2>
|
|
638
638
|
<h2>param category : ##params.category## , param post : ##params.post##</h2>
|
|
639
639
|
|
|
640
|
-
<div x-lang="
|
|
641
|
-
<div x-lang="
|
|
640
|
+
<div x-lang="Ar">Show if Site Language is Arabic</div>
|
|
641
|
+
<div x-lang="En">Show if Site Language is English</div>
|
|
642
642
|
// auto detect user session language
|
|
643
643
|
|
|
644
644
|
<div x-permission="admin">Only Admi Users Can Show This Content</div>
|
|
@@ -1104,9 +1104,9 @@ site.onGET('/files/file1.zip', (req, res) => {
|
|
|
1104
1104
|
|
|
1105
1105
|
```json
|
|
1106
1106
|
[
|
|
1107
|
-
{ "name": "user_name", "
|
|
1108
|
-
{ "name": "user_email", "
|
|
1109
|
-
{ "name": "user_password", "
|
|
1107
|
+
{ "name": "user_name", "En": "User Name", "Ar": "أسم المستخدم" },
|
|
1108
|
+
{ "name": "user_email", "En": "Email", "Ar": "البريد الالكترونى" },
|
|
1109
|
+
{ "name": "user_password", "En": "Password", "Ar": "كلمة المرور" }
|
|
1110
1110
|
]
|
|
1111
1111
|
```
|
|
1112
1112
|
|
|
@@ -1151,8 +1151,8 @@ $scope.changeLang = function (lang = 'EN', dir = 'ltr', text = 'left') {
|
|
|
1151
1151
|
- Show Content Depended on Language
|
|
1152
1152
|
|
|
1153
1153
|
```html
|
|
1154
|
-
<div x-lang="
|
|
1155
|
-
<div x-lang="
|
|
1154
|
+
<div x-lang="Ar">This Content Will Display When Site Language is Arabic</div>
|
|
1155
|
+
<div x-lang="En">This Content Will Display When Site Language is English</div>
|
|
1156
1156
|
```
|
|
1157
1157
|
|
|
1158
1158
|
## Client libraries
|
|
@@ -92,7 +92,7 @@ require('isite-client')(site)
|
|
|
92
92
|
|
|
93
93
|
```html
|
|
94
94
|
<!DOCTYPE html>
|
|
95
|
-
<html lang="
|
|
95
|
+
<html lang="En" ng-app="myApp">
|
|
96
96
|
|
|
97
97
|
<head>
|
|
98
98
|
<meta charset="UTF-8">
|
|
@@ -100,7 +100,7 @@ require('isite-client')(site)
|
|
|
100
100
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
101
101
|
<title>Document</title>
|
|
102
102
|
<link rel="stylesheet" href="/x-css/site.css">
|
|
103
|
-
<style x-lang="
|
|
103
|
+
<style x-lang="Ar">
|
|
104
104
|
:root {
|
|
105
105
|
--direction: rtl;
|
|
106
106
|
--text-align: right;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
|
-
<html lang="
|
|
2
|
+
<html lang="En" ng-app="myApp">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
@@ -29,11 +29,9 @@
|
|
|
29
29
|
<td>{{word.name}}</td>
|
|
30
30
|
<td>
|
|
31
31
|
<i-control ng-model="word.En"></i-control>
|
|
32
|
-
<i-control ng-model="word.EN"></i-control>
|
|
33
32
|
</td>
|
|
34
33
|
<td>
|
|
35
34
|
<i-control ng-model="word.Ar"></i-control>
|
|
36
|
-
<i-control ng-model="word.AR"></i-control>
|
|
37
35
|
</td>
|
|
38
36
|
</tr>
|
|
39
37
|
</table>
|