Skip to content

Commit

Permalink
CERNONLY: What's new guide
Browse files Browse the repository at this point in the history
  • Loading branch information
elizavetaRa authored and diocas committed Mar 23, 2022
1 parent b858e97 commit 597eefe
Show file tree
Hide file tree
Showing 4 changed files with 732 additions and 2 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
"not OperaMobile > 0"
],
"dependencies": {
"vue": "^2.6.10"
"shepherd.js": "^9.0.0",
"vue": "^2.6.10",
"vue-shepherd": "^0.2.1"
},
"devDependencies": {
"@babel/core": "^7.17.5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:aria-label="buttonLabel"
appearance="raw"
variation="inverse"
style="white-space: nowrap"
@click="toggleTheme"
>
<span class="oc-visible@s" :aria-label="switchLabel" v-text="switchText" />
Expand Down
9 changes: 8 additions & 1 deletion packages/web-runtime/src/components/Topbar/TopBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<portal-target name="app.runtime.header" multiple></portal-target>
</div>
<div class="oc-topbar-right oc-flex oc-flex-middle oc-flex-between">
<tour v-if="!isLightweight"/>
<theme-switcher v-if="darkThemeAvailable" />
<feedback-link v-if="isFeedbackLinkEnabled" />
<notifications v-if="isNotificationBellEnabled" />
Expand All @@ -31,14 +32,16 @@ import UserMenu from './UserMenu.vue'
import Notifications from './Notifications.vue'
import FeedbackLink from './FeedbackLink.vue'
import ThemeSwitcher from './ThemeSwitcher.vue'
import Tour from './Tour/Tour.vue'
export default {
components: {
ApplicationsMenu,
FeedbackLink,
Notifications,
ThemeSwitcher,
UserMenu
UserMenu,
Tour
},
mixins: [NavigationMixin],
props: {
Expand All @@ -56,6 +59,10 @@ export default {
computed: {
...mapGetters(['configuration', 'user']),
isLightweight() {
return window.Vue.$store.getters.user.usertype === 'lightweight'
},
activeRoutePath() {
return this.$router.resolve(this.$route).location.path
},
Expand Down
Loading

0 comments on commit 597eefe

Please sign in to comment.