-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:lichess-org/lila
* 'master' of github.com:lichess-org/lila: Remove hopscotch dependency, use shepherd.js
- Loading branch information
Showing
9 changed files
with
50 additions
and
68 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { RoundTour } from '../interfaces'; | ||
import Shepherd from 'shepherd.js'; | ||
|
||
export function initModule(): RoundTour { | ||
return { | ||
corresRematchOffline, | ||
}; | ||
|
||
function corresRematchOffline() { | ||
const tour = new Shepherd.Tour(); | ||
|
||
tour.addStep({ | ||
title: 'Challenged to a rematch', | ||
text: 'Your opponent is offline, but they can accept this challenge later!', | ||
attachTo: { | ||
element: 'button.rematch', | ||
on: 'bottom', | ||
}, | ||
buttons: [ | ||
{ | ||
action() { | ||
return this.next(); | ||
}, | ||
text: 'Ok, got it', | ||
}, | ||
], | ||
}); | ||
|
||
tour.start(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters