@imperium/layout 14.8.0 → 14.8.2
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/dist/esm/content/components/ContentComponent.js +1 -1
- package/dist/esm/content/components/ContentComponent.js.map +1 -1
- package/dist/esm/content/components/SidebarItemWrapper.js +1 -1
- package/dist/esm/content/components/SidebarItemWrapper.js.map +1 -1
- package/dist/esm/datahooks/Permissions.js +1 -1
- package/dist/esm/datahooks/Permissions.js.map +1 -1
- package/dist/esm/layout/components/LayoutItemWrapper.js +1 -1
- package/dist/esm/layout/components/LayoutItemWrapper.js.map +1 -1
- package/dist/esm/layout/moveItems.js +2 -2
- package/dist/esm/layout/moveItems.js.map +1 -1
- package/dist/stats.html +1 -1
- package/dist/stats.txt +92 -0
- package/package.json +4 -4
|
@@ -15,7 +15,7 @@ import styles from './styles.module.css.js';
|
|
|
15
15
|
debug("imperium.layout.content.components.ContentComponent");
|
|
16
16
|
function useDeepCompareMemoize(value) {
|
|
17
17
|
const ref = useRef();
|
|
18
|
-
if (!value)
|
|
18
|
+
if (!value && !ref.current)
|
|
19
19
|
return ref.current;
|
|
20
20
|
if (!isEqual(value, ref.current)) {
|
|
21
21
|
ref.current = value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentComponent.js","sources":["../../../../src/content/components/ContentComponent.tsx"],"sourcesContent":["import type {DefineRouteOptions} from '@imperium/router';\nimport debug from 'debug';\nimport {isEqual} from 'lodash-es';\nimport {type DependencyList, type EffectCallback, useEffect, useRef, useState} from 'react';\nimport {useDispatch} from 'react-redux';\nimport {Button} from 'semantic-ui-react';\nimport {useMediaQuery} from 'react-responsive';\nimport {DataHooks} from '../../datahooks/DataHooks';\nimport {actions} from '../../state';\nimport {sortWeightedItems} from '../../utils';\nimport {useBuildContentData} from '../hooks/useBuildContentData';\nimport type {Page, RouteParameters, SidebarItem} from '../types';\nimport {Header} from './Header';\nimport {SidebarItemWrapper} from './SidebarItemWrapper';\nimport styles from './styles.module.css';\n\nconst d = debug('imperium.layout.content.components.ContentComponent');\n\ninterface ContentComponentProps<T extends DefineRouteOptions, K extends keyof T> {\n\tpage: Page<T, K>;\n\tparams: RouteParameters<T[K]['params']>;\n}\n\nfunction useDeepCompareMemoize(value: any) {\n\tconst ref = useRef();\n\tif (!value) return ref.current;\n\tif (!isEqual(value, ref.current)) {\n\t\tref.current = value;\n\t}\n\treturn ref.current;\n}\n\nfunction useDeepCompareEffect(callback: EffectCallback, deps: DependencyList) {\n\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\tuseEffect(callback, deps.map(useDeepCompareMemoize));\n}\n\nexport function ContentComponent<T extends DefineRouteOptions, K extends keyof T>({page, params}: ContentComponentProps<T, K>) {\n\tconst dispatch = useDispatch();\n\tconst data = useBuildContentData({stateSelectorHook: page.stateSelectorHook, permissionSelectorHook: page.permissionSelectorHook, params});\n\tconst [visible, setVisible] = useState(true);\n\tconst isMobile = useMediaQuery({query: '(max-width: 900px)'});\n\n\tuseDeepCompareEffect(() => {\n\t\tdispatch(actions.setParams(params));\n\t}, [dispatch, params]);\n\n\tuseEffect(() => {\n\t\tif (typeof page.header === 'string') {\n\t\t\tdispatch(actions.setPageHeader(page.header));\n\t\t} else {\n\t\t\tdispatch(actions.setPageHeader(''));\n\t\t}\n\t}, [dispatch, page.header]);\n\n\tconst content = page.content(data);\n\tconst sidebarItems = sortWeightedItems(page.sidebar || []);\n\n\tconst sidebar =\n\t\tsidebarItems.length > 0 ? (\n\t\t\t<div className={`${styles.sidebar} imperiumContentSidebar`}>\n\t\t\t\t<div className={styles.sidebarButton}>\n\t\t\t\t\t<Button icon=\"angle right\" size=\"big\" onClick={() => setVisible(false)} fluid style={{paddingLeft: 0}} />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.sidebarContent}>\n\t\t\t\t\t<div className={`${styles.actionsHeader} imperiumContentSidebarHeader`}>\n\t\t\t\t\t\t<h3>Actions</h3>\n\t\t\t\t\t</div>\n\t\t\t\t\t{sidebarItems.map((sb, index) => {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t// eslint-disable-next-line react/no-array-index-key\n\t\t\t\t\t\t\t<div className={styles.sidebarItem} key={index}>\n\t\t\t\t\t\t\t\t<SidebarItemWrapper item={sb as SidebarItem<T, K>} params={params} data={data} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t) : null;\n\n\tconst mobileSidebar =\n\t\tsidebarItems.length > 0 ? (\n\t\t\t<div className={`${styles.sidebarMobile} imperiumContentSidebar`}>\n\t\t\t\t<div className={`${styles.actionsHeader} imperiumContentSidebarHeader`}>\n\t\t\t\t\t<h3>Actions</h3>\n\t\t\t\t</div>\n\t\t\t\t{sidebarItems.map((sb, index) => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t// eslint-disable-next-line react/no-array-index-key\n\t\t\t\t\t\t<div className={styles.sidebarItem} key={index}>\n\t\t\t\t\t\t\t<SidebarItemWrapper item={sb as SidebarItem<T, K>} params={params} data={data} />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t);\n\t\t\t\t})}\n\t\t\t</div>\n\t\t) : null;\n\n\treturn (\n\t\t<div className={`${styles.parent} imperiumContentWrapperParent`}>\n\t\t\t<div className={`${styles.wrapper} imperiumContentWrapper`}>\n\t\t\t\t<Header header={page.header} data={data} />\n\t\t\t\t<div className={`${styles.content} imperiumContent ${page.full && styles.contentFull}`}>{content}</div>\n\t\t\t</div>\n\t\t\t{isMobile && mobileSidebar}\n\t\t\t{!isMobile && (\n\t\t\t\t<>\n\t\t\t\t\t{visible && sidebar}\n\t\t\t\t\t{!visible && (\n\t\t\t\t\t\t<Button icon=\"angle left\" size=\"big\" onClick={() => setVisible(true)} className={styles.sidebarButton} style={{paddingLeft: 0}} />\n\t\t\t\t\t)}\n\t\t\t\t</>\n\t\t\t)}\n\t\t\t<DataHooks dataHooks={page.dataHooks || []} />\n\t\t</div>\n\t);\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAgBU,MAAM,qDAAqD,EAAA;AAOrE,SAAA,qBAAA,CAA+B,KAAY,EAAA;AAC1C,EAAA,MAAM,MAAM,MAAO,EAAA,CAAA;
|
|
1
|
+
{"version":3,"file":"ContentComponent.js","sources":["../../../../src/content/components/ContentComponent.tsx"],"sourcesContent":["import type {DefineRouteOptions} from '@imperium/router';\nimport debug from 'debug';\nimport {isEqual} from 'lodash-es';\nimport {type DependencyList, type EffectCallback, useEffect, useRef, useState} from 'react';\nimport {useDispatch} from 'react-redux';\nimport {Button} from 'semantic-ui-react';\nimport {useMediaQuery} from 'react-responsive';\nimport {DataHooks} from '../../datahooks/DataHooks';\nimport {actions} from '../../state';\nimport {sortWeightedItems} from '../../utils';\nimport {useBuildContentData} from '../hooks/useBuildContentData';\nimport type {Page, RouteParameters, SidebarItem} from '../types';\nimport {Header} from './Header';\nimport {SidebarItemWrapper} from './SidebarItemWrapper';\nimport styles from './styles.module.css';\n\nconst d = debug('imperium.layout.content.components.ContentComponent');\n\ninterface ContentComponentProps<T extends DefineRouteOptions, K extends keyof T> {\n\tpage: Page<T, K>;\n\tparams: RouteParameters<T[K]['params']>;\n}\n\nfunction useDeepCompareMemoize(value: any) {\n\tconst ref = useRef();\n\t// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n\tif (!value && !ref.current) return ref.current;\n\tif (!isEqual(value, ref.current)) {\n\t\tref.current = value;\n\t}\n\treturn ref.current;\n}\n\nfunction useDeepCompareEffect(callback: EffectCallback, deps: DependencyList) {\n\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\tuseEffect(callback, deps.map(useDeepCompareMemoize));\n}\n\nexport function ContentComponent<T extends DefineRouteOptions, K extends keyof T>({page, params}: ContentComponentProps<T, K>) {\n\tconst dispatch = useDispatch();\n\tconst data = useBuildContentData({stateSelectorHook: page.stateSelectorHook, permissionSelectorHook: page.permissionSelectorHook, params});\n\tconst [visible, setVisible] = useState(true);\n\tconst isMobile = useMediaQuery({query: '(max-width: 900px)'});\n\n\tuseDeepCompareEffect(() => {\n\t\tdispatch(actions.setParams(params));\n\t}, [dispatch, params]);\n\n\tuseEffect(() => {\n\t\tif (typeof page.header === 'string') {\n\t\t\tdispatch(actions.setPageHeader(page.header));\n\t\t} else {\n\t\t\tdispatch(actions.setPageHeader(''));\n\t\t}\n\t}, [dispatch, page.header]);\n\n\tconst content = page.content(data);\n\tconst sidebarItems = sortWeightedItems(page.sidebar || []);\n\n\tconst sidebar =\n\t\tsidebarItems.length > 0 ? (\n\t\t\t<div className={`${styles.sidebar} imperiumContentSidebar`}>\n\t\t\t\t<div className={styles.sidebarButton}>\n\t\t\t\t\t<Button icon=\"angle right\" size=\"big\" onClick={() => setVisible(false)} fluid style={{paddingLeft: 0}} />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.sidebarContent}>\n\t\t\t\t\t<div className={`${styles.actionsHeader} imperiumContentSidebarHeader`}>\n\t\t\t\t\t\t<h3>Actions</h3>\n\t\t\t\t\t</div>\n\t\t\t\t\t{sidebarItems.map((sb, index) => {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t// eslint-disable-next-line react/no-array-index-key\n\t\t\t\t\t\t\t<div className={styles.sidebarItem} key={index}>\n\t\t\t\t\t\t\t\t<SidebarItemWrapper item={sb as SidebarItem<T, K>} params={params} data={data} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t) : null;\n\n\tconst mobileSidebar =\n\t\tsidebarItems.length > 0 ? (\n\t\t\t<div className={`${styles.sidebarMobile} imperiumContentSidebar`}>\n\t\t\t\t<div className={`${styles.actionsHeader} imperiumContentSidebarHeader`}>\n\t\t\t\t\t<h3>Actions</h3>\n\t\t\t\t</div>\n\t\t\t\t{sidebarItems.map((sb, index) => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t// eslint-disable-next-line react/no-array-index-key\n\t\t\t\t\t\t<div className={styles.sidebarItem} key={index}>\n\t\t\t\t\t\t\t<SidebarItemWrapper item={sb as SidebarItem<T, K>} params={params} data={data} />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t);\n\t\t\t\t})}\n\t\t\t</div>\n\t\t) : null;\n\n\treturn (\n\t\t<div className={`${styles.parent} imperiumContentWrapperParent`}>\n\t\t\t<div className={`${styles.wrapper} imperiumContentWrapper`}>\n\t\t\t\t<Header header={page.header} data={data} />\n\t\t\t\t<div className={`${styles.content} imperiumContent ${page.full && styles.contentFull}`}>{content}</div>\n\t\t\t</div>\n\t\t\t{isMobile && mobileSidebar}\n\t\t\t{!isMobile && (\n\t\t\t\t<>\n\t\t\t\t\t{visible && sidebar}\n\t\t\t\t\t{!visible && (\n\t\t\t\t\t\t<Button icon=\"angle left\" size=\"big\" onClick={() => setVisible(true)} className={styles.sidebarButton} style={{paddingLeft: 0}} />\n\t\t\t\t\t)}\n\t\t\t\t</>\n\t\t\t)}\n\t\t\t<DataHooks dataHooks={page.dataHooks || []} />\n\t\t</div>\n\t);\n}\n"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarItemWrapper.js","sources":["../../../../src/content/components/SidebarItemWrapper.tsx"],"sourcesContent":["import type {DefineRouteOptions} from '@imperium/router';\nimport debug from 'debug';\nimport {Query} from 'mingo';\nimport {Divider} from 'semantic-ui-react';\nimport {useBuildContentData} from '../hooks/useBuildContentData';\nimport type {ContentData, RouteParameters, SidebarItem} from '../types';\nimport {isActionFormSidebarItem, isActionSidebarItem, isCustomSidebarItem, isDividerSidebarItem} from '../types';\nimport {ActionFormSidebarItemComponent} from './ActionFormSidebarItemComponent';\nimport {ActionSidebarItemComponent} from './ActionSidebarItemComponent';\nimport {CustomSidebarItemComponent} from './CustomSidebarItemComponent';\nimport {PlainSidebarItem} from './PlainSidebarItem';\n\nconst d = debug('imperium.layout.content.components.SidebarItemWrapper');\n\ninterface SidebarItemWrapperProps<T extends DefineRouteOptions, K extends keyof T> {\n\titem: SidebarItem<T, K>;\n\tdata?: ContentData<T, K>;\n\tparams: RouteParameters<T[K]['params']>;\n}\n\nexport function SidebarItemWrapper<T extends DefineRouteOptions, K extends keyof T>({item, data: parentData, params}: SidebarItemWrapperProps<T, K>) {\n\tconst data = useBuildContentData({\n\t\tdata: parentData,\n\t\tstateSelectorHook: item.stateSelectorHook,\n\t\tpermissionSelectorHook: item.permissionSelectorHook,\n\t\tparams,\n\t});\n\n\t// Check if visible\n\tif (item.visible) {\n\t\tif (typeof item.visible === 'function') {\n\t\t\tif (!item.visible(data)) return null;\n\t\t} else {\n\t\t\tconst q = new Query(item.visible);\n\t\t\tif (!q.test(data)) return null;\n\t\t}\n\t}\n\n\tif (isCustomSidebarItem(item)) {\n\t\treturn <CustomSidebarItemComponent item={item} data={data} />;\n\t}\n\n\tif (isActionSidebarItem(item)) {\n\t\t// @ts-ignore I'm not sure why this error is occurring -mk\n\t\treturn <ActionSidebarItemComponent item={item} data={data} />;\n\t}\n\n\tif (isActionFormSidebarItem(item)) {\n\t\t// @ts-ignore I'm not sure why this error is occurring -mk\n\t\treturn <ActionFormSidebarItemComponent item={item} data={data} />;\n\t}\n\n\tif (isDividerSidebarItem(item)) {\n\t\treturn <Divider />;\n\t}\n\n\t// @ts-ignore These types should work, not sure why it's not. Runtime code is fine.\n\treturn <PlainSidebarItem item={item} data={data} />;\n}\n"],"names":[],"mappings":";;;;;;;;;;;AAYU,MAAM,uDAAuD,EAAA;AAQhE,SAAA,kBAAA,CAA6E,EAAC,IAAA,EAAM,IAAM,EAAA,UAAA,EAAY,MAAwC,EAAA,EAAA;AACpJ,EAAA,MAAM,OAAO,mBAAoB,CAAA;AAAA,IAChC,IAAM,EAAA,UAAA;AAAA,IACN,mBAAmB,IAAK,CAAA,iBAAA;AAAA,IACxB,wBAAwB,IAAK,CAAA,sBAAA;AAAA,IAC7B,MAAA;AAAA,GACA,CAAA,CAAA;AAGD,EAAA,IAAI,KAAK,OAAS,EAAA;AACjB,IAAI,IAAA,OAAO,IAAK,CAAA,OAAA,KAAY,UAAY,EAAA;AACvC,MAAI,IAAA,CAAC,IAAK,CAAA,OAAA,CAAQ,IAAI,CAAA;AAAG,QAAO,OAAA,IAAA,CAAA;AAAA,KAC1B,MAAA;
|
|
1
|
+
{"version":3,"file":"SidebarItemWrapper.js","sources":["../../../../src/content/components/SidebarItemWrapper.tsx"],"sourcesContent":["import type {DefineRouteOptions} from '@imperium/router';\nimport debug from 'debug';\nimport {Query} from 'mingo';\nimport {Divider} from 'semantic-ui-react';\nimport {useBuildContentData} from '../hooks/useBuildContentData';\nimport type {ContentData, RouteParameters, SidebarItem} from '../types';\nimport {isActionFormSidebarItem, isActionSidebarItem, isCustomSidebarItem, isDividerSidebarItem} from '../types';\nimport {ActionFormSidebarItemComponent} from './ActionFormSidebarItemComponent';\nimport {ActionSidebarItemComponent} from './ActionSidebarItemComponent';\nimport {CustomSidebarItemComponent} from './CustomSidebarItemComponent';\nimport {PlainSidebarItem} from './PlainSidebarItem';\n\nconst d = debug('imperium.layout.content.components.SidebarItemWrapper');\n\ninterface SidebarItemWrapperProps<T extends DefineRouteOptions, K extends keyof T> {\n\titem: SidebarItem<T, K>;\n\tdata?: ContentData<T, K>;\n\tparams: RouteParameters<T[K]['params']>;\n}\n\nexport function SidebarItemWrapper<T extends DefineRouteOptions, K extends keyof T>({item, data: parentData, params}: SidebarItemWrapperProps<T, K>) {\n\tconst data = useBuildContentData({\n\t\tdata: parentData,\n\t\tstateSelectorHook: item.stateSelectorHook,\n\t\tpermissionSelectorHook: item.permissionSelectorHook,\n\t\tparams,\n\t});\n\n\t// Check if visible\n\tif (item.visible) {\n\t\tif (typeof item.visible === 'function') {\n\t\t\tif (!item.visible(data)) return null;\n\t\t} else {\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n\t\t\tconst q = new Query(item.visible || {});\n\t\t\tif (!q.test(data)) return null;\n\t\t}\n\t}\n\n\tif (isCustomSidebarItem(item)) {\n\t\treturn <CustomSidebarItemComponent item={item} data={data} />;\n\t}\n\n\tif (isActionSidebarItem(item)) {\n\t\t// @ts-ignore I'm not sure why this error is occurring -mk\n\t\treturn <ActionSidebarItemComponent item={item} data={data} />;\n\t}\n\n\tif (isActionFormSidebarItem(item)) {\n\t\t// @ts-ignore I'm not sure why this error is occurring -mk\n\t\treturn <ActionFormSidebarItemComponent item={item} data={data} />;\n\t}\n\n\tif (isDividerSidebarItem(item)) {\n\t\treturn <Divider />;\n\t}\n\n\t// @ts-ignore These types should work, not sure why it's not. Runtime code is fine.\n\treturn <PlainSidebarItem item={item} data={data} />;\n}\n"],"names":[],"mappings":";;;;;;;;;;;AAYU,MAAM,uDAAuD,EAAA;AAQhE,SAAA,kBAAA,CAA6E,EAAC,IAAA,EAAM,IAAM,EAAA,UAAA,EAAY,MAAwC,EAAA,EAAA;AACpJ,EAAA,MAAM,OAAO,mBAAoB,CAAA;AAAA,IAChC,IAAM,EAAA,UAAA;AAAA,IACN,mBAAmB,IAAK,CAAA,iBAAA;AAAA,IACxB,wBAAwB,IAAK,CAAA,sBAAA;AAAA,IAC7B,MAAA;AAAA,GACA,CAAA,CAAA;AAGD,EAAA,IAAI,KAAK,OAAS,EAAA;AACjB,IAAI,IAAA,OAAO,IAAK,CAAA,OAAA,KAAY,UAAY,EAAA;AACvC,MAAI,IAAA,CAAC,IAAK,CAAA,OAAA,CAAQ,IAAI,CAAA;AAAG,QAAO,OAAA,IAAA,CAAA;AAAA,KAC1B,MAAA;AAEN,MAAA,MAAM,IAAI,IAAI,KAAA,CAAM,IAAK,CAAA,OAAA,IAAW,EAAE,CAAA,CAAA;AACtC,MAAI,IAAA,CAAC,CAAE,CAAA,IAAA,CAAK,IAAI,CAAA;AAAG,QAAO,OAAA,IAAA,CAAA;AAAA,KAC3B;AAAA,GACD;AAEA,EAAI,IAAA,mBAAA,CAAoB,IAAI,CAAG,EAAA;AAC9B,IAAA,uBAAQ,KAAA,CAAA,aAAA,CAAA,0BAAA,EAAA;AAAA,MAA2B,IAAA;AAAA,MAAY,IAAA;AAAA,KAAY,CAAA,CAAA;AAAA,GAC5D;AAEA,EAAI,IAAA,mBAAA,CAAoB,IAAI,CAAG,EAAA;AAE9B,IAAA,uBAAQ,KAAA,CAAA,aAAA,CAAA,0BAAA,EAAA;AAAA,MAA2B,IAAA;AAAA,MAAY,IAAA;AAAA,KAAY,CAAA,CAAA;AAAA,GAC5D;AAEA,EAAI,IAAA,uBAAA,CAAwB,IAAI,CAAG,EAAA;AAElC,IAAA,uBAAQ,KAAA,CAAA,aAAA,CAAA,8BAAA,EAAA;AAAA,MAA+B,IAAA;AAAA,MAAY,IAAA;AAAA,KAAY,CAAA,CAAA;AAAA,GAChE;AAEA,EAAI,IAAA,oBAAA,CAAqB,IAAI,CAAG,EAAA;AAC/B,IAAA,2CAAQ,OAAQ,EAAA,IAAA,CAAA,CAAA;AAAA,GACjB;AAGA,EAAA,uBAAQ,KAAA,CAAA,aAAA,CAAA,gBAAA,EAAA;AAAA,IAAiB,IAAA;AAAA,IAAY,IAAA;AAAA,GAAY,CAAA,CAAA;AAClD;;;;"}
|
|
@@ -12,7 +12,7 @@ function Permissions({ permissions }) {
|
|
|
12
12
|
useEffect(() => {
|
|
13
13
|
(async function iife() {
|
|
14
14
|
const permissionsWithData = permissions.map((permission) => {
|
|
15
|
-
const data = Object.keys(layoutState.params).length > 0 ? layoutState.params : void 0;
|
|
15
|
+
const data = layoutState.params && Object.keys(layoutState.params).length > 0 ? layoutState.params : void 0;
|
|
16
16
|
return {
|
|
17
17
|
permission,
|
|
18
18
|
data
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Permissions.js","sources":["../../../src/datahooks/Permissions.tsx"],"sourcesContent":["import {useAuthorization} from '@imperium/auth-client';\nimport debug from 'debug';\nimport {useEffect} from 'react';\nimport {useDispatch} from 'react-redux';\nimport {actions, useLayoutState} from '../state';\nimport type {PermissionSelector} from '../types';\n\nconst d = debug('imperium.layout.datahooks.Permissions');\n\ninterface PermissionsProps {\n\tpermissions: PermissionSelector;\n}\n\nexport function Permissions({permissions}: PermissionsProps) {\n\tconst authorization = useAuthorization();\n\tconst layoutState = useLayoutState();\n\tconst dispatch = useDispatch();\n\n\tuseEffect(() => {\n\t\t(async function iife() {\n\t\t\tconst permissionsWithData = permissions.map(permission => {\n\t\t\t\tconst data = Object.keys(layoutState.params).length > 0 ? layoutState.params : undefined;\n\t\t\t\treturn {\n\t\t\t\t\tpermission,\n\t\t\t\t\tdata,\n\t\t\t\t};\n\t\t\t});\n\t\t\tpermissionsWithData.forEach(permission => {\n\t\t\t\tauthorization\n\t\t\t\t\t.can(permission)\n\t\t\t\t\t.then(result => {\n\t\t\t\t\t\tdispatch(actions.setPermission({...permission, result}));\n\t\t\t\t\t})\n\t\t\t\t\t.catch(err => d(err));\n\t\t\t});\n\t\t})().catch(err => d(err));\n\t}, [dispatch, permissions, authorization, layoutState.params]);\n\n\treturn null;\n}\n"],"names":[],"mappings":";;;;;;AAOA,MAAM,CAAA,GAAI,MAAM,uCAAuC,CAAA,CAAA;AAMhD,SAAA,WAAA,CAAqB,EAAC,WAAgC,EAAA,EAAA;AAC5D,EAAA,MAAM,gBAAgB,gBAAiB,EAAA,CAAA;AACvC,EAAA,MAAM,cAAc,cAAe,EAAA,CAAA;AACnC,EAAA,MAAM,WAAW,WAAY,EAAA,CAAA;AAE7B,EAAA,SAAA,CAAU,MAAM;AACf,IAAC,CAAsB,eAAA,IAAA,GAAA;AACtB,MAAM,MAAA,mBAAA,GAAsB,WAAY,CAAA,GAAA,CAAI,CAAc,UAAA,KAAA;
|
|
1
|
+
{"version":3,"file":"Permissions.js","sources":["../../../src/datahooks/Permissions.tsx"],"sourcesContent":["import {useAuthorization} from '@imperium/auth-client';\nimport debug from 'debug';\nimport {useEffect} from 'react';\nimport {useDispatch} from 'react-redux';\nimport {actions, useLayoutState} from '../state';\nimport type {PermissionSelector} from '../types';\n\nconst d = debug('imperium.layout.datahooks.Permissions');\n\ninterface PermissionsProps {\n\tpermissions: PermissionSelector;\n}\n\nexport function Permissions({permissions}: PermissionsProps) {\n\tconst authorization = useAuthorization();\n\tconst layoutState = useLayoutState();\n\tconst dispatch = useDispatch();\n\n\tuseEffect(() => {\n\t\t(async function iife() {\n\t\t\tconst permissionsWithData = permissions.map(permission => {\n\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n\t\t\t\tconst data = layoutState.params && Object.keys(layoutState.params).length > 0 ? layoutState.params : undefined;\n\t\t\t\treturn {\n\t\t\t\t\tpermission,\n\t\t\t\t\tdata,\n\t\t\t\t};\n\t\t\t});\n\t\t\tpermissionsWithData.forEach(permission => {\n\t\t\t\tauthorization\n\t\t\t\t\t.can(permission)\n\t\t\t\t\t.then(result => {\n\t\t\t\t\t\tdispatch(actions.setPermission({...permission, result}));\n\t\t\t\t\t})\n\t\t\t\t\t.catch(err => d(err));\n\t\t\t});\n\t\t})().catch(err => d(err));\n\t}, [dispatch, permissions, authorization, layoutState.params]);\n\n\treturn null;\n}\n"],"names":[],"mappings":";;;;;;AAOA,MAAM,CAAA,GAAI,MAAM,uCAAuC,CAAA,CAAA;AAMhD,SAAA,WAAA,CAAqB,EAAC,WAAgC,EAAA,EAAA;AAC5D,EAAA,MAAM,gBAAgB,gBAAiB,EAAA,CAAA;AACvC,EAAA,MAAM,cAAc,cAAe,EAAA,CAAA;AACnC,EAAA,MAAM,WAAW,WAAY,EAAA,CAAA;AAE7B,EAAA,SAAA,CAAU,MAAM;AACf,IAAC,CAAsB,eAAA,IAAA,GAAA;AACtB,MAAM,MAAA,mBAAA,GAAsB,WAAY,CAAA,GAAA,CAAI,CAAc,UAAA,KAAA;AAEzD,QAAM,MAAA,IAAA,GAAO,WAAY,CAAA,MAAA,IAAU,MAAO,CAAA,IAAA,CAAK,WAAY,CAAA,MAAM,CAAE,CAAA,MAAA,GAAS,CAAI,GAAA,WAAA,CAAY,MAAS,GAAA,KAAA,CAAA,CAAA;AACrG,QAAO,OAAA;AAAA,UACN,UAAA;AAAA,UACA,IAAA;AAAA,SACD,CAAA;AAAA,OACA,CAAA,CAAA;AACD,MAAA,mBAAA,CAAoB,QAAQ,CAAc,UAAA,KAAA;AACzC,QAAA,aAAA,CACE,GAAI,CAAA,UAAU,CACd,CAAA,IAAA,CAAK,CAAU,MAAA,KAAA;AACf,UAAA,QAAA,CAAS,QAAQ,aAAc,CAAA,EAAA,GAAI,UAAY,EAAA,MAAA,EAAO,CAAC,CAAA,CAAA;AAAA,SACvD,CACA,CAAA,KAAA,CAAM,CAAO,GAAA,KAAA,CAAA,CAAE,GAAG,CAAC,CAAA,CAAA;AAAA,OACrB,CAAA,CAAA;AAAA,QACG,CAAA,KAAA,CAAM,CAAO,GAAA,KAAA,CAAA,CAAE,GAAG,CAAC,CAAA,CAAA;AAAA,KACtB,CAAC,QAAA,EAAU,aAAa,aAAe,EAAA,WAAA,CAAY,MAAM,CAAC,CAAA,CAAA;AAE7D,EAAO,OAAA,IAAA,CAAA;AACR;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutItemWrapper.js","sources":["../../../../src/layout/components/LayoutItemWrapper.tsx"],"sourcesContent":["import debug from 'debug';\nimport {Query} from 'mingo';\nimport type {ComponentClass} from 'react';\nimport {Dropdown} from 'semantic-ui-react';\nimport {useBuildData} from '../../hooks/useBuildData';\nimport type {Data} from '../../types';\nimport {sortWeightedItems} from '../../utils';\nimport type {LayoutItem} from '../types';\nimport {isCustomLayoutItem, isDropdownLayoutItem, isMenuLayoutItem} from '../types';\nimport {CustomLayoutItemComponent} from './CustomLayoutItemComponent';\nimport {DropdownItem} from './DropdownItem';\nimport {MenuItem} from './MenuItem';\nimport {PlainItem} from './PlainItem';\n\nconst d = debug('imperium.layout.components.LayoutItemWrapper');\n\ninterface ItemWrapperProps {\n\titem: LayoutItem;\n\tas?: ComponentClass;\n\tvertical?: boolean;\n\tdata?: Data;\n}\n\n/**\n * Renders any type of Item. Gathers state, route and other data and checks for visibility.\n * @param item\n * @param as\n * @param vertical\n * @param parentData\n * @constructor\n */\nexport function LayoutItemWrapper({item, as, vertical, data: parentData}: ItemWrapperProps) {\n\tconst data = useBuildData({\n\t\tstateSelectorHook: item.stateSelectorHook,\n\t\tpermissionSelectorHook: item.permissionSelectorHook,\n\t\trouteItem: item,\n\t\tdata: parentData,\n\t});\n\n\t// Check if visible\n\tif (item.visible) {\n\t\tif (typeof item.visible === 'function') {\n\t\t\tif (!item.visible(data)) return null;\n\t\t} else {\n\t\t\tconst q = new Query(item.visible);\n\t\t\tif (!q.test(data)) return null;\n\t\t}\n\t}\n\n\tif (isCustomLayoutItem(item)) {\n\t\treturn <CustomLayoutItemComponent item={item} data={data} />;\n\t}\n\tif (isDropdownLayoutItem(item)) {\n\t\tconst children = sortWeightedItems(item.dropdown).map((v, index) => (\n\t\t\t// eslint-disable-next-line react/no-array-index-key\n\t\t\t<LayoutItemWrapper key={index} item={v as LayoutItem} as={Dropdown.Item} data={data} />\n\t\t));\n\t\treturn <DropdownItem item={item} children={children} vertical={vertical} data={data} />;\n\t}\n\tif (isMenuLayoutItem(item)) {\n\t\tconst children = sortWeightedItems(item.menu).map((v, index) => (\n\t\t\t// eslint-disable-next-line react/no-array-index-key\n\t\t\t<LayoutItemWrapper key={index} item={v as LayoutItem} as={Dropdown.Item} vertical={vertical} data={data} />\n\t\t));\n\t\treturn <MenuItem item={item} children={children} />;\n\t}\n\treturn <PlainItem item={item} data={data} as={as} />;\n}\n"],"names":[],"mappings":";;;;;;;;;;;;AAcU,MAAM,8CAA8C,EAAA;AAiBvD,SAAA,iBAAA,CAA2B,EAAC,IAAA,EAAM,EAAI,EAAA,QAAA,EAAU,MAAM,UAA+B,EAAA,EAAA;AAC3F,EAAA,MAAM,OAAO,YAAa,CAAA;AAAA,IACzB,mBAAmB,IAAK,CAAA,iBAAA;AAAA,IACxB,wBAAwB,IAAK,CAAA,sBAAA;AAAA,IAC7B,SAAW,EAAA,IAAA;AAAA,IACX,IAAM,EAAA,UAAA;AAAA,GACN,CAAA,CAAA;AAGD,EAAA,IAAI,KAAK,OAAS,EAAA;AACjB,IAAI,IAAA,OAAO,IAAK,CAAA,OAAA,KAAY,UAAY,EAAA;AACvC,MAAI,IAAA,CAAC,IAAK,CAAA,OAAA,CAAQ,IAAI,CAAA;AAAG,QAAO,OAAA,IAAA,CAAA;AAAA,KAC1B,MAAA;
|
|
1
|
+
{"version":3,"file":"LayoutItemWrapper.js","sources":["../../../../src/layout/components/LayoutItemWrapper.tsx"],"sourcesContent":["import debug from 'debug';\nimport {Query} from 'mingo';\nimport type {ComponentClass} from 'react';\nimport {Dropdown} from 'semantic-ui-react';\nimport {useBuildData} from '../../hooks/useBuildData';\nimport type {Data} from '../../types';\nimport {sortWeightedItems} from '../../utils';\nimport type {LayoutItem} from '../types';\nimport {isCustomLayoutItem, isDropdownLayoutItem, isMenuLayoutItem} from '../types';\nimport {CustomLayoutItemComponent} from './CustomLayoutItemComponent';\nimport {DropdownItem} from './DropdownItem';\nimport {MenuItem} from './MenuItem';\nimport {PlainItem} from './PlainItem';\n\nconst d = debug('imperium.layout.components.LayoutItemWrapper');\n\ninterface ItemWrapperProps {\n\titem: LayoutItem;\n\tas?: ComponentClass;\n\tvertical?: boolean;\n\tdata?: Data;\n}\n\n/**\n * Renders any type of Item. Gathers state, route and other data and checks for visibility.\n * @param item\n * @param as\n * @param vertical\n * @param parentData\n * @constructor\n */\nexport function LayoutItemWrapper({item, as, vertical, data: parentData}: ItemWrapperProps) {\n\tconst data = useBuildData({\n\t\tstateSelectorHook: item.stateSelectorHook,\n\t\tpermissionSelectorHook: item.permissionSelectorHook,\n\t\trouteItem: item,\n\t\tdata: parentData,\n\t});\n\n\t// Check if visible\n\tif (item.visible) {\n\t\tif (typeof item.visible === 'function') {\n\t\t\tif (!item.visible(data)) return null;\n\t\t} else {\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n\t\t\tconst q = new Query(item.visible || {});\n\t\t\tif (!q.test(data)) return null;\n\t\t}\n\t}\n\n\tif (isCustomLayoutItem(item)) {\n\t\treturn <CustomLayoutItemComponent item={item} data={data} />;\n\t}\n\tif (isDropdownLayoutItem(item)) {\n\t\tconst children = sortWeightedItems(item.dropdown).map((v, index) => (\n\t\t\t// eslint-disable-next-line react/no-array-index-key\n\t\t\t<LayoutItemWrapper key={index} item={v as LayoutItem} as={Dropdown.Item} data={data} />\n\t\t));\n\t\treturn <DropdownItem item={item} children={children} vertical={vertical} data={data} />;\n\t}\n\tif (isMenuLayoutItem(item)) {\n\t\tconst children = sortWeightedItems(item.menu).map((v, index) => (\n\t\t\t// eslint-disable-next-line react/no-array-index-key\n\t\t\t<LayoutItemWrapper key={index} item={v as LayoutItem} as={Dropdown.Item} vertical={vertical} data={data} />\n\t\t));\n\t\treturn <MenuItem item={item} children={children} />;\n\t}\n\treturn <PlainItem item={item} data={data} as={as} />;\n}\n"],"names":[],"mappings":";;;;;;;;;;;;AAcU,MAAM,8CAA8C,EAAA;AAiBvD,SAAA,iBAAA,CAA2B,EAAC,IAAA,EAAM,EAAI,EAAA,QAAA,EAAU,MAAM,UAA+B,EAAA,EAAA;AAC3F,EAAA,MAAM,OAAO,YAAa,CAAA;AAAA,IACzB,mBAAmB,IAAK,CAAA,iBAAA;AAAA,IACxB,wBAAwB,IAAK,CAAA,sBAAA;AAAA,IAC7B,SAAW,EAAA,IAAA;AAAA,IACX,IAAM,EAAA,UAAA;AAAA,GACN,CAAA,CAAA;AAGD,EAAA,IAAI,KAAK,OAAS,EAAA;AACjB,IAAI,IAAA,OAAO,IAAK,CAAA,OAAA,KAAY,UAAY,EAAA;AACvC,MAAI,IAAA,CAAC,IAAK,CAAA,OAAA,CAAQ,IAAI,CAAA;AAAG,QAAO,OAAA,IAAA,CAAA;AAAA,KAC1B,MAAA;AAEN,MAAA,MAAM,IAAI,IAAI,KAAA,CAAM,IAAK,CAAA,OAAA,IAAW,EAAE,CAAA,CAAA;AACtC,MAAI,IAAA,CAAC,CAAE,CAAA,IAAA,CAAK,IAAI,CAAA;AAAG,QAAO,OAAA,IAAA,CAAA;AAAA,KAC3B;AAAA,GACD;AAEA,EAAI,IAAA,kBAAA,CAAmB,IAAI,CAAG,EAAA;AAC7B,IAAA,uBAAQ,KAAA,CAAA,aAAA,CAAA,yBAAA,EAAA;AAAA,MAA0B,IAAA;AAAA,MAAY,IAAA;AAAA,KAAY,CAAA,CAAA;AAAA,GAC3D;AACA,EAAI,IAAA,oBAAA,CAAqB,IAAI,CAAG,EAAA;AAC/B,IAAM,MAAA,QAAA,GAAW,kBAAkB,IAAK,CAAA,QAAQ,EAAE,GAAI,CAAA,CAAC,CAAG,EAAA,KAAA,qBAExD,KAAA,CAAA,aAAA,CAAA,iBAAA,EAAA;AAAA,MAAkB,GAAK,EAAA,KAAA;AAAA,MAAO,IAAM,EAAA,CAAA;AAAA,MAAiB,IAAI,QAAS,CAAA,IAAA;AAAA,MAAM,IAAA;AAAA,KAAY,CACrF,CAAA,CAAA;AACD,IAAA,uBAAQ,KAAA,CAAA,aAAA,CAAA,YAAA,EAAA;AAAA,MAAa,IAAA;AAAA,MAAY,QAAA;AAAA,MAAoB,QAAA;AAAA,MAAoB,IAAA;AAAA,KAAY,CAAA,CAAA;AAAA,GACtF;AACA,EAAI,IAAA,gBAAA,CAAiB,IAAI,CAAG,EAAA;AAC3B,IAAM,MAAA,QAAA,GAAW,kBAAkB,IAAK,CAAA,IAAI,EAAE,GAAI,CAAA,CAAC,CAAG,EAAA,KAAA,qBAEpD,KAAA,CAAA,aAAA,CAAA,iBAAA,EAAA;AAAA,MAAkB,GAAK,EAAA,KAAA;AAAA,MAAO,IAAM,EAAA,CAAA;AAAA,MAAiB,IAAI,QAAS,CAAA,IAAA;AAAA,MAAM,QAAA;AAAA,MAAoB,IAAA;AAAA,KAAY,CACzG,CAAA,CAAA;AACD,IAAA,uBAAQ,KAAA,CAAA,aAAA,CAAA,QAAA,EAAA;AAAA,MAAS,IAAA;AAAA,MAAY,QAAA;AAAA,KAAoB,CAAA,CAAA;AAAA,GAClD;AACA,EAAA,uBAAQ,KAAA,CAAA,aAAA,CAAA,SAAA,EAAA;AAAA,IAAU,IAAA;AAAA,IAAY,IAAA;AAAA,IAAY,EAAA;AAAA,GAAQ,CAAA,CAAA;AACnD;;;;"}
|
|
@@ -38,7 +38,7 @@ function addItems(items, pulled) {
|
|
|
38
38
|
...memo,
|
|
39
39
|
{
|
|
40
40
|
...item,
|
|
41
|
-
dropdown: [...addItems(item.dropdown, pulled), ...newItems
|
|
41
|
+
dropdown: [...addItems(item.dropdown, pulled), ...newItems]
|
|
42
42
|
}
|
|
43
43
|
];
|
|
44
44
|
}
|
|
@@ -48,7 +48,7 @@ function addItems(items, pulled) {
|
|
|
48
48
|
...memo,
|
|
49
49
|
{
|
|
50
50
|
...item,
|
|
51
|
-
menu: [...addItems(item.menu, pulled), ...newItems
|
|
51
|
+
menu: [...addItems(item.menu, pulled), ...newItems]
|
|
52
52
|
}
|
|
53
53
|
];
|
|
54
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moveItems.js","sources":["../../../src/layout/moveItems.ts"],"sourcesContent":["import debug from 'debug';\nimport {groupBy} from 'lodash-es';\nimport type {LayoutItem} from './types';\nimport {isDropdownLayoutItem, isMenuLayoutItem} from './types';\n\nconst d = debug('imperium.layout.moveItems');\n\nfunction pullItems(items: LayoutItem[], pulled: LayoutItem[] = []): LayoutItem[] {\n\treturn items.reduce((memo, item) => {\n\t\tif (isDropdownLayoutItem(item)) {\n\t\t\treturn [\n\t\t\t\t...memo,\n\t\t\t\t{\n\t\t\t\t\t...item,\n\t\t\t\t\tdropdown: pullItems(item.dropdown, pulled),\n\t\t\t\t},\n\t\t\t];\n\t\t}\n\n\t\tif (isMenuLayoutItem(item)) {\n\t\t\treturn [\n\t\t\t\t...memo,\n\t\t\t\t{\n\t\t\t\t\t...item,\n\t\t\t\t\tmenu: pullItems(item.menu, pulled),\n\t\t\t\t},\n\t\t\t];\n\t\t}\n\n\t\tif (!item.moveToKey) {\n\t\t\treturn [...memo, item];\n\t\t}\n\n\t\tpulled.push(item);\n\t\treturn memo;\n\t}, [] as LayoutItem[]);\n}\n\nfunction addItems(items: LayoutItem[], pulled: Record<string, LayoutItem[]
|
|
1
|
+
{"version":3,"file":"moveItems.js","sources":["../../../src/layout/moveItems.ts"],"sourcesContent":["import debug from 'debug';\nimport {groupBy} from 'lodash-es';\nimport type {LayoutItem} from './types';\nimport {isDropdownLayoutItem, isMenuLayoutItem} from './types';\n\nconst d = debug('imperium.layout.moveItems');\n\nfunction pullItems(items: LayoutItem[], pulled: LayoutItem[] = []): LayoutItem[] {\n\treturn items.reduce((memo, item) => {\n\t\tif (isDropdownLayoutItem(item)) {\n\t\t\treturn [\n\t\t\t\t...memo,\n\t\t\t\t{\n\t\t\t\t\t...item,\n\t\t\t\t\tdropdown: pullItems(item.dropdown, pulled),\n\t\t\t\t},\n\t\t\t];\n\t\t}\n\n\t\tif (isMenuLayoutItem(item)) {\n\t\t\treturn [\n\t\t\t\t...memo,\n\t\t\t\t{\n\t\t\t\t\t...item,\n\t\t\t\t\tmenu: pullItems(item.menu, pulled),\n\t\t\t\t},\n\t\t\t];\n\t\t}\n\n\t\tif (!item.moveToKey) {\n\t\t\treturn [...memo, item];\n\t\t}\n\n\t\tpulled.push(item);\n\t\treturn memo;\n\t}, [] as LayoutItem[]);\n}\n\nfunction addItems(items: LayoutItem[], pulled: Record<string, LayoutItem[]>): LayoutItem[] {\n\treturn items.reduce((memo, item) => {\n\t\tif (isDropdownLayoutItem(item)) {\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n\t\t\tconst newItems = item.key && pulled[item.key] ? pulled[item.key] : [];\n\t\t\treturn [\n\t\t\t\t...memo,\n\t\t\t\t{\n\t\t\t\t\t...item,\n\t\t\t\t\tdropdown: [...addItems(item.dropdown, pulled), ...newItems],\n\t\t\t\t},\n\t\t\t];\n\t\t}\n\n\t\tif (isMenuLayoutItem(item) && item.key) {\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n\t\t\tconst newItems = item.key && pulled[item.key] ? pulled[item.key] : [];\n\t\t\treturn [\n\t\t\t\t...memo,\n\t\t\t\t{\n\t\t\t\t\t...item,\n\t\t\t\t\tmenu: [...addItems(item.menu, pulled), ...newItems],\n\t\t\t\t},\n\t\t\t];\n\t\t}\n\t\treturn [...memo, item];\n\t}, [] as LayoutItem[]);\n}\n\nexport function moveItems(items: LayoutItem[]) {\n\tconst pulled: LayoutItem[] = [];\n\tconst itemsMinusPulled = pullItems(items, pulled);\n\treturn addItems(itemsMinusPulled, groupBy(pulled, 'moveToKey'));\n}\n"],"names":[],"mappings":";;;;AAKU,MAAM,2BAA2B,EAAA;AAE3C,SAAmB,SAAA,CAAA,KAAA,EAAqB,MAAuB,GAAA,EAAkB,EAAA;AAChF,EAAA,OAAO,KAAM,CAAA,MAAA,CAAO,CAAC,IAAA,EAAM,IAAS,KAAA;AACnC,IAAI,IAAA,oBAAA,CAAqB,IAAI,CAAG,EAAA;AAC/B,MAAO,OAAA;AAAA,QACN,GAAG,IAAA;AAAA,QACH;AAAA,UACI,GAAA,IAAA;AAAA,UACH,QAAU,EAAA,SAAA,CAAU,IAAK,CAAA,QAAA,EAAU,MAAM,CAAA;AAAA,SAC1C;AAAA,OACD,CAAA;AAAA,KACD;AAEA,IAAI,IAAA,gBAAA,CAAiB,IAAI,CAAG,EAAA;AAC3B,MAAO,OAAA;AAAA,QACN,GAAG,IAAA;AAAA,QACH;AAAA,UACI,GAAA,IAAA;AAAA,UACH,IAAM,EAAA,SAAA,CAAU,IAAK,CAAA,IAAA,EAAM,MAAM,CAAA;AAAA,SAClC;AAAA,OACD,CAAA;AAAA,KACD;AAEA,IAAI,IAAA,CAAC,KAAK,SAAW,EAAA;AACpB,MAAO,OAAA,CAAC,GAAG,IAAA,EAAM,IAAI,CAAA,CAAA;AAAA,KACtB;AAEA,IAAA,MAAA,CAAO,KAAK,IAAI,CAAA,CAAA;AAChB,IAAO,OAAA,IAAA,CAAA;AAAA,GACR,EAAG,EAAkB,CAAA,CAAA;AACtB,CAAA;AAEA,SAAA,QAAA,CAAkB,OAAqB,MAAoD,EAAA;AAC1F,EAAA,OAAO,KAAM,CAAA,MAAA,CAAO,CAAC,IAAA,EAAM,IAAS,KAAA;AACnC,IAAI,IAAA,oBAAA,CAAqB,IAAI,CAAG,EAAA;AAE/B,MAAM,MAAA,QAAA,GAAW,KAAK,GAAO,IAAA,MAAA,CAAO,KAAK,GAAO,CAAA,GAAA,MAAA,CAAO,IAAK,CAAA,GAAA,CAAA,GAAO,EAAC,CAAA;AACpE,MAAO,OAAA;AAAA,QACN,GAAG,IAAA;AAAA,QACH;AAAA,UACI,GAAA,IAAA;AAAA,UACH,QAAA,EAAU,CAAC,GAAG,QAAA,CAAS,KAAK,QAAU,EAAA,MAAM,CAAG,EAAA,GAAG,QAAQ,CAAA;AAAA,SAC3D;AAAA,OACD,CAAA;AAAA,KACD;AAEA,IAAA,IAAI,gBAAiB,CAAA,IAAI,CAAK,IAAA,IAAA,CAAK,GAAK,EAAA;AAEvC,MAAM,MAAA,QAAA,GAAW,KAAK,GAAO,IAAA,MAAA,CAAO,KAAK,GAAO,CAAA,GAAA,MAAA,CAAO,IAAK,CAAA,GAAA,CAAA,GAAO,EAAC,CAAA;AACpE,MAAO,OAAA;AAAA,QACN,GAAG,IAAA;AAAA,QACH;AAAA,UACI,GAAA,IAAA;AAAA,UACH,IAAA,EAAM,CAAC,GAAG,QAAA,CAAS,KAAK,IAAM,EAAA,MAAM,CAAG,EAAA,GAAG,QAAQ,CAAA;AAAA,SACnD;AAAA,OACD,CAAA;AAAA,KACD;AACA,IAAO,OAAA,CAAC,GAAG,IAAA,EAAM,IAAI,CAAA,CAAA;AAAA,GACtB,EAAG,EAAkB,CAAA,CAAA;AACtB,CAAA;AAEO,SAAA,SAAA,CAAmB,KAAqB,EAAA;AAC9C,EAAA,MAAM,SAAuB,EAAC,CAAA;AAC9B,EAAM,MAAA,gBAAA,GAAmB,SAAU,CAAA,KAAA,EAAO,MAAM,CAAA,CAAA;AAChD,EAAA,OAAO,QAAS,CAAA,gBAAA,EAAkB,OAAQ,CAAA,MAAA,EAAQ,WAAW,CAAC,CAAA,CAAA;AAC/D;;;;"}
|
package/dist/stats.html
CHANGED
|
@@ -2669,7 +2669,7 @@ var drawChart = (function (exports) {
|
|
|
2669
2669
|
</script>
|
|
2670
2670
|
<script>
|
|
2671
2671
|
/*<!--*/
|
|
2672
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src/index.ts","uid":"8816-1"}]},{"name":"state.js","children":[{"name":"src/state.ts","uid":"8816-3"}]},{"name":"content/dividerSidebarItem.js","children":[{"name":"src/content/dividerSidebarItem.ts","uid":"8816-5"}]},{"name":"content/createPages.js","children":[{"name":"src/content/createPages.tsx","uid":"8816-7"}]},{"name":"layout/withLayout.js","children":[{"name":"src/layout/withLayout.tsx","uid":"8816-9"}]},{"name":"types.js","children":[{"name":"src/types.ts","uid":"8816-11"}]},{"name":"content/types.js","children":[{"name":"src/content/types.ts","uid":"8816-13"}]},{"name":"datahooks/PermissionHooks.js","children":[{"name":"src/datahooks/PermissionHooks.tsx","uid":"8816-15"}]},{"name":"datahooks/Permissions.js","children":[{"name":"src/datahooks/Permissions.tsx","uid":"8816-17"}]},{"name":"datahooks/DataHooks.js","children":[{"name":"src/datahooks/DataHooks.tsx","uid":"8816-19"}]},{"name":"content/components/ContentComponent.js","children":[{"name":"src/content/components/ContentComponent.tsx","uid":"8816-21"}]},{"name":"layout/components/Layout.js","children":[{"name":"src/layout/components/Layout.tsx","uid":"8816-23"}]},{"name":"utils.js","children":[{"name":"src/utils.ts","uid":"8816-25"}]},{"name":"layout/moveItems.js","children":[{"name":"src/layout/moveItems.ts","uid":"8816-27"}]},{"name":"datahooks/ExecutePermissionHook.js","children":[{"name":"src/datahooks/ExecutePermissionHook.tsx","uid":"8816-29"}]},{"name":"datahooks/ExecuteDataHook.js","children":[{"name":"src/datahooks/ExecuteDataHook.tsx","uid":"8816-31"}]},{"name":"layout/components/styles.module.css.js","children":[{"name":"src/layout/components/styles.module.css","uid":"8816-33"}]},{"name":"content/components/styles.module.css.js","children":[{"name":"src/content/components/styles.module.css","uid":"8816-35"}]},{"name":"layout/components/SecondaryMenuToggleItem.js","children":[{"name":"src/layout/components/SecondaryMenuToggleItem.tsx","uid":"8816-37"}]},{"name":"layout/components/LayoutItemBar.js","children":[{"name":"src/layout/components/LayoutItemBar.tsx","uid":"8816-39"}]},{"name":"content/hooks/useBuildContentData.js","children":[{"name":"src/content/hooks/useBuildContentData.ts","uid":"8816-41"}]},{"name":"content/components/SidebarItemWrapper.js","children":[{"name":"src/content/components/SidebarItemWrapper.tsx","uid":"8816-43"}]},{"name":"content/components/Header.js","children":[{"name":"src/content/components/Header.tsx","uid":"8816-45"}]},{"name":"layout/types.js","children":[{"name":"src/layout/types.ts","uid":"8816-47"}]},{"name":"hooks/useBuildData.js","children":[{"name":"src/hooks/useBuildData.ts","uid":"8816-49"}]},{"name":"layout/utils.js","children":[{"name":"src/layout/utils.tsx","uid":"8816-51"}]},{"name":"layout/components/LayoutItemWrapper.js","children":[{"name":"src/layout/components/LayoutItemWrapper.tsx","uid":"8816-53"}]},{"name":"content/components/ActionSidebarItemComponent.js","children":[{"name":"src/content/components/ActionSidebarItemComponent.tsx","uid":"8816-55"}]},{"name":"content/components/ActionFormSidebarItemComponent.js","children":[{"name":"src/content/components/ActionFormSidebarItemComponent.tsx","uid":"8816-57"}]},{"name":"content/components/CustomSidebarItemComponent.js","children":[{"name":"src/content/components/CustomSidebarItemComponent.tsx","uid":"8816-59"}]},{"name":"content/components/PlainSidebarItem.js","children":[{"name":"src/content/components/PlainSidebarItem.tsx","uid":"8816-61"}]},{"name":"commonItems.js","children":[{"name":"src/commonItems.ts","uid":"8816-63"}]},{"name":"hooks/useIsActiveRoute.js","children":[{"name":"src/hooks/useIsActiveRoute.ts","uid":"8816-65"}]},{"name":"hooks/useSelectPermission.js","children":[{"name":"src/hooks/useSelectPermission.ts","uid":"8816-67"}]},{"name":"hooks/useSelectState.js","children":[{"name":"src/hooks/useSelectState.ts","uid":"8816-69"}]},{"name":"content/utils.js","children":[{"name":"src/content/utils.tsx","uid":"8816-71"}]},{"name":"content/components/ActionForm.js","children":[{"name":"src/content/components/ActionForm.tsx","uid":"8816-73"}]},{"name":"layout/components/CustomLayoutItemComponent.js","children":[{"name":"src/layout/components/CustomLayoutItemComponent.tsx","uid":"8816-75"}]},{"name":"layout/components/PlainItem.js","children":[{"name":"src/layout/components/PlainItem.tsx","uid":"8816-77"}]},{"name":"layout/components/DropdownItem.js","children":[{"name":"src/layout/components/DropdownItem.tsx","uid":"8816-79"}]},{"name":"layout/components/MenuItem.js","children":[{"name":"src/layout/components/MenuItem.tsx","uid":"8816-81"}]},{"name":"external/style-inject/dist/style-inject.es.js","children":[{"name":"home/artemis/Github/imperium/node_modules/style-inject/dist/style-inject.es.js","uid":"8816-83"}]}],"isRoot":true},"nodeParts":{"8816-1":{"renderedLength":144,"gzipLength":131,"brotliLength":106,"mainUid":"8816-0"},"8816-3":{"renderedLength":591,"gzipLength":268,"brotliLength":243,"mainUid":"8816-2"},"8816-5":{"renderedLength":59,"gzipLength":73,"brotliLength":63,"mainUid":"8816-4"},"8816-7":{"renderedLength":650,"gzipLength":301,"brotliLength":268,"mainUid":"8816-6"},"8816-9":{"renderedLength":1913,"gzipLength":563,"brotliLength":489,"mainUid":"8816-8"},"8816-11":{"renderedLength":121,"gzipLength":111,"brotliLength":90,"mainUid":"8816-10"},"8816-13":{"renderedLength":388,"gzipLength":167,"brotliLength":111,"mainUid":"8816-12"},"8816-15":{"renderedLength":339,"gzipLength":202,"brotliLength":164,"mainUid":"8816-14"},"8816-17":{"renderedLength":842,"gzipLength":361,"brotliLength":320,"mainUid":"8816-16"},"8816-19":{"renderedLength":1058,"gzipLength":390,"brotliLength":330,"mainUid":"8816-18"},"8816-21":{"renderedLength":3568,"gzipLength":927,"brotliLength":804,"mainUid":"8816-20"},"8816-23":{"renderedLength":2512,"gzipLength":751,"brotliLength":636,"mainUid":"8816-22"},"8816-25":{"renderedLength":145,"gzipLength":117,"brotliLength":116,"mainUid":"8816-24"},"8816-27":{"renderedLength":1413,"gzipLength":381,"brotliLength":359,"mainUid":"8816-26"},"8816-29":{"renderedLength":345,"gzipLength":207,"brotliLength":172,"mainUid":"8816-28"},"8816-31":{"renderedLength":123,"gzipLength":111,"brotliLength":93,"mainUid":"8816-30"},"8816-33":{"renderedLength":3176,"gzipLength":928,"brotliLength":762,"mainUid":"8816-32"},"8816-35":{"renderedLength":2119,"gzipLength":680,"brotliLength":565,"mainUid":"8816-34"},"8816-37":{"renderedLength":356,"gzipLength":233,"brotliLength":176,"mainUid":"8816-36"},"8816-39":{"renderedLength":726,"gzipLength":294,"brotliLength":252,"mainUid":"8816-38"},"8816-41":{"renderedLength":257,"gzipLength":158,"brotliLength":122,"mainUid":"8816-40"},"8816-43":{"renderedLength":1183,"gzipLength":394,"brotliLength":310,"mainUid":"8816-42"},"8816-45":{"renderedLength":1042,"gzipLength":377,"brotliLength":323,"mainUid":"8816-44"},"8816-47":{"renderedLength":191,"gzipLength":113,"brotliLength":89,"mainUid":"8816-46"},"8816-49":{"renderedLength":799,"gzipLength":370,"brotliLength":330,"mainUid":"8816-48"},"8816-51":{"renderedLength":915,"gzipLength":393,"brotliLength":328,"mainUid":"8816-50"},"8816-53":{"renderedLength":1497,"gzipLength":481,"brotliLength":413,"mainUid":"8816-52"},"8816-55":{"renderedLength":343,"gzipLength":239,"brotliLength":181,"mainUid":"8816-54"},"8816-57":{"renderedLength":644,"gzipLength":341,"brotliLength":295,"mainUid":"8816-56"},"8816-59":{"renderedLength":83,"gzipLength":97,"brotliLength":66,"mainUid":"8816-58"},"8816-61":{"renderedLength":325,"gzipLength":230,"brotliLength":183,"mainUid":"8816-60"},"8816-63":{"renderedLength":203,"gzipLength":136,"brotliLength":97,"mainUid":"8816-62"},"8816-65":{"renderedLength":514,"gzipLength":227,"brotliLength":187,"mainUid":"8816-64"},"8816-67":{"renderedLength":294,"gzipLength":155,"brotliLength":114,"mainUid":"8816-66"},"8816-69":{"renderedLength":326,"gzipLength":176,"brotliLength":141,"mainUid":"8816-68"},"8816-71":{"renderedLength":628,"gzipLength":259,"brotliLength":219,"mainUid":"8816-70"},"8816-73":{"renderedLength":1667,"gzipLength":624,"brotliLength":519,"mainUid":"8816-72"},"8816-75":{"renderedLength":82,"gzipLength":96,"brotliLength":66,"mainUid":"8816-74"},"8816-77":{"renderedLength":379,"gzipLength":264,"brotliLength":224,"mainUid":"8816-76"},"8816-79":{"renderedLength":1179,"gzipLength":450,"brotliLength":362,"mainUid":"8816-78"},"8816-81":{"renderedLength":252,"gzipLength":157,"brotliLength":116,"mainUid":"8816-80"},"8816-83":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"mainUid":"8816-82"}},"nodeMetas":{"8816-0":{"id":"/src/index.ts","moduleParts":{"index.js":"8816-1"},"imported":[{"uid":"8816-8"},{"uid":"8816-2"},{"uid":"8816-6"},{"uid":"8816-4"}],"importedBy":[],"isEntry":true},"8816-2":{"id":"/src/state.ts","moduleParts":{"state.js":"8816-3"},"imported":[{"uid":"8816-86"},{"uid":"8816-87"}],"importedBy":[{"uid":"8816-0"},{"uid":"8816-16"},{"uid":"8816-20"},{"uid":"8816-28"},{"uid":"8816-48"}]},"8816-4":{"id":"/src/content/dividerSidebarItem.ts","moduleParts":{"content/dividerSidebarItem.js":"8816-5"},"imported":[],"importedBy":[{"uid":"8816-0"}]},"8816-6":{"id":"/src/content/createPages.tsx","moduleParts":{"content/createPages.js":"8816-7"},"imported":[{"uid":"8816-84"},{"uid":"8816-85"},{"uid":"8816-20"},{"uid":"8816-12"}],"importedBy":[{"uid":"8816-0"}]},"8816-8":{"id":"/src/layout/withLayout.tsx","moduleParts":{"layout/withLayout.js":"8816-9"},"imported":[{"uid":"8816-84"},{"uid":"8816-85"},{"uid":"8816-18"},{"uid":"8816-14"},{"uid":"8816-16"},{"uid":"8816-10"},{"uid":"8816-22"}],"importedBy":[{"uid":"8816-0"}]},"8816-10":{"id":"/src/types.ts","moduleParts":{"types.js":"8816-11"},"imported":[],"importedBy":[{"uid":"8816-8"}]},"8816-12":{"id":"/src/content/types.ts","moduleParts":{"content/types.js":"8816-13"},"imported":[],"importedBy":[{"uid":"8816-6"},{"uid":"8816-44"},{"uid":"8816-42"}]},"8816-14":{"id":"/src/datahooks/PermissionHooks.tsx","moduleParts":{"datahooks/PermissionHooks.js":"8816-15"},"imported":[{"uid":"8816-84"},{"uid":"8816-85"},{"uid":"8816-28"}],"importedBy":[{"uid":"8816-8"}]},"8816-16":{"id":"/src/datahooks/Permissions.tsx","moduleParts":{"datahooks/Permissions.js":"8816-17"},"imported":[{"uid":"8816-84"},{"uid":"8816-89"},{"uid":"8816-85"},{"uid":"8816-90"},{"uid":"8816-2"}],"importedBy":[{"uid":"8816-8"}]},"8816-18":{"id":"/src/datahooks/DataHooks.tsx","moduleParts":{"datahooks/DataHooks.js":"8816-19"},"imported":[{"uid":"8816-84"},{"uid":"8816-85"},{"uid":"8816-88"},{"uid":"8816-30"}],"importedBy":[{"uid":"8816-8"},{"uid":"8816-20"}]},"8816-20":{"id":"/src/content/components/ContentComponent.tsx","moduleParts":{"content/components/ContentComponent.js":"8816-21"},"imported":[{"uid":"8816-84"},{"uid":"8816-85"},{"uid":"8816-93"},{"uid":"8816-90"},{"uid":"8816-92"},{"uid":"8816-91"},{"uid":"8816-18"},{"uid":"8816-2"},{"uid":"8816-24"},{"uid":"8816-40"},{"uid":"8816-44"},{"uid":"8816-42"},{"uid":"8816-34"}],"importedBy":[{"uid":"8816-6"}]},"8816-22":{"id":"/src/layout/components/Layout.tsx","moduleParts":{"layout/components/Layout.js":"8816-23"},"imported":[{"uid":"8816-84"},{"uid":"8816-85"},{"uid":"8816-91"},{"uid":"8816-92"},{"uid":"8816-26"},{"uid":"8816-38"},{"uid":"8816-36"},{"uid":"8816-32"}],"importedBy":[{"uid":"8816-8"}]},"8816-24":{"id":"/src/utils.ts","moduleParts":{"utils.js":"8816-25"},"imported":[{"uid":"8816-93"}],"importedBy":[{"uid":"8816-20"},{"uid":"8816-38"},{"uid":"8816-52"}]},"8816-26":{"id":"/src/layout/moveItems.ts","moduleParts":{"layout/moveItems.js":"8816-27"},"imported":[{"uid":"8816-85"},{"uid":"8816-93"},{"uid":"8816-46"}],"importedBy":[{"uid":"8816-22"}]},"8816-28":{"id":"/src/datahooks/ExecutePermissionHook.tsx","moduleParts":{"datahooks/ExecutePermissionHook.js":"8816-29"},"imported":[{"uid":"8816-84"},{"uid":"8816-90"},{"uid":"8816-2"}],"importedBy":[{"uid":"8816-14"}]},"8816-30":{"id":"/src/datahooks/ExecuteDataHook.tsx","moduleParts":{"datahooks/ExecuteDataHook.js":"8816-31"},"imported":[{"uid":"8816-84"}],"importedBy":[{"uid":"8816-18"}]},"8816-32":{"id":"/src/layout/components/styles.module.css","moduleParts":{"layout/components/styles.module.css.js":"8816-33"},"imported":[{"uid":"8816-82"}],"importedBy":[{"uid":"8816-22"},{"uid":"8816-36"},{"uid":"8816-78"}]},"8816-34":{"id":"/src/content/components/styles.module.css","moduleParts":{"content/components/styles.module.css.js":"8816-35"},"imported":[{"uid":"8816-82"}],"importedBy":[{"uid":"8816-20"},{"uid":"8816-44"}]},"8816-36":{"id":"/src/layout/components/SecondaryMenuToggleItem.tsx","moduleParts":{"layout/components/SecondaryMenuToggleItem.js":"8816-37"},"imported":[{"uid":"8816-84"},{"uid":"8816-92"},{"uid":"8816-32"}],"importedBy":[{"uid":"8816-22"}]},"8816-38":{"id":"/src/layout/components/LayoutItemBar.tsx","moduleParts":{"layout/components/LayoutItemBar.js":"8816-39"},"imported":[{"uid":"8816-84"},{"uid":"8816-85"},{"uid":"8816-92"},{"uid":"8816-24"},{"uid":"8816-50"},{"uid":"8816-52"}],"importedBy":[{"uid":"8816-22"}]},"8816-40":{"id":"/src/content/hooks/useBuildContentData.ts","moduleParts":{"content/hooks/useBuildContentData.js":"8816-41"},"imported":[{"uid":"8816-48"}],"importedBy":[{"uid":"8816-20"},{"uid":"8816-42"}]},"8816-42":{"id":"/src/content/components/SidebarItemWrapper.tsx","moduleParts":{"content/components/SidebarItemWrapper.js":"8816-43"},"imported":[{"uid":"8816-84"},{"uid":"8816-85"},{"uid":"8816-94"},{"uid":"8816-92"},{"uid":"8816-40"},{"uid":"8816-12"},{"uid":"8816-56"},{"uid":"8816-54"},{"uid":"8816-58"},{"uid":"8816-60"}],"importedBy":[{"uid":"8816-20"}]},"8816-44":{"id":"/src/content/components/Header.tsx","moduleParts":{"content/components/Header.js":"8816-45"},"imported":[{"uid":"8816-84"},{"uid":"8816-85"},{"uid":"8816-92"},{"uid":"8816-12"},{"uid":"8816-34"}],"importedBy":[{"uid":"8816-20"}]},"8816-46":{"id":"/src/layout/types.ts","moduleParts":{"layout/types.js":"8816-47"},"imported":[],"importedBy":[{"uid":"8816-26"},{"uid":"8816-52"}]},"8816-48":{"id":"/src/hooks/useBuildData.ts","moduleParts":{"hooks/useBuildData.js":"8816-49"},"imported":[{"uid":"8816-89"},{"uid":"8816-85"},{"uid":"8816-93"},{"uid":"8816-88"},{"uid":"8816-2"},{"uid":"8816-64"},{"uid":"8816-66"},{"uid":"8816-68"}],"importedBy":[{"uid":"8816-40"},{"uid":"8816-52"}]},"8816-50":{"id":"/src/layout/utils.tsx","moduleParts":{"layout/utils.js":"8816-51"},"imported":[{"uid":"8816-84"},{"uid":"8816-88"},{"uid":"8816-92"},{"uid":"8816-62"}],"importedBy":[{"uid":"8816-38"},{"uid":"8816-78"},{"uid":"8816-76"}]},"8816-52":{"id":"/src/layout/components/LayoutItemWrapper.tsx","moduleParts":{"layout/components/LayoutItemWrapper.js":"8816-53"},"imported":[{"uid":"8816-84"},{"uid":"8816-85"},{"uid":"8816-94"},{"uid":"8816-92"},{"uid":"8816-48"},{"uid":"8816-24"},{"uid":"8816-46"},{"uid":"8816-74"},{"uid":"8816-78"},{"uid":"8816-80"},{"uid":"8816-76"}],"importedBy":[{"uid":"8816-38"}]},"8816-54":{"id":"/src/content/components/ActionSidebarItemComponent.tsx","moduleParts":{"content/components/ActionSidebarItemComponent.js":"8816-55"},"imported":[{"uid":"8816-84"},{"uid":"8816-92"},{"uid":"8816-70"}],"importedBy":[{"uid":"8816-42"}]},"8816-56":{"id":"/src/content/components/ActionFormSidebarItemComponent.tsx","moduleParts":{"content/components/ActionFormSidebarItemComponent.js":"8816-57"},"imported":[{"uid":"8816-84"},{"uid":"8816-85"},{"uid":"8816-92"},{"uid":"8816-70"},{"uid":"8816-72"}],"importedBy":[{"uid":"8816-42"}]},"8816-58":{"id":"/src/content/components/CustomSidebarItemComponent.tsx","moduleParts":{"content/components/CustomSidebarItemComponent.js":"8816-59"},"imported":[{"uid":"8816-84"}],"importedBy":[{"uid":"8816-42"}]},"8816-60":{"id":"/src/content/components/PlainSidebarItem.tsx","moduleParts":{"content/components/PlainSidebarItem.js":"8816-61"},"imported":[{"uid":"8816-84"},{"uid":"8816-88"},{"uid":"8816-92"},{"uid":"8816-70"}],"importedBy":[{"uid":"8816-42"}]},"8816-62":{"id":"/src/commonItems.ts","moduleParts":{"commonItems.js":"8816-63"},"imported":[],"importedBy":[{"uid":"8816-50"},{"uid":"8816-64"}]},"8816-64":{"id":"/src/hooks/useIsActiveRoute.ts","moduleParts":{"hooks/useIsActiveRoute.js":"8816-65"},"imported":[{"uid":"8816-95"},{"uid":"8816-62"}],"importedBy":[{"uid":"8816-48"}]},"8816-66":{"id":"/src/hooks/useSelectPermission.ts","moduleParts":{"hooks/useSelectPermission.js":"8816-67"},"imported":[{"uid":"8816-93"}],"importedBy":[{"uid":"8816-48"}]},"8816-68":{"id":"/src/hooks/useSelectState.ts","moduleParts":{"hooks/useSelectState.js":"8816-69"},"imported":[{"uid":"8816-93"}],"importedBy":[{"uid":"8816-48"}]},"8816-70":{"id":"/src/content/utils.tsx","moduleParts":{"content/utils.js":"8816-71"},"imported":[{"uid":"8816-84"},{"uid":"8816-92"}],"importedBy":[{"uid":"8816-56"},{"uid":"8816-54"},{"uid":"8816-60"}]},"8816-72":{"id":"/src/content/components/ActionForm.tsx","moduleParts":{"content/components/ActionForm.js":"8816-73"},"imported":[{"uid":"8816-84"},{"uid":"8816-96"},{"uid":"8816-85"},{"uid":"8816-92"}],"importedBy":[{"uid":"8816-56"}]},"8816-74":{"id":"/src/layout/components/CustomLayoutItemComponent.tsx","moduleParts":{"layout/components/CustomLayoutItemComponent.js":"8816-75"},"imported":[{"uid":"8816-84"}],"importedBy":[{"uid":"8816-52"}]},"8816-76":{"id":"/src/layout/components/PlainItem.tsx","moduleParts":{"layout/components/PlainItem.js":"8816-77"},"imported":[{"uid":"8816-84"},{"uid":"8816-91"},{"uid":"8816-92"},{"uid":"8816-50"}],"importedBy":[{"uid":"8816-52"}]},"8816-78":{"id":"/src/layout/components/DropdownItem.tsx","moduleParts":{"layout/components/DropdownItem.js":"8816-79"},"imported":[{"uid":"8816-84"},{"uid":"8816-85"},{"uid":"8816-92"},{"uid":"8816-50"},{"uid":"8816-32"}],"importedBy":[{"uid":"8816-52"}]},"8816-80":{"id":"/src/layout/components/MenuItem.tsx","moduleParts":{"layout/components/MenuItem.js":"8816-81"},"imported":[{"uid":"8816-84"},{"uid":"8816-92"}],"importedBy":[{"uid":"8816-52"}]},"8816-82":{"id":"/home/artemis/Github/imperium/node_modules/style-inject/dist/style-inject.es.js","moduleParts":{"external/style-inject/dist/style-inject.es.js":"8816-83"},"imported":[],"importedBy":[{"uid":"8816-32"},{"uid":"8816-34"}]},"8816-84":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"8816-8"},{"uid":"8816-6"},{"uid":"8816-18"},{"uid":"8816-14"},{"uid":"8816-16"},{"uid":"8816-22"},{"uid":"8816-20"},{"uid":"8816-30"},{"uid":"8816-28"},{"uid":"8816-38"},{"uid":"8816-36"},{"uid":"8816-44"},{"uid":"8816-42"},{"uid":"8816-50"},{"uid":"8816-52"},{"uid":"8816-56"},{"uid":"8816-54"},{"uid":"8816-58"},{"uid":"8816-60"},{"uid":"8816-74"},{"uid":"8816-78"},{"uid":"8816-80"},{"uid":"8816-76"},{"uid":"8816-70"},{"uid":"8816-72"}],"isExternal":true},"8816-85":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"8816-8"},{"uid":"8816-6"},{"uid":"8816-18"},{"uid":"8816-14"},{"uid":"8816-16"},{"uid":"8816-22"},{"uid":"8816-20"},{"uid":"8816-26"},{"uid":"8816-38"},{"uid":"8816-44"},{"uid":"8816-42"},{"uid":"8816-52"},{"uid":"8816-48"},{"uid":"8816-56"},{"uid":"8816-78"},{"uid":"8816-72"}],"isExternal":true},"8816-86":{"id":"@imperium/state","moduleParts":{},"imported":[],"importedBy":[{"uid":"8816-2"}],"isExternal":true},"8816-87":{"id":"@reduxjs/toolkit","moduleParts":{},"imported":[],"importedBy":[{"uid":"8816-2"}],"isExternal":true},"8816-88":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"8816-18"},{"uid":"8816-50"},{"uid":"8816-48"},{"uid":"8816-60"}],"isExternal":true},"8816-89":{"id":"@imperium/auth-client","moduleParts":{},"imported":[],"importedBy":[{"uid":"8816-16"},{"uid":"8816-48"}],"isExternal":true},"8816-90":{"id":"react-redux","moduleParts":{},"imported":[],"importedBy":[{"uid":"8816-16"},{"uid":"8816-20"},{"uid":"8816-28"}],"isExternal":true},"8816-91":{"id":"react-responsive","moduleParts":{},"imported":[],"importedBy":[{"uid":"8816-22"},{"uid":"8816-20"},{"uid":"8816-76"}],"isExternal":true},"8816-92":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"8816-22"},{"uid":"8816-20"},{"uid":"8816-38"},{"uid":"8816-36"},{"uid":"8816-44"},{"uid":"8816-42"},{"uid":"8816-50"},{"uid":"8816-52"},{"uid":"8816-56"},{"uid":"8816-54"},{"uid":"8816-60"},{"uid":"8816-78"},{"uid":"8816-80"},{"uid":"8816-76"},{"uid":"8816-70"},{"uid":"8816-72"}],"isExternal":true},"8816-93":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"8816-20"},{"uid":"8816-26"},{"uid":"8816-24"},{"uid":"8816-48"},{"uid":"8816-66"},{"uid":"8816-68"}],"isExternal":true},"8816-94":{"id":"mingo","moduleParts":{},"imported":[],"importedBy":[{"uid":"8816-42"},{"uid":"8816-52"}],"isExternal":true},"8816-95":{"id":"react-router","moduleParts":{},"imported":[],"importedBy":[{"uid":"8816-64"}],"isExternal":true},"8816-96":{"id":"@thx/controls","moduleParts":{},"imported":[],"importedBy":[{"uid":"8816-72"}],"isExternal":true}},"env":{"rollup":"2.79.1"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
2672
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src/index.ts","uid":"595b-1"}]},{"name":"state.js","children":[{"name":"src/state.ts","uid":"595b-3"}]},{"name":"content/dividerSidebarItem.js","children":[{"name":"src/content/dividerSidebarItem.ts","uid":"595b-5"}]},{"name":"layout/withLayout.js","children":[{"name":"src/layout/withLayout.tsx","uid":"595b-7"}]},{"name":"content/createPages.js","children":[{"name":"src/content/createPages.tsx","uid":"595b-9"}]},{"name":"types.js","children":[{"name":"src/types.ts","uid":"595b-11"}]},{"name":"content/types.js","children":[{"name":"src/content/types.ts","uid":"595b-13"}]},{"name":"datahooks/DataHooks.js","children":[{"name":"src/datahooks/DataHooks.tsx","uid":"595b-15"}]},{"name":"datahooks/PermissionHooks.js","children":[{"name":"src/datahooks/PermissionHooks.tsx","uid":"595b-17"}]},{"name":"datahooks/Permissions.js","children":[{"name":"src/datahooks/Permissions.tsx","uid":"595b-19"}]},{"name":"content/components/ContentComponent.js","children":[{"name":"src/content/components/ContentComponent.tsx","uid":"595b-21"}]},{"name":"layout/components/Layout.js","children":[{"name":"src/layout/components/Layout.tsx","uid":"595b-23"}]},{"name":"datahooks/ExecuteDataHook.js","children":[{"name":"src/datahooks/ExecuteDataHook.tsx","uid":"595b-25"}]},{"name":"datahooks/ExecutePermissionHook.js","children":[{"name":"src/datahooks/ExecutePermissionHook.tsx","uid":"595b-27"}]},{"name":"utils.js","children":[{"name":"src/utils.ts","uid":"595b-29"}]},{"name":"layout/moveItems.js","children":[{"name":"src/layout/moveItems.ts","uid":"595b-31"}]},{"name":"content/components/styles.module.css.js","children":[{"name":"src/content/components/styles.module.css","uid":"595b-33"}]},{"name":"layout/components/styles.module.css.js","children":[{"name":"src/layout/components/styles.module.css","uid":"595b-35"}]},{"name":"content/hooks/useBuildContentData.js","children":[{"name":"src/content/hooks/useBuildContentData.ts","uid":"595b-37"}]},{"name":"content/components/SidebarItemWrapper.js","children":[{"name":"src/content/components/SidebarItemWrapper.tsx","uid":"595b-39"}]},{"name":"content/components/Header.js","children":[{"name":"src/content/components/Header.tsx","uid":"595b-41"}]},{"name":"layout/components/LayoutItemBar.js","children":[{"name":"src/layout/components/LayoutItemBar.tsx","uid":"595b-43"}]},{"name":"layout/components/SecondaryMenuToggleItem.js","children":[{"name":"src/layout/components/SecondaryMenuToggleItem.tsx","uid":"595b-45"}]},{"name":"layout/types.js","children":[{"name":"src/layout/types.ts","uid":"595b-47"}]},{"name":"hooks/useBuildData.js","children":[{"name":"src/hooks/useBuildData.ts","uid":"595b-49"}]},{"name":"layout/utils.js","children":[{"name":"src/layout/utils.tsx","uid":"595b-51"}]},{"name":"layout/components/LayoutItemWrapper.js","children":[{"name":"src/layout/components/LayoutItemWrapper.tsx","uid":"595b-53"}]},{"name":"content/components/CustomSidebarItemComponent.js","children":[{"name":"src/content/components/CustomSidebarItemComponent.tsx","uid":"595b-55"}]},{"name":"content/components/ActionFormSidebarItemComponent.js","children":[{"name":"src/content/components/ActionFormSidebarItemComponent.tsx","uid":"595b-57"}]},{"name":"content/components/ActionSidebarItemComponent.js","children":[{"name":"src/content/components/ActionSidebarItemComponent.tsx","uid":"595b-59"}]},{"name":"content/components/PlainSidebarItem.js","children":[{"name":"src/content/components/PlainSidebarItem.tsx","uid":"595b-61"}]},{"name":"commonItems.js","children":[{"name":"src/commonItems.ts","uid":"595b-63"}]},{"name":"hooks/useIsActiveRoute.js","children":[{"name":"src/hooks/useIsActiveRoute.ts","uid":"595b-65"}]},{"name":"hooks/useSelectState.js","children":[{"name":"src/hooks/useSelectState.ts","uid":"595b-67"}]},{"name":"hooks/useSelectPermission.js","children":[{"name":"src/hooks/useSelectPermission.ts","uid":"595b-69"}]},{"name":"content/utils.js","children":[{"name":"src/content/utils.tsx","uid":"595b-71"}]},{"name":"content/components/ActionForm.js","children":[{"name":"src/content/components/ActionForm.tsx","uid":"595b-73"}]},{"name":"layout/components/CustomLayoutItemComponent.js","children":[{"name":"src/layout/components/CustomLayoutItemComponent.tsx","uid":"595b-75"}]},{"name":"layout/components/PlainItem.js","children":[{"name":"src/layout/components/PlainItem.tsx","uid":"595b-77"}]},{"name":"layout/components/MenuItem.js","children":[{"name":"src/layout/components/MenuItem.tsx","uid":"595b-79"}]},{"name":"layout/components/DropdownItem.js","children":[{"name":"src/layout/components/DropdownItem.tsx","uid":"595b-81"}]},{"name":"external/style-inject/dist/style-inject.es.js","children":[{"name":"home/artemis/Github/imperium/node_modules/style-inject/dist/style-inject.es.js","uid":"595b-83"}]}],"isRoot":true},"nodeParts":{"595b-1":{"renderedLength":144,"gzipLength":131,"brotliLength":106,"mainUid":"595b-0"},"595b-3":{"renderedLength":591,"gzipLength":268,"brotliLength":243,"mainUid":"595b-2"},"595b-5":{"renderedLength":59,"gzipLength":73,"brotliLength":63,"mainUid":"595b-4"},"595b-7":{"renderedLength":1913,"gzipLength":563,"brotliLength":489,"mainUid":"595b-6"},"595b-9":{"renderedLength":650,"gzipLength":301,"brotliLength":268,"mainUid":"595b-8"},"595b-11":{"renderedLength":121,"gzipLength":111,"brotliLength":90,"mainUid":"595b-10"},"595b-13":{"renderedLength":388,"gzipLength":167,"brotliLength":111,"mainUid":"595b-12"},"595b-15":{"renderedLength":1058,"gzipLength":390,"brotliLength":330,"mainUid":"595b-14"},"595b-17":{"renderedLength":339,"gzipLength":202,"brotliLength":164,"mainUid":"595b-16"},"595b-19":{"renderedLength":864,"gzipLength":366,"brotliLength":318,"mainUid":"595b-18"},"595b-21":{"renderedLength":3584,"gzipLength":934,"brotliLength":811,"mainUid":"595b-20"},"595b-23":{"renderedLength":2512,"gzipLength":751,"brotliLength":636,"mainUid":"595b-22"},"595b-25":{"renderedLength":123,"gzipLength":111,"brotliLength":93,"mainUid":"595b-24"},"595b-27":{"renderedLength":345,"gzipLength":207,"brotliLength":172,"mainUid":"595b-26"},"595b-29":{"renderedLength":145,"gzipLength":117,"brotliLength":116,"mainUid":"595b-28"},"595b-31":{"renderedLength":1401,"gzipLength":376,"brotliLength":347,"mainUid":"595b-30"},"595b-33":{"renderedLength":2119,"gzipLength":680,"brotliLength":565,"mainUid":"595b-32"},"595b-35":{"renderedLength":3176,"gzipLength":928,"brotliLength":762,"mainUid":"595b-34"},"595b-37":{"renderedLength":257,"gzipLength":158,"brotliLength":122,"mainUid":"595b-36"},"595b-39":{"renderedLength":1189,"gzipLength":399,"brotliLength":314,"mainUid":"595b-38"},"595b-41":{"renderedLength":1042,"gzipLength":377,"brotliLength":323,"mainUid":"595b-40"},"595b-43":{"renderedLength":726,"gzipLength":294,"brotliLength":252,"mainUid":"595b-42"},"595b-45":{"renderedLength":356,"gzipLength":233,"brotliLength":176,"mainUid":"595b-44"},"595b-47":{"renderedLength":191,"gzipLength":113,"brotliLength":89,"mainUid":"595b-46"},"595b-49":{"renderedLength":799,"gzipLength":370,"brotliLength":330,"mainUid":"595b-48"},"595b-51":{"renderedLength":915,"gzipLength":393,"brotliLength":328,"mainUid":"595b-50"},"595b-53":{"renderedLength":1503,"gzipLength":487,"brotliLength":399,"mainUid":"595b-52"},"595b-55":{"renderedLength":83,"gzipLength":97,"brotliLength":66,"mainUid":"595b-54"},"595b-57":{"renderedLength":644,"gzipLength":341,"brotliLength":295,"mainUid":"595b-56"},"595b-59":{"renderedLength":343,"gzipLength":239,"brotliLength":181,"mainUid":"595b-58"},"595b-61":{"renderedLength":325,"gzipLength":230,"brotliLength":183,"mainUid":"595b-60"},"595b-63":{"renderedLength":203,"gzipLength":136,"brotliLength":97,"mainUid":"595b-62"},"595b-65":{"renderedLength":514,"gzipLength":227,"brotliLength":187,"mainUid":"595b-64"},"595b-67":{"renderedLength":326,"gzipLength":176,"brotliLength":141,"mainUid":"595b-66"},"595b-69":{"renderedLength":294,"gzipLength":155,"brotliLength":114,"mainUid":"595b-68"},"595b-71":{"renderedLength":628,"gzipLength":259,"brotliLength":219,"mainUid":"595b-70"},"595b-73":{"renderedLength":1667,"gzipLength":624,"brotliLength":519,"mainUid":"595b-72"},"595b-75":{"renderedLength":82,"gzipLength":96,"brotliLength":66,"mainUid":"595b-74"},"595b-77":{"renderedLength":379,"gzipLength":264,"brotliLength":224,"mainUid":"595b-76"},"595b-79":{"renderedLength":252,"gzipLength":157,"brotliLength":116,"mainUid":"595b-78"},"595b-81":{"renderedLength":1179,"gzipLength":450,"brotliLength":362,"mainUid":"595b-80"},"595b-83":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"mainUid":"595b-82"}},"nodeMetas":{"595b-0":{"id":"/src/index.ts","moduleParts":{"index.js":"595b-1"},"imported":[{"uid":"595b-6"},{"uid":"595b-2"},{"uid":"595b-8"},{"uid":"595b-4"}],"importedBy":[],"isEntry":true},"595b-2":{"id":"/src/state.ts","moduleParts":{"state.js":"595b-3"},"imported":[{"uid":"595b-86"},{"uid":"595b-87"}],"importedBy":[{"uid":"595b-0"},{"uid":"595b-18"},{"uid":"595b-20"},{"uid":"595b-26"},{"uid":"595b-48"}]},"595b-4":{"id":"/src/content/dividerSidebarItem.ts","moduleParts":{"content/dividerSidebarItem.js":"595b-5"},"imported":[],"importedBy":[{"uid":"595b-0"}]},"595b-6":{"id":"/src/layout/withLayout.tsx","moduleParts":{"layout/withLayout.js":"595b-7"},"imported":[{"uid":"595b-84"},{"uid":"595b-85"},{"uid":"595b-14"},{"uid":"595b-16"},{"uid":"595b-18"},{"uid":"595b-10"},{"uid":"595b-22"}],"importedBy":[{"uid":"595b-0"}]},"595b-8":{"id":"/src/content/createPages.tsx","moduleParts":{"content/createPages.js":"595b-9"},"imported":[{"uid":"595b-84"},{"uid":"595b-85"},{"uid":"595b-20"},{"uid":"595b-12"}],"importedBy":[{"uid":"595b-0"}]},"595b-10":{"id":"/src/types.ts","moduleParts":{"types.js":"595b-11"},"imported":[],"importedBy":[{"uid":"595b-6"}]},"595b-12":{"id":"/src/content/types.ts","moduleParts":{"content/types.js":"595b-13"},"imported":[],"importedBy":[{"uid":"595b-8"},{"uid":"595b-40"},{"uid":"595b-38"}]},"595b-14":{"id":"/src/datahooks/DataHooks.tsx","moduleParts":{"datahooks/DataHooks.js":"595b-15"},"imported":[{"uid":"595b-84"},{"uid":"595b-85"},{"uid":"595b-88"},{"uid":"595b-24"}],"importedBy":[{"uid":"595b-6"},{"uid":"595b-20"}]},"595b-16":{"id":"/src/datahooks/PermissionHooks.tsx","moduleParts":{"datahooks/PermissionHooks.js":"595b-17"},"imported":[{"uid":"595b-84"},{"uid":"595b-85"},{"uid":"595b-26"}],"importedBy":[{"uid":"595b-6"}]},"595b-18":{"id":"/src/datahooks/Permissions.tsx","moduleParts":{"datahooks/Permissions.js":"595b-19"},"imported":[{"uid":"595b-84"},{"uid":"595b-89"},{"uid":"595b-85"},{"uid":"595b-90"},{"uid":"595b-2"}],"importedBy":[{"uid":"595b-6"}]},"595b-20":{"id":"/src/content/components/ContentComponent.tsx","moduleParts":{"content/components/ContentComponent.js":"595b-21"},"imported":[{"uid":"595b-84"},{"uid":"595b-85"},{"uid":"595b-93"},{"uid":"595b-90"},{"uid":"595b-92"},{"uid":"595b-91"},{"uid":"595b-14"},{"uid":"595b-2"},{"uid":"595b-28"},{"uid":"595b-36"},{"uid":"595b-40"},{"uid":"595b-38"},{"uid":"595b-32"}],"importedBy":[{"uid":"595b-8"}]},"595b-22":{"id":"/src/layout/components/Layout.tsx","moduleParts":{"layout/components/Layout.js":"595b-23"},"imported":[{"uid":"595b-84"},{"uid":"595b-85"},{"uid":"595b-91"},{"uid":"595b-92"},{"uid":"595b-30"},{"uid":"595b-42"},{"uid":"595b-44"},{"uid":"595b-34"}],"importedBy":[{"uid":"595b-6"}]},"595b-24":{"id":"/src/datahooks/ExecuteDataHook.tsx","moduleParts":{"datahooks/ExecuteDataHook.js":"595b-25"},"imported":[{"uid":"595b-84"}],"importedBy":[{"uid":"595b-14"}]},"595b-26":{"id":"/src/datahooks/ExecutePermissionHook.tsx","moduleParts":{"datahooks/ExecutePermissionHook.js":"595b-27"},"imported":[{"uid":"595b-84"},{"uid":"595b-90"},{"uid":"595b-2"}],"importedBy":[{"uid":"595b-16"}]},"595b-28":{"id":"/src/utils.ts","moduleParts":{"utils.js":"595b-29"},"imported":[{"uid":"595b-93"}],"importedBy":[{"uid":"595b-20"},{"uid":"595b-42"},{"uid":"595b-52"}]},"595b-30":{"id":"/src/layout/moveItems.ts","moduleParts":{"layout/moveItems.js":"595b-31"},"imported":[{"uid":"595b-85"},{"uid":"595b-93"},{"uid":"595b-46"}],"importedBy":[{"uid":"595b-22"}]},"595b-32":{"id":"/src/content/components/styles.module.css","moduleParts":{"content/components/styles.module.css.js":"595b-33"},"imported":[{"uid":"595b-82"}],"importedBy":[{"uid":"595b-20"},{"uid":"595b-40"}]},"595b-34":{"id":"/src/layout/components/styles.module.css","moduleParts":{"layout/components/styles.module.css.js":"595b-35"},"imported":[{"uid":"595b-82"}],"importedBy":[{"uid":"595b-22"},{"uid":"595b-44"},{"uid":"595b-80"}]},"595b-36":{"id":"/src/content/hooks/useBuildContentData.ts","moduleParts":{"content/hooks/useBuildContentData.js":"595b-37"},"imported":[{"uid":"595b-48"}],"importedBy":[{"uid":"595b-20"},{"uid":"595b-38"}]},"595b-38":{"id":"/src/content/components/SidebarItemWrapper.tsx","moduleParts":{"content/components/SidebarItemWrapper.js":"595b-39"},"imported":[{"uid":"595b-84"},{"uid":"595b-85"},{"uid":"595b-94"},{"uid":"595b-92"},{"uid":"595b-36"},{"uid":"595b-12"},{"uid":"595b-56"},{"uid":"595b-58"},{"uid":"595b-54"},{"uid":"595b-60"}],"importedBy":[{"uid":"595b-20"}]},"595b-40":{"id":"/src/content/components/Header.tsx","moduleParts":{"content/components/Header.js":"595b-41"},"imported":[{"uid":"595b-84"},{"uid":"595b-85"},{"uid":"595b-92"},{"uid":"595b-12"},{"uid":"595b-32"}],"importedBy":[{"uid":"595b-20"}]},"595b-42":{"id":"/src/layout/components/LayoutItemBar.tsx","moduleParts":{"layout/components/LayoutItemBar.js":"595b-43"},"imported":[{"uid":"595b-84"},{"uid":"595b-85"},{"uid":"595b-92"},{"uid":"595b-28"},{"uid":"595b-50"},{"uid":"595b-52"}],"importedBy":[{"uid":"595b-22"}]},"595b-44":{"id":"/src/layout/components/SecondaryMenuToggleItem.tsx","moduleParts":{"layout/components/SecondaryMenuToggleItem.js":"595b-45"},"imported":[{"uid":"595b-84"},{"uid":"595b-92"},{"uid":"595b-34"}],"importedBy":[{"uid":"595b-22"}]},"595b-46":{"id":"/src/layout/types.ts","moduleParts":{"layout/types.js":"595b-47"},"imported":[],"importedBy":[{"uid":"595b-30"},{"uid":"595b-52"}]},"595b-48":{"id":"/src/hooks/useBuildData.ts","moduleParts":{"hooks/useBuildData.js":"595b-49"},"imported":[{"uid":"595b-89"},{"uid":"595b-85"},{"uid":"595b-93"},{"uid":"595b-88"},{"uid":"595b-2"},{"uid":"595b-64"},{"uid":"595b-68"},{"uid":"595b-66"}],"importedBy":[{"uid":"595b-36"},{"uid":"595b-52"}]},"595b-50":{"id":"/src/layout/utils.tsx","moduleParts":{"layout/utils.js":"595b-51"},"imported":[{"uid":"595b-84"},{"uid":"595b-88"},{"uid":"595b-92"},{"uid":"595b-62"}],"importedBy":[{"uid":"595b-42"},{"uid":"595b-80"},{"uid":"595b-76"}]},"595b-52":{"id":"/src/layout/components/LayoutItemWrapper.tsx","moduleParts":{"layout/components/LayoutItemWrapper.js":"595b-53"},"imported":[{"uid":"595b-84"},{"uid":"595b-85"},{"uid":"595b-94"},{"uid":"595b-92"},{"uid":"595b-48"},{"uid":"595b-28"},{"uid":"595b-46"},{"uid":"595b-74"},{"uid":"595b-80"},{"uid":"595b-78"},{"uid":"595b-76"}],"importedBy":[{"uid":"595b-42"}]},"595b-54":{"id":"/src/content/components/CustomSidebarItemComponent.tsx","moduleParts":{"content/components/CustomSidebarItemComponent.js":"595b-55"},"imported":[{"uid":"595b-84"}],"importedBy":[{"uid":"595b-38"}]},"595b-56":{"id":"/src/content/components/ActionFormSidebarItemComponent.tsx","moduleParts":{"content/components/ActionFormSidebarItemComponent.js":"595b-57"},"imported":[{"uid":"595b-84"},{"uid":"595b-85"},{"uid":"595b-92"},{"uid":"595b-70"},{"uid":"595b-72"}],"importedBy":[{"uid":"595b-38"}]},"595b-58":{"id":"/src/content/components/ActionSidebarItemComponent.tsx","moduleParts":{"content/components/ActionSidebarItemComponent.js":"595b-59"},"imported":[{"uid":"595b-84"},{"uid":"595b-92"},{"uid":"595b-70"}],"importedBy":[{"uid":"595b-38"}]},"595b-60":{"id":"/src/content/components/PlainSidebarItem.tsx","moduleParts":{"content/components/PlainSidebarItem.js":"595b-61"},"imported":[{"uid":"595b-84"},{"uid":"595b-88"},{"uid":"595b-92"},{"uid":"595b-70"}],"importedBy":[{"uid":"595b-38"}]},"595b-62":{"id":"/src/commonItems.ts","moduleParts":{"commonItems.js":"595b-63"},"imported":[],"importedBy":[{"uid":"595b-50"},{"uid":"595b-64"}]},"595b-64":{"id":"/src/hooks/useIsActiveRoute.ts","moduleParts":{"hooks/useIsActiveRoute.js":"595b-65"},"imported":[{"uid":"595b-95"},{"uid":"595b-62"}],"importedBy":[{"uid":"595b-48"}]},"595b-66":{"id":"/src/hooks/useSelectState.ts","moduleParts":{"hooks/useSelectState.js":"595b-67"},"imported":[{"uid":"595b-93"}],"importedBy":[{"uid":"595b-48"}]},"595b-68":{"id":"/src/hooks/useSelectPermission.ts","moduleParts":{"hooks/useSelectPermission.js":"595b-69"},"imported":[{"uid":"595b-93"}],"importedBy":[{"uid":"595b-48"}]},"595b-70":{"id":"/src/content/utils.tsx","moduleParts":{"content/utils.js":"595b-71"},"imported":[{"uid":"595b-84"},{"uid":"595b-92"}],"importedBy":[{"uid":"595b-56"},{"uid":"595b-58"},{"uid":"595b-60"}]},"595b-72":{"id":"/src/content/components/ActionForm.tsx","moduleParts":{"content/components/ActionForm.js":"595b-73"},"imported":[{"uid":"595b-84"},{"uid":"595b-96"},{"uid":"595b-85"},{"uid":"595b-92"}],"importedBy":[{"uid":"595b-56"}]},"595b-74":{"id":"/src/layout/components/CustomLayoutItemComponent.tsx","moduleParts":{"layout/components/CustomLayoutItemComponent.js":"595b-75"},"imported":[{"uid":"595b-84"}],"importedBy":[{"uid":"595b-52"}]},"595b-76":{"id":"/src/layout/components/PlainItem.tsx","moduleParts":{"layout/components/PlainItem.js":"595b-77"},"imported":[{"uid":"595b-84"},{"uid":"595b-91"},{"uid":"595b-92"},{"uid":"595b-50"}],"importedBy":[{"uid":"595b-52"}]},"595b-78":{"id":"/src/layout/components/MenuItem.tsx","moduleParts":{"layout/components/MenuItem.js":"595b-79"},"imported":[{"uid":"595b-84"},{"uid":"595b-92"}],"importedBy":[{"uid":"595b-52"}]},"595b-80":{"id":"/src/layout/components/DropdownItem.tsx","moduleParts":{"layout/components/DropdownItem.js":"595b-81"},"imported":[{"uid":"595b-84"},{"uid":"595b-85"},{"uid":"595b-92"},{"uid":"595b-50"},{"uid":"595b-34"}],"importedBy":[{"uid":"595b-52"}]},"595b-82":{"id":"/home/artemis/Github/imperium/node_modules/style-inject/dist/style-inject.es.js","moduleParts":{"external/style-inject/dist/style-inject.es.js":"595b-83"},"imported":[],"importedBy":[{"uid":"595b-34"},{"uid":"595b-32"}]},"595b-84":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"595b-6"},{"uid":"595b-8"},{"uid":"595b-14"},{"uid":"595b-16"},{"uid":"595b-18"},{"uid":"595b-22"},{"uid":"595b-20"},{"uid":"595b-24"},{"uid":"595b-26"},{"uid":"595b-42"},{"uid":"595b-44"},{"uid":"595b-40"},{"uid":"595b-38"},{"uid":"595b-50"},{"uid":"595b-52"},{"uid":"595b-56"},{"uid":"595b-58"},{"uid":"595b-54"},{"uid":"595b-60"},{"uid":"595b-74"},{"uid":"595b-80"},{"uid":"595b-78"},{"uid":"595b-76"},{"uid":"595b-70"},{"uid":"595b-72"}],"isExternal":true},"595b-85":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"595b-6"},{"uid":"595b-8"},{"uid":"595b-14"},{"uid":"595b-16"},{"uid":"595b-18"},{"uid":"595b-22"},{"uid":"595b-20"},{"uid":"595b-30"},{"uid":"595b-42"},{"uid":"595b-40"},{"uid":"595b-38"},{"uid":"595b-52"},{"uid":"595b-48"},{"uid":"595b-56"},{"uid":"595b-80"},{"uid":"595b-72"}],"isExternal":true},"595b-86":{"id":"@imperium/state","moduleParts":{},"imported":[],"importedBy":[{"uid":"595b-2"}],"isExternal":true},"595b-87":{"id":"@reduxjs/toolkit","moduleParts":{},"imported":[],"importedBy":[{"uid":"595b-2"}],"isExternal":true},"595b-88":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"595b-14"},{"uid":"595b-50"},{"uid":"595b-48"},{"uid":"595b-60"}],"isExternal":true},"595b-89":{"id":"@imperium/auth-client","moduleParts":{},"imported":[],"importedBy":[{"uid":"595b-18"},{"uid":"595b-48"}],"isExternal":true},"595b-90":{"id":"react-redux","moduleParts":{},"imported":[],"importedBy":[{"uid":"595b-18"},{"uid":"595b-20"},{"uid":"595b-26"}],"isExternal":true},"595b-91":{"id":"react-responsive","moduleParts":{},"imported":[],"importedBy":[{"uid":"595b-22"},{"uid":"595b-20"},{"uid":"595b-76"}],"isExternal":true},"595b-92":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"595b-22"},{"uid":"595b-20"},{"uid":"595b-42"},{"uid":"595b-44"},{"uid":"595b-40"},{"uid":"595b-38"},{"uid":"595b-50"},{"uid":"595b-52"},{"uid":"595b-56"},{"uid":"595b-58"},{"uid":"595b-60"},{"uid":"595b-80"},{"uid":"595b-78"},{"uid":"595b-76"},{"uid":"595b-70"},{"uid":"595b-72"}],"isExternal":true},"595b-93":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"595b-20"},{"uid":"595b-30"},{"uid":"595b-28"},{"uid":"595b-48"},{"uid":"595b-68"},{"uid":"595b-66"}],"isExternal":true},"595b-94":{"id":"mingo","moduleParts":{},"imported":[],"importedBy":[{"uid":"595b-38"},{"uid":"595b-52"}],"isExternal":true},"595b-95":{"id":"react-router","moduleParts":{},"imported":[],"importedBy":[{"uid":"595b-64"}],"isExternal":true},"595b-96":{"id":"@thx/controls","moduleParts":{},"imported":[],"importedBy":[{"uid":"595b-72"}],"isExternal":true}},"env":{"rollup":"2.79.1"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
2673
2673
|
|
|
2674
2674
|
const run = () => {
|
|
2675
2675
|
const width = window.innerWidth;
|
package/dist/stats.txt
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
-----------------------------
|
|
2
|
+
Rollup File Analysis
|
|
3
|
+
-----------------------------
|
|
4
|
+
bundle size: 34.065 KB
|
|
5
|
+
original size: 54.095 KB
|
|
6
|
+
code reduction: 37.03 %
|
|
7
|
+
module count: 42
|
|
8
|
+
|
|
9
|
+
/src/content/components/ContentComponent.tsx
|
|
10
|
+
█████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 10.52 % (3.584 KB)
|
|
11
|
+
/src/layout/components/styles.module.css
|
|
12
|
+
████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9.32 % (3.176 KB)
|
|
13
|
+
/src/layout/components/Layout.tsx
|
|
14
|
+
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.37 % (2.512 KB)
|
|
15
|
+
/src/content/components/styles.module.css
|
|
16
|
+
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.22 % (2.119 KB)
|
|
17
|
+
/src/layout/withLayout.tsx
|
|
18
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.62 % (1.913 KB)
|
|
19
|
+
/src/content/components/ActionForm.tsx
|
|
20
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.89 % (1.667 KB)
|
|
21
|
+
/src/layout/components/LayoutItemWrapper.tsx
|
|
22
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.41 % (1.503 KB)
|
|
23
|
+
/src/layout/moveItems.ts
|
|
24
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.11 % (1.401 KB)
|
|
25
|
+
/src/content/components/SidebarItemWrapper.tsx
|
|
26
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.49 % (1.189 KB)
|
|
27
|
+
/src/layout/components/DropdownItem.tsx
|
|
28
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.46 % (1.179 KB)
|
|
29
|
+
/src/datahooks/DataHooks.tsx
|
|
30
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.11 % (1.058 KB)
|
|
31
|
+
/src/content/components/Header.tsx
|
|
32
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.06 % (1.042 KB)
|
|
33
|
+
/src/layout/utils.tsx
|
|
34
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.69 % (915 Bytes)
|
|
35
|
+
/src/datahooks/Permissions.tsx
|
|
36
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.54 % (864 Bytes)
|
|
37
|
+
/src/hooks/useBuildData.ts
|
|
38
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.35 % (799 Bytes)
|
|
39
|
+
/src/layout/components/LayoutItemBar.tsx
|
|
40
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.13 % (726 Bytes)
|
|
41
|
+
/src/content/createPages.tsx
|
|
42
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.91 % (650 Bytes)
|
|
43
|
+
/src/content/components/ActionFormSidebarItemComponent.tsx
|
|
44
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.89 % (644 Bytes)
|
|
45
|
+
/home/artemis/Github/imperium/node_modules/style-inject/dist/style-inject.es.js
|
|
46
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.87 % (636 Bytes)
|
|
47
|
+
/src/content/utils.tsx
|
|
48
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.84 % (628 Bytes)
|
|
49
|
+
/src/state.ts
|
|
50
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.73 % (591 Bytes)
|
|
51
|
+
/src/hooks/useIsActiveRoute.ts
|
|
52
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.51 % (514 Bytes)
|
|
53
|
+
/src/content/types.ts
|
|
54
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.14 % (388 Bytes)
|
|
55
|
+
/src/layout/components/PlainItem.tsx
|
|
56
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.11 % (379 Bytes)
|
|
57
|
+
/src/layout/components/SecondaryMenuToggleItem.tsx
|
|
58
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.05 % (356 Bytes)
|
|
59
|
+
/src/datahooks/ExecutePermissionHook.tsx
|
|
60
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.01 % (345 Bytes)
|
|
61
|
+
/src/content/components/ActionSidebarItemComponent.tsx
|
|
62
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.01 % (343 Bytes)
|
|
63
|
+
/src/datahooks/PermissionHooks.tsx
|
|
64
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1 % (339 Bytes)
|
|
65
|
+
/src/hooks/useSelectState.ts
|
|
66
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.96 % (326 Bytes)
|
|
67
|
+
/src/content/components/PlainSidebarItem.tsx
|
|
68
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.95 % (325 Bytes)
|
|
69
|
+
/src/hooks/useSelectPermission.ts
|
|
70
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.86 % (294 Bytes)
|
|
71
|
+
/src/content/hooks/useBuildContentData.ts
|
|
72
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.75 % (257 Bytes)
|
|
73
|
+
/src/layout/components/MenuItem.tsx
|
|
74
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.74 % (252 Bytes)
|
|
75
|
+
/src/commonItems.ts
|
|
76
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.6 % (203 Bytes)
|
|
77
|
+
/src/layout/types.ts
|
|
78
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.56 % (191 Bytes)
|
|
79
|
+
/src/utils.ts
|
|
80
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.43 % (145 Bytes)
|
|
81
|
+
/src/index.ts
|
|
82
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.42 % (144 Bytes)
|
|
83
|
+
/src/datahooks/ExecuteDataHook.tsx
|
|
84
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.36 % (123 Bytes)
|
|
85
|
+
/src/types.ts
|
|
86
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.36 % (121 Bytes)
|
|
87
|
+
/src/content/components/CustomSidebarItemComponent.tsx
|
|
88
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.24 % (83 Bytes)
|
|
89
|
+
/src/layout/components/CustomLayoutItemComponent.tsx
|
|
90
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.24 % (82 Bytes)
|
|
91
|
+
/src/content/dividerSidebarItem.ts
|
|
92
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.17 % (59 Bytes)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imperium/layout",
|
|
3
|
-
"version": "14.8.
|
|
3
|
+
"version": "14.8.2",
|
|
4
4
|
"description": "Imperium Layout package",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/thr-consulting/imperium/issues"
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@imperium/auth-client": "^14.8.
|
|
34
|
+
"@imperium/auth-client": "^14.8.1",
|
|
35
35
|
"@imperium/client": "^14.5.1",
|
|
36
36
|
"@imperium/router": "^14.5.1",
|
|
37
|
-
"@imperium/state": "^14.8.
|
|
37
|
+
"@imperium/state": "^14.8.1",
|
|
38
38
|
"@thx/controls": "^19.0.0",
|
|
39
39
|
"debug": "^4.4.0",
|
|
40
40
|
"history": "^5.0.1",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "59d2c0a275f61b99e661b929870d15778710da25"
|
|
64
64
|
}
|