Skip to content

Commit ff6fe2f

Browse files
authored
Merge pull request #352 from com-pas/feat/publisher-plugin-2
feat: Add publisher plugin feat: Add communication explorer plugin
2 parents ff3ddf6 + 4aa7e48 commit ff6fe2f

File tree

10 files changed

+56
-5
lines changed

10 files changed

+56
-5
lines changed

.gitmodules

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[submodule "packages/external-plugins/oscd-publisher"]
2+
path = packages/external-plugins/oscd-publisher
3+
url = https://github.com/openenergytools/oscd-publisher
4+
branch = gh-pages
5+
[submodule "packages/external-plugins/oscd-plugins"]
6+
path = packages/external-plugins/oscd-plugins
7+
url = https://github.com/sprinteins/oscd-plugins
8+
branch = gh-pages

packages/compas-open-scd/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<link href="/public/google/fonts/roboto-mono-v13.css" rel="stylesheet">
1919
<!-- Original URL from Google: https://fonts.googleapis.com/css?family=Material+Icons+Outlined&display=block -->
2020
<link href="/public/google/icons/material-icons-outlined.css" rel="stylesheet">
21+
<link href="/public/google/icons/material-symbols-outlined.css" rel="stylesheet">
2122
<link href="/public/css/normalize.css" rel="stylesheet">
2223
<link rel="manifest" href="manifest.json" crossorigin="use-credentials">
2324
<link rel="icon" type="image/png" sizes="16x16" href="public/favicon-16x16.png">

packages/compas-open-scd/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "compas-open-scd",
3-
"version": "0.36.0-1",
3+
"version": "0.36.0-2",
44
"repository": "https://github.com/openscd/open-scd.git",
55
"description": "OpenSCD CoMPAS Edition",
66
"directory": "packages/compas-open-scd",
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/* fallback */
2+
@font-face {
3+
font-family: 'Material Symbols Outlined';
4+
font-style: normal;
5+
font-weight: 400;
6+
font-display: block;
7+
src: url(material-symbols-outlined.woff2) format('woff2');
8+
}
9+
10+
.material-symbols-outlined {
11+
font-family: 'Material Symbols Outlined';
12+
font-weight: normal;
13+
font-style: normal;
14+
font-size: 24px;
15+
line-height: 1;
16+
letter-spacing: normal;
17+
text-transform: none;
18+
display: inline-block;
19+
white-space: nowrap;
20+
word-wrap: normal;
21+
direction: ltr;
22+
-webkit-font-feature-settings: 'liga';
23+
-webkit-font-smoothing: antialiased;
24+
}
2.86 MB
Binary file not shown.

packages/compas-open-scd/public/js/plugins.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,16 @@ export const officialPlugins = [
9292
},
9393
{
9494
name: 'Publisher',
95-
src: '/plugins/src/editors/Publisher.js',
95+
src: '/external-plugins/oscd-publisher/oscd-publisher.js',
9696
icon: 'publish',
97-
default: false,
97+
default: true,
98+
kind: 'editor',
99+
},
100+
{
101+
name: 'Communication Explorer',
102+
src: '/external-plugins/oscd-plugins/communication-explorer/0.0.31/index.js',
103+
icon: 'lan',
104+
default: true,
98105
kind: 'editor',
99106
},
100107
{

packages/compas-open-scd/snowpack.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export default ({
2828
mount: {
2929
'../openscd/': '/openscd/',
3030
'../plugins/': '/plugins/',
31+
'../external-plugins/': '/external-plugins/',
3132
"./": "/",
3233
},
3334
alias: {
Submodule oscd-plugins added at 7f96ed2
Submodule oscd-publisher added at f016404

packages/openscd/src/plugins.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,17 @@ export const officialPlugins = [
101101
},
102102
{
103103
name: 'Publisher',
104-
src: generatePluginPath('plugins/src/editors/Publisher.js'),
104+
src: generatePluginPath('external-plugins/oscd-publisher/oscd-publisher.js'),
105105
icon: 'publish',
106-
default: false,
106+
default: true,
107+
kind: 'editor',
108+
requireDoc: true,
109+
},
110+
{
111+
name: 'Communication Explorer',
112+
src: generatePluginPath('external-plugins/oscd-plugins/communication-explorer/0.0.31/index.js'),
113+
icon: 'lan',
114+
default: true,
107115
kind: 'editor',
108116
requireDoc: true,
109117
},

0 commit comments

Comments
 (0)