mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
05a3a11855
refs https://github.com/TryGhost/Ghost/issues/5168 - adds a `tour` service that handles syncing and management of tour throbbers & content - adds a `gh-tour-item` component that handles the display of a throbber and it's associated popover when clicked - uses settings API endpoint to populate viewed tour items on app boot/signin - adds `liquid-tether@2.0.3` dependency for attaching throbbers and popups - adds initial tour contents
28 lines
711 B
JavaScript
28 lines
711 B
JavaScript
export default function () {
|
|
this.transition(
|
|
this.hasClass('fullscreen-modal-container'),
|
|
this.toValue(true),
|
|
this.use('fade', {duration: 150}),
|
|
this.reverse('fade', {duration: 150})
|
|
);
|
|
|
|
this.transition(
|
|
this.hasClass('fade-transition'),
|
|
this.use('crossFade', {duration: 100})
|
|
);
|
|
|
|
this.transition(
|
|
this.hasClass('tour-container'),
|
|
this.toValue(true),
|
|
this.use('fade', {duration: 150}),
|
|
this.reverse('fade', {duration: 150})
|
|
);
|
|
|
|
this.transition(
|
|
this.hasClass('tour'),
|
|
this.toValue(true),
|
|
this.use('fade', {duration: 300}),
|
|
this.reverse('fade', {duration: 300})
|
|
);
|
|
}
|