На главную... Продукты | Технологии | Классификаторы | Проекты | Скачать | Цены| Форум | Статьи | Обучение | Контакты

Установка WebToolKit на Astra SE 1.7

Поиск  Пользователи  Правила  Войти
Форум » Серверные приложения » GIS WebToolKit
Страницы: 1 2 3 4 След.
RSS
Установка WebToolKit на Astra SE 1.7
 
Купили GIS WebService SE 15 для Astra Linux и GIS WebToolKit.
ОС Astra Linux SE 1.7, Сервис настроил, ключ видит, все работает.
Установил Node.js 20.13.0 вместо родного 10
Выполнил npm instal
Код
npm warn deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm warn deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm warn deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm warn deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm warn deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm warn deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin.
npm warn deprecated domexception@2.0.1: Use your platform's native DOMException instead
npm warn deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead
npm warn deprecated consolidate@0.15.1: Please upgrade to consolidate v1.0.0+ as it has been modernized with several long-awaited fixes implemented. Maintenance is supported by Forward Email at https://forwardemail.net ; follow/watch https://github.com/ladjs/consolidate for updates and release changelog
npm warn deprecated webpack-chain@6.5.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
npm warn deprecated vue@2.6.14: Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details.
npm warn deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm warn deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.

added 2000 packages, and audited 2001 packages in 6m

250 packages are looking for funding
  run `npm fund` for details

19 vulnerabilities (10 moderate, 3 high, 6 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
Не знаю, насколько важно сообщение
Цитата
19 vulnerabilities (10 moderate, 3 high, 6 critical)
Затем выполнил npm run build-lib
Код
> MapVue@6.19.0 build-lib
> export VUE_CLI_SERVICE_CONFIG_PATH=vue.config.lib.js&&vue-cli-service build --formats umd-min --target lib --filename $npm_package_name-$npm_package_version-$BUILDNUMB ./src/index.ts --name VueGWTK

All browser targets in the browserslist configuration have supported ES module.
Therefore we don't build two separate bundles for differential loading.


&#10255;  Building for production as library (umd-min)...

 ERROR  Failed to compile with 1 error                                                                         17:57:38

 error  in ./src/components/GwtkMapObjectPanelControl/task/components/GwtkMapObjectWidget/GwtkMapObjectItemEditor/GwtkMapObjectItemEditor.ts?vue&type=script&lang=ts&external

Module not found: Error: Can't resolve '@/components/GwtkMapObjectPanelControl/task/components/GwtkMapObjectWidget/GwtkMapObjectItemEditor/GwtkMapObjectItemSemanticEditor/GwtkMapObjectItemSemanticEditor.vue' in '/home/administrator/GIS WebToolkit SE/src/components/GwtkMapObjectPanelControl/task/components/GwtkMapObjectWidget/GwtkMapObjectItemEditor'

 ERROR  Error: Build failed with errors.
Error: Build failed with errors.
    at /home/administrator/GIS WebToolkit SE/node_modules/@vue/cli-service/lib/commands/build/index.js:207:23
    at /home/administrator/GIS WebToolkit SE/node_modules/webpack/lib/webpack.js:159:8
    at /home/administrator/GIS WebToolkit SE/node_modules/webpack/lib/MultiCompiler.js:622:5
    at /home/administrator/GIS WebToolkit SE/node_modules/neo-async/async.js:2830:7
    at done (/home/administrator/GIS WebToolkit SE/node_modules/neo-async/async.js:2865:11)
    at /home/administrator/GIS WebToolkit SE/node_modules/neo-async/async.js:2818:7
    at /home/administrator/GIS WebToolkit SE/node_modules/webpack/lib/HookWebpackError.js:68:3
    at Hook.eval [as callAsync] (eval at create (/home/administrator/GIS WebToolkit SE/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/administrator/GIS WebToolkit SE/node_modules/webpack/node_modules/tapable/lib/Hook.js:18:14)
    at Cache.shutdown (/home/administrator/GIS WebToolkit SE/node_modules/webpack/lib/Cache.js:156:23)
    at /home/administrator/GIS WebToolkit SE/node_modules/webpack/lib/Compiler.js:1358:15
    at Hook.eval [as callAsync] (eval at create (/home/administrator/GIS WebToolkit SE/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/administrator/GIS WebToolkit SE/node_modules/webpack/node_modules/tapable/lib/Hook.js:18:14)
    at Compiler.close (/home/administrator/GIS WebToolkit SE/node_modules/webpack/lib/Compiler.js:1351:23)
    at /home/administrator/GIS WebToolkit SE/node_modules/webpack/lib/MultiCompiler.js:619:14
    at arrayEach (/home/administrator/GIS WebToolkit SE/node_modules/neo-async/async.js:2405:9)
    at Object.each (/home/administrator/GIS WebToolkit SE/node_modules/neo-async/async.js:2846:9)
    at MultiCompiler.close (/home/administrator/GIS WebToolkit SE/node_modules/webpack/lib/MultiCompiler.js:616:12)
    at /home/administrator/GIS WebToolkit SE/node_modules/webpack/lib/webpack.js:158:16
    at /home/administrator/GIS WebToolkit SE/node_modules/webpack/lib/MultiCompiler.js:596:14
    at processQueueWorker (/home/administrator/GIS WebToolkit SE/node_modules/webpack/lib/MultiCompiler.js:533:6)
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
Ну и на закуску попытался сделать npm run serve
Код
> MapVue@6.19.0 preserve
> npx copyfiles -u 2 node_modules/web-ifc/web-ifc.wasm public/gwtkse/wasm/


> MapVue@6.19.0 serve
> vue-cli-service serve

 INFO  Starting development server...


 ERROR  Failed to compile with 1 error                                                                         18:00:46

 error  in ./src/components/System/Vuetify/assets/icons/address-in-point.svg?sprite

Syntax Error: TypeError: loadConfig is not a function


ERROR in ./src/components/GwtkMapObjectPanelControl/task/components/GwtkMapObjectWidget/GwtkMapObjectItemEditor/GwtkMapObjectItemEditor.ts?vue&type=script&lang=ts&external (./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[1]!./src/components/GwtkMapObjectPanelControl/task/components/GwtkMapObjectWidget/GwtkMapObjectItemEditor/GwtkMapObjectItemEditor.ts?vue&type=script&lang=ts&external) 15:0-213
Module not found: Error: Can't resolve '@/components/GwtkMapObjectPanelControl/task/components/GwtkMapObjectWidget/GwtkMapObjectItemEditor/GwtkMapObjectItemSemanticEditor/GwtkMapObjectItemSemanticEditor.vue' in '/home/administrator/GIS WebToolkit SE/src/components/GwtkMapObjectPanelControl/task/components/GwtkMapObjectWidget/GwtkMapObjectItemEditor'

  ... тут еще куча ошибок ...

ERROR in ./src/components/System/Vuetify/assets/icons/3d-wireframe-view.svg?sprite
Module build failed (from ./node_modules/svgo-loader/index.js):
TypeError: loadConfig is not a function
    at Object.loader (/home/administrator/GIS WebToolkit SE/node_modules/svgo-loader/index.js:9:20)
    at module.exports (/home/administrator/GIS WebToolkit SE/node_modules/svgo-loader/index.js:17:10)
 @ ./src/components/System/Vuetify/assets/icons/ ?sprite sync ^\.\/.*\.svg$ ./3d-wireframe-view.svg
 @ ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[1]!./src/components/System/Vuetify/GwtkIcon/GwtkIcon.ts?vue&type=script&lang=ts&external 10:16-76
 @ ./src/components/System/Vuetify/GwtkIcon/GwtkIcon.ts?vue&type=script&lang=ts&external 1:0-193 1:209-212 1:214-404 1:214-404
 @ ./src/components/System/Vuetify/GwtkIcon/GwtkIcon.vue 2:0-67 3:0-62 3:0-62 10:2-8
 @ ./src/components/System/Vuetify/GwtkIcon/index.ts 1:0-38 2:0-20
 @ ./src/components/System/Vuetify/index.ts 3:0-64 35:26-34
 @ ./src/components/System/index.ts 1:0-19
 @ ./src/MapVue.ts 25:0-45 130:12-22
 @ ./src/main.ts 3:0-30 415:23-29

webpack compiled with 178 errors
No issues found.
собственно вопрос: а как правильно настоить среду и с чего начать разработку?
тема дя меня совершенно новая, ранее работал с обыкновенным GIS ToolKit 15
Изменено: Валерий Парусов - 08.05.2024 18:16:13
 
Уважаемый пользователь!
Ваше обращение от 07.05.2024 22:29 зарегистрировано под номером № 17500 для реализации.
Информация о решении вопроса будет предоставлена дополнительно.
Спасибо!
 
На прошлой неделе вышла битая версия одного из модулей в зависимостях пакетов package.json:
https://github.com/svg/svgo-loader/issues/61

Ошибку уже исправили, необходимо выполнить "чистую установку":
  • удалить папку node_modules из корня библиотеки
  • удалить файл package-lock.json
  • выполнить команду npm install в терминале
После этого команда npm run serve должна выполниться без ошибок
 
Компиляция прошла успешно.
Это нормальнные имена скриптов в папке release?
Цитата
MapVue-6.19.0-%BUILDNUMB%.umd.min.847.js
...
MapVue-6.19.0-%BUILDNUMB%.umd.min.js
Странновато выглядят.
Но, в общем, при выдаче команды npm run serve по ссылке localhost:8080 карту с геопортала открывает, кнопочки работают.
Спасибо за ответ!
Изменено: Валерий Парусов - 14.05.2024 18:45:38
 
Цитата
Валерий Парусов написал:
Компиляция прошла успешно.
Это нормальнные имена скриптов в папке release?  
Цитата
MapVue-6.19.0-%BUILDNUMB%.umd.min.847.js
...
MapVue-6.19.0-%BUILDNUMB%.umd.min.js
 Странновато выглядят.
Сборка обычно производится в контейнерах, где переменная окружения считывается из файла.

Для сборки локально переменные окружения нужно задавать напрямую (для Windows в командной строке через set, а в новых версиях по правилам Windows PowerShell).

Если номера сборки некритичны, то можно в package.json заменить переменные
Код
%BUILDNUMB%
на 1.
 
Понятно. Дело для меня совершенно новое, ранее использовал простой GisToolKit.
А после компиляции какие каталоги нужно переносить на целевую систему, где мой WebService работает?
 
Цитата
Валерий Парусов написал:
Понятно. Дело для меня совершенно новое, ранее использовал простой GisToolKit.
А после компиляции какие каталоги нужно переносить на целевую систему, где мой WebService работает?
Для GISWebServerSE копируются все файлы из папки release.
 
Цитата
GISWebServerSE
Я правильно понимаю, что "из коробки" WebToolKit собирает аналог WebServer без админ-панели (по виду очень похоже)?
А откуда грузится контент по ссылке localhost:8080 посте старта сервера разработки командой npm run serve ?
В папке release никаких index.php (html) нету.
Я почему спрашиваю все это - в документации нет вменяемого описания как WebToolKit работает, с чего начать разработку своего приложения и как разворачивать на целевой системе.
В GisToolKit15 хоть папка есть с Examples, а здесь  - куча файлов, а что к чему - непонятно.
Изменено: Валерий Парусов - 15.05.2024 11:32:49
 
Цитата
Валерий Парусов написал:
Цитата
GISWebServerSE
Я правильно понимаю, что "из коробки" WebToolKit собирает аналог WebServer без админ-панели (по виду очень похоже)?
А откуда грузится контент по ссылке localhost:8080 посте старта сервера разработки командой npm run serve ?
В папке release никаких index.php (html) нету.
Я почему спрашиваю все это - в документации нет вменяемого описания как WebToolKit работает, с чего начать разработку своего приложения и как разворачивать на целевой системе.
В GisToolKit15 хоть папка есть с Examples, а здесь  - куча файлов, а что к чему - непонятно.
Верно, при разработке отображается страница (карта) без элементов, разработанных непосредственно в GIS WebServer SE.

При сборке (npm run build-win) в папке release лежит набор файлов (библиотек), необходимых для встраивания карты в существующее web-приложение.

Для сборки готового приложения можно использовать команду
Код
npm run build-gwtk-app-win
Самостоятельное приложение будет собрано в папке gwtk-app.

Документацию доработаем.
 
Откуда грузится контент по ссылке localhost:8080 посте старта сервера разработки командой npm run serve ?
Цитата
npm run build-gwtk-app-win
Правильно ли я понимаю, что для Linux придложение собирается командой npm run build-gwtk ?
Запустил, но не понял куда собралось, пишет относительные пути
Код
npm run build-gwtk

> MapVue@6.19.0 build-gwtk
> webpack --config webpack.prod.js

assets by path gwtkse/3d/ 904 KiB 46 assets
assets by path locale/*.json 235 KiB
  asset locale/ua-ua.json 62.3 KiB [compared for emit] [from: public/locale/ua-ua.json] [copied]
  asset locale/ru-ru.json 54.8 KiB [compared for emit] [from: public/locale/ru-ru.json] [copied]
  asset locale/bg-bg.json 53.9 KiB [compared for emit] [from: public/locale/bg-bg.json] [copied]
  + 3 assets
assets by path *.css 390 KiB
  asset gwtkse.css 378 KiB [compared for emit] [from: public/gwtkse.css] [copied] [big]
  asset gwtk-material.css 12.6 KiB [compared for emit] [from: public/gwtk-material.css] [copied]
assets by path w2ui/ 370 KiB
  asset w2ui/w2ui-1.4.2.min.js 297 KiB [compared for emit] [from: public/w2ui/w2ui-1.4.2.min.js] [copied] [minimized] [big]
  asset w2ui/w2ui-1.4.2.min.css 73.6 KiB [compared for emit] [from: public/w2ui/w2ui-1.4.2.min.css] [copied]
asset gwtkse.js 2.15 MiB [compared for emit] [minimized] [big] (name: main) 1 related asset
asset gwtkse/worker.js 967 KiB [compared for emit] [minimized] [big] 1 related asset
asset jquery/jquery-1.12.4.min.js 94.7 KiB [compared for emit] [from: public/jquery/jquery-1.12.4.min.js] [copied] [minimized] 1 related asset
orphan modules 1.9 MiB [orphan] 148 modules
runtime modules 2.13 KiB 6 modules
modules by path ./GIS WebToolKit SE/debug/source/ 6.59 MiB 249 modules
modules by path ./node_modules/ 138 KiB
  ./node_modules/tslib/tslib.es6.mjs 15.9 KiB [built] [code generated]
  ./node_modules/axios/lib/axios.js + 42 modules 87.8 KiB [built] [code generated]
  ./node_modules/object-hash/dist/object_hash.js 34 KiB [built] [code generated]
external "jQuery" 42 bytes [built] [code generated]

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets: 
  gwtkse/worker.js (967 KiB)
  gwtkse.js (2.15 MiB)
  w2ui/w2ui-1.4.2.min.js (297 KiB)
  gwtkse.css (378 KiB)
  gwtkse/3d/starrysky.json (310 KiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  main (2.15 MiB)
      gwtkse.js


WARNING in webpack performance recommendations: 
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/

webpack 5.91.0 compiled with 3 warnings in 57872 ms
Вы бы хоть README.md по-русски написали, да с пояснениями, вот чем эти сборки по функционалу отличаются???
Цитата
Compiles and minifies gwtkse core for production (/release)
Compiles and minifies Vue components for production (/release)
Compiles and minifies Vue components with gwtkse core for production (/release)
Изменено: Валерий Парусов - 16.05.2024 05:17:17
Страницы: 1 2 3 4 След.
Читают тему (гостей: 1)



© КБ Панорама, 1991-2025

Регистрируясь или авторизуясь на форуме, Вы соглашаетесь с Политикой конфиденциальности