mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-20 15:36:18 +00:00
@@ -83,6 +83,7 @@ const CatalogClassicViewInner: FC<{}> = () =>
|
|||||||
{ isVisible &&
|
{ isVisible &&
|
||||||
<NitroCardView className="w-[630px] h-[400px]" style={ GetConfigurationValue('catalog.headers') ? { width: 710 } : {} } uniqueKey="catalog">
|
<NitroCardView className="w-[630px] h-[400px]" style={ GetConfigurationValue('catalog.headers') ? { width: 710 } : {} } uniqueKey="catalog">
|
||||||
<NitroCardHeaderView headerText={ LocalizeText('catalog.title') } onCloseClick={ () => setIsVisible(false) } />
|
<NitroCardHeaderView headerText={ LocalizeText('catalog.title') } onCloseClick={ () => setIsVisible(false) } />
|
||||||
|
{ /* Admin banner */ }
|
||||||
{ adminMode &&
|
{ adminMode &&
|
||||||
<div className="flex items-center justify-between bg-warning text-dark text-[10px] font-bold px-3 py-0.5 uppercase tracking-wider" style={ { textShadow: '0 1px 0 rgba(255,255,255,0.3)' } }>
|
<div className="flex items-center justify-between bg-warning text-dark text-[10px] font-bold px-3 py-0.5 uppercase tracking-wider" style={ { textShadow: '0 1px 0 rgba(255,255,255,0.3)' } }>
|
||||||
<span>⚙ Admin Mode</span>
|
<span>⚙ Admin Mode</span>
|
||||||
@@ -127,12 +128,14 @@ const CatalogClassicViewInner: FC<{}> = () =>
|
|||||||
</NitroCardTabsItemView>
|
</NitroCardTabsItemView>
|
||||||
);
|
);
|
||||||
}) }
|
}) }
|
||||||
|
{ /* Admin toggle button in tabs bar */ }
|
||||||
{ isMod &&
|
{ isMod &&
|
||||||
<NitroCardTabsItemView isActive={ adminMode } onClick={ () => setAdminMode(!adminMode) }>
|
<NitroCardTabsItemView isActive={ adminMode } onClick={ () => setAdminMode(!adminMode) }>
|
||||||
<FaCog className={ `text-[10px] ${ adminMode ? 'animate-spin' : '' }` } style={ adminMode ? { animationDuration: '3s' } : {} } />
|
<FaCog className={ `text-[10px] ${ adminMode ? 'animate-spin' : '' }` } style={ adminMode ? { animationDuration: '3s' } : {} } />
|
||||||
</NitroCardTabsItemView> }
|
</NitroCardTabsItemView> }
|
||||||
</NitroCardTabsView>
|
</NitroCardTabsView>
|
||||||
<NitroCardContentView>
|
<NitroCardContentView>
|
||||||
|
{ /* Admin: add new root category */ }
|
||||||
{ adminMode && rootNode &&
|
{ adminMode && rootNode &&
|
||||||
<div className="flex items-center gap-2 mb-1">
|
<div className="flex items-center gap-2 mb-1">
|
||||||
<button
|
<button
|
||||||
@@ -152,7 +155,7 @@ const CatalogClassicViewInner: FC<{}> = () =>
|
|||||||
</div> }
|
</div> }
|
||||||
<Grid>
|
<Grid>
|
||||||
{ !navigationHidden &&
|
{ !navigationHidden &&
|
||||||
<Column overflow="auto" size={ 3 }>
|
<Column overflow="auto" size={ 3 }>
|
||||||
{ activeNodes && (activeNodes.length > 0) &&
|
{ activeNodes && (activeNodes.length > 0) &&
|
||||||
<CatalogNavigationView node={ activeNodes[0] } /> }
|
<CatalogNavigationView node={ activeNodes[0] } /> }
|
||||||
</Column> }
|
</Column> }
|
||||||
|
|||||||
Reference in New Issue
Block a user