ui: add community overlay slots
This commit is contained in:
@@ -16,6 +16,8 @@ const BUNDLES = {
|
||||
files: [
|
||||
'js/config.js',
|
||||
'js/i18n.js',
|
||||
'js/slot-registry.js',
|
||||
'js/overlay-loader.js',
|
||||
'js/dom.js',
|
||||
'js/diagnostics.js',
|
||||
'js/workspace.js',
|
||||
@@ -176,6 +178,7 @@ function rewriteHtml(relativePath, replacements, prefix) {
|
||||
}
|
||||
|
||||
async function main() {
|
||||
var overlayDirectory = process.env.CRANK_UI_OVERLAY_DIR || '';
|
||||
removeDirectory(DIST_DIR);
|
||||
ensureDirectory(BUNDLE_DIR);
|
||||
|
||||
@@ -199,6 +202,9 @@ async function main() {
|
||||
});
|
||||
copyDirectory(path.join(ROOT_DIR, 'icons'), path.join(DIST_DIR, 'icons'));
|
||||
copyFile(resolveBrandImage(), path.join(DIST_DIR, 'Crank.png'));
|
||||
if (overlayDirectory && fs.existsSync(overlayDirectory)) {
|
||||
copyDirectory(overlayDirectory, path.join(DIST_DIR, 'overlay'));
|
||||
}
|
||||
|
||||
rewriteHtml('index.html', manifest, '');
|
||||
rewriteHtml('html/login.html', manifest, '..');
|
||||
|
||||
Reference in New Issue
Block a user