@iobroker/adapter-react-v5 7.5.1 → 7.6.0
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 +22 -22
- package/build/AdminConnection.js.map +1 -1
- package/build/Components/404.js +13 -13
- package/build/Components/404.js.map +1 -1
- package/build/Components/ColorPicker.js.map +1 -1
- package/build/Components/CopyToClipboard.js.map +1 -1
- package/build/Components/CustomModal.js.map +1 -1
- package/build/Components/FileViewer.js.map +1 -1
- package/build/Components/Icon.js.map +1 -1
- package/build/Components/IconPicker.js.map +1 -1
- package/build/Components/IconSelector.js.map +1 -1
- package/build/Components/IobUri.js.map +1 -1
- package/build/Components/Loader.js +223 -223
- package/build/Components/Loader.js.map +1 -1
- package/build/Components/Loaders/MV.js.map +1 -1
- package/build/Components/Loaders/PT.js +103 -103
- package/build/Components/Loaders/PT.js.map +1 -1
- package/build/Components/Loaders/Vendor.js +7 -7
- package/build/Components/Loaders/Vendor.js.map +1 -1
- package/build/Components/MDUtils.js.map +1 -1
- package/build/Components/ObjectBrowser.js +1 -1
- package/build/Components/ObjectBrowser.js.map +1 -1
- package/build/Components/Router.js.map +1 -1
- package/build/Components/SaveCloseButtons.js.map +1 -1
- package/build/Components/SimpleCron/cronText.js.map +1 -1
- package/build/Components/SimpleCron/index.js.map +1 -1
- package/build/Components/TabContainer.js.map +1 -1
- package/build/Components/TabContent.js.map +1 -1
- package/build/Components/TabHeader.js.map +1 -1
- package/build/Components/TableResize.js.map +1 -1
- package/build/Components/TextWithIcon.js.map +1 -1
- package/build/Components/ToggleThemeMenu.js.map +1 -1
- package/build/Components/TreeTable.js.map +1 -1
- package/build/Components/UploadImage.js +305 -305
- package/build/Components/UploadImage.js.map +1 -1
- package/build/Components/withWidth.js.map +1 -1
- package/build/Connection.js.map +1 -1
- package/build/Dialogs/ComplexCron.js.map +1 -1
- package/build/Dialogs/Confirm.js.map +1 -1
- package/build/Dialogs/Cron.js.map +1 -1
- package/build/Dialogs/Error.js.map +1 -1
- package/build/Dialogs/Message.js.map +1 -1
- package/build/Dialogs/SelectFile.js.map +1 -1
- package/build/Dialogs/SimpleCron.js.map +1 -1
- package/build/Dialogs/TextInput.d.ts +1 -1
- package/build/Dialogs/TextInput.js.map +1 -1
- package/build/Prompt.js +7 -7
- package/build/Prompt.js.map +1 -1
- package/build/assets/devices/parseNames.js.map +1 -1
- package/build/assets/devices.json +1 -1
- package/build/assets/lamp_ceiling.svg +8 -8
- package/build/assets/lamp_table.svg +7 -7
- package/build/assets/no_icon.svg +9 -9
- package/build/assets/rooms/parseNames.js.map +1 -1
- package/build/assets/rooms.json +1 -1
- package/build/dictionary.js.map +1 -1
- package/build/i18n.js.map +1 -1
- package/build/icons/IconAdapter.js.map +1 -1
- package/build/icons/IconAlias.js.map +1 -1
- package/build/icons/IconButtonImage.js.map +1 -1
- package/build/icons/IconChannel.js.map +1 -1
- package/build/icons/IconClearFilter.js.map +1 -1
- package/build/icons/IconClosed.js.map +1 -1
- package/build/icons/IconCopy.js.map +1 -1
- package/build/icons/IconDevice.js.map +1 -1
- package/build/icons/IconDocument.js.map +1 -1
- package/build/icons/IconDocumentReadOnly.js.map +1 -1
- package/build/icons/IconExpert.js.map +1 -1
- package/build/icons/IconFx.js +1 -1
- package/build/icons/IconFx.js.map +1 -1
- package/build/icons/IconInstance.js.map +1 -1
- package/build/icons/IconLogout.js +1 -1
- package/build/icons/IconLogout.js.map +1 -1
- package/build/icons/IconNoIcon.js.map +1 -1
- package/build/icons/IconOpen.js.map +1 -1
- package/build/icons/IconProps.js.map +1 -1
- package/build/icons/IconState.js.map +1 -1
- package/build/icons/IconVacuum.js.map +1 -1
- package/build/index.css +56 -56
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/index.js.map +1 -1
- package/build/modulefederation.admin.config.d.ts +13 -0
- package/build/modulefederation.admin.config.js +44 -0
- package/build/modulefederation.admin.config.js.map +1 -0
- package/craco-module-federation.js +62 -62
- package/index.css +56 -56
- package/modulefederation.admin.config.d.ts +13 -0
- package/modulefederation.admin.config.js +48 -33
- package/package.json +12 -10
- package/tasksExample.js +91 -91
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"./src/","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EACH,WAAW,EAMX,gBAAgB,GACnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACH,UAAU,EACV,UAAU,EACV,eAAe,GAGlB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,YAAY,EAAmB,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAOH,kBAAkB,EAClB,aAAa,EACb,0BAA0B,E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,MAAM,sBAAsB,CAAC,CAAC,aAAa;AACpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,gBAAgB,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAC,CAAC,aAAa;AAC1F,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,eAAe,IAAI,SAAS,EAAE,MAAM,qBAAqB,CAAC,CAAC,aAAa;AACjF,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EACH,gBAAgB,EAMhB,aAAa,GAChB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAIH,eAAe,EACf,eAAe,EACf,cAAc,EACd,WAAW,EACX,UAAU,GACb,MAAM,qBAAqB,CAAC;AAgB7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC","sourcesContent":["export { Theme } from './Theme';\nexport { GenericApp } from './GenericApp';\nexport { I18n } from './i18n';\nexport { printPrompt } from './Prompt';\nexport { ColorPicker } from './Components/ColorPicker';\nexport { ComplexCron } from './Components/ComplexCron';\nexport { copy } from './Components/CopyToClipboard';\nexport { CustomModal } from './Components/CustomModal';\nexport {\n FileBrowser,\n type MetaACL,\n type MetaObject,\n type FileBrowserProps,\n type FolderOrFileItem,\n type Folders,\n FileBrowserClass,\n} from './Components/FileBrowser';\nexport {\n EXTENSIONS,\n FileViewer,\n FileViewerClass,\n type FileViewerProps,\n type FileViewerState,\n} from './Components/FileViewer';\nexport { getSystemIcon, getSelectIdIcon, Icon } from './Components/Icon';\nexport { isDeviceIcon, type DeviceType, IconDeviceType } from './Components/IconDeviceType';\nexport { IconPicker } from './Components/IconPicker';\nexport { IconSelector } from './Components/IconSelector';\nexport { Image } from './Components/Image';\nexport { Loader } from './Components/Loader';\nexport { Logo } from './Components/Logo';\nexport { MDUtils } from './Components/MDUtils';\nexport {\n type TreeItemData,\n type TreeItem,\n type ObjectBrowserFilter,\n type ObjectBrowserCustomFilter,\n type ObjectBrowserColumn,\n type ObjectBrowserProps,\n ObjectBrowserClass,\n ObjectBrowser,\n getSelectIdIconFromObjects,\n ITEM_IMAGES,\n} from './Components/ObjectBrowser';\nexport { Router } from './Components/Router';\nexport { SaveCloseButtons } from './Components/SaveCloseButtons';\nexport { Schedule, type ScheduleConfig } from './Components/Schedule';\nexport { SelectWithIcon } from './Components/SelectWithIcon';\nexport { TabContainer } from './Components/TabContainer';\nexport { TabContent } from './Components/TabContent';\nexport { TabHeader } from './Components/TabHeader';\nexport { TableResize } from './Components/TableResize';\nexport { TextWithIcon } from './Components/TextWithIcon';\nexport { ToggleThemeMenu } from './Components/ToggleThemeMenu';\nexport { TreeTable } from './Components/TreeTable';\nexport { UploadImage } from './Components/UploadImage';\nexport { Utils } from './Components/Utils';\nexport { withWidth } from './Components/withWidth';\nexport { cron2state, SimpleCron } from './Components/SimpleCron';\nexport { convertCronToText } from './Components/SimpleCron/cronText';\nexport { LoaderVendor } from './Components/Loaders/Vendor';\nexport { LoaderPT } from './Components/Loaders/PT';\nexport { LoaderMV } from './Components/Loaders/MV';\nexport { type IconProps } from './icons/IconProps';\nexport { IconAdapter } from './icons/IconAdapter';\nexport { IconAlias } from './icons/IconAlias';\nexport { IconButtonImage } from './icons/IconButtonImage';\nexport { IconChannel } from './icons/IconChannel';\nexport { IconClearFilter } from './icons/IconClearFilter';\nexport { IconClosed } from './icons/IconClosed';\nexport { IconCopy } from './icons/IconCopy';\nexport { IconDevice } from './icons/IconDevice';\nexport { IconDocument } from './icons/IconDocument';\nexport { IconDocumentReadOnly } from './icons/IconDocumentReadOnly';\nexport { IconExpert } from './icons/IconExpert';\nexport { IconFx } from './icons/IconFx';\nexport { IconInstance } from './icons/IconInstance';\nexport { IconLogout } from './icons/IconLogout';\nexport { IconNoIcon } from './icons/IconNoIcon';\nexport { IconOpen } from './icons/IconOpen';\nexport { IconState } from './icons/IconState';\nexport { IconVacuum } from './icons/IconVacuum';\nexport { DialogComplexCron } from './Dialogs/ComplexCron';\nexport { DialogComplexCron as ComplexCronDialog } from './Dialogs/ComplexCron'; // deprecated\nexport { DialogConfirm } from './Dialogs/Confirm';\nexport { DialogConfirm as Confirm } from './Dialogs/Confirm'; // deprecated\nexport { DialogCron } from './Dialogs/Cron';\nexport { DialogCron as Cron } from './Dialogs/Cron'; // deprecated\nexport { DialogError } from './Dialogs/Error';\nexport { DialogError as Error } from './Dialogs/Error'; // deprecated\nexport { DialogMessage } from './Dialogs/Message';\nexport { DialogMessage as Message } from './Dialogs/Message'; // deprecated\nexport { DialogSelectID } from './Dialogs/SelectID';\nexport { DialogSelectID as SelectID } from './Dialogs/SelectID'; // deprecated\nexport { DialogSelectFile } from './Dialogs/SelectFile';\nexport { DialogSelectFile as SelectFile } from './Dialogs/SelectFile'; // deprecated\nexport { DialogSimpleCron } from './Dialogs/SimpleCron';\nexport { DialogSimpleCron as SimpleCronDialog } from './Dialogs/SimpleCron'; // deprecated\nexport { DialogTextInput } from './Dialogs/TextInput';\nexport { DialogTextInput as TextInput } from './Dialogs/TextInput'; // deprecated\nexport { Connection, PROGRESS, ERRORS, PERMISSION_ERROR } from './Connection';\nexport { AdminConnection } from './AdminConnection';\nexport { dictionary } from './dictionary';\nexport {\n LegacyConnection,\n type ConnectOptions,\n type CompactSystemRepositoryEntry,\n type CompactSystemRepository,\n type SocketClient,\n type BinaryStateChangeHandler,\n pattern2RegEx,\n} from './LegacyConnection';\n\nexport {\n type IobUri,\n type IobUriType,\n type IobUriParsed,\n getAttrInObject,\n setAttrInObject,\n iobUriToString,\n iobUriParse,\n iobUriRead,\n} from './Components/IobUri';\n\nexport type {\n Translate,\n ConnectionProps,\n OldObject,\n ObjectChangeHandler,\n ThemeName,\n ThemeType,\n GenericAppProps,\n GenericAppSettings,\n IobTheme,\n Width,\n GenericAppState,\n} from './types';\n\nexport { moduleFederationShared } from './modulefederation.admin.config';\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Admin shares these modules for all components
|
|
3
|
+
*
|
|
4
|
+
* @param packageJson - package.json or list of modules that used in component
|
|
5
|
+
* @return Object with shared modules for "federation"
|
|
6
|
+
*/
|
|
7
|
+
export declare function moduleFederationShared(packageJson?: {
|
|
8
|
+
dependencies: Record<string, string>;
|
|
9
|
+
devDependencies?: Record<string, string>;
|
|
10
|
+
} | string[]): Record<string, {
|
|
11
|
+
requiredVersion: '*';
|
|
12
|
+
singleton: true;
|
|
13
|
+
}>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const makeShared = (pkgs) => {
|
|
2
|
+
const result = {};
|
|
3
|
+
pkgs.forEach(packageName => {
|
|
4
|
+
result[packageName] = {
|
|
5
|
+
requiredVersion: '*',
|
|
6
|
+
singleton: true,
|
|
7
|
+
};
|
|
8
|
+
});
|
|
9
|
+
return result;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Admin shares these modules for all components
|
|
13
|
+
*
|
|
14
|
+
* @param packageJson - package.json or list of modules that used in component
|
|
15
|
+
* @return Object with shared modules for "federation"
|
|
16
|
+
*/
|
|
17
|
+
export function moduleFederationShared(packageJson) {
|
|
18
|
+
const list = [
|
|
19
|
+
'@emotion/react',
|
|
20
|
+
'@emotion/styled',
|
|
21
|
+
'@iobroker/adapter-react-v5',
|
|
22
|
+
'@iobroker/json-config',
|
|
23
|
+
'@iobroker/dm-gui-components',
|
|
24
|
+
'@mui/icons-material',
|
|
25
|
+
'@mui/material',
|
|
26
|
+
'@mui/x-date-pickers',
|
|
27
|
+
'date-fns',
|
|
28
|
+
'leaflet',
|
|
29
|
+
'leaflet-geosearch',
|
|
30
|
+
'react',
|
|
31
|
+
'react-ace',
|
|
32
|
+
'react-dom',
|
|
33
|
+
'react-dropzone',
|
|
34
|
+
'semver',
|
|
35
|
+
];
|
|
36
|
+
if (Array.isArray(packageJson)) {
|
|
37
|
+
return makeShared(list.filter(packageName => packageJson.includes(packageName)));
|
|
38
|
+
}
|
|
39
|
+
if (packageJson && (packageJson.dependencies || packageJson.devDependencies)) {
|
|
40
|
+
return makeShared(list.filter(packageName => packageJson.dependencies[packageName] || packageJson.devDependencies[packageName]));
|
|
41
|
+
}
|
|
42
|
+
return makeShared(list);
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=modulefederation.admin.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modulefederation.admin.config.js","sourceRoot":"./src/","sources":["modulefederation.admin.config.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,GAAG,CAAC,IAAc,EAA6D,EAAE;IAC7F,MAAM,MAAM,GAA8D,EAAE,CAAC;IAC7E,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;QACvB,MAAM,CAAC,WAAW,CAAC,GAAG;YAClB,eAAe,EAAE,GAAG;YACpB,SAAS,EAAE,IAAI;SAClB,CAAC;IACN,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CAAC,WAG3B;IACR,MAAM,IAAI,GAAa;QACnB,gBAAgB;QAChB,iBAAiB;QACjB,4BAA4B;QAC5B,uBAAuB;QACvB,6BAA6B;QAC7B,qBAAqB;QACrB,eAAe;QACf,qBAAqB;QACrB,UAAU;QACV,SAAS;QACT,mBAAmB;QACnB,OAAO;QACP,WAAW;QACX,WAAW;QACX,gBAAgB;QAChB,QAAQ;KACX,CAAC;IAEF,IAAI,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC;QAC7B,OAAO,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IACrF,CAAC;IAED,IAAI,WAAW,IAAI,CAAC,WAAW,CAAC,YAAY,IAAI,WAAW,CAAC,eAAe,CAAC,EAAE,CAAC;QAC3E,OAAO,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,YAAY,CAAC,WAAW,CAAC,IAAI,WAAW,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IACrI,CAAC;IAED,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC","sourcesContent":["const makeShared = (pkgs: string[]): Record<string, { requiredVersion: '*'; singleton: true }> => {\n const result: Record<string, { requiredVersion: '*'; singleton: true }> = {};\n pkgs.forEach(packageName => {\n result[packageName] = {\n requiredVersion: '*',\n singleton: true,\n };\n });\n return result;\n};\n\n/**\n * Admin shares these modules for all components\n *\n * @param packageJson - package.json or list of modules that used in component\n * @return Object with shared modules for \"federation\"\n */\nexport function moduleFederationShared(packageJson?: {\n dependencies: Record<string, string>;\n devDependencies?: Record<string, string>;\n} | string[]): Record<string, { requiredVersion: '*'; singleton: true }> {\n const list: string[] = [\n '@emotion/react',\n '@emotion/styled',\n '@iobroker/adapter-react-v5',\n '@iobroker/json-config',\n '@iobroker/dm-gui-components',\n '@mui/icons-material',\n '@mui/material',\n '@mui/x-date-pickers',\n 'date-fns',\n 'leaflet',\n 'leaflet-geosearch',\n 'react',\n 'react-ace',\n 'react-dom',\n 'react-dropzone',\n 'semver',\n ];\n\n if (Array.isArray(packageJson)) {\n return makeShared(list.filter(packageName => packageJson.includes(packageName)));\n }\n\n if (packageJson && (packageJson.dependencies || packageJson.devDependencies)) {\n return makeShared(list.filter(packageName => packageJson.dependencies[packageName] || packageJson.devDependencies[packageName]));\n }\n\n return makeShared(list);\n}\n"]}
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
// const webpack = require('webpack');
|
|
2
|
-
// const paths = require('react-scripts/config/paths');
|
|
3
|
-
|
|
4
|
-
const getModuleFederationConfigPath = (additionalPaths = []) => {
|
|
5
|
-
const path = require('node:path');
|
|
6
|
-
const fs = require('node:fs');
|
|
7
|
-
const appDirectory = fs.realpathSync(process.cwd());
|
|
8
|
-
const resolveApp = relativePath => path.resolve(appDirectory, relativePath);
|
|
9
|
-
|
|
10
|
-
const moduleFederationConfigFiles = ['modulefederation.config.js', ...additionalPaths];
|
|
11
|
-
return moduleFederationConfigFiles.map(resolveApp).filter(fs.existsSync).shift();
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
module.exports = {
|
|
15
|
-
overrideWebpackConfig: ({ webpackConfig, pluginOptions }) => {
|
|
16
|
-
const moduleFederationConfigPath = getModuleFederationConfigPath();
|
|
17
|
-
|
|
18
|
-
if (moduleFederationConfigPath) {
|
|
19
|
-
webpackConfig.output.publicPath = 'auto';
|
|
20
|
-
|
|
21
|
-
if (pluginOptions?.useNamedChunkIds) {
|
|
22
|
-
webpackConfig.optimization.chunkIds = 'named';
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const htmlWebpackPlugin = webpackConfig.plugins.find(
|
|
26
|
-
plugin => plugin.constructor.name === 'HtmlWebpackPlugin',
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
const myModule = require(moduleFederationConfigPath);
|
|
30
|
-
|
|
31
|
-
htmlWebpackPlugin.userOptions = {
|
|
32
|
-
...htmlWebpackPlugin.userOptions,
|
|
33
|
-
publicPath: './',
|
|
34
|
-
excludeChunks: [myModule.name],
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
const ModuleFederationPlugin = require('webpack/lib/container/ModuleFederationPlugin');
|
|
38
|
-
|
|
39
|
-
webpackConfig.plugins = [...webpackConfig.plugins, new ModuleFederationPlugin(myModule)];
|
|
40
|
-
|
|
41
|
-
// webpackConfig.module = {
|
|
42
|
-
// ...webpackConfig.module,
|
|
43
|
-
// generator: {
|
|
44
|
-
// "asset/resource": {
|
|
45
|
-
// publicPath: paths.publicUrlOrPath,
|
|
46
|
-
// },
|
|
47
|
-
// },
|
|
48
|
-
// };
|
|
49
|
-
}
|
|
50
|
-
return webpackConfig;
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
overrideDevServerConfig: ({ devServerConfig }) => {
|
|
54
|
-
devServerConfig.headers = {
|
|
55
|
-
'Access-Control-Allow-Origin': '*',
|
|
56
|
-
'Access-Control-Allow-Methods': '*',
|
|
57
|
-
'Access-Control-Allow-Headers': '*',
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
return devServerConfig;
|
|
61
|
-
},
|
|
62
|
-
};
|
|
1
|
+
// const webpack = require('webpack');
|
|
2
|
+
// const paths = require('react-scripts/config/paths');
|
|
3
|
+
|
|
4
|
+
const getModuleFederationConfigPath = (additionalPaths = []) => {
|
|
5
|
+
const path = require('node:path');
|
|
6
|
+
const fs = require('node:fs');
|
|
7
|
+
const appDirectory = fs.realpathSync(process.cwd());
|
|
8
|
+
const resolveApp = relativePath => path.resolve(appDirectory, relativePath);
|
|
9
|
+
|
|
10
|
+
const moduleFederationConfigFiles = ['modulefederation.config.js', ...additionalPaths];
|
|
11
|
+
return moduleFederationConfigFiles.map(resolveApp).filter(fs.existsSync).shift();
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
module.exports = {
|
|
15
|
+
overrideWebpackConfig: ({ webpackConfig, pluginOptions }) => {
|
|
16
|
+
const moduleFederationConfigPath = getModuleFederationConfigPath();
|
|
17
|
+
|
|
18
|
+
if (moduleFederationConfigPath) {
|
|
19
|
+
webpackConfig.output.publicPath = 'auto';
|
|
20
|
+
|
|
21
|
+
if (pluginOptions?.useNamedChunkIds) {
|
|
22
|
+
webpackConfig.optimization.chunkIds = 'named';
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const htmlWebpackPlugin = webpackConfig.plugins.find(
|
|
26
|
+
plugin => plugin.constructor.name === 'HtmlWebpackPlugin',
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
const myModule = require(moduleFederationConfigPath);
|
|
30
|
+
|
|
31
|
+
htmlWebpackPlugin.userOptions = {
|
|
32
|
+
...htmlWebpackPlugin.userOptions,
|
|
33
|
+
publicPath: './',
|
|
34
|
+
excludeChunks: [myModule.name],
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const ModuleFederationPlugin = require('webpack/lib/container/ModuleFederationPlugin');
|
|
38
|
+
|
|
39
|
+
webpackConfig.plugins = [...webpackConfig.plugins, new ModuleFederationPlugin(myModule)];
|
|
40
|
+
|
|
41
|
+
// webpackConfig.module = {
|
|
42
|
+
// ...webpackConfig.module,
|
|
43
|
+
// generator: {
|
|
44
|
+
// "asset/resource": {
|
|
45
|
+
// publicPath: paths.publicUrlOrPath,
|
|
46
|
+
// },
|
|
47
|
+
// },
|
|
48
|
+
// };
|
|
49
|
+
}
|
|
50
|
+
return webpackConfig;
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
overrideDevServerConfig: ({ devServerConfig }) => {
|
|
54
|
+
devServerConfig.headers = {
|
|
55
|
+
'Access-Control-Allow-Origin': '*',
|
|
56
|
+
'Access-Control-Allow-Methods': '*',
|
|
57
|
+
'Access-Control-Allow-Headers': '*',
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
return devServerConfig;
|
|
61
|
+
},
|
|
62
|
+
};
|
package/index.css
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2018-2023 Denis Haev (bluefox) <dogafox@gmail.com>
|
|
3
|
-
*
|
|
4
|
-
* MIT License
|
|
5
|
-
*
|
|
6
|
-
**/
|
|
7
|
-
|
|
8
|
-
html {
|
|
9
|
-
height: 100%;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
body {
|
|
13
|
-
margin: 0;
|
|
14
|
-
padding: 0;
|
|
15
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans',
|
|
16
|
-
'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
17
|
-
-webkit-font-smoothing: antialiased;
|
|
18
|
-
-moz-osx-font-smoothing: grayscale;
|
|
19
|
-
width: 100%;
|
|
20
|
-
height: 100%;
|
|
21
|
-
overflow: hidden;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/* scrollbar */
|
|
25
|
-
::-webkit-scrollbar-track {
|
|
26
|
-
background-color: #ccc;
|
|
27
|
-
border-radius: 5px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
::-webkit-scrollbar {
|
|
31
|
-
width: 5px;
|
|
32
|
-
height: 5px;
|
|
33
|
-
background-color: #ccc;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
::-webkit-scrollbar-thumb {
|
|
37
|
-
background-color: #575757;
|
|
38
|
-
border-radius: 5px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
#root {
|
|
42
|
-
height: 100%;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.App {
|
|
46
|
-
height: 100%;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@keyframes glow {
|
|
50
|
-
from {
|
|
51
|
-
background-color: initial;
|
|
52
|
-
}
|
|
53
|
-
to {
|
|
54
|
-
background-color: #58c458;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2018-2023 Denis Haev (bluefox) <dogafox@gmail.com>
|
|
3
|
+
*
|
|
4
|
+
* MIT License
|
|
5
|
+
*
|
|
6
|
+
**/
|
|
7
|
+
|
|
8
|
+
html {
|
|
9
|
+
height: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
body {
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding: 0;
|
|
15
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans',
|
|
16
|
+
'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
17
|
+
-webkit-font-smoothing: antialiased;
|
|
18
|
+
-moz-osx-font-smoothing: grayscale;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* scrollbar */
|
|
25
|
+
::-webkit-scrollbar-track {
|
|
26
|
+
background-color: #ccc;
|
|
27
|
+
border-radius: 5px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
::-webkit-scrollbar {
|
|
31
|
+
width: 5px;
|
|
32
|
+
height: 5px;
|
|
33
|
+
background-color: #ccc;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
::-webkit-scrollbar-thumb {
|
|
37
|
+
background-color: #575757;
|
|
38
|
+
border-radius: 5px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
#root {
|
|
42
|
+
height: 100%;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.App {
|
|
46
|
+
height: 100%;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@keyframes glow {
|
|
50
|
+
from {
|
|
51
|
+
background-color: initial;
|
|
52
|
+
}
|
|
53
|
+
to {
|
|
54
|
+
background-color: #58c458;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Admin shares these modules for all components
|
|
3
|
+
*
|
|
4
|
+
* @param packageJson - package.json or list of modules that used in component
|
|
5
|
+
* @return Object with shared modules for "federation"
|
|
6
|
+
*/
|
|
7
|
+
export declare const moduleFederationShared: (packageJson?: {
|
|
8
|
+
dependencies: Record<string, string>;
|
|
9
|
+
devDependencies?: Record<string, string>;
|
|
10
|
+
} | string[]) => Record<string, {
|
|
11
|
+
requiredVersion: "*";
|
|
12
|
+
singleton: true;
|
|
13
|
+
}>;
|
|
@@ -1,33 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
const result = {};
|
|
3
|
-
pkgs.forEach(packageName => {
|
|
4
|
-
result[packageName] = {
|
|
5
|
-
requiredVersion: '*',
|
|
6
|
-
singleton: true,
|
|
7
|
-
};
|
|
8
|
-
});
|
|
9
|
-
return result;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
'@
|
|
20
|
-
'@
|
|
21
|
-
'@
|
|
22
|
-
'@
|
|
23
|
-
'
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'react
|
|
31
|
-
'
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
const makeShared = (pkgs) => {
|
|
2
|
+
const result = {};
|
|
3
|
+
pkgs.forEach(packageName => {
|
|
4
|
+
result[packageName] = {
|
|
5
|
+
requiredVersion: '*',
|
|
6
|
+
singleton: true,
|
|
7
|
+
};
|
|
8
|
+
});
|
|
9
|
+
return result;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Admin shares these modules for all components
|
|
13
|
+
*
|
|
14
|
+
* @param packageJson - package.json or list of modules that used in component
|
|
15
|
+
* @return Object with shared modules for "federation"
|
|
16
|
+
*/
|
|
17
|
+
const moduleFederationShared = (packageJson) => {
|
|
18
|
+
const list = [
|
|
19
|
+
'@emotion/react',
|
|
20
|
+
'@emotion/styled',
|
|
21
|
+
'@iobroker/adapter-react-v5',
|
|
22
|
+
'@iobroker/json-config',
|
|
23
|
+
'@iobroker/dm-gui-components',
|
|
24
|
+
'@mui/icons-material',
|
|
25
|
+
'@mui/material',
|
|
26
|
+
'@mui/x-date-pickers',
|
|
27
|
+
'date-fns',
|
|
28
|
+
'leaflet',
|
|
29
|
+
'leaflet-geosearch',
|
|
30
|
+
'react',
|
|
31
|
+
'react-ace',
|
|
32
|
+
'react-dom',
|
|
33
|
+
'react-dropzone',
|
|
34
|
+
'semver',
|
|
35
|
+
];
|
|
36
|
+
if (Array.isArray(packageJson)) {
|
|
37
|
+
return makeShared(list.filter(packageName => packageJson.includes(packageName)));
|
|
38
|
+
}
|
|
39
|
+
if (packageJson && (packageJson.dependencies || packageJson.devDependencies)) {
|
|
40
|
+
return makeShared(list.filter(packageName => packageJson.dependencies[packageName] || packageJson.devDependencies[packageName]));
|
|
41
|
+
}
|
|
42
|
+
return makeShared(list);
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=modulefederation.admin.config.js.map
|
|
45
|
+
|
|
46
|
+
module.exports = {
|
|
47
|
+
moduleFederationShared,
|
|
48
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iobroker/adapter-react-v5",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.6.0",
|
|
4
4
|
"description": "React components to develop ioBroker interfaces with react.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "bluefox",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"LICENSE",
|
|
45
45
|
"tasksExample.js",
|
|
46
46
|
"craco-module-federation.js",
|
|
47
|
+
"modulefederation.admin.config.d.ts",
|
|
47
48
|
"modulefederation.admin.config.js"
|
|
48
49
|
],
|
|
49
50
|
"license": "MIT",
|
|
@@ -59,17 +60,17 @@
|
|
|
59
60
|
"@emotion/styled": "^11.14.0",
|
|
60
61
|
"@iobroker/js-controller-common": "^7.0.6",
|
|
61
62
|
"@iobroker/js-controller-common-db": "^7.0.6",
|
|
62
|
-
"@iobroker/socket-client": "4.0
|
|
63
|
+
"@iobroker/socket-client": "4.1.0",
|
|
63
64
|
"@iobroker/types": "^7.0.6",
|
|
64
|
-
"@mui/icons-material": "^6.4.
|
|
65
|
-
"@mui/material": "^6.4.
|
|
66
|
-
"@sentry/browser": "^9.
|
|
67
|
-
"cronstrue": "^2.
|
|
65
|
+
"@mui/icons-material": "^6.4.7",
|
|
66
|
+
"@mui/material": "^6.4.7",
|
|
67
|
+
"@sentry/browser": "^9.5.0",
|
|
68
|
+
"cronstrue": "^2.56.0",
|
|
68
69
|
"file-selector": "^2.1.2",
|
|
69
70
|
"react-color": "^2.19.3",
|
|
70
71
|
"react-colorful": "^5.6.1",
|
|
71
72
|
"react-cropper": "^2.3.3",
|
|
72
|
-
"react-dropzone": "^14.3.
|
|
73
|
+
"react-dropzone": "^14.3.8",
|
|
73
74
|
"react-inlinesvg": "^4.2.0"
|
|
74
75
|
},
|
|
75
76
|
"devDependencies": {
|
|
@@ -80,11 +81,12 @@
|
|
|
80
81
|
"@babel/preset-flow": "^7.25.9",
|
|
81
82
|
"@babel/preset-react": "^7.26.3",
|
|
82
83
|
"@iobroker/eslint-config": "^1.0.0",
|
|
83
|
-
"@types/node": "^22.13.
|
|
84
|
+
"@types/node": "^22.13.9",
|
|
84
85
|
"@types/react": "^18.3.18",
|
|
85
86
|
"@types/react-color": "^3.0.13",
|
|
86
87
|
"ajv": "^8.17.1",
|
|
87
88
|
"ts-node": "^10.9.2",
|
|
88
|
-
"typescript": "
|
|
89
|
-
}
|
|
89
|
+
"typescript": "~5.7.3"
|
|
90
|
+
},
|
|
91
|
+
"gitHead": "a0a7fc4fc182fbfd4f7aae1345de3198d9ae49aa"
|
|
90
92
|
}
|