@opengis/bi 1.0.1 → 1.0.3

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 (76) hide show
  1. package/README.md +37 -7
  2. package/dist/bi.js +48553 -0
  3. package/dist/bi.umd.cjs +170 -0
  4. package/dist/favicon.ico +0 -0
  5. package/dist/style.css +1 -0
  6. package/package.json +46 -6
  7. package/plugin.js +10 -0
  8. package/server/plugins/docs.js +47 -0
  9. package/server/plugins/vite.js +49 -0
  10. package/server/routes/dashboard/controllers/dashboard.delete.js +35 -0
  11. package/server/routes/dashboard/controllers/dashboard.js +60 -0
  12. package/server/routes/dashboard/controllers/dashboard.list.js +39 -0
  13. package/server/routes/dashboard/index.mjs +23 -0
  14. package/server/routes/data/controllers/data.js +100 -0
  15. package/server/routes/data/controllers/util/chartSQL.js +24 -0
  16. package/server/routes/data/controllers/util/normalizeData.js +21 -0
  17. package/server/routes/data/index.mjs +26 -0
  18. package/server/routes/edit/controllers/dashboard.add.js +19 -0
  19. package/server/routes/edit/controllers/dashboard.edit.js +33 -0
  20. package/server/routes/edit/controllers/widget.add.js +33 -0
  21. package/server/routes/edit/controllers/widget.del.js +63 -0
  22. package/server/routes/edit/controllers/widget.edit.js +79 -0
  23. package/server/routes/edit/index.mjs +27 -0
  24. package/server/routes/map/controllers/vtile.js +167 -0
  25. package/server/routes/map/index.mjs +32 -0
  26. package/server/templates/dashboard/erobota/bar_area.yml +17 -0
  27. package/server/templates/dashboard/erobota/bar_culture.yml +18 -0
  28. package/server/templates/dashboard/erobota/bar_grand.yml +18 -0
  29. package/server/templates/dashboard/erobota/count_grand.yml +8 -0
  30. package/server/templates/dashboard/erobota/index.yml +47 -0
  31. package/server/templates/dashboard/erobota/list_culture.yml +12 -0
  32. package/server/templates/dashboard/erobota/list_grant.yml +12 -0
  33. package/server/templates/dashboard/erobota/map.yml +4 -0
  34. package/server/templates/dashboard/erobota/pie_area.yml +17 -0
  35. package/server/templates/dashboard/erobota/pie_grant.yml +17 -0
  36. package/server/templates/dashboard/erobota/total_area.yml +9 -0
  37. package/server/templates/dashboard/erobota/total_grand.yml +9 -0
  38. package/server/templates/dashboard/sales/index.yml +40 -0
  39. package/server/templates/dashboard/sales/quarterly_revenue.yml +18 -0
  40. package/server/templates/dashboard/sales/quarterly_revenue_by_product_line.yml +19 -0
  41. package/server/templates/dashboard/sales/total_products_sold.yml +9 -0
  42. package/server/templates/dashboard/sales/total_products_sold_by_product_line.yml +12 -0
  43. package/server/templates/dashboard/sales/total_revenue.yml +8 -0
  44. package/server/templates/dashboard/sales/total_revenue_by_product_line.yml +17 -0
  45. package/server/templates/dashboard/sales/vehicle_sales_info.md +17 -0
  46. package/server/templates/dashboard/test3/index.yml +29 -0
  47. package/server/templates/dashboard/test3/quarterly_revenue.yml +19 -0
  48. package/server/templates/dashboard/test3/widget1.yml +8 -0
  49. package/server/templates/pt/vehicle_sales.md +17 -0
  50. package/server/templates/table/demo.cleaned_sales_data.table.json +104 -0
  51. package/server/templates/table/test.dataset.table.json +16 -0
  52. package/server/templates/widget/product_line.yml +20 -0
  53. package/server/templates/widget/test_vtile.yml +7 -0
  54. package/.eslintrc.cjs +0 -42
  55. package/.prettierrc.json +0 -9
  56. package/config.example +0 -21
  57. package/dashboard/controllers/dashboard.js +0 -22
  58. package/dashboard/controllers/data.js +0 -108
  59. package/dashboard/controllers/vtile.js +0 -3
  60. package/dashboard/index.mjs +0 -35
  61. package/helper.js +0 -34
  62. package/index.js +0 -28
  63. package/server.js +0 -14
  64. package/test/config.example +0 -18
  65. package/test/config.js +0 -19
  66. package/test/plugins/bi.test.js +0 -76
  67. package/test/templates/chart/bar.zone.yml +0 -23
  68. package/test/templates/chart/histogram.yml +0 -14
  69. package/test/templates/chart/line.yml +0 -16
  70. package/test/templates/chart/pivot.yml +0 -11
  71. package/test/templates/chart/table.yml +0 -15
  72. package/test/templates/chart/test.map.yml +0 -28
  73. package/test/templates/chart/user.yml +0 -7
  74. package/test/templates/dashboard/dashboard1.yml +0 -11
  75. /package/{dashboard → server/routes/dashboard}/controllers/utils/yaml.js +0 -0
  76. /package/{dashboard → server/routes/map}/controllers/geojson.js +0 -0
package/README.md CHANGED
@@ -1,22 +1,52 @@
1
- # bi
1
+ # Аналітичний модуль - BI
2
2
 
3
- [![NPM version](https://img.shields.io/npm/v/@opengis/fastify-table)](https://www.npmjs.com/package/@opengis/fastify-table)
3
+ BI (Business Intelligence) - поняття, яке поєднує в собі бізнес-аналітику, інтелектуальний аналіз даних, візуалізацію даних, інструменти та інфраструктуру для роботи з даними.
4
+
5
+ [![NPM version](https://img.shields.io/npm/v/@opengis/bi)](https://www.npmjs.com/package/@opengis/bi)
4
6
  [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)
5
7
 
6
- It standardizes the entire form bi visualization process:
8
+ ## Короткий опис
9
+
10
+ Підсистема для створення інтерактивних графічних представлень ключової інформації, яка відображається у вигляді віджетів та графіків.
11
+
12
+ Модуль містить реєстри:
13
+ - Панель управління (Dashboard)
14
+ - Набір даних (Dataset)
15
+
16
+ Та забезпечує можливості:
17
+
18
+ - Візуалізації даних у вигляді графіків, діаграм, карт та інших віджетів;
19
+ - Інтерактивного аналізу - дозволяє користувачам взаємодіяти з даними та маніпулювати графіками для отримання більш докладної інформації;
20
+ - підтримки реєстрів дашбордів та наборів даних.
21
+
22
+ ![Інтерфейс](/assets/image/interface.png)
23
+
7
24
 
8
- ## Install
25
+ ## Встновлення
9
26
 
10
27
  ```bash
11
28
  npm i @opengis/bi
12
29
  ```
13
30
 
14
- ## Usage
31
+ ## Використання
15
32
 
16
33
  ```js
17
34
  fastify.register(import('@opengis/bi'), config);
18
35
  ```
19
36
 
20
- ## Documenation
37
+ ## Приклади впроваджень:
38
+
39
+ - Підсистема «Аналітичний модуль» Червоноградської міської ради.
40
+
41
+
42
+ ## Документація
43
+
44
+ [BI - Аналітичний модуль](https://docs.softpro.ua/bi/#bi)
45
+ [apidocs/bi](https://apidocs.softpro.ua/bi/api/).
46
+
47
+
48
+ ## License
49
+
50
+ Copyright © SOFTPRO. Усі права захищено.
21
51
 
22
- For a detailed understanding fastify-table, its features, and how to use them, refer to our [Documentation](https://apidocs.softpro.ua/bi/api/).
52
+ [SOFTPRO](https://softpro.ua)