feat(react-css): Place all react-bundled css overrides in a new "blueprint" folder.
This commit is contained in:
parent
fb7366dd0b
commit
55e330f828
4 changed files with 6 additions and 5 deletions
|
@ -627,9 +627,9 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then VCMD="y"
|
|||
if [[ $dashboard_css != "" ]]; then
|
||||
log_bright "[INFO] Placing dashboard css.."
|
||||
YARN="y"
|
||||
sed -i "s~@import url($identifier.css);~~g" "resources/scripts/css/extensions.css"
|
||||
echo -e "@import url($identifier.css);" >> "resources/scripts/css/extensions.css"
|
||||
cp ".blueprint/tmp/$n/$dashboard_css" "resources/scripts/css/$identifier.css"
|
||||
sed -i "s~@import url($identifier.css);~~g" "resources/scripts/blueprint/css/extensions.css"
|
||||
echo -e "@import url($identifier.css);" >> "resources/scripts/blueprint/css/extensions.css"
|
||||
cp ".blueprint/tmp/$n/$dashboard_css" "resources/scripts/blueprint/css/imported/$identifier.css"
|
||||
fi
|
||||
|
||||
if [[ $name == *"~"* ]]; then log_yellow "[WARNING] 'name' contains '~' and may result in an error.";fi
|
||||
|
@ -934,7 +934,8 @@ if [[ ( $2 == "-r" ) || ( $2 == "-remove" ) ]]; then VCMD="y"
|
|||
# Remove dashboard css
|
||||
if [[ $dashboard_css != "" ]]; then
|
||||
log_bright "[INFO] Removing dashboard css.."
|
||||
sed -i "s~@import url($identifier.css);~~g" "resources/scripts/css/extensions.css"
|
||||
sed -i "s~@import url($identifier.css);~~g" "resources/scripts/blueprint/css/extensions.css"
|
||||
rm "resources/scripts/blueprint/css/imported/$identifier.css"
|
||||
YARN="y"
|
||||
fi
|
||||
|
||||
|
|
0
resources/scripts/blueprint/css/imported/.gitkeep
Normal file
0
resources/scripts/blueprint/css/imported/.gitkeep
Normal file
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import ReactDOM from 'react-dom';
|
||||
import App from '@/components/App';
|
||||
import { setConfig } from 'react-hot-loader';
|
||||
import './css/extensions.css';
|
||||
import './blueprint/css/extensions.css';
|
||||
|
||||
// Enable language support.
|
||||
import './i18n';
|
||||
|
|
Loading…
Reference in a new issue