iframe-coordinator-cli 5.0.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/App.vue +1 -0
- package/src/views/IframeEmbed.vue +27 -2
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
<notifications group="toast" id="toastNotifications" position="top right"></notifications>
|
|
4
4
|
<notifications group="pubsub" id="pubsubEvents" position="top left"></notifications>
|
|
5
5
|
<notifications group="keydown" id="keydownEvents" position="bottom left"></notifications>
|
|
6
|
+
<notifications group="metadata" id="metadataEvent" position="bottom right"></notifications>
|
|
6
7
|
<router-view/>
|
|
7
8
|
</div>
|
|
8
9
|
</template>
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
<span class="app-route">{{ frameRoute }}</span>
|
|
6
6
|
as
|
|
7
7
|
<span class="frame-url">{{ frameUrl }}</span>
|
|
8
|
+
<span class="metadata-container">
|
|
9
|
+
<span class="metadata-title">Page Metadata: </span>
|
|
10
|
+
<span class="metadata-content">{{ metadata }}</span>
|
|
11
|
+
</span>
|
|
8
12
|
</div>
|
|
9
13
|
<div v-if="showMenu" id="appMenu">
|
|
10
14
|
<h2>No app is registered for {{ frameRoute }}</h2>
|
|
@@ -36,6 +40,7 @@
|
|
|
36
40
|
v-on:registeredKeyFired="handleKeyEvent"
|
|
37
41
|
v-on:navRequest="handleNav"
|
|
38
42
|
v-on:frameTransition="updateFrameUrl"
|
|
43
|
+
v-on:pageMetadata="updatePageMetadata"
|
|
39
44
|
></frame-router>
|
|
40
45
|
</div>
|
|
41
46
|
</template>
|
|
@@ -48,7 +53,8 @@ export default {
|
|
|
48
53
|
return {
|
|
49
54
|
frameUrl: '',
|
|
50
55
|
showMenu: true,
|
|
51
|
-
clientConfig: {}
|
|
56
|
+
clientConfig: {},
|
|
57
|
+
metadata: {}
|
|
52
58
|
};
|
|
53
59
|
},
|
|
54
60
|
methods: {
|
|
@@ -98,6 +104,12 @@ export default {
|
|
|
98
104
|
updateFrameUrl(event) {
|
|
99
105
|
this.frameUrl = event.detail;
|
|
100
106
|
this.showMenu = this.frameUrl === 'about:blank';
|
|
107
|
+
},
|
|
108
|
+
updatePageMetadata(event) {
|
|
109
|
+
this.metadata = {
|
|
110
|
+
title: event.detail.title,
|
|
111
|
+
breadcrumbs: event.detail.breadcrumbs
|
|
112
|
+
}
|
|
101
113
|
}
|
|
102
114
|
},
|
|
103
115
|
mounted() {
|
|
@@ -149,10 +161,23 @@ for more details.
|
|
|
149
161
|
border-bottom: 2px solid #ff4f1f;
|
|
150
162
|
}
|
|
151
163
|
#routerLayout .app-route,
|
|
152
|
-
#routerLayout .frame-url
|
|
164
|
+
#routerLayout .frame-url,
|
|
165
|
+
#routerLayout .metadata-container .metadata-content {
|
|
153
166
|
color: #ff4f1f;
|
|
154
167
|
}
|
|
155
168
|
|
|
169
|
+
#routerLayout .metadata-container {
|
|
170
|
+
display: flex;
|
|
171
|
+
text-align: left;
|
|
172
|
+
float: right;
|
|
173
|
+
width: 800px;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
#routerLayout .metadata-container .metadata-title {
|
|
177
|
+
margin-right: 5px;
|
|
178
|
+
width: 150px;
|
|
179
|
+
}
|
|
180
|
+
|
|
156
181
|
#appMenu {
|
|
157
182
|
max-width: 80ch;
|
|
158
183
|
margin: auto;
|