mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-18 05:28:16 -06:00
Move SVG styles to a designated directory
This commit is contained in:
parent
f38973e7ea
commit
fc24534467
@ -75,8 +75,8 @@ async function bundleStyles() {
|
|||||||
const entryPoints = {
|
const entryPoints = {
|
||||||
'netbox-external': 'styles/_external.scss',
|
'netbox-external': 'styles/_external.scss',
|
||||||
'netbox': 'styles/_netbox.scss',
|
'netbox': 'styles/_netbox.scss',
|
||||||
rack_elevation: 'styles/_rack_elevation.scss',
|
rack_elevation: 'styles/svg/rack_elevation.scss',
|
||||||
cable_trace: 'styles/_cable_trace.scss',
|
cable_trace: 'styles/svg/cable_trace.scss',
|
||||||
graphiql: 'netbox-graphiql/graphiql.scss',
|
graphiql: 'netbox-graphiql/graphiql.scss',
|
||||||
};
|
};
|
||||||
const pluginOptions = { outputStyle: 'compressed' };
|
const pluginOptions = { outputStyle: 'compressed' };
|
||||||
@ -100,8 +100,7 @@ async function bundleStyles() {
|
|||||||
});
|
});
|
||||||
if (result.errors.length === 0) {
|
if (result.errors.length === 0) {
|
||||||
for (const [targetName, sourceName] of Object.entries(entryPoints)) {
|
for (const [targetName, sourceName] of Object.entries(entryPoints)) {
|
||||||
const source = sourceName.split('/')[1];
|
console.log(`✅ Bundled source file '${sourceName}' to '${targetName}.css'`);
|
||||||
console.log(`✅ Bundled source file '${source}' to '${targetName}.css'`);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
@import './theme-light.scss';
|
|
||||||
@import './cable-trace.scss';
|
|
@ -1,2 +0,0 @@
|
|||||||
@import './theme-light.scss';
|
|
||||||
@import './rack-elevation.scss';
|
|
@ -1,3 +1,5 @@
|
|||||||
|
@import '../theme-light.scss';
|
||||||
|
|
||||||
// Cable Trace Styles.
|
// Cable Trace Styles.
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
@ -73,3 +75,4 @@ svg {
|
|||||||
stroke-dasharray: 5px;
|
stroke-dasharray: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,3 +1,5 @@
|
|||||||
|
@import '../theme-light.scss';
|
||||||
|
|
||||||
// Rack Elevation Styles.
|
// Rack Elevation Styles.
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
@ -110,3 +112,4 @@ svg {
|
|||||||
fill: url(#reserved);
|
fill: url(#reserved);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user