Skip to content

feat: add oscd-designer plugin #369

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 3 commits into from
Apr 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -18,3 +18,7 @@
path = packages/external-plugins/scl-template-update
url = https://github.com/OpenEnergyTools/scl-template-update
branch = deploy
[submodule "packages/external-plugins/oscd-designer"]
path = packages/external-plugins/oscd-designer
url = https://github.com/OpenEnergyTools/oscd-designer
branch = gh-pages
8 changes: 8 additions & 0 deletions packages/compas-open-scd/public/js/plugins.js
Original file line number Diff line number Diff line change
@@ -375,6 +375,14 @@ export const officialPlugins = [
kind: 'editor',
requireDoc: true
},
{
name: 'Designer',
src: '/external-plugins/oscd-designer/oscd-designer.js',
icon: 'add_box',
activeByDefault: false,
kind: 'editor',
requireDoc: true
},
{
name: 'Autogen Substation',
src: '/src/compas-editors/autogen-substation.js',
12 changes: 11 additions & 1 deletion packages/compas-open-scd/snowpack.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
export default ({
plugins: ['@snowpack/plugin-typescript'],
packageOptions : {
external: ['@web/dev-server-core','@web/dev-server-esbuild','esbuild','crypto'],
external: [
'@web/dev-server-core',
'@web/dev-server-esbuild',
'esbuild',
'crypto',
'@openscd/open-scd-core',
'@openscd/oscd-scl',
],
},
exclude: [
"**/node_modules/**/*",
@@ -35,5 +42,8 @@ export default ({
'@openscd/open-scd': '../openscd/',
'@openscd/plugins': '../plugins/',
},
buildOptions: {
htmlFragments: true,
}
});

1 change: 1 addition & 0 deletions packages/external-plugins/oscd-designer
Submodule oscd-designer added at 446342