Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
Expand Up @@ -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 docs/plug-ins.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,14 @@ implemented in these plugins.
> https://sprinteins.github.io/oscd-plugins/documentation/index.js
> ```

### Designer

> <kbd>Editor</kbd> | by [OpenEnergyTools](https://github.com/OpenEnergyTools) | [Repository](https://github.com/OpenEnergyTools/oscd-designer)
>
> ```
> https://openenergytools.github.io/oscd-designer/oscd-designer.js
> ```

## Vendor Specific Plug-ins

These plug-ins are specific to a vendor and can include vendor specific
Expand Down
8 changes: 8 additions & 0 deletions packages/compas-open-scd/public/js/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
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/**/*",
Expand Down Expand Up @@ -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