@terrestris/shogun-admin 16.1.0-next.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/LICENSE +201 -0
- package/README.md +42 -0
- package/dist/build/assets/App-BP74CNP_.js +1258 -0
- package/dist/build/assets/__federation_shared_react-CvClEUjg.js +9 -0
- package/dist/build/assets/__federation_shared_react-dom-BxqGBSTk.js +24 -0
- package/dist/build/assets/__federation_shared_react-i18next-MD_bYxcL.js +1 -0
- package/dist/build/assets/__federation_shared_react-router-dom-Vy7O6TNk.js +2 -0
- package/dist/build/assets/_commonjsHelpers-BosuxZz1.js +1 -0
- package/dist/build/assets/_virtual___federation_fn_import-PJHfB1tr.js +1 -0
- package/dist/build/assets/abap-DRC6TkPh.js +6 -0
- package/dist/build/assets/apex-BuapDI9Y.js +6 -0
- package/dist/build/assets/azcli-BypH-vXm.js +6 -0
- package/dist/build/assets/bat-BY6pwuIY.js +6 -0
- package/dist/build/assets/bicep-gRuQeaLk.js +7 -0
- package/dist/build/assets/cameligo-ul-Lp4lw.js +6 -0
- package/dist/build/assets/clojure-DeYg-96x.js +6 -0
- package/dist/build/assets/codicon-DCmgc-ay.ttf +0 -0
- package/dist/build/assets/coffee-CfnpWUYo.js +6 -0
- package/dist/build/assets/cpp-C9L3yaDO.js +6 -0
- package/dist/build/assets/csharp-DWGz5Zuj.js +6 -0
- package/dist/build/assets/csp-DrRCxMg5.js +6 -0
- package/dist/build/assets/css-BfLuTCmN.js +8 -0
- package/dist/build/assets/css.worker-BAJD-bzR.js +83 -0
- package/dist/build/assets/cssMode-Btzqpc23.js +4 -0
- package/dist/build/assets/cypher-DoFvH58O.js +6 -0
- package/dist/build/assets/dart-DIovg4uR.js +6 -0
- package/dist/build/assets/dockerfile-D2PfwrvU.js +6 -0
- package/dist/build/assets/ecl-C_scCXcs.js +6 -0
- package/dist/build/assets/editor.worker-MnaSPjGA.js +11 -0
- package/dist/build/assets/elixir-BRk-K-rg.js +6 -0
- package/dist/build/assets/favicon-CwZoocDV.ico +0 -0
- package/dist/build/assets/flow9-DLs3tTet.js +6 -0
- package/dist/build/assets/freemarker2-CoZuEXJi.js +3 -0
- package/dist/build/assets/fsharp-D0UiDa5C.js +6 -0
- package/dist/build/assets/go-CyVeKkvQ.js +6 -0
- package/dist/build/assets/graphql-BygKL3ZF.js +6 -0
- package/dist/build/assets/handlebars-BQ2vXFqT.js +1 -0
- package/dist/build/assets/hcl-D_OY6ada.js +6 -0
- package/dist/build/assets/html-S9BExIX4.js +1 -0
- package/dist/build/assets/html.worker-Bp7pNElH.js +460 -0
- package/dist/build/assets/htmlMode-D6oh_W-n.js +4 -0
- package/dist/build/assets/index-D5X_Cuhy.js +139 -0
- package/dist/build/assets/ini-BTpWsGps.js +6 -0
- package/dist/build/assets/java-3TATJI7h.js +6 -0
- package/dist/build/assets/javascript-C_BsKwTq.js +1 -0
- package/dist/build/assets/json.worker-BfIkrIax.js +48 -0
- package/dist/build/assets/jsonMode-CFQnTUoH.js +10 -0
- package/dist/build/assets/julia-DDpSJMW6.js +6 -0
- package/dist/build/assets/kotlin-DVYH6Lj_.js +6 -0
- package/dist/build/assets/less-CuFlys0T.js +7 -0
- package/dist/build/assets/lexon-m09vb5r-.js +6 -0
- package/dist/build/assets/liquid-CsJvQ-Gd.js +1 -0
- package/dist/build/assets/lua-D2Z7JJdl.js +6 -0
- package/dist/build/assets/m3-B2Cf9XSq.js +6 -0
- package/dist/build/assets/markdown-BXYnMxBe.js +6 -0
- package/dist/build/assets/mdx-CcsV6KQM.js +1 -0
- package/dist/build/assets/mips-Ckkbw-AO.js +6 -0
- package/dist/build/assets/msdax-B5uW3Zvf.js +6 -0
- package/dist/build/assets/mysql-B8ssZoUh.js +6 -0
- package/dist/build/assets/objective-c-CrrKwR0a.js +6 -0
- package/dist/build/assets/pascal-BWBTHuhh.js +6 -0
- package/dist/build/assets/pascaligo-BGLI1Hdo.js +6 -0
- package/dist/build/assets/perl-DDrv2Hr-.js +6 -0
- package/dist/build/assets/pgsql-DLPipH_Q.js +6 -0
- package/dist/build/assets/php-CTNlIIiR.js +6 -0
- package/dist/build/assets/pla-2oJWbEOo.js +6 -0
- package/dist/build/assets/postiats-DOk3G3cc.js +6 -0
- package/dist/build/assets/powerquery-Dgyr3wWZ.js +6 -0
- package/dist/build/assets/powershell-B_i9asfM.js +6 -0
- package/dist/build/assets/protobuf-CV9EbfTh.js +7 -0
- package/dist/build/assets/pug-CCBS_C5_.js +6 -0
- package/dist/build/assets/python-BNsLUA-F.js +1 -0
- package/dist/build/assets/qsharp-BLuZWbUW.js +6 -0
- package/dist/build/assets/r-CzF1MCbP.js +6 -0
- package/dist/build/assets/razor-CwLyy1uA.js +1 -0
- package/dist/build/assets/redis-C75U4IDy.js +6 -0
- package/dist/build/assets/redshift-Bc5xkKR1.js +6 -0
- package/dist/build/assets/restructuredtext-DmdQbaLT.js +6 -0
- package/dist/build/assets/ruby-DB0RB20n.js +6 -0
- package/dist/build/assets/rust-UMmp-gVE.js +6 -0
- package/dist/build/assets/sb-DVG02705.js +6 -0
- package/dist/build/assets/scala-DvSxYeG4.js +6 -0
- package/dist/build/assets/scheme-yf5bffbF.js +6 -0
- package/dist/build/assets/scss-Bzb7OGdO.js +8 -0
- package/dist/build/assets/shell-FNqbgIOG.js +6 -0
- package/dist/build/assets/shogun-spinner-BmOUi9Ar.gif +0 -0
- package/dist/build/assets/shogun_logo-B9ohJOpL.png +0 -0
- package/dist/build/assets/solidity-DyKutqhl.js +6 -0
- package/dist/build/assets/sophia-B4VqtPa2.js +6 -0
- package/dist/build/assets/sparql-B7alP455.js +6 -0
- package/dist/build/assets/sql-D7lU1fdU.js +6 -0
- package/dist/build/assets/st-VuadG5SK.js +6 -0
- package/dist/build/assets/style-CJpWC7V3.css +1 -0
- package/dist/build/assets/swift-BYtUz8ZP.js +8 -0
- package/dist/build/assets/systemverilog-DOAuugfS.js +6 -0
- package/dist/build/assets/tcl-CXKOl_mN.js +6 -0
- package/dist/build/assets/ts.worker-BBBnYv8q.js +51333 -0
- package/dist/build/assets/tsMode-meseu6bK.js +11 -0
- package/dist/build/assets/twig-D9yiNO04.js +6 -0
- package/dist/build/assets/typescript-BuOvk1sq.js +1 -0
- package/dist/build/assets/typespec-BupSXVCO.js +6 -0
- package/dist/build/assets/vb-ZlaFEk-P.js +6 -0
- package/dist/build/assets/wgsl-DrbANKle.js +303 -0
- package/dist/build/assets/xml-BXx9C-xA.js +1 -0
- package/dist/build/assets/yaml-CuMedh6B.js +1 -0
- package/dist/build/index.html +24 -0
- package/dist/lib/App.d.ts +4 -0
- package/dist/lib/App.js +122 -0
- package/dist/lib/Component/Dashboard/Dashboard.d.ts +12 -0
- package/dist/lib/Component/Dashboard/Dashboard.js +10 -0
- package/dist/lib/Component/Dashboard/DashboardCard/DashboardCard.d.ts +13 -0
- package/dist/lib/Component/Dashboard/DashboardCard/DashboardCard.js +7 -0
- package/dist/lib/Component/Dashboard/DashboardStatistics/DashboardStatistics.d.ts +15 -0
- package/dist/lib/Component/Dashboard/DashboardStatistics/DashboardStatistics.js +30 -0
- package/dist/lib/Component/EvictCache/EvictCache.d.ts +6 -0
- package/dist/lib/Component/EvictCache/EvictCache.js +28 -0
- package/dist/lib/Component/FormField/DisplayField/DisplayField.d.ts +13 -0
- package/dist/lib/Component/FormField/DisplayField/DisplayField.js +32 -0
- package/dist/lib/Component/FormField/JSONEditor/JSONEditor.d.ts +13 -0
- package/dist/lib/Component/FormField/JSONEditor/JSONEditor.js +90 -0
- package/dist/lib/Component/FormField/JSONEditor/UserWorker.d.ts +1 -0
- package/dist/lib/Component/FormField/JSONEditor/UserWorker.js +26 -0
- package/dist/lib/Component/FormField/LinkField/LinkField.d.ts +11 -0
- package/dist/lib/Component/FormField/LinkField/LinkField.js +15 -0
- package/dist/lib/Component/FormField/MarkdownEditor/MarkdownEditor.d.ts +10 -0
- package/dist/lib/Component/FormField/MarkdownEditor/MarkdownEditor.js +23 -0
- package/dist/lib/Component/FormField/Permission/GroupPermissionGrid/GroupPermissionGrid.d.ts +7 -0
- package/dist/lib/Component/FormField/Permission/GroupPermissionGrid/GroupPermissionGrid.js +73 -0
- package/dist/lib/Component/FormField/Permission/InstancePermissionGrid/InstancePermissionGrid.d.ts +30 -0
- package/dist/lib/Component/FormField/Permission/InstancePermissionGrid/InstancePermissionGrid.js +151 -0
- package/dist/lib/Component/FormField/Permission/PermissionModal/PermissionModal.d.ts +28 -0
- package/dist/lib/Component/FormField/Permission/PermissionModal/PermissionModal.js +103 -0
- package/dist/lib/Component/FormField/Permission/PermissionSelect/PermissionSelect.d.ts +6 -0
- package/dist/lib/Component/FormField/Permission/PermissionSelect/PermissionSelect.js +21 -0
- package/dist/lib/Component/FormField/Permission/RolePermissionGrid/RolePermissionGrid.d.ts +7 -0
- package/dist/lib/Component/FormField/Permission/RolePermissionGrid/RolePermissionGrid.js +81 -0
- package/dist/lib/Component/FormField/Permission/UserPermissionGrid/UserPermissionGrid.d.ts +8 -0
- package/dist/lib/Component/FormField/Permission/UserPermissionGrid/UserPermissionGrid.js +87 -0
- package/dist/lib/Component/FormField/VerifyProviderDetailsField/VerifyProviderDetailsField.d.ts +13 -0
- package/dist/lib/Component/FormField/VerifyProviderDetailsField/VerifyProviderDetailsField.js +14 -0
- package/dist/lib/Component/FormField/YesOrNoField/YesOrNoField.d.ts +8 -0
- package/dist/lib/Component/FormField/YesOrNoField/YesOrNoField.js +10 -0
- package/dist/lib/Component/FullscreenWrapper/FullscreenWrapper.d.ts +4 -0
- package/dist/lib/Component/FullscreenWrapper/FullscreenWrapper.js +48 -0
- package/dist/lib/Component/GeneralEntity/GeneralEntityForm/GeneralEntityForm.d.ts +43 -0
- package/dist/lib/Component/GeneralEntity/GeneralEntityForm/GeneralEntityForm.js +145 -0
- package/dist/lib/Component/GeneralEntity/GeneralEntityRoot/GeneralEntityRoot.d.ts +22 -0
- package/dist/lib/Component/GeneralEntity/GeneralEntityRoot/GeneralEntityRoot.js +527 -0
- package/dist/lib/Component/GeneralEntity/GeneralEntityTable/GeneralEntityTable.d.ts +46 -0
- package/dist/lib/Component/GeneralEntity/GeneralEntityTable/GeneralEntityTable.js +179 -0
- package/dist/lib/Component/GlobalSettings/GlobalSettingsRoot/GlobalSettingsRoot.d.ts +5 -0
- package/dist/lib/Component/GlobalSettings/GlobalSettingsRoot/GlobalSettingsRoot.js +15 -0
- package/dist/lib/Component/Header/Header.d.ts +8 -0
- package/dist/lib/Component/Header/Header.js +16 -0
- package/dist/lib/Component/ImageFile/ImageFileForm/ImageFileForm.d.ts +7 -0
- package/dist/lib/Component/ImageFile/ImageFileForm/ImageFileForm.js +94 -0
- package/dist/lib/Component/ImageFile/ImageFileRoot/ImageFileRoot.d.ts +7 -0
- package/dist/lib/Component/ImageFile/ImageFileRoot/ImageFileRoot.js +44 -0
- package/dist/lib/Component/ImageFile/ImageFileTable/ImageFileTable.d.ts +9 -0
- package/dist/lib/Component/ImageFile/ImageFileTable/ImageFileTable.js +157 -0
- package/dist/lib/Component/LanguageSelector/index.d.ts +4 -0
- package/dist/lib/Component/LanguageSelector/index.js +15 -0
- package/dist/lib/Component/Layer/LayerTypeSelect/LayerTypeSelect.d.ts +11 -0
- package/dist/lib/Component/Layer/LayerTypeSelect/LayerTypeSelect.js +33 -0
- package/dist/lib/Component/LayerPreview/LayerPreview.d.ts +9 -0
- package/dist/lib/Component/LayerPreview/LayerPreview.js +159 -0
- package/dist/lib/Component/LayerPreview/MapComponent/MapComponent.d.ts +10 -0
- package/dist/lib/Component/LayerPreview/MapComponent/MapComponent.js +22 -0
- package/dist/lib/Component/LogSettings/LogLevelSelect/LogLevelSelect.d.ts +7 -0
- package/dist/lib/Component/LogSettings/LogLevelSelect/LogLevelSelect.js +20 -0
- package/dist/lib/Component/LogSettings/LogLevelTable/LogLevelTable.d.ts +12 -0
- package/dist/lib/Component/LogSettings/LogLevelTable/LogLevelTable.js +73 -0
- package/dist/lib/Component/LogSettings/LogSettingsRoot/LogSettingsRoot.d.ts +4 -0
- package/dist/lib/Component/LogSettings/LogSettingsRoot/LogSettingsRoot.js +11 -0
- package/dist/lib/Component/Logs/Logs.d.ts +5 -0
- package/dist/lib/Component/Logs/Logs.js +58 -0
- package/dist/lib/Component/Menu/Navigation/Navigation.d.ts +10 -0
- package/dist/lib/Component/Menu/Navigation/Navigation.js +96 -0
- package/dist/lib/Component/Menu/User/User.d.ts +7 -0
- package/dist/lib/Component/Menu/User/User.js +91 -0
- package/dist/lib/Component/Metrics/JdbcConnectionsActive/JdbcConnectionsActive.d.ts +6 -0
- package/dist/lib/Component/Metrics/JdbcConnectionsActive/JdbcConnectionsActive.js +7 -0
- package/dist/lib/Component/Metrics/JvmMemoryUsed/JvmMemoryUsed.d.ts +6 -0
- package/dist/lib/Component/Metrics/JvmMemoryUsed/JvmMemoryUsed.js +13 -0
- package/dist/lib/Component/Metrics/JvmThreadsLive/JvmThreadsLive.d.ts +6 -0
- package/dist/lib/Component/Metrics/JvmThreadsLive/JvmThreadsLive.js +7 -0
- package/dist/lib/Component/Metrics/MetricEntry/MetricEntry.d.ts +13 -0
- package/dist/lib/Component/Metrics/MetricEntry/MetricEntry.js +54 -0
- package/dist/lib/Component/Metrics/MetricsRoot/MetricsRoot.d.ts +12 -0
- package/dist/lib/Component/Metrics/MetricsRoot/MetricsRoot.js +28 -0
- package/dist/lib/Component/Metrics/ProcessCpuUsage/ProcessCpuUsage.d.ts +6 -0
- package/dist/lib/Component/Metrics/ProcessCpuUsage/ProcessCpuUsage.js +7 -0
- package/dist/lib/Component/Metrics/ProcessStartTime/ProcessStartTime.d.ts +6 -0
- package/dist/lib/Component/Metrics/ProcessStartTime/ProcessStartTime.js +12 -0
- package/dist/lib/Component/Metrics/ProcessUptime/ProcessUptime.d.ts +6 -0
- package/dist/lib/Component/Metrics/ProcessUptime/ProcessUptime.js +15 -0
- package/dist/lib/Component/Metrics/SystemCpuCount/SystemCpuCount.d.ts +6 -0
- package/dist/lib/Component/Metrics/SystemCpuCount/SystemCpuCount.js +7 -0
- package/dist/lib/Component/Metrics/SystemCpuUsage/SystemCpuUsage.d.ts +6 -0
- package/dist/lib/Component/Metrics/SystemCpuUsage/SystemCpuUsage.js +7 -0
- package/dist/lib/Component/Metrics/SystemLoadAverage/SystemLoadAverage.d.ts +6 -0
- package/dist/lib/Component/Metrics/SystemLoadAverage/SystemLoadAverage.js +7 -0
- package/dist/lib/Component/Modal/ApplicationInfo/ApplicationInfo.d.ts +7 -0
- package/dist/lib/Component/Modal/ApplicationInfo/ApplicationInfo.js +18 -0
- package/dist/lib/Component/ShogunSpinner/ShogunSpinner.d.ts +5 -0
- package/dist/lib/Component/ShogunSpinner/ShogunSpinner.js +7 -0
- package/dist/lib/Component/UserAvatar/UserAvatar.d.ts +9 -0
- package/dist/lib/Component/UserAvatar/UserAvatar.js +13 -0
- package/dist/lib/Component/WelcomeDashboard/WelcomeDashboard.d.ts +5 -0
- package/dist/lib/Component/WelcomeDashboard/WelcomeDashboard.js +35 -0
- package/dist/lib/Context/PluginContext.d.ts +9 -0
- package/dist/lib/Context/PluginContext.js +7 -0
- package/dist/lib/Context/SHOGunAPIClientContext.d.ts +9 -0
- package/dist/lib/Context/SHOGunAPIClientContext.js +7 -0
- package/dist/lib/Controller/ControllerUtil.d.ts +27 -0
- package/dist/lib/Controller/ControllerUtil.js +60 -0
- package/dist/lib/Controller/GenericEntityController.d.ts +169 -0
- package/dist/lib/Controller/GenericEntityController.js +368 -0
- package/dist/lib/Hooks/useClientVersion.d.ts +1 -0
- package/dist/lib/Hooks/useClientVersion.js +3 -0
- package/dist/lib/Hooks/usePlugins.d.ts +3 -0
- package/dist/lib/Hooks/usePlugins.js +6 -0
- package/dist/lib/Hooks/useSHOGunAPIClient.d.ts +3 -0
- package/dist/lib/Hooks/useSHOGunAPIClient.js +6 -0
- package/dist/lib/Logger.d.ts +2 -0
- package/dist/lib/Logger.js +23 -0
- package/dist/lib/Page/Portal/Portal.d.ts +7 -0
- package/dist/lib/Page/Portal/Portal.js +74 -0
- package/dist/lib/Service/GenericServiceImpl/GenericServiceImpl.d.ts +5 -0
- package/dist/lib/Service/GenericServiceImpl/GenericServiceImpl.js +7 -0
- package/dist/lib/Service/LogService/LogService.d.ts +18 -0
- package/dist/lib/Service/LogService/LogService.js +79 -0
- package/dist/lib/Service/MetricService/MetricService.d.ts +26 -0
- package/dist/lib/Service/MetricService/MetricService.js +25 -0
- package/dist/lib/State/atoms.d.ts +7 -0
- package/dist/lib/State/atoms.js +25 -0
- package/dist/lib/State/static.d.ts +3 -0
- package/dist/lib/State/static.js +10 -0
- package/dist/lib/Util/FileUtil.d.ts +3 -0
- package/dist/lib/Util/FileUtil.js +10 -0
- package/dist/lib/Util/JsonUtil.d.ts +11 -0
- package/dist/lib/Util/JsonUtil.js +22 -0
- package/dist/lib/Util/OpenAPIUtil.d.ts +25 -0
- package/dist/lib/Util/OpenAPIUtil.js +230 -0
- package/dist/lib/Util/TableUtil.d.ts +14 -0
- package/dist/lib/Util/TableUtil.js +71 -0
- package/dist/lib/Util/TranslationUtil.d.ts +3 -0
- package/dist/lib/Util/TranslationUtil.js +23 -0
- package/dist/lib/Util/UserUtil.d.ts +22 -0
- package/dist/lib/Util/UserUtil.js +32 -0
- package/dist/lib/i18n/index.d.ts +2 -0
- package/dist/lib/i18n/index.js +17 -0
- package/dist/lib/i18n/translations.d.ts +508 -0
- package/dist/lib/i18n/translations.js +512 -0
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.js +172 -0
- package/dist/lib/plugin/index.d.ts +58 -0
- package/dist/lib/plugin/index.js +3 -0
- package/dist/lib/test-util.d.ts +6 -0
- package/dist/lib/test-util.js +16 -0
- package/package.json +137 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { CollapsePanelProps } from 'antd';
|
|
2
|
+
import { TFunction } from 'i18next';
|
|
3
|
+
import type SHOGunAPIClient from '@terrestris/shogun-util/dist/service/SHOGunAPIClient';
|
|
4
|
+
export type AdminPluginLocale = {
|
|
5
|
+
[locale: string]: {
|
|
6
|
+
translation: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export type AdminPluginComponentProps = {
|
|
12
|
+
client?: SHOGunAPIClient;
|
|
13
|
+
t?: TFunction;
|
|
14
|
+
};
|
|
15
|
+
export type AdminPluginIntegration = {
|
|
16
|
+
/**
|
|
17
|
+
* The main identifier of the integration point of the plugin.
|
|
18
|
+
*/
|
|
19
|
+
placement: string;
|
|
20
|
+
};
|
|
21
|
+
export type AdminPluginIntegrationToolMenu = AdminPluginIntegration & Omit<CollapsePanelProps, 'key' | 'header'> & {
|
|
22
|
+
placement: 'tool-menu';
|
|
23
|
+
/**
|
|
24
|
+
* The label for the plugin in the tool menu.
|
|
25
|
+
*/
|
|
26
|
+
label?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The insertion index for the plugin in the tool menu, starting from 0 which is on top.
|
|
29
|
+
*/
|
|
30
|
+
insertionIndex?: number;
|
|
31
|
+
/**
|
|
32
|
+
* The icon for the plugin in the tool menu.
|
|
33
|
+
*/
|
|
34
|
+
icon?: React.FunctionComponent;
|
|
35
|
+
};
|
|
36
|
+
export type AdminPluginIntegrations = AdminPluginIntegrationToolMenu;
|
|
37
|
+
export type AdminPlugin = {
|
|
38
|
+
/**
|
|
39
|
+
* The key of the plugin, usually used for internal references (e.g. element class names) only.
|
|
40
|
+
*/
|
|
41
|
+
key: string;
|
|
42
|
+
/**
|
|
43
|
+
* The definition of the integration point.
|
|
44
|
+
*/
|
|
45
|
+
integration: AdminPluginIntegrations;
|
|
46
|
+
/**
|
|
47
|
+
* The actual component of the plugin.
|
|
48
|
+
*/
|
|
49
|
+
component: React.FunctionComponent<AdminPluginComponentProps>;
|
|
50
|
+
/**
|
|
51
|
+
* The i18n definition to be used in the plugin.
|
|
52
|
+
*/
|
|
53
|
+
i18n?: AdminPluginLocale;
|
|
54
|
+
};
|
|
55
|
+
export type AdminPluginInternal = AdminPlugin & {
|
|
56
|
+
wrappedComponent: React.FunctionComponent<AdminPluginComponentProps>;
|
|
57
|
+
};
|
|
58
|
+
export declare function isToolMenuIntegration(pluginIntegration: AdminPluginIntegrations): pluginIntegration is AdminPluginIntegrationToolMenu;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { RenderOptions } from '@testing-library/react';
|
|
3
|
+
import { MutableSnapshot } from 'recoil';
|
|
4
|
+
declare const customRender: (ui: React.ReactElement<any, string | React.JSXElementConstructor<any>>, recoilInitializer?: ((mutableSnapshot: MutableSnapshot) => void) | undefined, options?: RenderOptions<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
|
5
|
+
export * from '@testing-library/react';
|
|
6
|
+
export { customRender as render };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
|
+
import { RecoilRoot } from 'recoil';
|
|
4
|
+
const customRender = (ui, recoilInitializer, options) => {
|
|
5
|
+
const AllTheProviders = ({ children }) => {
|
|
6
|
+
return (_jsx(RecoilRoot, { initializeState: recoilInitializer, children: children }));
|
|
7
|
+
};
|
|
8
|
+
return render(ui, {
|
|
9
|
+
wrapper: AllTheProviders,
|
|
10
|
+
...options
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
// re-export everything
|
|
14
|
+
export * from '@testing-library/react';
|
|
15
|
+
// override render method
|
|
16
|
+
export { customRender as render };
|
package/package.json
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@terrestris/shogun-admin",
|
|
3
|
+
"version": "16.1.0-next.1",
|
|
4
|
+
"description": "The admin UI for the SHOGun Web-mapping backend.",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "tsc && vite build",
|
|
11
|
+
"clean:dist": "rimraf ./dist/*",
|
|
12
|
+
"lint": "eslint -c .eslintrc.cjs --ext .js,.ts,.tsx src/",
|
|
13
|
+
"lint:fix": "eslint -c .eslintrc.cjs --ext .js,.ts,.tsx --fix src/",
|
|
14
|
+
"prepare": "husky",
|
|
15
|
+
"semantic-release": "npm run clean; npm run build; npx semantic-release",
|
|
16
|
+
"start": "vite",
|
|
17
|
+
"test": "jest --coverage --maxWorkers=50%",
|
|
18
|
+
"test:watch": "jest --watch",
|
|
19
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
20
|
+
},
|
|
21
|
+
"type": "module",
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/terrestris/shogun-admin.git"
|
|
25
|
+
},
|
|
26
|
+
"author": "terrestris GmbH & Co. KG <info@terrestris.de>",
|
|
27
|
+
"keywords": [
|
|
28
|
+
"SHOGun",
|
|
29
|
+
"WebMapping"
|
|
30
|
+
],
|
|
31
|
+
"license": "Apache-2.0 ",
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/terrestris/shogun-admin/issues"
|
|
34
|
+
},
|
|
35
|
+
"homepage": "https://github.com/terrestris/shogun-admin#readme",
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@ant-design/icons": "^5.3.7",
|
|
38
|
+
"@ant-design/pro-components": "^2.7.10",
|
|
39
|
+
"@casualbot/jest-sonar-reporter": "^2.3.1",
|
|
40
|
+
"@monaco-editor/react": "^4.6.0",
|
|
41
|
+
"@terrestris/base-util": "^2.0.0",
|
|
42
|
+
"@terrestris/ol-util": "^19.0.0",
|
|
43
|
+
"@terrestris/shogun-util": "^8.5.0",
|
|
44
|
+
"@uiw/react-md-editor": "^4.0.4",
|
|
45
|
+
"antd": "^5.17.2",
|
|
46
|
+
"i18next": "^23.11.5",
|
|
47
|
+
"i18next-browser-languagedetector": "^8.0.0",
|
|
48
|
+
"js-logger": "^1.6.1",
|
|
49
|
+
"js-md5": "^0.8.3",
|
|
50
|
+
"json-schema": "^0.4.0",
|
|
51
|
+
"keycloak-js": "^25.0.1",
|
|
52
|
+
"lodash": "^4.17.21",
|
|
53
|
+
"moment": "^2.30.1",
|
|
54
|
+
"monaco-editor": "^0.50.0",
|
|
55
|
+
"ol": "^9.2.4",
|
|
56
|
+
"react": "^18.3.1",
|
|
57
|
+
"react-dom": "^18.3.1",
|
|
58
|
+
"react-hotkeys-hook": "^4.5.0",
|
|
59
|
+
"react-i18next": "^14.1.2",
|
|
60
|
+
"react-router-dom": "^6.24.0",
|
|
61
|
+
"recoil": "^0.7.7",
|
|
62
|
+
"shapefile.js": "^1.1.4"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@babel/core": "^7.24.7",
|
|
66
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
67
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
|
|
68
|
+
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
69
|
+
"@babel/polyfill": "^7.12.1",
|
|
70
|
+
"@babel/preset-env": "^7.24.7",
|
|
71
|
+
"@babel/preset-react": "^7.24.7",
|
|
72
|
+
"@babel/preset-typescript": "^7.24.7",
|
|
73
|
+
"@commitlint/cli": "^19.3.0",
|
|
74
|
+
"@commitlint/config-conventional": "^19.2.2",
|
|
75
|
+
"@originjs/vite-plugin-federation": "^1.3.5",
|
|
76
|
+
"@playwright/test": "^1.45.0",
|
|
77
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
78
|
+
"@semantic-release/git": "^10.0.1",
|
|
79
|
+
"@semantic-release/github": "^10.0.6",
|
|
80
|
+
"@semantic-release/npm": "^12.0.1",
|
|
81
|
+
"@semantic-release/release-notes-generator": "^14.0.1",
|
|
82
|
+
"@terrestris/eslint-config-typescript": "^5.0.0",
|
|
83
|
+
"@terrestris/eslint-config-typescript-react": "^2.0.0",
|
|
84
|
+
"@testing-library/jest-dom": "^6.4.6",
|
|
85
|
+
"@testing-library/react": "^16.0.0",
|
|
86
|
+
"@types/jest": "^29.5.12",
|
|
87
|
+
"@types/react": "^18.3.3",
|
|
88
|
+
"@types/react-dom": "^18.3.0",
|
|
89
|
+
"@types/react-redux": "^7.1.33",
|
|
90
|
+
"@types/react-router-dom": "^5.3.3",
|
|
91
|
+
"@typescript-eslint/eslint-plugin": "^7.14.1",
|
|
92
|
+
"@typescript-eslint/eslint-plugin-tslint": "^7.0.2",
|
|
93
|
+
"@typescript-eslint/parser": "^7.14.1",
|
|
94
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
95
|
+
"babel-plugin-import": "^1.13.8",
|
|
96
|
+
"buffer": "^6.0.3",
|
|
97
|
+
"dotenv": "^16.4.5",
|
|
98
|
+
"eslint": "^8.57.0",
|
|
99
|
+
"eslint-plugin-import": "^2.29.1",
|
|
100
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
101
|
+
"husky": "^9.0.11",
|
|
102
|
+
"isomorphic-fetch": "^3.0.0",
|
|
103
|
+
"jest": "^29.7.0",
|
|
104
|
+
"jest-dom": "^4.0.0",
|
|
105
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
106
|
+
"less": "^4.2.0",
|
|
107
|
+
"mini-css-extract-plugin": "^2.9.0",
|
|
108
|
+
"openapi-types": "^12.1.3",
|
|
109
|
+
"regenerator-runtime": "^0.14.1",
|
|
110
|
+
"rimraf": "^5.0.7",
|
|
111
|
+
"semantic-release": "^24.0.0",
|
|
112
|
+
"typescript": "^5.5.2",
|
|
113
|
+
"vite": "^5.2.13",
|
|
114
|
+
"vite-plugin-externals": "^0.6.2",
|
|
115
|
+
"vite-plugin-top-level-await": "^1.4.1",
|
|
116
|
+
"vitest": "^1.6.0",
|
|
117
|
+
"whatwg-fetch": "^3.6.20"
|
|
118
|
+
},
|
|
119
|
+
"optionalDependencies": {
|
|
120
|
+
"@rollup/rollup-linux-x64-gnu": "^4.18.0"
|
|
121
|
+
},
|
|
122
|
+
"@casualbot/jest-sonar-reporter": {
|
|
123
|
+
"suiteName": "jest tests",
|
|
124
|
+
"outputDirectory": "coverage",
|
|
125
|
+
"outputName": "jest-report.xml",
|
|
126
|
+
"uniqueOutputName": "false",
|
|
127
|
+
"classNameTemplate": "{classname}-{title}",
|
|
128
|
+
"titleTemplate": "{classname}-{title}",
|
|
129
|
+
"ancestorSeparator": " › ",
|
|
130
|
+
"usePathForSuiteName": "true",
|
|
131
|
+
"relativePaths": "true"
|
|
132
|
+
},
|
|
133
|
+
"engines": {
|
|
134
|
+
"node": ">=20",
|
|
135
|
+
"npm": ">=10"
|
|
136
|
+
}
|
|
137
|
+
}
|