@opengis/admin 0.3.119 → 0.4.1
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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@opengis/admin",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.4.1",
|
4
4
|
"description": "This project Softpro Admin",
|
5
5
|
"main": "dist/admin.js",
|
6
6
|
"type": "module",
|
@@ -23,7 +23,7 @@
|
|
23
23
|
"admin": "cross-env NODE_ENV=admin npm run start",
|
24
24
|
"prod": "cross-env NODE_ENV=production npm run start",
|
25
25
|
"debug": "node --watch-path=server server",
|
26
|
-
"start": "node server",
|
26
|
+
"start": "node server",
|
27
27
|
"docs:dev": "vitepress dev docs",
|
28
28
|
"docs:build": "vitepress build docs",
|
29
29
|
"docs:preview": "vitepress preview docs"
|
@@ -46,9 +46,9 @@
|
|
46
46
|
"@fullcalendar/list": "^6.1.15",
|
47
47
|
"@fullcalendar/timegrid": "^6.1.15",
|
48
48
|
"@fullcalendar/vue3": "^6.1.15",
|
49
|
-
"@opengis/fastify-auth": "1.0
|
50
|
-
"@opengis/fastify-file": "1.
|
51
|
-
"@opengis/fastify-table": "1.
|
49
|
+
"@opengis/fastify-auth": "1.1.0",
|
50
|
+
"@opengis/fastify-file": "1.1.1",
|
51
|
+
"@opengis/fastify-table": "1.4.1",
|
52
52
|
"@opengis/v3-core": "^0.3.161",
|
53
53
|
"@opengis/v3-filter": "^0.1.3",
|
54
54
|
"@tiptap/core": "^2.8.0",
|
@@ -68,8 +68,8 @@
|
|
68
68
|
"close-with-grace": "^1.3.0",
|
69
69
|
"cross-env": "^7.0.3",
|
70
70
|
"date-fns": "^4.1.0",
|
71
|
-
"fastify": "
|
72
|
-
"fastify-plugin": "
|
71
|
+
"fastify": "5.3.3",
|
72
|
+
"fastify-plugin": "5.0.1",
|
73
73
|
"maplibre-gl": "^4.7.0",
|
74
74
|
"markdown-it": "14.1.0",
|
75
75
|
"moment": "^2.30.1",
|
package/server/plugins/hook.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import path from 'node:path';
|
2
2
|
import { createHash } from 'node:crypto';
|
3
|
-
import { readFileSync, writeFileSync } from 'node:fs';
|
3
|
+
import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
4
4
|
|
5
5
|
import {
|
6
6
|
getTemplatePath, addHook, getToken, getTemplate, config, pgClients, initPG, getRedis, logger, getMenu,
|
@@ -154,6 +154,7 @@ export default async function plugin(fastify) {
|
|
154
154
|
}));
|
155
155
|
|
156
156
|
// debug
|
157
|
+
mkdirSync(logDir, { recursive: true });
|
157
158
|
writeFileSync(path.join(logDir, `${path.basename(cwd)}-${client.options?.database}-cls.sql`), clsQuery.filter((el) => el).join(';'));
|
158
159
|
writeFileSync(path.join(logDir, `${path.basename(cwd)}-${client.options?.database}-cls.json`), JSON.stringify(cls));
|
159
160
|
|
@@ -1,21 +1,24 @@
|
|
1
1
|
const calendarDataSchema = {
|
2
|
-
|
3
|
-
|
2
|
+
type: 'object',
|
3
|
+
properties: {
|
4
|
+
params: {
|
5
|
+
name: { type: 'string', pattern: '^([\\d\\w._-]+)$' },
|
6
|
+
},
|
7
|
+
querystring: {
|
8
|
+
date: { type: 'string', pattern: '^\\d{4}-\\d{2}-\\d{2}$' },
|
9
|
+
sql: { type: 'string', pattern: '^(\\d)$' },
|
10
|
+
},
|
11
|
+
|
12
|
+
// query: {
|
13
|
+
// type: 'object',
|
14
|
+
// properties: {
|
15
|
+
// date: {
|
16
|
+
// type: 'string',
|
17
|
+
// format: 'date',
|
18
|
+
// },
|
19
|
+
// },
|
20
|
+
// },
|
4
21
|
},
|
5
|
-
querystring: {
|
6
|
-
date: { type: 'string', pattern: '^\\d{4}-\\d{2}-\\d{2}$' },
|
7
|
-
sql: { type: 'string', pattern: '^(\\d)$' },
|
8
|
-
},
|
9
|
-
|
10
|
-
// query: {
|
11
|
-
// type: 'object',
|
12
|
-
// properties: {
|
13
|
-
// date: {
|
14
|
-
// type: 'string',
|
15
|
-
// format: 'date',
|
16
|
-
// },
|
17
|
-
// },
|
18
|
-
// },
|
19
22
|
};
|
20
23
|
|
21
24
|
export { calendarDataSchema }
|
@@ -1,15 +1,21 @@
|
|
1
1
|
const notificationSchema = {
|
2
|
+
type: 'object',
|
3
|
+
properties: {
|
2
4
|
params: {
|
3
5
|
id: { type: 'string', pattern: '^([\\d\\w]+)$' },
|
4
6
|
},
|
5
7
|
querystring: {
|
6
8
|
nocache: { type: 'string', pattern: '^(\\d+)$' },
|
7
9
|
},
|
10
|
+
},
|
8
11
|
};
|
9
12
|
|
10
13
|
const emailSchema = {
|
11
|
-
|
12
|
-
|
14
|
+
type: 'object',
|
15
|
+
properties: {
|
16
|
+
quertstring: {
|
17
|
+
to: { type: 'string', pattern: '^((?!\\.)[\\w\\-_.]*[^.])(@\\w+)(\\.\\w+(\\.\\w+)?[^.\\W])$' },
|
18
|
+
},
|
13
19
|
},
|
14
20
|
};
|
15
21
|
|
@@ -1,12 +1,18 @@
|
|
1
1
|
const userClsSchema = {
|
2
|
-
|
3
|
-
|
2
|
+
type: 'object',
|
3
|
+
properties: {
|
4
|
+
quertstring: {
|
5
|
+
sql: { type: 'string', pattern: '^(\\d)$' },
|
6
|
+
},
|
4
7
|
},
|
5
8
|
};
|
6
9
|
|
7
10
|
const userClsIdSchema = {
|
8
|
-
|
9
|
-
|
11
|
+
type: 'object',
|
12
|
+
properties: {
|
13
|
+
params: {
|
14
|
+
id: { type: 'string', pattern: '^([\\d\\w\\.]+)$' },
|
15
|
+
},
|
10
16
|
},
|
11
17
|
};
|
12
18
|
|