diff --git a/package.json b/package.json index c5cf0602fef..d82ec771d58 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/web-runtime/src/components/Topbar/ThemeSwitcher.vue b/packages/web-runtime/src/components/Topbar/ThemeSwitcher.vue index 24b9c347284..4f617c86c35 100644 --- a/packages/web-runtime/src/components/Topbar/ThemeSwitcher.vue +++ b/packages/web-runtime/src/components/Topbar/ThemeSwitcher.vue @@ -5,6 +5,7 @@ :aria-label="buttonLabel" appearance="raw" variation="inverse" + style="white-space: nowrap" @click="toggleTheme" > diff --git a/packages/web-runtime/src/components/Topbar/TopBar.vue b/packages/web-runtime/src/components/Topbar/TopBar.vue index 3a82943c082..8f3cf04d3ed 100644 --- a/packages/web-runtime/src/components/Topbar/TopBar.vue +++ b/packages/web-runtime/src/components/Topbar/TopBar.vue @@ -14,6 +14,7 @@
+ @@ -31,6 +32,7 @@ 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: { @@ -38,7 +40,8 @@ export default { FeedbackLink, Notifications, ThemeSwitcher, - UserMenu + UserMenu, + Tour }, mixins: [NavigationMixin], props: { @@ -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 }, diff --git a/packages/web-runtime/src/components/Topbar/Tour/Tour.vue b/packages/web-runtime/src/components/Topbar/Tour/Tour.vue new file mode 100644 index 00000000000..d067bc358f3 --- /dev/null +++ b/packages/web-runtime/src/components/Topbar/Tour/Tour.vue @@ -0,0 +1,720 @@ + + + + + +