@imperium/layout 13.1.3-alpha.0 → 13.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/content/components/ContentComponent.js.map +1 -1
- package/dist/esm/content/utils.js.map +1 -1
- package/dist/esm/datahooks/Permissions.js +3 -3
- package/dist/esm/datahooks/Permissions.js.map +1 -1
- package/dist/esm/hooks/useSelectState.js.map +1 -1
- package/dist/esm/layout/components/Layout.js.map +1 -1
- package/dist/esm/layout/utils.js.map +1 -1
- package/dist/esm/state.js.map +1 -1
- package/dist/stats.html +1 -1
- package/dist/stats.txt +92 -0
- package/dist/types/content/utils.d.ts +1 -1
- package/dist/types/datahooks/StateHooks.d.ts +7 -0
- package/dist/types/layout/components/Layout.d.ts +1 -1
- package/dist/types/layout/hooks/useMobileLayout.d.ts +1 -0
- package/dist/types/state.d.ts +1 -1
- package/package.json +6 -6
|
@@ -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 {
|
|
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 {DependencyList, 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 && !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\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;AACnB,EAAI,IAAA,CA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AA,aAAA,CAAA,KAAA,CAAA,QAAA,EAAA,IAAA,EACE,OAAW,IAAA,OAAA,EACX,CAAC,OAAA,oBACA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA;AAAA,IAAO,IAAK,EAAA,YAAA;AAAA,IAAa,IAAK,EAAA,KAAA;AAAA,IAAM,OAAA,EAAS,MAAM,UAAA,CAAW,IAAI,CAAA;AAAA,IAAG,WAAW,MAAO,CAAA,aAAA;AAAA,IAAe,KAAA,EAAO,EAAC,WAAA,EAAa,CAAC,EAAA;AAAA,GAAG,CAElI,mBAEA,KAAA,CAAA,aAAA,CAAA,SAAA,EAAA;AAAA,IAAU,SAAA,EAAW,IAAK,CAAA,SAAA,IAAa,EAAC;AAAA,GAAG,CAC7C,CAAA,CAAA;AAEF;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../src/content/utils.tsx"],"sourcesContent":["import type {DefineRouteOptions} from '@imperium/router';\nimport {Icon,
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../../src/content/utils.tsx"],"sourcesContent":["import type {DefineRouteOptions} from '@imperium/router';\nimport {Icon, SemanticCOLORS} from 'semantic-ui-react';\nimport type {RouteItem} from '../commonItems';\nimport type {BaseSidebarItem, ContentData} from './types';\n\nexport function getIcon<T extends DefineRouteOptions, K extends keyof T>(item: BaseSidebarItem<T, K>, data: ContentData<T, K>) {\n\tif (item.icon) {\n\t\tconst iconName = typeof item.icon === 'function' ? item.icon(data) : item.icon;\n\t\treturn <Icon name={iconName} />;\n\t}\n\treturn null;\n}\n\nexport function getRouteTo<T extends DefineRouteOptions, K extends keyof T>(item: RouteItem<ContentData<T, K>>, data: ContentData<T, K>) {\n\tif (item.to) {\n\t\treturn typeof item.to === 'function' ? item.to(data) : item.to;\n\t}\n\treturn '';\n}\n\nexport function getText<T extends DefineRouteOptions, K extends keyof T>(item: BaseSidebarItem<T, K>, data: ContentData<T, K>) {\n\treturn typeof item.text === 'function' ? item.text(data) : item.text;\n}\n\nexport function getColor<T extends DefineRouteOptions, K extends keyof T>(item: BaseSidebarItem<T, K>, data: ContentData<T, K>): SemanticCOLORS {\n\tif (!item.color) return 'blue';\n\treturn typeof item.color === 'function' ? item.color(data) : item.color;\n}\n"],"names":[],"mappings":";;;AAKO,SAAA,OAAA,CAAkE,MAA6B,IAAyB,EAAA;AAC9H,EAAA,IAAI,KAAK,IAAM,EAAA;AACd,IAAM,MAAA,QAAA,GAAW,OAAO,IAAK,CAAA,IAAA,KAAS,aAAa,IAAK,CAAA,IAAA,CAAK,IAAI,CAAA,GAAI,IAAK,CAAA,IAAA,CAAA;AAC1E,IAAA,uBAAQ,KAAA,CAAA,aAAA,CAAA,IAAA,EAAA;AAAA,MAAK,IAAM,EAAA,QAAA;AAAA,KAAU,CAAA,CAAA;AAAA,GAC9B;AACA,EAAO,OAAA,IAAA,CAAA;AACR,CAAA;AAEO,SAAA,UAAA,CAAqE,MAAoC,IAAyB,EAAA;AACxI,EAAA,IAAI,KAAK,EAAI,EAAA;AACZ,IAAO,OAAA,OAAO,KAAK,EAAO,KAAA,UAAA,GAAa,KAAK,EAAG,CAAA,IAAI,IAAI,IAAK,CAAA,EAAA,CAAA;AAAA,GAC7D;AACA,EAAO,OAAA,EAAA,CAAA;AACR,CAAA;AAEO,SAAA,OAAA,CAAkE,MAA6B,IAAyB,EAAA;AAC9H,EAAO,OAAA,OAAO,KAAK,IAAS,KAAA,UAAA,GAAa,KAAK,IAAK,CAAA,IAAI,IAAI,IAAK,CAAA,IAAA,CAAA;AACjE,CAAA;AAEO,SAAA,QAAA,CAAmE,MAA6B,IAAyC,EAAA;AAC/I,EAAA,IAAI,CAAC,IAAK,CAAA,KAAA;AAAO,IAAO,OAAA,MAAA,CAAA;AACxB,EAAO,OAAA,OAAO,KAAK,KAAU,KAAA,UAAA,GAAa,KAAK,KAAM,CAAA,IAAI,IAAI,IAAK,CAAA,KAAA,CAAA;AACnE;;;;"}
|
|
@@ -4,7 +4,7 @@ import debug from 'debug';
|
|
|
4
4
|
import { useDispatch } from 'react-redux';
|
|
5
5
|
import { useLayoutState, actions } from '../state.js';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
debug("imperium.layout.datahooks.Permissions");
|
|
8
8
|
function Permissions({ permissions }) {
|
|
9
9
|
const authorization = useAuthorization();
|
|
10
10
|
const layoutState = useLayoutState();
|
|
@@ -21,9 +21,9 @@ function Permissions({ permissions }) {
|
|
|
21
21
|
permissionsWithData.forEach((permission) => {
|
|
22
22
|
authorization.can(permission).then((result) => {
|
|
23
23
|
dispatch(actions.setPermission({ ...permission, result }));
|
|
24
|
-
})
|
|
24
|
+
});
|
|
25
25
|
});
|
|
26
|
-
})()
|
|
26
|
+
})();
|
|
27
27
|
}, [dispatch, permissions, authorization, layoutState.params]);
|
|
28
28
|
return null;
|
|
29
29
|
}
|
|
@@ -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 = 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
|
|
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 = 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.can(permission).then(result => {\n\t\t\t\t\tdispatch(actions.setPermission({...permission, result}));\n\t\t\t\t});\n\t\t\t});\n\t\t})();\n\t}, [dispatch, permissions, authorization, layoutState.params]);\n\n\treturn null;\n}\n"],"names":[],"mappings":";;;;;;AAOU,MAAM,uCAAuC,EAAA;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;AACzD,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,CAAc,GAAI,CAAA,UAAU,CAAE,CAAA,IAAA,CAAK,CAAU,MAAA,KAAA;AAC5C,UAAA,QAAA,CAAS,QAAQ,aAAc,CAAA,EAAA,GAAI,UAAY,EAAA,MAAA,EAAO,CAAC,CAAA,CAAA;AAAA,SACvD,CAAA,CAAA;AAAA,OACD,CAAA,CAAA;AAAA,KACC,GAAA,CAAA;AAAA,KACD,CAAC,QAAA,EAAU,aAAa,aAAe,EAAA,WAAA,CAAY,MAAM,CAAC,CAAA,CAAA;AAE7D,EAAO,OAAA,IAAA,CAAA;AACR;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSelectState.js","sources":["../../../src/hooks/useSelectState.ts"],"sourcesContent":["import {flowRight} from 'lodash-es';\nimport type {State, StateSelectorHook} from '../types';\n\nexport function useSelectState(stateSelectorHook?: StateSelectorHook | StateSelectorHook[]) {\n\tlet finalSelectorHook: () => any = () => ({});\n\tif (stateSelectorHook) {\n\t\tfinalSelectorHook = Array.isArray(stateSelectorHook)\n\t\t\t? flowRight(\n\t\t\t\t\tstateSelectorHook.map(hook => {\n\t\t\t\t\t\treturn (prev: State) => ({...prev, ...hook()});\n\t\t\t\t\t}),\n\t\t\t
|
|
1
|
+
{"version":3,"file":"useSelectState.js","sources":["../../../src/hooks/useSelectState.ts"],"sourcesContent":["import {flowRight} from 'lodash-es';\nimport type {State, StateSelectorHook} from '../types';\n\nexport function useSelectState(stateSelectorHook?: StateSelectorHook | StateSelectorHook[]) {\n\tlet finalSelectorHook: () => any = () => ({});\n\tif (stateSelectorHook) {\n\t\tfinalSelectorHook = Array.isArray(stateSelectorHook)\n\t\t\t? flowRight(\n\t\t\t\t\tstateSelectorHook.map(hook => {\n\t\t\t\t\t\treturn (prev: State) => ({...prev, ...hook()});\n\t\t\t\t\t}),\n\t\t\t )\n\t\t\t: stateSelectorHook;\n\t}\n\treturn finalSelectorHook();\n}\n"],"names":[],"mappings":";;AAGO,SAAA,cAAA,CAAwB,iBAA6D,EAAA;AAC3F,EAAI,IAAA,iBAAA,GAA+B,OAAQ,EAAA,CAAA,CAAA;AAC3C,EAAA,IAAI,iBAAmB,EAAA;AACtB,IAAA,iBAAA,GAAoB,MAAM,OAAQ,CAAA,iBAAiB,IAChD,SACA,CAAA,iBAAA,CAAkB,IAAI,CAAQ,IAAA,KAAA;AAC7B,MAAA,OAAO,CAAC,IAAA,MAAqB,EAAA,GAAA,IAAA,EAAA,GAAS,MAAM,EAAA,CAAA,CAAA;AAAA,KAC5C,CACD,CACA,GAAA,iBAAA,CAAA;AAAA,GACJ;AACA,EAAA,OAAO,iBAAkB,EAAA,CAAA;AAC1B;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layout.js","sources":["../../../../src/layout/components/Layout.tsx"],"sourcesContent":["import debug from 'debug';\nimport {
|
|
1
|
+
{"version":3,"file":"Layout.js","sources":["../../../../src/layout/components/Layout.tsx"],"sourcesContent":["import debug from 'debug';\nimport {ReactNode, useState} from 'react';\nimport {useMediaQuery} from 'react-responsive';\nimport {Segment} from 'semantic-ui-react';\nimport {moveItems} from '../moveItems';\nimport type {LayoutData} from '../types';\nimport {LayoutItemBar} from './LayoutItemBar';\nimport {SecondaryMenuToggleItem} from './SecondaryMenuToggleItem';\nimport styles from './styles.module.css';\n\nconst d = debug('imperium.layout.components.Layout');\n\ninterface LayoutProps extends Required<LayoutData> {\n\tchildren?: ReactNode;\n}\n\n/**\n * Renders the main layout.\n * Hides/shows/collapses things as need for mobile layout.\n * Tracks state to whether the side menu is open or not.\n * @param footer\n * @param menubar\n * @param statusbar\n * @param children\n * @constructor\n */\nexport function Layout({footer, primaryMenu, statusbar, secondaryMenu, children}: LayoutProps) {\n\tconst isMobile = useMediaQuery({query: '(max-width: 900px)'});\n\tconst [menuOpen, setMenuOpen] = useState(false);\n\n\tconst primaryMenuToggle = {\n\t\tstickOnMobile: true,\n\t\tweight: -19999,\n\t\trender: () => {\n\t\t\tif (!isMobile) return null;\n\t\t\treturn <SecondaryMenuToggleItem menuOpen={menuOpen} setMenuOpen={setMenuOpen} />;\n\t\t},\n\t};\n\n\t// Determine menubar items\n\tconst primaryMenuItems = moveItems(\n\t\tisMobile\n\t\t\t? [\n\t\t\t\t\tprimaryMenuToggle,\n\t\t\t\t\t...primaryMenu.map(p => {\n\t\t\t\t\t\treturn {...p, text: undefined};\n\t\t\t\t\t}),\n\t\t\t ]\n\t\t\t: primaryMenu,\n\t);\n\n\t// Determine sidebar items\n\tconst secondaryMenuItems = moveItems(secondaryMenu);\n\n\tconst secondaryMenuComp =\n\t\tsecondaryMenuItems.length > 0 ? (\n\t\t\t<div className=\"imperiumSecondaryMenuWrapper noPrint\">\n\t\t\t\t<LayoutItemBar\n\t\t\t\t\titems={secondaryMenuItems}\n\t\t\t\t\tinverted\n\t\t\t\t\tvertical\n\t\t\t\t\tclassName={\n\t\t\t\t\t\tisMobile && !menuOpen\n\t\t\t\t\t\t\t? `${styles.secondaryMenu} ${styles.secondaryMenuHidden} imperiumSecondaryMenu`\n\t\t\t\t\t\t\t: `${styles.secondaryMenu} imperiumSecondaryMenu`\n\t\t\t\t\t}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t) : null;\n\n\t// Determine footer items\n\tconst footerItems = moveItems(footer);\n\tconst footerComp =\n\t\tfooterItems.length > 0 ? (\n\t\t\t<LayoutItemBar name=\"footer\" items={footerItems} className={`${styles.footer} imperiumFooter`} inverted borderless />\n\t\t) : null;\n\n\t// Determine status bar items\n\tconst statusbarItems = moveItems(statusbar);\n\tconst statusbarComp =\n\t\tstatusbarItems.length > 0 ? <LayoutItemBar items={statusbarItems} inverted className={`${styles.statusbar} imperiumStatusbar`} /> : null;\n\n\treturn (\n\t\t<div className={`${styles.parent} imperiumLayout ${isMobile ? 'imperiumMobile' : 'imperiumNotMobile'}`}>\n\t\t\t<div className=\"imperiumPrimaryMenuWrapper\">\n\t\t\t\t<LayoutItemBar items={primaryMenuItems} inverted borderless className={`${styles.menubar} imperiumPrimaryMenu`} />\n\t\t\t\t{statusbarComp}\n\t\t\t</div>\n\t\t\t<Segment attached className={`${styles.contentWrapper} imperiumLayoutContentWrapper`}>\n\t\t\t\t{secondaryMenuComp}\n\t\t\t\t<div className={`${styles.content} imperiumLayoutContent`}>{children}</div>\n\t\t\t</Segment>\n\t\t\t{footerComp}\n\t\t</div>\n\t);\n}\n"],"names":[],"mappings":";;;;;;;;;AAUU,MAAM,mCAAmC,EAAA;AAgB5C,SAAA,MAAA,CAAgB,EAAC,MAAA,EAAQ,WAAa,EAAA,SAAA,EAAW,eAAe,QAAwB,EAAA,EAAA;AAC9F,EAAA,MAAM,QAAW,GAAA,aAAA,CAAc,EAAC,KAAA,EAAO,sBAAqB,CAAA,CAAA;AAC5D,EAAA,MAAM,CAAC,QAAA,EAAU,WAAe,CAAA,GAAA,QAAA,CAAS,KAAK,CAAA,CAAA;AAE9C,EAAA,MAAM,iBAAoB,GAAA;AAAA,IACzB,aAAe,EAAA,IAAA;AAAA,IACf,MAAQ,EAAA,CAAA,KAAA;AAAA,IACR,QAAQ,MAAM;AACb,MAAA,IAAI,CAAC,QAAA;AAAU,QAAO,OAAA,IAAA,CAAA;AACtB,MAAA,uBAAQ,KAAA,CAAA,aAAA,CAAA,uBAAA,EAAA;AAAA,QAAwB,QAAA;AAAA,QAAoB,WAAA;AAAA,OAA0B,CAAA,CAAA;AAAA,KAC/E;AAAA,GACD,CAAA;AAGA,EAAM,MAAA,gBAAA,GAAmB,UACxB,QACG,GAAA;AAAA,IACA,iBAAA;AAAA,IACA,GAAG,WAAY,CAAA,GAAA,CAAI,CAAK,CAAA,KAAA;AACvB,MAAO,OAAA,EAAA,GAAI,CAAG,EAAA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gB,QAAQ,EAAA,IAAA;AAAA,IAAC,SAAA,EAAW,GAAG,MAAO,CAAA,SAAA,CAAA,kBAAA,CAAA;AAAA,GAA+B,CAAK,GAAA,IAAA,CAAA;AAErI,EAAA,uBACE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAA,IAAI,SAAW,EAAA,CAAA,EAAG,MAAO,CAAA,MAAA,CAAA,gBAAA,EAAyB,WAAW,gBAAmB,GAAA,mBAAA,CAAA,CAAA;AAAA,GAAA,kBAC/E,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAA,IAAI,SAAU,EAAA,4BAAA;AAAA,GAAA,kBACb,KAAA,CAAA,aAAA,CAAA,aAAA,EAAA;AAAA,IAAc,KAAO,EAAA,gBAAA;AAAA,IAAkB,QAAQ,EAAA,IAAA;AAAA,IAAC,UAAU,EAAA,IAAA;AAAA,IAAC,SAAA,EAAW,GAAG,MAAO,CAAA,OAAA,CAAA,oBAAA,CAAA;AAAA,GAA+B,CAAA,EAC/G,aACF,CAAA,kBACC,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA;AAAA,IAAQ,QAAQ,EAAA,IAAA;AAAA,IAAC,SAAA,EAAW,GAAG,MAAO,CAAA,cAAA,CAAA,6BAAA,CAAA;AAAA,GAAA,EACrC,mCACA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAA,IAAI,SAAA,EAAW,GAAG,MAAO,CAAA,OAAA,CAAA,sBAAA,CAAA;AAAA,GAAkC,EAAA,QAAS,CACtE,CAAA,EACC,UACF,CAAA,CAAA;AAEF;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../src/layout/utils.tsx"],"sourcesContent":["import {Link} from 'react-router-dom';\nimport {Icon,
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../../src/layout/utils.tsx"],"sourcesContent":["import {Link} from 'react-router-dom';\nimport {Icon, SemanticICONS} from 'semantic-ui-react';\nimport type {RouteItem} from '../commonItems';\nimport {isHorizontalPositionedItem} from '../commonItems';\nimport type {Data} from '../types';\nimport type {BaseLayoutItem, LayoutItem} from './types';\n\n/**\n * Splits positioned items into left and right arrays (if horizontal)\n * @param items\n */\nexport function splitPositionedItems<T extends LayoutItem>(items: T[]) {\n\treturn items.reduce(\n\t\t(memo, v) => {\n\t\t\tif (isHorizontalPositionedItem(v) && v.position === 'right') {\n\t\t\t\treturn {\n\t\t\t\t\tleftItems: memo.leftItems,\n\t\t\t\t\trightItems: [...memo.rightItems, v],\n\t\t\t\t};\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tleftItems: [...memo.leftItems, v],\n\t\t\t\trightItems: memo.rightItems,\n\t\t\t};\n\t\t},\n\t\t{leftItems: [], rightItems: []} as {leftItems: T[]; rightItems: T[]},\n\t);\n}\n\nexport function linkParameters(item: BaseLayoutItem & RouteItem<Data>, data: Data) {\n\treturn item.to\n\t\t? {\n\t\t\t\tas: Link,\n\t\t\t\tactive: data.active,\n\t\t\t\tto: typeof item.to === 'function' ? item.to(data) : item.to,\n\t\t }\n\t\t: {};\n}\n\nexport function getText(item: BaseLayoutItem, data: Data) {\n\treturn typeof item.text === 'function' ? item.text(data) : item.text;\n}\n\nexport function getIcon(item: BaseLayoutItem, data: Data) {\n\t// Generate the icon component, if it exists\n\tlet iconName: SemanticICONS | undefined;\n\tif (item.icon) {\n\t\ticonName = typeof item.icon === 'function' ? item.icon(data) : item.icon;\n\t}\n\treturn item.icon ? <Icon name={iconName} /> : null;\n}\n"],"names":[],"mappings":";;;;;AAWO,SAAA,oBAAA,CAAoD,KAAY,EAAA;AACtE,EAAA,OAAO,KAAM,CAAA,MAAA,CACZ,CAAC,IAAA,EAAM,CAAM,KAAA;AACZ,IAAA,IAAI,0BAA2B,CAAA,CAAC,CAAK,IAAA,CAAA,CAAE,aAAa,OAAS,EAAA;AAC5D,MAAO,OAAA;AAAA,QACN,WAAW,IAAK,CAAA,SAAA;AAAA,QAChB,UAAY,EAAA,CAAC,GAA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esContent":["/* eslint-disable no-param-reassign */\nimport {createSliceHook} from '@imperium/state';\nimport {createSlice,
|
|
1
|
+
{"version":3,"file":"state.js","sources":["../../src/state.ts"],"sourcesContent":["/* eslint-disable no-param-reassign */\nimport {createSliceHook} from '@imperium/state';\nimport {createSlice, PayloadAction} from '@reduxjs/toolkit';\n\nexport const state = createSlice({\n\tname: 'imperiumLayout',\n\tinitialState: {\n\t\tisMobile: false,\n\t\tparams: {},\n\t\tpermissions: {} as Record<string, boolean>,\n\t},\n\treducers: {\n\t\tsetMobile: (st, action: PayloadAction<boolean>) => ({...st, isMobile: action.payload}),\n\t\tsetParams: (st, action: PayloadAction<Record<string, string>>) => {\n\t\t\tst.params = action.payload;\n\t\t},\n\t\tsetPermission: (st, action: PayloadAction<{permission: string; result: boolean}>) => {\n\t\t\tst.permissions[action.payload.permission] = action.payload.result;\n\t\t},\n\t},\n});\n\nexport const useLayoutState = createSliceHook(state);\n\nexport const {actions} = state;\n"],"names":[],"mappings":";;;AAIO,MAAM,QAAQ,WAAY,CAAA;AAAA,EAChC,IAAM,EAAA,gBAAA;AAAA,EACN,YAAc,EAAA;AAAA,IACb,QAAU,EAAA,KAAA;AAAA,IACV,QAAQ,EAAC;AAAA,IACT,aAAa,EAAC;AAAA,GACf;AAAA,EACA,QAAU,EAAA;AAAA,IACT,SAAA,EAAW,CAAC,EAAI,EAAA,MAAA,WAAwC,EAAI,EAAA,QAAA,EAAU,OAAO,OAAO,EAAA,CAAA;AAAA,IACpF,SAAA,EAAW,CAAC,EAAA,EAAI,MAAkD,KAAA;AACjE,MAAA,EAAA,CAAG,SAAS,MAAO,CAAA,OAAA,CAAA;AAAA,KACpB;AAAA,IACA,aAAA,EAAe,CAAC,EAAA,EAAI,MAAiE,KAAA;AACpF,MAAA,EAAA,CAAG,WAAY,CAAA,MAAA,CAAO,OAAQ,CAAA,UAAA,CAAA,GAAc,OAAO,OAAQ,CAAA,MAAA,CAAA;AAAA,KAC5D;AAAA,GACD;AACD,CAAC,EAAA;AAEY,MAAA,cAAA,GAAiB,gBAAgB,KAAK,EAAA;AAE5C,MAAM,EAAC,OAAW,EAAA,GAAA;;;;"}
|
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":"a48f-1"}]},{"name":"state.js","children":[{"name":"src/state.ts","uid":"a48f-3"}]},{"name":"content/dividerSidebarItem.js","children":[{"name":"src/content/dividerSidebarItem.ts","uid":"a48f-5"}]},{"name":"layout/withLayout.js","children":[{"name":"src/layout/withLayout.tsx","uid":"a48f-7"}]},{"name":"content/createPages.js","children":[{"name":"src/content/createPages.tsx","uid":"a48f-9"}]},{"name":"types.js","children":[{"name":"src/types.ts","uid":"a48f-11"}]},{"name":"content/types.js","children":[{"name":"src/content/types.ts","uid":"a48f-13"}]},{"name":"datahooks/DataHooks.js","children":[{"name":"src/datahooks/DataHooks.tsx","uid":"a48f-15"}]},{"name":"datahooks/PermissionHooks.js","children":[{"name":"src/datahooks/PermissionHooks.tsx","uid":"a48f-17"}]},{"name":"datahooks/Permissions.js","children":[{"name":"src/datahooks/Permissions.tsx","uid":"a48f-19"}]},{"name":"layout/components/Layout.js","children":[{"name":"src/layout/components/Layout.tsx","uid":"a48f-21"}]},{"name":"content/components/ContentComponent.js","children":[{"name":"src/content/components/ContentComponent.tsx","uid":"a48f-23"}]},{"name":"datahooks/ExecuteDataHook.js","children":[{"name":"src/datahooks/ExecuteDataHook.tsx","uid":"a48f-25"}]},{"name":"utils.js","children":[{"name":"src/utils.ts","uid":"a48f-27"}]},{"name":"datahooks/ExecutePermissionHook.js","children":[{"name":"src/datahooks/ExecutePermissionHook.tsx","uid":"a48f-29"}]},{"name":"layout/moveItems.js","children":[{"name":"src/layout/moveItems.ts","uid":"a48f-31"}]},{"name":"layout/components/styles.module.css.js","children":[{"name":"src/layout/components/styles.module.css","uid":"a48f-33"}]},{"name":"content/components/styles.module.css.js","children":[{"name":"src/content/components/styles.module.css","uid":"a48f-35"}]},{"name":"layout/components/SecondaryMenuToggleItem.js","children":[{"name":"src/layout/components/SecondaryMenuToggleItem.tsx","uid":"a48f-37"}]},{"name":"layout/components/LayoutItemBar.js","children":[{"name":"src/layout/components/LayoutItemBar.tsx","uid":"a48f-39"}]},{"name":"content/hooks/useBuildContentData.js","children":[{"name":"src/content/hooks/useBuildContentData.ts","uid":"a48f-41"}]},{"name":"content/components/Header.js","children":[{"name":"src/content/components/Header.tsx","uid":"a48f-43"}]},{"name":"content/components/SidebarItemWrapper.js","children":[{"name":"src/content/components/SidebarItemWrapper.tsx","uid":"a48f-45"}]},{"name":"layout/types.js","children":[{"name":"src/layout/types.ts","uid":"a48f-47"}]},{"name":"layout/utils.js","children":[{"name":"src/layout/utils.tsx","uid":"a48f-49"}]},{"name":"hooks/useBuildData.js","children":[{"name":"src/hooks/useBuildData.ts","uid":"a48f-51"}]},{"name":"layout/components/LayoutItemWrapper.js","children":[{"name":"src/layout/components/LayoutItemWrapper.tsx","uid":"a48f-53"}]},{"name":"content/components/ActionFormSidebarItemComponent.js","children":[{"name":"src/content/components/ActionFormSidebarItemComponent.tsx","uid":"a48f-55"}]},{"name":"content/components/ActionSidebarItemComponent.js","children":[{"name":"src/content/components/ActionSidebarItemComponent.tsx","uid":"a48f-57"}]},{"name":"content/components/CustomSidebarItemComponent.js","children":[{"name":"src/content/components/CustomSidebarItemComponent.tsx","uid":"a48f-59"}]},{"name":"content/components/PlainSidebarItem.js","children":[{"name":"src/content/components/PlainSidebarItem.tsx","uid":"a48f-61"}]},{"name":"commonItems.js","children":[{"name":"src/commonItems.ts","uid":"a48f-63"}]},{"name":"hooks/useIsActiveRoute.js","children":[{"name":"src/hooks/useIsActiveRoute.ts","uid":"a48f-65"}]},{"name":"hooks/useSelectPermission.js","children":[{"name":"src/hooks/useSelectPermission.ts","uid":"a48f-67"}]},{"name":"hooks/useSelectState.js","children":[{"name":"src/hooks/useSelectState.ts","uid":"a48f-69"}]},{"name":"content/utils.js","children":[{"name":"src/content/utils.tsx","uid":"a48f-71"}]},{"name":"layout/components/CustomLayoutItemComponent.js","children":[{"name":"src/layout/components/CustomLayoutItemComponent.tsx","uid":"a48f-73"}]},{"name":"layout/components/DropdownItem.js","children":[{"name":"src/layout/components/DropdownItem.tsx","uid":"a48f-75"}]},{"name":"layout/components/PlainItem.js","children":[{"name":"src/layout/components/PlainItem.tsx","uid":"a48f-77"}]},{"name":"layout/components/MenuItem.js","children":[{"name":"src/layout/components/MenuItem.tsx","uid":"a48f-79"}]},{"name":"content/components/ActionForm.js","children":[{"name":"src/content/components/ActionForm.tsx","uid":"a48f-81"}]},{"name":"external/style-inject/dist/style-inject.es.js","children":[{"name":"home/runner/work/imperium/imperium/node_modules/style-inject/dist/style-inject.es.js","uid":"a48f-83"}]}],"isRoot":true},"nodeParts":{"a48f-1":{"renderedLength":144,"gzipLength":131,"brotliLength":106,"mainUid":"a48f-0"},"a48f-3":{"renderedLength":489,"gzipLength":250,"brotliLength":217,"mainUid":"a48f-2"},"a48f-5":{"renderedLength":59,"gzipLength":73,"brotliLength":63,"mainUid":"a48f-4"},"a48f-7":{"renderedLength":1955,"gzipLength":562,"brotliLength":488,"mainUid":"a48f-6"},"a48f-9":{"renderedLength":650,"gzipLength":301,"brotliLength":268,"mainUid":"a48f-8"},"a48f-11":{"renderedLength":121,"gzipLength":111,"brotliLength":90,"mainUid":"a48f-10"},"a48f-13":{"renderedLength":388,"gzipLength":167,"brotliLength":111,"mainUid":"a48f-12"},"a48f-15":{"renderedLength":1058,"gzipLength":390,"brotliLength":330,"mainUid":"a48f-14"},"a48f-17":{"renderedLength":339,"gzipLength":202,"brotliLength":164,"mainUid":"a48f-16"},"a48f-19":{"renderedLength":864,"gzipLength":366,"brotliLength":318,"mainUid":"a48f-18"},"a48f-21":{"renderedLength":2512,"gzipLength":751,"brotliLength":636,"mainUid":"a48f-20"},"a48f-23":{"renderedLength":3376,"gzipLength":879,"brotliLength":768,"mainUid":"a48f-22"},"a48f-25":{"renderedLength":123,"gzipLength":111,"brotliLength":93,"mainUid":"a48f-24"},"a48f-27":{"renderedLength":145,"gzipLength":117,"brotliLength":116,"mainUid":"a48f-26"},"a48f-29":{"renderedLength":345,"gzipLength":207,"brotliLength":172,"mainUid":"a48f-28"},"a48f-31":{"renderedLength":1401,"gzipLength":376,"brotliLength":347,"mainUid":"a48f-30"},"a48f-33":{"renderedLength":3176,"gzipLength":928,"brotliLength":762,"mainUid":"a48f-32"},"a48f-35":{"renderedLength":2119,"gzipLength":680,"brotliLength":565,"mainUid":"a48f-34"},"a48f-37":{"renderedLength":356,"gzipLength":233,"brotliLength":176,"mainUid":"a48f-36"},"a48f-39":{"renderedLength":726,"gzipLength":294,"brotliLength":252,"mainUid":"a48f-38"},"a48f-41":{"renderedLength":257,"gzipLength":158,"brotliLength":122,"mainUid":"a48f-40"},"a48f-43":{"renderedLength":1042,"gzipLength":377,"brotliLength":323,"mainUid":"a48f-42"},"a48f-45":{"renderedLength":1189,"gzipLength":399,"brotliLength":314,"mainUid":"a48f-44"},"a48f-47":{"renderedLength":191,"gzipLength":113,"brotliLength":89,"mainUid":"a48f-46"},"a48f-49":{"renderedLength":915,"gzipLength":393,"brotliLength":328,"mainUid":"a48f-48"},"a48f-51":{"renderedLength":799,"gzipLength":370,"brotliLength":330,"mainUid":"a48f-50"},"a48f-53":{"renderedLength":1503,"gzipLength":487,"brotliLength":399,"mainUid":"a48f-52"},"a48f-55":{"renderedLength":663,"gzipLength":346,"brotliLength":277,"mainUid":"a48f-54"},"a48f-57":{"renderedLength":362,"gzipLength":246,"brotliLength":185,"mainUid":"a48f-56"},"a48f-59":{"renderedLength":83,"gzipLength":97,"brotliLength":66,"mainUid":"a48f-58"},"a48f-61":{"renderedLength":344,"gzipLength":236,"brotliLength":186,"mainUid":"a48f-60"},"a48f-63":{"renderedLength":203,"gzipLength":136,"brotliLength":97,"mainUid":"a48f-62"},"a48f-65":{"renderedLength":514,"gzipLength":227,"brotliLength":187,"mainUid":"a48f-64"},"a48f-67":{"renderedLength":294,"gzipLength":155,"brotliLength":114,"mainUid":"a48f-66"},"a48f-69":{"renderedLength":326,"gzipLength":176,"brotliLength":141,"mainUid":"a48f-68"},"a48f-71":{"renderedLength":628,"gzipLength":259,"brotliLength":219,"mainUid":"a48f-70"},"a48f-73":{"renderedLength":82,"gzipLength":96,"brotliLength":66,"mainUid":"a48f-72"},"a48f-75":{"renderedLength":1179,"gzipLength":450,"brotliLength":362,"mainUid":"a48f-74"},"a48f-77":{"renderedLength":379,"gzipLength":264,"brotliLength":224,"mainUid":"a48f-76"},"a48f-79":{"renderedLength":252,"gzipLength":157,"brotliLength":116,"mainUid":"a48f-78"},"a48f-81":{"renderedLength":1667,"gzipLength":624,"brotliLength":519,"mainUid":"a48f-80"},"a48f-83":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"mainUid":"a48f-82"}},"nodeMetas":{"a48f-0":{"id":"/src/index.ts","moduleParts":{"index.js":"a48f-1"},"imported":[{"uid":"a48f-6"},{"uid":"a48f-2"},{"uid":"a48f-8"},{"uid":"a48f-4"}],"importedBy":[],"isEntry":true},"a48f-2":{"id":"/src/state.ts","moduleParts":{"state.js":"a48f-3"},"imported":[{"uid":"a48f-86"},{"uid":"a48f-87"}],"importedBy":[{"uid":"a48f-0"},{"uid":"a48f-18"},{"uid":"a48f-22"},{"uid":"a48f-28"},{"uid":"a48f-50"}]},"a48f-4":{"id":"/src/content/dividerSidebarItem.ts","moduleParts":{"content/dividerSidebarItem.js":"a48f-5"},"imported":[],"importedBy":[{"uid":"a48f-0"}]},"a48f-6":{"id":"/src/layout/withLayout.tsx","moduleParts":{"layout/withLayout.js":"a48f-7"},"imported":[{"uid":"a48f-84"},{"uid":"a48f-85"},{"uid":"a48f-14"},{"uid":"a48f-16"},{"uid":"a48f-18"},{"uid":"a48f-10"},{"uid":"a48f-20"}],"importedBy":[{"uid":"a48f-0"}]},"a48f-8":{"id":"/src/content/createPages.tsx","moduleParts":{"content/createPages.js":"a48f-9"},"imported":[{"uid":"a48f-84"},{"uid":"a48f-85"},{"uid":"a48f-22"},{"uid":"a48f-12"}],"importedBy":[{"uid":"a48f-0"}]},"a48f-10":{"id":"/src/types.ts","moduleParts":{"types.js":"a48f-11"},"imported":[],"importedBy":[{"uid":"a48f-6"}]},"a48f-12":{"id":"/src/content/types.ts","moduleParts":{"content/types.js":"a48f-13"},"imported":[],"importedBy":[{"uid":"a48f-8"},{"uid":"a48f-42"},{"uid":"a48f-44"}]},"a48f-14":{"id":"/src/datahooks/DataHooks.tsx","moduleParts":{"datahooks/DataHooks.js":"a48f-15"},"imported":[{"uid":"a48f-84"},{"uid":"a48f-85"},{"uid":"a48f-88"},{"uid":"a48f-24"}],"importedBy":[{"uid":"a48f-6"},{"uid":"a48f-22"}]},"a48f-16":{"id":"/src/datahooks/PermissionHooks.tsx","moduleParts":{"datahooks/PermissionHooks.js":"a48f-17"},"imported":[{"uid":"a48f-84"},{"uid":"a48f-85"},{"uid":"a48f-28"}],"importedBy":[{"uid":"a48f-6"}]},"a48f-18":{"id":"/src/datahooks/Permissions.tsx","moduleParts":{"datahooks/Permissions.js":"a48f-19"},"imported":[{"uid":"a48f-84"},{"uid":"a48f-89"},{"uid":"a48f-85"},{"uid":"a48f-90"},{"uid":"a48f-2"}],"importedBy":[{"uid":"a48f-6"}]},"a48f-20":{"id":"/src/layout/components/Layout.tsx","moduleParts":{"layout/components/Layout.js":"a48f-21"},"imported":[{"uid":"a48f-84"},{"uid":"a48f-85"},{"uid":"a48f-91"},{"uid":"a48f-92"},{"uid":"a48f-30"},{"uid":"a48f-38"},{"uid":"a48f-36"},{"uid":"a48f-32"}],"importedBy":[{"uid":"a48f-6"}]},"a48f-22":{"id":"/src/content/components/ContentComponent.tsx","moduleParts":{"content/components/ContentComponent.js":"a48f-23"},"imported":[{"uid":"a48f-84"},{"uid":"a48f-85"},{"uid":"a48f-93"},{"uid":"a48f-90"},{"uid":"a48f-92"},{"uid":"a48f-91"},{"uid":"a48f-14"},{"uid":"a48f-2"},{"uid":"a48f-26"},{"uid":"a48f-40"},{"uid":"a48f-42"},{"uid":"a48f-44"},{"uid":"a48f-34"}],"importedBy":[{"uid":"a48f-8"}]},"a48f-24":{"id":"/src/datahooks/ExecuteDataHook.tsx","moduleParts":{"datahooks/ExecuteDataHook.js":"a48f-25"},"imported":[{"uid":"a48f-84"}],"importedBy":[{"uid":"a48f-14"}]},"a48f-26":{"id":"/src/utils.ts","moduleParts":{"utils.js":"a48f-27"},"imported":[{"uid":"a48f-93"}],"importedBy":[{"uid":"a48f-22"},{"uid":"a48f-38"},{"uid":"a48f-52"}]},"a48f-28":{"id":"/src/datahooks/ExecutePermissionHook.tsx","moduleParts":{"datahooks/ExecutePermissionHook.js":"a48f-29"},"imported":[{"uid":"a48f-84"},{"uid":"a48f-90"},{"uid":"a48f-2"}],"importedBy":[{"uid":"a48f-16"}]},"a48f-30":{"id":"/src/layout/moveItems.ts","moduleParts":{"layout/moveItems.js":"a48f-31"},"imported":[{"uid":"a48f-85"},{"uid":"a48f-93"},{"uid":"a48f-46"}],"importedBy":[{"uid":"a48f-20"}]},"a48f-32":{"id":"/src/layout/components/styles.module.css","moduleParts":{"layout/components/styles.module.css.js":"a48f-33"},"imported":[{"uid":"a48f-82"}],"importedBy":[{"uid":"a48f-20"},{"uid":"a48f-36"},{"uid":"a48f-74"}]},"a48f-34":{"id":"/src/content/components/styles.module.css","moduleParts":{"content/components/styles.module.css.js":"a48f-35"},"imported":[{"uid":"a48f-82"}],"importedBy":[{"uid":"a48f-22"},{"uid":"a48f-42"}]},"a48f-36":{"id":"/src/layout/components/SecondaryMenuToggleItem.tsx","moduleParts":{"layout/components/SecondaryMenuToggleItem.js":"a48f-37"},"imported":[{"uid":"a48f-84"},{"uid":"a48f-92"},{"uid":"a48f-32"}],"importedBy":[{"uid":"a48f-20"}]},"a48f-38":{"id":"/src/layout/components/LayoutItemBar.tsx","moduleParts":{"layout/components/LayoutItemBar.js":"a48f-39"},"imported":[{"uid":"a48f-84"},{"uid":"a48f-85"},{"uid":"a48f-92"},{"uid":"a48f-26"},{"uid":"a48f-48"},{"uid":"a48f-52"}],"importedBy":[{"uid":"a48f-20"}]},"a48f-40":{"id":"/src/content/hooks/useBuildContentData.ts","moduleParts":{"content/hooks/useBuildContentData.js":"a48f-41"},"imported":[{"uid":"a48f-50"}],"importedBy":[{"uid":"a48f-22"},{"uid":"a48f-44"}]},"a48f-42":{"id":"/src/content/components/Header.tsx","moduleParts":{"content/components/Header.js":"a48f-43"},"imported":[{"uid":"a48f-84"},{"uid":"a48f-85"},{"uid":"a48f-92"},{"uid":"a48f-12"},{"uid":"a48f-34"}],"importedBy":[{"uid":"a48f-22"}]},"a48f-44":{"id":"/src/content/components/SidebarItemWrapper.tsx","moduleParts":{"content/components/SidebarItemWrapper.js":"a48f-45"},"imported":[{"uid":"a48f-84"},{"uid":"a48f-85"},{"uid":"a48f-94"},{"uid":"a48f-92"},{"uid":"a48f-40"},{"uid":"a48f-12"},{"uid":"a48f-54"},{"uid":"a48f-56"},{"uid":"a48f-58"},{"uid":"a48f-60"}],"importedBy":[{"uid":"a48f-22"}]},"a48f-46":{"id":"/src/layout/types.ts","moduleParts":{"layout/types.js":"a48f-47"},"imported":[],"importedBy":[{"uid":"a48f-30"},{"uid":"a48f-52"}]},"a48f-48":{"id":"/src/layout/utils.tsx","moduleParts":{"layout/utils.js":"a48f-49"},"imported":[{"uid":"a48f-84"},{"uid":"a48f-88"},{"uid":"a48f-92"},{"uid":"a48f-62"}],"importedBy":[{"uid":"a48f-38"},{"uid":"a48f-74"},{"uid":"a48f-76"}]},"a48f-50":{"id":"/src/hooks/useBuildData.ts","moduleParts":{"hooks/useBuildData.js":"a48f-51"},"imported":[{"uid":"a48f-89"},{"uid":"a48f-85"},{"uid":"a48f-93"},{"uid":"a48f-88"},{"uid":"a48f-2"},{"uid":"a48f-64"},{"uid":"a48f-66"},{"uid":"a48f-68"}],"importedBy":[{"uid":"a48f-40"},{"uid":"a48f-52"}]},"a48f-52":{"id":"/src/layout/components/LayoutItemWrapper.tsx","moduleParts":{"layout/components/LayoutItemWrapper.js":"a48f-53"},"imported":[{"uid":"a48f-84"},{"uid":"a48f-85"},{"uid":"a48f-94"},{"uid":"a48f-92"},{"uid":"a48f-50"},{"uid":"a48f-26"},{"uid":"a48f-46"},{"uid":"a48f-72"},{"uid":"a48f-74"},{"uid":"a48f-78"},{"uid":"a48f-76"}],"importedBy":[{"uid":"a48f-38"}]},"a48f-54":{"id":"/src/content/components/ActionFormSidebarItemComponent.tsx","moduleParts":{"content/components/ActionFormSidebarItemComponent.js":"a48f-55"},"imported":[{"uid":"a48f-84"},{"uid":"a48f-85"},{"uid":"a48f-92"},{"uid":"a48f-70"},{"uid":"a48f-80"}],"importedBy":[{"uid":"a48f-44"}]},"a48f-56":{"id":"/src/content/components/ActionSidebarItemComponent.tsx","moduleParts":{"content/components/ActionSidebarItemComponent.js":"a48f-57"},"imported":[{"uid":"a48f-84"},{"uid":"a48f-92"},{"uid":"a48f-70"}],"importedBy":[{"uid":"a48f-44"}]},"a48f-58":{"id":"/src/content/components/CustomSidebarItemComponent.tsx","moduleParts":{"content/components/CustomSidebarItemComponent.js":"a48f-59"},"imported":[{"uid":"a48f-84"}],"importedBy":[{"uid":"a48f-44"}]},"a48f-60":{"id":"/src/content/components/PlainSidebarItem.tsx","moduleParts":{"content/components/PlainSidebarItem.js":"a48f-61"},"imported":[{"uid":"a48f-84"},{"uid":"a48f-88"},{"uid":"a48f-92"},{"uid":"a48f-70"}],"importedBy":[{"uid":"a48f-44"}]},"a48f-62":{"id":"/src/commonItems.ts","moduleParts":{"commonItems.js":"a48f-63"},"imported":[],"importedBy":[{"uid":"a48f-48"},{"uid":"a48f-64"}]},"a48f-64":{"id":"/src/hooks/useIsActiveRoute.ts","moduleParts":{"hooks/useIsActiveRoute.js":"a48f-65"},"imported":[{"uid":"a48f-95"},{"uid":"a48f-62"}],"importedBy":[{"uid":"a48f-50"}]},"a48f-66":{"id":"/src/hooks/useSelectPermission.ts","moduleParts":{"hooks/useSelectPermission.js":"a48f-67"},"imported":[{"uid":"a48f-93"}],"importedBy":[{"uid":"a48f-50"}]},"a48f-68":{"id":"/src/hooks/useSelectState.ts","moduleParts":{"hooks/useSelectState.js":"a48f-69"},"imported":[{"uid":"a48f-93"}],"importedBy":[{"uid":"a48f-50"}]},"a48f-70":{"id":"/src/content/utils.tsx","moduleParts":{"content/utils.js":"a48f-71"},"imported":[{"uid":"a48f-84"},{"uid":"a48f-92"}],"importedBy":[{"uid":"a48f-54"},{"uid":"a48f-56"},{"uid":"a48f-60"}]},"a48f-72":{"id":"/src/layout/components/CustomLayoutItemComponent.tsx","moduleParts":{"layout/components/CustomLayoutItemComponent.js":"a48f-73"},"imported":[{"uid":"a48f-84"}],"importedBy":[{"uid":"a48f-52"}]},"a48f-74":{"id":"/src/layout/components/DropdownItem.tsx","moduleParts":{"layout/components/DropdownItem.js":"a48f-75"},"imported":[{"uid":"a48f-84"},{"uid":"a48f-85"},{"uid":"a48f-92"},{"uid":"a48f-48"},{"uid":"a48f-32"}],"importedBy":[{"uid":"a48f-52"}]},"a48f-76":{"id":"/src/layout/components/PlainItem.tsx","moduleParts":{"layout/components/PlainItem.js":"a48f-77"},"imported":[{"uid":"a48f-84"},{"uid":"a48f-91"},{"uid":"a48f-92"},{"uid":"a48f-48"}],"importedBy":[{"uid":"a48f-52"}]},"a48f-78":{"id":"/src/layout/components/MenuItem.tsx","moduleParts":{"layout/components/MenuItem.js":"a48f-79"},"imported":[{"uid":"a48f-84"},{"uid":"a48f-92"}],"importedBy":[{"uid":"a48f-52"}]},"a48f-80":{"id":"/src/content/components/ActionForm.tsx","moduleParts":{"content/components/ActionForm.js":"a48f-81"},"imported":[{"uid":"a48f-84"},{"uid":"a48f-96"},{"uid":"a48f-85"},{"uid":"a48f-92"}],"importedBy":[{"uid":"a48f-54"}]},"a48f-82":{"id":"/home/runner/work/imperium/imperium/node_modules/style-inject/dist/style-inject.es.js","moduleParts":{"external/style-inject/dist/style-inject.es.js":"a48f-83"},"imported":[],"importedBy":[{"uid":"a48f-32"},{"uid":"a48f-34"}]},"a48f-84":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"a48f-6"},{"uid":"a48f-8"},{"uid":"a48f-14"},{"uid":"a48f-16"},{"uid":"a48f-18"},{"uid":"a48f-20"},{"uid":"a48f-22"},{"uid":"a48f-24"},{"uid":"a48f-28"},{"uid":"a48f-38"},{"uid":"a48f-36"},{"uid":"a48f-42"},{"uid":"a48f-44"},{"uid":"a48f-48"},{"uid":"a48f-52"},{"uid":"a48f-54"},{"uid":"a48f-56"},{"uid":"a48f-58"},{"uid":"a48f-60"},{"uid":"a48f-72"},{"uid":"a48f-74"},{"uid":"a48f-78"},{"uid":"a48f-76"},{"uid":"a48f-70"},{"uid":"a48f-80"}],"isExternal":true},"a48f-85":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"a48f-6"},{"uid":"a48f-8"},{"uid":"a48f-14"},{"uid":"a48f-16"},{"uid":"a48f-18"},{"uid":"a48f-20"},{"uid":"a48f-22"},{"uid":"a48f-30"},{"uid":"a48f-38"},{"uid":"a48f-42"},{"uid":"a48f-44"},{"uid":"a48f-52"},{"uid":"a48f-50"},{"uid":"a48f-54"},{"uid":"a48f-74"},{"uid":"a48f-80"}],"isExternal":true},"a48f-86":{"id":"@imperium/state","moduleParts":{},"imported":[],"importedBy":[{"uid":"a48f-2"}],"isExternal":true},"a48f-87":{"id":"@reduxjs/toolkit","moduleParts":{},"imported":[],"importedBy":[{"uid":"a48f-2"}],"isExternal":true},"a48f-88":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"a48f-14"},{"uid":"a48f-48"},{"uid":"a48f-50"},{"uid":"a48f-60"}],"isExternal":true},"a48f-89":{"id":"@imperium/auth-client","moduleParts":{},"imported":[],"importedBy":[{"uid":"a48f-18"},{"uid":"a48f-50"}],"isExternal":true},"a48f-90":{"id":"react-redux","moduleParts":{},"imported":[],"importedBy":[{"uid":"a48f-18"},{"uid":"a48f-22"},{"uid":"a48f-28"}],"isExternal":true},"a48f-91":{"id":"react-responsive","moduleParts":{},"imported":[],"importedBy":[{"uid":"a48f-20"},{"uid":"a48f-22"},{"uid":"a48f-76"}],"isExternal":true},"a48f-92":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"a48f-20"},{"uid":"a48f-22"},{"uid":"a48f-38"},{"uid":"a48f-36"},{"uid":"a48f-42"},{"uid":"a48f-44"},{"uid":"a48f-48"},{"uid":"a48f-52"},{"uid":"a48f-54"},{"uid":"a48f-56"},{"uid":"a48f-60"},{"uid":"a48f-74"},{"uid":"a48f-78"},{"uid":"a48f-76"},{"uid":"a48f-70"},{"uid":"a48f-80"}],"isExternal":true},"a48f-93":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"a48f-22"},{"uid":"a48f-30"},{"uid":"a48f-26"},{"uid":"a48f-50"},{"uid":"a48f-66"},{"uid":"a48f-68"}],"isExternal":true},"a48f-94":{"id":"mingo","moduleParts":{},"imported":[],"importedBy":[{"uid":"a48f-44"},{"uid":"a48f-52"}],"isExternal":true},"a48f-95":{"id":"react-router","moduleParts":{},"imported":[],"importedBy":[{"uid":"a48f-64"}],"isExternal":true},"a48f-96":{"id":"@thx/controls","moduleParts":{},"imported":[],"importedBy":[{"uid":"a48f-80"}],"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":"5add-1"}]},{"name":"state.js","children":[{"name":"src/state.ts","uid":"5add-3"}]},{"name":"content/dividerSidebarItem.js","children":[{"name":"src/content/dividerSidebarItem.ts","uid":"5add-5"}]},{"name":"layout/withLayout.js","children":[{"name":"src/layout/withLayout.tsx","uid":"5add-7"}]},{"name":"content/createPages.js","children":[{"name":"src/content/createPages.tsx","uid":"5add-9"}]},{"name":"types.js","children":[{"name":"src/types.ts","uid":"5add-11"}]},{"name":"content/types.js","children":[{"name":"src/content/types.ts","uid":"5add-13"}]},{"name":"datahooks/DataHooks.js","children":[{"name":"src/datahooks/DataHooks.tsx","uid":"5add-15"}]},{"name":"datahooks/Permissions.js","children":[{"name":"src/datahooks/Permissions.tsx","uid":"5add-17"}]},{"name":"datahooks/PermissionHooks.js","children":[{"name":"src/datahooks/PermissionHooks.tsx","uid":"5add-19"}]},{"name":"content/components/ContentComponent.js","children":[{"name":"src/content/components/ContentComponent.tsx","uid":"5add-21"}]},{"name":"layout/components/Layout.js","children":[{"name":"src/layout/components/Layout.tsx","uid":"5add-23"}]},{"name":"utils.js","children":[{"name":"src/utils.ts","uid":"5add-25"}]},{"name":"datahooks/ExecuteDataHook.js","children":[{"name":"src/datahooks/ExecuteDataHook.tsx","uid":"5add-27"}]},{"name":"datahooks/ExecutePermissionHook.js","children":[{"name":"src/datahooks/ExecutePermissionHook.tsx","uid":"5add-29"}]},{"name":"layout/moveItems.js","children":[{"name":"src/layout/moveItems.ts","uid":"5add-31"}]},{"name":"content/components/styles.module.css.js","children":[{"name":"src/content/components/styles.module.css","uid":"5add-33"}]},{"name":"layout/components/styles.module.css.js","children":[{"name":"src/layout/components/styles.module.css","uid":"5add-35"}]},{"name":"content/components/SidebarItemWrapper.js","children":[{"name":"src/content/components/SidebarItemWrapper.tsx","uid":"5add-37"}]},{"name":"content/components/Header.js","children":[{"name":"src/content/components/Header.tsx","uid":"5add-39"}]},{"name":"content/hooks/useBuildContentData.js","children":[{"name":"src/content/hooks/useBuildContentData.ts","uid":"5add-41"}]},{"name":"layout/components/LayoutItemBar.js","children":[{"name":"src/layout/components/LayoutItemBar.tsx","uid":"5add-43"}]},{"name":"layout/components/SecondaryMenuToggleItem.js","children":[{"name":"src/layout/components/SecondaryMenuToggleItem.tsx","uid":"5add-45"}]},{"name":"layout/types.js","children":[{"name":"src/layout/types.ts","uid":"5add-47"}]},{"name":"layout/utils.js","children":[{"name":"src/layout/utils.tsx","uid":"5add-49"}]},{"name":"hooks/useBuildData.js","children":[{"name":"src/hooks/useBuildData.ts","uid":"5add-51"}]},{"name":"content/components/ActionFormSidebarItemComponent.js","children":[{"name":"src/content/components/ActionFormSidebarItemComponent.tsx","uid":"5add-53"}]},{"name":"content/components/ActionSidebarItemComponent.js","children":[{"name":"src/content/components/ActionSidebarItemComponent.tsx","uid":"5add-55"}]},{"name":"content/components/CustomSidebarItemComponent.js","children":[{"name":"src/content/components/CustomSidebarItemComponent.tsx","uid":"5add-57"}]},{"name":"content/components/PlainSidebarItem.js","children":[{"name":"src/content/components/PlainSidebarItem.tsx","uid":"5add-59"}]},{"name":"layout/components/LayoutItemWrapper.js","children":[{"name":"src/layout/components/LayoutItemWrapper.tsx","uid":"5add-61"}]},{"name":"commonItems.js","children":[{"name":"src/commonItems.ts","uid":"5add-63"}]},{"name":"hooks/useIsActiveRoute.js","children":[{"name":"src/hooks/useIsActiveRoute.ts","uid":"5add-65"}]},{"name":"hooks/useSelectPermission.js","children":[{"name":"src/hooks/useSelectPermission.ts","uid":"5add-67"}]},{"name":"hooks/useSelectState.js","children":[{"name":"src/hooks/useSelectState.ts","uid":"5add-69"}]},{"name":"content/utils.js","children":[{"name":"src/content/utils.tsx","uid":"5add-71"}]},{"name":"content/components/ActionForm.js","children":[{"name":"src/content/components/ActionForm.tsx","uid":"5add-73"}]},{"name":"layout/components/CustomLayoutItemComponent.js","children":[{"name":"src/layout/components/CustomLayoutItemComponent.tsx","uid":"5add-75"}]},{"name":"layout/components/DropdownItem.js","children":[{"name":"src/layout/components/DropdownItem.tsx","uid":"5add-77"}]},{"name":"layout/components/MenuItem.js","children":[{"name":"src/layout/components/MenuItem.tsx","uid":"5add-79"}]},{"name":"layout/components/PlainItem.js","children":[{"name":"src/layout/components/PlainItem.tsx","uid":"5add-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":"5add-83"}]}],"isRoot":true},"nodeParts":{"5add-1":{"renderedLength":144,"gzipLength":131,"brotliLength":106,"mainUid":"5add-0"},"5add-3":{"renderedLength":489,"gzipLength":250,"brotliLength":217,"mainUid":"5add-2"},"5add-5":{"renderedLength":59,"gzipLength":73,"brotliLength":63,"mainUid":"5add-4"},"5add-7":{"renderedLength":1955,"gzipLength":562,"brotliLength":488,"mainUid":"5add-6"},"5add-9":{"renderedLength":650,"gzipLength":301,"brotliLength":268,"mainUid":"5add-8"},"5add-11":{"renderedLength":121,"gzipLength":111,"brotliLength":90,"mainUid":"5add-10"},"5add-13":{"renderedLength":388,"gzipLength":167,"brotliLength":111,"mainUid":"5add-12"},"5add-15":{"renderedLength":1058,"gzipLength":390,"brotliLength":330,"mainUid":"5add-14"},"5add-17":{"renderedLength":808,"gzipLength":351,"brotliLength":306,"mainUid":"5add-16"},"5add-19":{"renderedLength":339,"gzipLength":202,"brotliLength":164,"mainUid":"5add-18"},"5add-21":{"renderedLength":3376,"gzipLength":879,"brotliLength":768,"mainUid":"5add-20"},"5add-23":{"renderedLength":2512,"gzipLength":751,"brotliLength":636,"mainUid":"5add-22"},"5add-25":{"renderedLength":145,"gzipLength":117,"brotliLength":116,"mainUid":"5add-24"},"5add-27":{"renderedLength":123,"gzipLength":111,"brotliLength":93,"mainUid":"5add-26"},"5add-29":{"renderedLength":345,"gzipLength":207,"brotliLength":172,"mainUid":"5add-28"},"5add-31":{"renderedLength":1401,"gzipLength":376,"brotliLength":347,"mainUid":"5add-30"},"5add-33":{"renderedLength":2119,"gzipLength":680,"brotliLength":565,"mainUid":"5add-32"},"5add-35":{"renderedLength":3176,"gzipLength":928,"brotliLength":762,"mainUid":"5add-34"},"5add-37":{"renderedLength":1189,"gzipLength":399,"brotliLength":314,"mainUid":"5add-36"},"5add-39":{"renderedLength":1042,"gzipLength":377,"brotliLength":323,"mainUid":"5add-38"},"5add-41":{"renderedLength":257,"gzipLength":158,"brotliLength":122,"mainUid":"5add-40"},"5add-43":{"renderedLength":726,"gzipLength":294,"brotliLength":252,"mainUid":"5add-42"},"5add-45":{"renderedLength":356,"gzipLength":233,"brotliLength":176,"mainUid":"5add-44"},"5add-47":{"renderedLength":191,"gzipLength":113,"brotliLength":89,"mainUid":"5add-46"},"5add-49":{"renderedLength":915,"gzipLength":393,"brotliLength":328,"mainUid":"5add-48"},"5add-51":{"renderedLength":799,"gzipLength":370,"brotliLength":330,"mainUid":"5add-50"},"5add-53":{"renderedLength":663,"gzipLength":346,"brotliLength":277,"mainUid":"5add-52"},"5add-55":{"renderedLength":362,"gzipLength":246,"brotliLength":185,"mainUid":"5add-54"},"5add-57":{"renderedLength":83,"gzipLength":97,"brotliLength":66,"mainUid":"5add-56"},"5add-59":{"renderedLength":344,"gzipLength":236,"brotliLength":186,"mainUid":"5add-58"},"5add-61":{"renderedLength":1503,"gzipLength":487,"brotliLength":399,"mainUid":"5add-60"},"5add-63":{"renderedLength":203,"gzipLength":136,"brotliLength":97,"mainUid":"5add-62"},"5add-65":{"renderedLength":514,"gzipLength":227,"brotliLength":187,"mainUid":"5add-64"},"5add-67":{"renderedLength":294,"gzipLength":155,"brotliLength":114,"mainUid":"5add-66"},"5add-69":{"renderedLength":326,"gzipLength":176,"brotliLength":141,"mainUid":"5add-68"},"5add-71":{"renderedLength":628,"gzipLength":259,"brotliLength":219,"mainUid":"5add-70"},"5add-73":{"renderedLength":1667,"gzipLength":624,"brotliLength":519,"mainUid":"5add-72"},"5add-75":{"renderedLength":82,"gzipLength":96,"brotliLength":66,"mainUid":"5add-74"},"5add-77":{"renderedLength":1179,"gzipLength":450,"brotliLength":362,"mainUid":"5add-76"},"5add-79":{"renderedLength":252,"gzipLength":157,"brotliLength":116,"mainUid":"5add-78"},"5add-81":{"renderedLength":379,"gzipLength":264,"brotliLength":224,"mainUid":"5add-80"},"5add-83":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"mainUid":"5add-82"}},"nodeMetas":{"5add-0":{"id":"/src/index.ts","moduleParts":{"index.js":"5add-1"},"imported":[{"uid":"5add-6"},{"uid":"5add-2"},{"uid":"5add-8"},{"uid":"5add-4"}],"importedBy":[],"isEntry":true},"5add-2":{"id":"/src/state.ts","moduleParts":{"state.js":"5add-3"},"imported":[{"uid":"5add-86"},{"uid":"5add-87"}],"importedBy":[{"uid":"5add-0"},{"uid":"5add-16"},{"uid":"5add-20"},{"uid":"5add-28"},{"uid":"5add-50"}]},"5add-4":{"id":"/src/content/dividerSidebarItem.ts","moduleParts":{"content/dividerSidebarItem.js":"5add-5"},"imported":[],"importedBy":[{"uid":"5add-0"}]},"5add-6":{"id":"/src/layout/withLayout.tsx","moduleParts":{"layout/withLayout.js":"5add-7"},"imported":[{"uid":"5add-84"},{"uid":"5add-85"},{"uid":"5add-14"},{"uid":"5add-18"},{"uid":"5add-16"},{"uid":"5add-10"},{"uid":"5add-22"}],"importedBy":[{"uid":"5add-0"}]},"5add-8":{"id":"/src/content/createPages.tsx","moduleParts":{"content/createPages.js":"5add-9"},"imported":[{"uid":"5add-84"},{"uid":"5add-85"},{"uid":"5add-20"},{"uid":"5add-12"}],"importedBy":[{"uid":"5add-0"}]},"5add-10":{"id":"/src/types.ts","moduleParts":{"types.js":"5add-11"},"imported":[],"importedBy":[{"uid":"5add-6"}]},"5add-12":{"id":"/src/content/types.ts","moduleParts":{"content/types.js":"5add-13"},"imported":[],"importedBy":[{"uid":"5add-8"},{"uid":"5add-38"},{"uid":"5add-36"}]},"5add-14":{"id":"/src/datahooks/DataHooks.tsx","moduleParts":{"datahooks/DataHooks.js":"5add-15"},"imported":[{"uid":"5add-84"},{"uid":"5add-85"},{"uid":"5add-88"},{"uid":"5add-26"}],"importedBy":[{"uid":"5add-6"},{"uid":"5add-20"}]},"5add-16":{"id":"/src/datahooks/Permissions.tsx","moduleParts":{"datahooks/Permissions.js":"5add-17"},"imported":[{"uid":"5add-84"},{"uid":"5add-89"},{"uid":"5add-85"},{"uid":"5add-90"},{"uid":"5add-2"}],"importedBy":[{"uid":"5add-6"}]},"5add-18":{"id":"/src/datahooks/PermissionHooks.tsx","moduleParts":{"datahooks/PermissionHooks.js":"5add-19"},"imported":[{"uid":"5add-84"},{"uid":"5add-85"},{"uid":"5add-28"}],"importedBy":[{"uid":"5add-6"}]},"5add-20":{"id":"/src/content/components/ContentComponent.tsx","moduleParts":{"content/components/ContentComponent.js":"5add-21"},"imported":[{"uid":"5add-84"},{"uid":"5add-85"},{"uid":"5add-93"},{"uid":"5add-90"},{"uid":"5add-92"},{"uid":"5add-91"},{"uid":"5add-14"},{"uid":"5add-2"},{"uid":"5add-24"},{"uid":"5add-40"},{"uid":"5add-38"},{"uid":"5add-36"},{"uid":"5add-32"}],"importedBy":[{"uid":"5add-8"}]},"5add-22":{"id":"/src/layout/components/Layout.tsx","moduleParts":{"layout/components/Layout.js":"5add-23"},"imported":[{"uid":"5add-84"},{"uid":"5add-85"},{"uid":"5add-91"},{"uid":"5add-92"},{"uid":"5add-30"},{"uid":"5add-42"},{"uid":"5add-44"},{"uid":"5add-34"}],"importedBy":[{"uid":"5add-6"}]},"5add-24":{"id":"/src/utils.ts","moduleParts":{"utils.js":"5add-25"},"imported":[{"uid":"5add-93"}],"importedBy":[{"uid":"5add-20"},{"uid":"5add-42"},{"uid":"5add-60"}]},"5add-26":{"id":"/src/datahooks/ExecuteDataHook.tsx","moduleParts":{"datahooks/ExecuteDataHook.js":"5add-27"},"imported":[{"uid":"5add-84"}],"importedBy":[{"uid":"5add-14"}]},"5add-28":{"id":"/src/datahooks/ExecutePermissionHook.tsx","moduleParts":{"datahooks/ExecutePermissionHook.js":"5add-29"},"imported":[{"uid":"5add-84"},{"uid":"5add-90"},{"uid":"5add-2"}],"importedBy":[{"uid":"5add-18"}]},"5add-30":{"id":"/src/layout/moveItems.ts","moduleParts":{"layout/moveItems.js":"5add-31"},"imported":[{"uid":"5add-85"},{"uid":"5add-93"},{"uid":"5add-46"}],"importedBy":[{"uid":"5add-22"}]},"5add-32":{"id":"/src/content/components/styles.module.css","moduleParts":{"content/components/styles.module.css.js":"5add-33"},"imported":[{"uid":"5add-82"}],"importedBy":[{"uid":"5add-20"},{"uid":"5add-38"}]},"5add-34":{"id":"/src/layout/components/styles.module.css","moduleParts":{"layout/components/styles.module.css.js":"5add-35"},"imported":[{"uid":"5add-82"}],"importedBy":[{"uid":"5add-22"},{"uid":"5add-44"},{"uid":"5add-76"}]},"5add-36":{"id":"/src/content/components/SidebarItemWrapper.tsx","moduleParts":{"content/components/SidebarItemWrapper.js":"5add-37"},"imported":[{"uid":"5add-84"},{"uid":"5add-85"},{"uid":"5add-94"},{"uid":"5add-92"},{"uid":"5add-40"},{"uid":"5add-12"},{"uid":"5add-52"},{"uid":"5add-54"},{"uid":"5add-56"},{"uid":"5add-58"}],"importedBy":[{"uid":"5add-20"}]},"5add-38":{"id":"/src/content/components/Header.tsx","moduleParts":{"content/components/Header.js":"5add-39"},"imported":[{"uid":"5add-84"},{"uid":"5add-85"},{"uid":"5add-92"},{"uid":"5add-12"},{"uid":"5add-32"}],"importedBy":[{"uid":"5add-20"}]},"5add-40":{"id":"/src/content/hooks/useBuildContentData.ts","moduleParts":{"content/hooks/useBuildContentData.js":"5add-41"},"imported":[{"uid":"5add-50"}],"importedBy":[{"uid":"5add-20"},{"uid":"5add-36"}]},"5add-42":{"id":"/src/layout/components/LayoutItemBar.tsx","moduleParts":{"layout/components/LayoutItemBar.js":"5add-43"},"imported":[{"uid":"5add-84"},{"uid":"5add-85"},{"uid":"5add-92"},{"uid":"5add-24"},{"uid":"5add-48"},{"uid":"5add-60"}],"importedBy":[{"uid":"5add-22"}]},"5add-44":{"id":"/src/layout/components/SecondaryMenuToggleItem.tsx","moduleParts":{"layout/components/SecondaryMenuToggleItem.js":"5add-45"},"imported":[{"uid":"5add-84"},{"uid":"5add-92"},{"uid":"5add-34"}],"importedBy":[{"uid":"5add-22"}]},"5add-46":{"id":"/src/layout/types.ts","moduleParts":{"layout/types.js":"5add-47"},"imported":[],"importedBy":[{"uid":"5add-30"},{"uid":"5add-60"}]},"5add-48":{"id":"/src/layout/utils.tsx","moduleParts":{"layout/utils.js":"5add-49"},"imported":[{"uid":"5add-84"},{"uid":"5add-88"},{"uid":"5add-92"},{"uid":"5add-62"}],"importedBy":[{"uid":"5add-42"},{"uid":"5add-76"},{"uid":"5add-80"}]},"5add-50":{"id":"/src/hooks/useBuildData.ts","moduleParts":{"hooks/useBuildData.js":"5add-51"},"imported":[{"uid":"5add-89"},{"uid":"5add-85"},{"uid":"5add-93"},{"uid":"5add-88"},{"uid":"5add-2"},{"uid":"5add-64"},{"uid":"5add-66"},{"uid":"5add-68"}],"importedBy":[{"uid":"5add-40"},{"uid":"5add-60"}]},"5add-52":{"id":"/src/content/components/ActionFormSidebarItemComponent.tsx","moduleParts":{"content/components/ActionFormSidebarItemComponent.js":"5add-53"},"imported":[{"uid":"5add-84"},{"uid":"5add-85"},{"uid":"5add-92"},{"uid":"5add-70"},{"uid":"5add-72"}],"importedBy":[{"uid":"5add-36"}]},"5add-54":{"id":"/src/content/components/ActionSidebarItemComponent.tsx","moduleParts":{"content/components/ActionSidebarItemComponent.js":"5add-55"},"imported":[{"uid":"5add-84"},{"uid":"5add-92"},{"uid":"5add-70"}],"importedBy":[{"uid":"5add-36"}]},"5add-56":{"id":"/src/content/components/CustomSidebarItemComponent.tsx","moduleParts":{"content/components/CustomSidebarItemComponent.js":"5add-57"},"imported":[{"uid":"5add-84"}],"importedBy":[{"uid":"5add-36"}]},"5add-58":{"id":"/src/content/components/PlainSidebarItem.tsx","moduleParts":{"content/components/PlainSidebarItem.js":"5add-59"},"imported":[{"uid":"5add-84"},{"uid":"5add-88"},{"uid":"5add-92"},{"uid":"5add-70"}],"importedBy":[{"uid":"5add-36"}]},"5add-60":{"id":"/src/layout/components/LayoutItemWrapper.tsx","moduleParts":{"layout/components/LayoutItemWrapper.js":"5add-61"},"imported":[{"uid":"5add-84"},{"uid":"5add-85"},{"uid":"5add-94"},{"uid":"5add-92"},{"uid":"5add-50"},{"uid":"5add-24"},{"uid":"5add-46"},{"uid":"5add-74"},{"uid":"5add-76"},{"uid":"5add-78"},{"uid":"5add-80"}],"importedBy":[{"uid":"5add-42"}]},"5add-62":{"id":"/src/commonItems.ts","moduleParts":{"commonItems.js":"5add-63"},"imported":[],"importedBy":[{"uid":"5add-48"},{"uid":"5add-64"}]},"5add-64":{"id":"/src/hooks/useIsActiveRoute.ts","moduleParts":{"hooks/useIsActiveRoute.js":"5add-65"},"imported":[{"uid":"5add-95"},{"uid":"5add-62"}],"importedBy":[{"uid":"5add-50"}]},"5add-66":{"id":"/src/hooks/useSelectPermission.ts","moduleParts":{"hooks/useSelectPermission.js":"5add-67"},"imported":[{"uid":"5add-93"}],"importedBy":[{"uid":"5add-50"}]},"5add-68":{"id":"/src/hooks/useSelectState.ts","moduleParts":{"hooks/useSelectState.js":"5add-69"},"imported":[{"uid":"5add-93"}],"importedBy":[{"uid":"5add-50"}]},"5add-70":{"id":"/src/content/utils.tsx","moduleParts":{"content/utils.js":"5add-71"},"imported":[{"uid":"5add-84"},{"uid":"5add-92"}],"importedBy":[{"uid":"5add-52"},{"uid":"5add-54"},{"uid":"5add-58"}]},"5add-72":{"id":"/src/content/components/ActionForm.tsx","moduleParts":{"content/components/ActionForm.js":"5add-73"},"imported":[{"uid":"5add-84"},{"uid":"5add-96"},{"uid":"5add-85"},{"uid":"5add-92"}],"importedBy":[{"uid":"5add-52"}]},"5add-74":{"id":"/src/layout/components/CustomLayoutItemComponent.tsx","moduleParts":{"layout/components/CustomLayoutItemComponent.js":"5add-75"},"imported":[{"uid":"5add-84"}],"importedBy":[{"uid":"5add-60"}]},"5add-76":{"id":"/src/layout/components/DropdownItem.tsx","moduleParts":{"layout/components/DropdownItem.js":"5add-77"},"imported":[{"uid":"5add-84"},{"uid":"5add-85"},{"uid":"5add-92"},{"uid":"5add-48"},{"uid":"5add-34"}],"importedBy":[{"uid":"5add-60"}]},"5add-78":{"id":"/src/layout/components/MenuItem.tsx","moduleParts":{"layout/components/MenuItem.js":"5add-79"},"imported":[{"uid":"5add-84"},{"uid":"5add-92"}],"importedBy":[{"uid":"5add-60"}]},"5add-80":{"id":"/src/layout/components/PlainItem.tsx","moduleParts":{"layout/components/PlainItem.js":"5add-81"},"imported":[{"uid":"5add-84"},{"uid":"5add-91"},{"uid":"5add-92"},{"uid":"5add-48"}],"importedBy":[{"uid":"5add-60"}]},"5add-82":{"id":"/home/artemis/GitHub/imperium/node_modules/style-inject/dist/style-inject.es.js","moduleParts":{"external/style-inject/dist/style-inject.es.js":"5add-83"},"imported":[],"importedBy":[{"uid":"5add-34"},{"uid":"5add-32"}]},"5add-84":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"5add-6"},{"uid":"5add-8"},{"uid":"5add-14"},{"uid":"5add-18"},{"uid":"5add-16"},{"uid":"5add-22"},{"uid":"5add-20"},{"uid":"5add-26"},{"uid":"5add-28"},{"uid":"5add-42"},{"uid":"5add-44"},{"uid":"5add-38"},{"uid":"5add-36"},{"uid":"5add-48"},{"uid":"5add-60"},{"uid":"5add-52"},{"uid":"5add-54"},{"uid":"5add-56"},{"uid":"5add-58"},{"uid":"5add-74"},{"uid":"5add-76"},{"uid":"5add-78"},{"uid":"5add-80"},{"uid":"5add-70"},{"uid":"5add-72"}],"isExternal":true},"5add-85":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"5add-6"},{"uid":"5add-8"},{"uid":"5add-14"},{"uid":"5add-18"},{"uid":"5add-16"},{"uid":"5add-22"},{"uid":"5add-20"},{"uid":"5add-30"},{"uid":"5add-42"},{"uid":"5add-38"},{"uid":"5add-36"},{"uid":"5add-60"},{"uid":"5add-50"},{"uid":"5add-52"},{"uid":"5add-76"},{"uid":"5add-72"}],"isExternal":true},"5add-86":{"id":"@imperium/state","moduleParts":{},"imported":[],"importedBy":[{"uid":"5add-2"}],"isExternal":true},"5add-87":{"id":"@reduxjs/toolkit","moduleParts":{},"imported":[],"importedBy":[{"uid":"5add-2"}],"isExternal":true},"5add-88":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"5add-14"},{"uid":"5add-48"},{"uid":"5add-50"},{"uid":"5add-58"}],"isExternal":true},"5add-89":{"id":"@imperium/auth-client","moduleParts":{},"imported":[],"importedBy":[{"uid":"5add-16"},{"uid":"5add-50"}],"isExternal":true},"5add-90":{"id":"react-redux","moduleParts":{},"imported":[],"importedBy":[{"uid":"5add-16"},{"uid":"5add-20"},{"uid":"5add-28"}],"isExternal":true},"5add-91":{"id":"react-responsive","moduleParts":{},"imported":[],"importedBy":[{"uid":"5add-22"},{"uid":"5add-20"},{"uid":"5add-80"}],"isExternal":true},"5add-92":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"5add-22"},{"uid":"5add-20"},{"uid":"5add-42"},{"uid":"5add-44"},{"uid":"5add-38"},{"uid":"5add-36"},{"uid":"5add-48"},{"uid":"5add-60"},{"uid":"5add-52"},{"uid":"5add-54"},{"uid":"5add-58"},{"uid":"5add-76"},{"uid":"5add-78"},{"uid":"5add-80"},{"uid":"5add-70"},{"uid":"5add-72"}],"isExternal":true},"5add-93":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"5add-20"},{"uid":"5add-30"},{"uid":"5add-24"},{"uid":"5add-50"},{"uid":"5add-66"},{"uid":"5add-68"}],"isExternal":true},"5add-94":{"id":"mingo","moduleParts":{},"imported":[],"importedBy":[{"uid":"5add-36"},{"uid":"5add-60"}],"isExternal":true},"5add-95":{"id":"react-router","moduleParts":{},"imported":[],"importedBy":[{"uid":"5add-64"}],"isExternal":true},"5add-96":{"id":"@thx/controls","moduleParts":{},"imported":[],"importedBy":[{"uid":"5add-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: 33.798 KB
|
|
5
|
+
original size: 53.323 KB
|
|
6
|
+
code reduction: 36.62 %
|
|
7
|
+
module count: 42
|
|
8
|
+
|
|
9
|
+
/src/content/components/ContentComponent.tsx
|
|
10
|
+
████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9.99 % (3.376 KB)
|
|
11
|
+
/src/layout/components/styles.module.css
|
|
12
|
+
████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9.4 % (3.176 KB)
|
|
13
|
+
/src/layout/components/Layout.tsx
|
|
14
|
+
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.43 % (2.512 KB)
|
|
15
|
+
/src/content/components/styles.module.css
|
|
16
|
+
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.27 % (2.119 KB)
|
|
17
|
+
/src/layout/withLayout.tsx
|
|
18
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.78 % (1.955 KB)
|
|
19
|
+
/src/content/components/ActionForm.tsx
|
|
20
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.93 % (1.667 KB)
|
|
21
|
+
/src/layout/components/LayoutItemWrapper.tsx
|
|
22
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.45 % (1.503 KB)
|
|
23
|
+
/src/layout/moveItems.ts
|
|
24
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.15 % (1.401 KB)
|
|
25
|
+
/src/content/components/SidebarItemWrapper.tsx
|
|
26
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.52 % (1.189 KB)
|
|
27
|
+
/src/layout/components/DropdownItem.tsx
|
|
28
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.49 % (1.179 KB)
|
|
29
|
+
/src/datahooks/DataHooks.tsx
|
|
30
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.13 % (1.058 KB)
|
|
31
|
+
/src/content/components/Header.tsx
|
|
32
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.08 % (1.042 KB)
|
|
33
|
+
/src/layout/utils.tsx
|
|
34
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.71 % (915 Bytes)
|
|
35
|
+
/src/datahooks/Permissions.tsx
|
|
36
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.39 % (808 Bytes)
|
|
37
|
+
/src/hooks/useBuildData.ts
|
|
38
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.36 % (799 Bytes)
|
|
39
|
+
/src/layout/components/LayoutItemBar.tsx
|
|
40
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.15 % (726 Bytes)
|
|
41
|
+
/src/content/components/ActionFormSidebarItemComponent.tsx
|
|
42
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.96 % (663 Bytes)
|
|
43
|
+
/src/content/createPages.tsx
|
|
44
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.92 % (650 Bytes)
|
|
45
|
+
/home/artemis/GitHub/imperium/node_modules/style-inject/dist/style-inject.es.js
|
|
46
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.88 % (636 Bytes)
|
|
47
|
+
/src/content/utils.tsx
|
|
48
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.86 % (628 Bytes)
|
|
49
|
+
/src/hooks/useIsActiveRoute.ts
|
|
50
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.52 % (514 Bytes)
|
|
51
|
+
/src/state.ts
|
|
52
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.45 % (489 Bytes)
|
|
53
|
+
/src/content/types.ts
|
|
54
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.15 % (388 Bytes)
|
|
55
|
+
/src/layout/components/PlainItem.tsx
|
|
56
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.12 % (379 Bytes)
|
|
57
|
+
/src/content/components/ActionSidebarItemComponent.tsx
|
|
58
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.07 % (362 Bytes)
|
|
59
|
+
/src/layout/components/SecondaryMenuToggleItem.tsx
|
|
60
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.05 % (356 Bytes)
|
|
61
|
+
/src/datahooks/ExecutePermissionHook.tsx
|
|
62
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.02 % (345 Bytes)
|
|
63
|
+
/src/content/components/PlainSidebarItem.tsx
|
|
64
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.02 % (344 Bytes)
|
|
65
|
+
/src/datahooks/PermissionHooks.tsx
|
|
66
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1 % (339 Bytes)
|
|
67
|
+
/src/hooks/useSelectState.ts
|
|
68
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.96 % (326 Bytes)
|
|
69
|
+
/src/hooks/useSelectPermission.ts
|
|
70
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.87 % (294 Bytes)
|
|
71
|
+
/src/content/hooks/useBuildContentData.ts
|
|
72
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.76 % (257 Bytes)
|
|
73
|
+
/src/layout/components/MenuItem.tsx
|
|
74
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.75 % (252 Bytes)
|
|
75
|
+
/src/commonItems.ts
|
|
76
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.6 % (203 Bytes)
|
|
77
|
+
/src/layout/types.ts
|
|
78
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.57 % (191 Bytes)
|
|
79
|
+
/src/utils.ts
|
|
80
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.43 % (145 Bytes)
|
|
81
|
+
/src/index.ts
|
|
82
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.43 % (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.25 % (83 Bytes)
|
|
89
|
+
/src/layout/components/CustomLayoutItemComponent.tsx
|
|
90
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.24 % (82 Bytes)
|
|
91
|
+
/src/content/dividerSidebarItem.ts
|
|
92
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.17 % (59 Bytes)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefineRouteOptions } from '@imperium/router';
|
|
2
|
-
import {
|
|
2
|
+
import { SemanticCOLORS } from 'semantic-ui-react';
|
|
3
3
|
import type { RouteItem } from '../commonItems';
|
|
4
4
|
import type { BaseSidebarItem, ContentData } from './types';
|
|
5
5
|
export declare function getIcon<T extends DefineRouteOptions, K extends keyof T>(item: BaseSidebarItem<T, K>, data: ContentData<T, K>): JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useMobileLayout(): void;
|
package/dist/types/state.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imperium/layout",
|
|
3
|
-
"version": "13.1.3
|
|
3
|
+
"version": "13.1.3",
|
|
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": "^13.1.3
|
|
35
|
-
"@imperium/client": "^13.1.3
|
|
36
|
-
"@imperium/router": "^13.1.3
|
|
37
|
-
"@imperium/state": "^13.1.3
|
|
34
|
+
"@imperium/auth-client": "^13.1.3",
|
|
35
|
+
"@imperium/client": "^13.1.3",
|
|
36
|
+
"@imperium/router": "^13.1.3",
|
|
37
|
+
"@imperium/state": "^13.1.3",
|
|
38
38
|
"@thx/controls": "^17.3.1",
|
|
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": "ae7c31257e9e7b85c4e9762245802391e4e74655"
|
|
64
64
|
}
|