fix(core): do a bunch of stuff

This commit is contained in:
purple 2023-12-28 22:02:55 +01:00
parent 6cf0a11b03
commit 13e9c06c5b
2 changed files with 7 additions and 14 deletions

View file

@ -591,13 +591,14 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then VCMD="y"
# fetch component config # fetch component config
eval "$(parse_yaml .blueprint/tmp/"$n"/"$dashboard_components"/components.yml comp_)" eval "$(parse_yaml .blueprint/tmp/"$n"/"$dashboard_components"/components.yml comp_)"
# assign variables to component items # assign variables to component items
extendNavigationBarItems="@/blueprint/extensions/${identifier}/${comp_extendNavigationBarItems}" extendNavigationBarItems="\@\/blueprint\/extensions\/${identifier}\/${comp_extendNavigationBarItems}"
im="/* blueprint/import */" im="\/\* blueprint\/import \*\/"
re="{/* blueprint/react */}" re="\{\/\* blueprint\/react \*\/\}"
co="resources/scripts/blueprint/components"
sed -i "s~""$im""~""${im}import ${identifier}Component from '$extendNavigationBarItems';""~g" sed -i "s~""$im""~""${im}import ${identifier}Component from '$extendNavigationBarItems';""~g" $co/NavigationBar/Items.tsx
sed -i "s~""$re""~""${re}<${identifier}Component />""~g" sed -i "s~""$re""~""${re}\<${identifier}Component \/\>""~g" $co/NavigationBar/Items.tsx
else else
# warn about missing components.yml file # warn about missing components.yml file
@ -818,7 +819,7 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then VCMD="y"
fi fi
if [[ $YARN == "y" ]]; then if [[ $YARN == "y" ]]; then
if [[ ( $F_developerIgnoreRebuild ) && ( $dev == true ) ]]; then if [[ ( $F_developerIgnoreRebuild == true ) && ( $dev == true ) ]]; then
log_yellow "[WARNING] Rebuilding skipped due to 'developerIgnoreRebuild' flag being present." log_yellow "[WARNING] Rebuilding skipped due to 'developerIgnoreRebuild' flag being present."
else else
log_bright "[INFO] Rebuilding panel.." log_bright "[INFO] Rebuilding panel.."

View file

@ -1,17 +1,9 @@
import React from 'react'; import React from 'react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faPuzzlePiece } from '@fortawesome/free-solid-svg-icons';
import Tooltip from '@/components/elements/tooltip/Tooltip';
/* blueprint/import */ /* blueprint/import */
export default () => { export default () => {
return ( return (
<> <>
<Tooltip placement={'bottom'} content={'Example'}>
<div className={'navigation-link'}>
<FontAwesomeIcon icon={faPuzzlePiece} />
</div>
</Tooltip>
{/* blueprint/react */} {/* blueprint/react */}
</> </>
); );