@opengis/cms 0.0.53 → 0.0.54

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.
Files changed (18) hide show
  1. package/dist/{ArticlesPage-dx7Se1Xo.js → ArticlesPage-Cuit_90w.js} +3 -3
  2. package/dist/{BuilderPage-ChkWE8rE.js → BuilderPage-B79YHrmr.js} +139 -139
  3. package/dist/{CollectionsBreadcrumb.vue_vue_type_script_setup_true_lang-CnOe9ORD.js → CollectionsBreadcrumb.vue_vue_type_script_setup_true_lang-B6irHMzL.js} +19 -19
  4. package/dist/{EditCollectionPage-H1J9pZNo.js → EditCollectionPage-CAVLcvLg.js} +5 -5
  5. package/dist/{MenuAddPage-B6Qs6qV8.js → MenuAddPage-CmU4kAUM.js} +1 -1
  6. package/dist/{MenuItemPage-XN9lx5Vv.js → MenuItemPage-UV8JlJvT.js} +60 -60
  7. package/dist/{MenuPage-tJZtK46W.js → MenuPage-c4TPJgIN.js} +1 -1
  8. package/dist/MonacoEditor.vue_vue_type_script_setup_true_lang-C8cip9Ci.js +84 -0
  9. package/dist/{UniversalTable.vue_vue_type_script_setup_true_lang-CJGTsd1V.js → UniversalTable.vue_vue_type_script_setup_true_lang-DR4PQwqR.js} +80 -80
  10. package/dist/{UniversalTablePagination.vue_vue_type_script_setup_true_lang-Cp1WWIf0.js → UniversalTablePagination.vue_vue_type_script_setup_true_lang-C8P9DCeX.js} +47 -47
  11. package/dist/{contentForm-BgEoJcWF.js → contentForm-BQdeYVFh.js} +2 -2
  12. package/dist/{getField-DoisYj34.js → getField-Y5WXnRR0.js} +632 -631
  13. package/dist/index.js +10 -10
  14. package/dist/style.css +1 -1
  15. package/dist/{vuedraggable-DTHNuRWs.js → vuedraggable-CoAPPFYd.js} +108 -108
  16. package/package.json +67 -67
  17. package/server/routes/cms/controllers/listMedia.js +5 -1
  18. package/dist/MonacoEditor.vue_vue_type_script_setup_true_lang-DQjDxfF8.js +0 -84
package/package.json CHANGED
@@ -1,68 +1,68 @@
1
- {
2
- "name": "@opengis/cms",
3
- "version": "0.0.53",
4
- "description": "cms",
5
- "type": "module",
6
- "author": "Softpro",
7
- "main": "./dist/index.js",
8
- "license": "EULA",
9
- "files": [
10
- "module",
11
- "locales",
12
- "dist",
13
- "server",
14
- "plugin.js",
15
- "utils.js",
16
- "utils.d.ts",
17
- "input-types.json"
18
- ],
19
- "scripts": {
20
- "patch": "npm version patch && git push && npm publish",
21
- "test": "node --test test/**/*.test.js",
22
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
23
- "dev": "NODE_ENV=dev bun --env-file=.env.ip server ",
24
- "admin": "vite admin",
25
- "build": "vite build && vite build admin",
26
- "build:lib": "vite build",
27
- "proxy": "vite dev admin",
28
- "start": "bun --env-file=.env.ip server",
29
- "prod": "NODE_ENV=production bun --env-file=.env.ip server ",
30
- "ip": "bun --env-file=.env.ip server",
31
- "demo": "node --env-file=.env.demo --env-file=.env server",
32
- "i18n:sync": "node i18n-sync.cjs",
33
- "prepublishOnly": "bun build:lib",
34
- "softpro": "bun --env-file=.env.softpro server",
35
- "softpro1": "NODE_ENV=production bun --env-file=.env.prod-softpro.local server"
36
- },
37
- "dependencies": {},
38
- "resolutions": {
39
- "rollup": "4.30.0"
40
- },
41
- "devDependencies": {
42
- "@fastify/compress": "^8.1.0",
43
- "@opengis/core": "^0.0.30",
44
- "@opengis/fastify-table": "^2.0.143",
45
- "@opengis/filter": "^0.1.31",
46
- "@opengis/form": "^0.0.109",
47
- "@opengis/richtext": "0.0.45",
48
- "@vueuse/head": "2.0.0",
49
- "js-yaml": "^4.1.0",
50
- "lucide-vue-next": "0.344.0",
51
- "vite": "5.1.4",
52
- "vue": "^3.5.17",
53
- "vue-i18n": "11.1.5",
54
- "vue-router": "4.4.3",
55
- "vuedraggable": "4.1.0",
56
- "@tailwindcss/typography": "0.5.10",
57
- "@tsconfig/node22": "^22.0.2",
58
- "@vitejs/plugin-vue": "5.0.4",
59
- "autoprefixer": "10.4.18",
60
- "eslint": "8.49.0",
61
- "postcss": "8.4.35",
62
- "sass": "^1.92.1",
63
- "tailwindcss": "3.4.1",
64
- "typescript": "~5.8.0",
65
- "vitest": "3.2.4",
66
- "vue-tsc": "^2.2.10"
67
- }
1
+ {
2
+ "name": "@opengis/cms",
3
+ "version": "0.0.54",
4
+ "description": "cms",
5
+ "type": "module",
6
+ "author": "Softpro",
7
+ "main": "./dist/index.js",
8
+ "license": "EULA",
9
+ "files": [
10
+ "module",
11
+ "locales",
12
+ "dist",
13
+ "server",
14
+ "plugin.js",
15
+ "utils.js",
16
+ "utils.d.ts",
17
+ "input-types.json"
18
+ ],
19
+ "scripts": {
20
+ "patch": "npm version patch && git push && npm publish",
21
+ "test": "node --test test/**/*.test.js",
22
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
23
+ "dev": "NODE_ENV=dev bun --env-file=.env.ip server ",
24
+ "admin": "vite admin",
25
+ "build": "vite build && vite build admin",
26
+ "build:lib": "vite build",
27
+ "proxy": "vite dev admin",
28
+ "start": "bun --env-file=.env.ip server",
29
+ "prod": "NODE_ENV=production bun --env-file=.env.ip server ",
30
+ "ip": "bun --env-file=.env.ip server",
31
+ "demo": "node --env-file=.env.demo --env-file=.env server",
32
+ "i18n:sync": "node i18n-sync.cjs",
33
+ "prepublishOnly": "bun build:lib",
34
+ "softpro": "bun --env-file=.env.softpro server",
35
+ "softpro1": "NODE_ENV=production bun --env-file=.env.prod-softpro.local server"
36
+ },
37
+ "dependencies": {},
38
+ "resolutions": {
39
+ "rollup": "4.30.0"
40
+ },
41
+ "devDependencies": {
42
+ "@fastify/compress": "^8.1.0",
43
+ "@opengis/core": "^0.0.30",
44
+ "@opengis/fastify-table": "^2.0.143",
45
+ "@opengis/filter": "^0.1.31",
46
+ "@opengis/form": "^0.0.109",
47
+ "@opengis/richtext": "0.0.45",
48
+ "@vueuse/head": "2.0.0",
49
+ "js-yaml": "^4.1.0",
50
+ "lucide-vue-next": "0.344.0",
51
+ "vite": "5.1.4",
52
+ "vue": "^3.5.17",
53
+ "vue-i18n": "11.1.5",
54
+ "vue-router": "4.4.3",
55
+ "vuedraggable": "4.1.0",
56
+ "@tailwindcss/typography": "0.5.10",
57
+ "@tsconfig/node22": "^22.0.2",
58
+ "@vitejs/plugin-vue": "5.0.4",
59
+ "autoprefixer": "10.4.18",
60
+ "eslint": "8.49.0",
61
+ "postcss": "8.4.35",
62
+ "sass": "^1.92.1",
63
+ "tailwindcss": "3.4.1",
64
+ "typescript": "~5.8.0",
65
+ "vitest": "3.2.4",
66
+ "vue-tsc": "^2.2.10"
67
+ }
68
68
  }
@@ -82,7 +82,11 @@ export default async function listMedia(req, reply) {
82
82
  Object.assign(result, { rootDir });
83
83
  }
84
84
 
85
- const filteredFiles = (search ? allItems.filter(el => el.name.includes(search)) : items).filter(el => el.isFile());
85
+ // TODO: Фільтрувати по stats.mtime?
86
+ const allowedNames = Boolean(query?.filter) || Boolean(q) ? new Set(rows.map(r => r.filename)) : null;
87
+ const filteredFiles = (search ? allItems.filter(el => el.name.includes(search)) : items)
88
+ .filter(el => el.isFile())
89
+ .filter(el => !allowedNames || allowedNames.has(el.name));
86
90
 
87
91
  const files = await Promise.all(filteredFiles.map(async el => {
88
92
  const media = rows.find(row => row.filename === el.name);
@@ -1,84 +0,0 @@
1
- import { defineComponent as s, useModel as c, ref as m, onMounted as f, watch as d, onBeforeUnmount as h, openBlock as g, createElementBlock as p, normalizeStyle as v, mergeModels as w } from "vue";
2
- async function M() {
3
- if (window.monaco)
4
- return window.monaco;
5
- const a = "https://cdn.jsdelivr.net/npm/monaco-editor@0.45.0/min";
6
- return window.require || (window.require = { paths: { vs: `${a}/vs` } }, await new Promise((o, l) => {
7
- const n = document.createElement("script");
8
- n.src = `${a}/vs/loader.min.js`, n.onload = () => o(), n.onerror = l, document.head.appendChild(n);
9
- })), new Promise((o) => {
10
- window.require(["vs/editor/editor.main"], () => o(window.monaco));
11
- });
12
- }
13
- const C = /* @__PURE__ */ s({
14
- __name: "MonacoEditor",
15
- props: /* @__PURE__ */ w({
16
- language: { default: "javascript" },
17
- theme: { default: "vs-dark" },
18
- width: { default: "100%" },
19
- height: { default: "100%" },
20
- options: { default: () => ({
21
- minimap: { enabled: !1 }
22
- }) }
23
- }, {
24
- modelValue: {
25
- required: !0
26
- },
27
- modelModifiers: {}
28
- }),
29
- emits: ["update:modelValue"],
30
- setup(a) {
31
- const o = a, l = c(a, "modelValue"), n = m(null);
32
- let e = null, i = null;
33
- return f(async () => {
34
- var t;
35
- if (n.value)
36
- try {
37
- i = await M();
38
- const r = ((t = l.value) == null ? void 0 : t.replace(/\\n/g, `
39
- `)) || "";
40
- e = i.editor.create(n.value, {
41
- value: r,
42
- language: o.language,
43
- theme: o.theme,
44
- automaticLayout: !0,
45
- ...o.options
46
- }), e.onDidChangeModelContent(() => {
47
- const u = (e == null ? void 0 : e.getValue()) || "";
48
- l.value = u;
49
- });
50
- } catch (r) {
51
- console.error("Failed to load Monaco Editor:", r);
52
- }
53
- }), d(
54
- () => l.value,
55
- (t) => {
56
- if (e) {
57
- const r = (t == null ? void 0 : t.replace(/\\n/g, `
58
- `)) || "";
59
- r !== e.getValue() && e.setValue(r);
60
- }
61
- },
62
- { immediate: !0 }
63
- ), d(
64
- () => o.language,
65
- (t) => {
66
- e && t && i && i.editor.setModelLanguage(e.getModel(), t);
67
- }
68
- ), d(
69
- () => o.theme,
70
- (t) => {
71
- e && t && i && i.editor.setTheme(t);
72
- }
73
- ), h(() => {
74
- e && (e.dispose(), e = null);
75
- }), (t, r) => (g(), p("div", {
76
- ref_key: "editorContainer",
77
- ref: n,
78
- style: v({ width: a.width, height: a.height })
79
- }, null, 4));
80
- }
81
- });
82
- export {
83
- C as _
84
- };