Skip to content

Commit 597eefe

Browse files
elizavetaRadiocas
authored andcommitted
CERNONLY: What's new guide
1 parent b858e97 commit 597eefe

4 files changed

Lines changed: 732 additions & 2 deletions

File tree

‎package.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
"not OperaMobile > 0"
3737
],
3838
"dependencies": {
39-
"vue": "^2.6.10"
39+
"shepherd.js": "^9.0.0",
40+
"vue": "^2.6.10",
41+
"vue-shepherd": "^0.2.1"
4042
},
4143
"devDependencies": {
4244
"@babel/core": "^7.17.5",

‎packages/web-runtime/src/components/Topbar/ThemeSwitcher.vue‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
:aria-label="buttonLabel"
66
appearance="raw"
77
variation="inverse"
8+
style="white-space: nowrap"
89
@click="toggleTheme"
910
>
1011
<span class="oc-visible@s" :aria-label="switchLabel" v-text="switchText" />

‎packages/web-runtime/src/components/Topbar/TopBar.vue‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<portal-target name="app.runtime.header" multiple></portal-target>
1515
</div>
1616
<div class="oc-topbar-right oc-flex oc-flex-middle oc-flex-between">
17+
<tour v-if="!isLightweight"/>
1718
<theme-switcher v-if="darkThemeAvailable" />
1819
<feedback-link v-if="isFeedbackLinkEnabled" />
1920
<notifications v-if="isNotificationBellEnabled" />
@@ -31,14 +32,16 @@ import UserMenu from './UserMenu.vue'
3132
import Notifications from './Notifications.vue'
3233
import FeedbackLink from './FeedbackLink.vue'
3334
import ThemeSwitcher from './ThemeSwitcher.vue'
35+
import Tour from './Tour/Tour.vue'
3436
3537
export default {
3638
components: {
3739
ApplicationsMenu,
3840
FeedbackLink,
3941
Notifications,
4042
ThemeSwitcher,
41-
UserMenu
43+
UserMenu,
44+
Tour
4245
},
4346
mixins: [NavigationMixin],
4447
props: {
@@ -56,6 +59,10 @@ export default {
5659
computed: {
5760
...mapGetters(['configuration', 'user']),
5861
62+
isLightweight() {
63+
return window.Vue.$store.getters.user.usertype === 'lightweight'
64+
},
65+
5966
activeRoutePath() {
6067
return this.$router.resolve(this.$route).location.path
6168
},

0 commit comments

Comments
 (0)