@opengis/gis 0.2.29 → 0.2.30

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.
@@ -33,7 +33,7 @@
33
33
  "meta": "title",
34
34
  "name": "name",
35
35
  "format": "slot",
36
- "slot": "<a :href=\"'/service/'+data?.service_id\"><p>{{data?.name}}</p></a><p class='text-xs text-gray-500'>{{data?.description}}</p>"
36
+ "slot": "<a :href=\"'/services/'+data?.service_id\"><p>{{data?.name}}</p></a><p class='text-xs text-gray-500'>{{data?.description}}</p>"
37
37
  },
38
38
  {
39
39
  "ua": "Група",
@@ -115,4 +115,4 @@
115
115
  "type": "Check"
116
116
  }
117
117
  ]
118
- }
118
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/gis",
3
- "version": "0.2.29",
3
+ "version": "0.2.30",
4
4
  "type": "module",
5
5
  "author": "Softpro",
6
6
  "main": "./dist/index.js",
@@ -18,8 +18,10 @@
18
18
  "dump": "bun ./node_modules/@opengis/fastify-table/dist/script/dump.js",
19
19
  "migrate": "MIGRATE=true bun ./node_modules/@opengis/fastify-table/dist/script/migrate.js",
20
20
  "start1": "bun server",
21
+ "start:kyiv-demo": "bun --env-file=.env.kyiv-demo server",
21
22
  "start:kamyanske": "bun --env-file=.env.kamyanske server",
22
23
  "start:kr": "bun --env-file=.env.kr server",
24
+ "dev:kyiv-demo": "bun --env-file=.env.kyiv-demo --hot server",
23
25
  "dev:kamyanske": "bun --env-file=.env.kamyanske --hot server",
24
26
  "dev:kr": "bun --env-file=.env.kr --hot server",
25
27
  "lint": "eslint src --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts",
@@ -52,7 +54,7 @@
52
54
  "@opengis/core": "^0.0.23",
53
55
  "@opengis/fastify-table": "^2.0.117",
54
56
  "@opengis/filter": "^0.1.27",
55
- "@opengis/form": "^0.0.91",
57
+ "@opengis/form": "^0.0.96",
56
58
  "@opengis/table": "^0.0.27",
57
59
  "@vitejs/plugin-vue": "^5.2.4",
58
60
  "axios": "^1.13.2",
@@ -21,7 +21,7 @@ export default async function getMap({ params = {}, pg = pgClients.client }, rep
21
21
  const mapList = getTemplates('map').map(el => el[0]);
22
22
 
23
23
  const rows = pg.pk?.['gis.maps'] ? await pg.query(
24
- `SELECT map_id as id, * FROM gis.maps where ${params.id ? 'map_id=$1' : '1=1'}`,
24
+ `SELECT map_id as id, * FROM gis.maps where ${params.id ? '$1 in (map_id,map_key)' : '1=1'}`,
25
25
  [params.id].filter(Boolean),
26
26
  ).then(el => el.rows || []) : [];
27
27
 
@@ -32,7 +32,7 @@ export default async function getMap({ params = {}, pg = pgClients.client }, rep
32
32
  const totals = pg.queryCache ? await pg.queryCache('select json_object_agg(oid::regclass, reltuples) from pg_class')
33
33
  .then(el => el.rows?.[0]?.json_object_agg || {}) : {};
34
34
  const maps = pg.pk?.['gis.maps'] ? await pg.query(
35
- 'SELECT map_id as slug, name FROM gis.maps',
35
+ 'SELECT map_id as id, map_key as slug, name FROM gis.maps',
36
36
  ).then(el => el.rows || []) : [];
37
37
 
38
38
  if (params.id) {