From 25e633fe44d7bd84c566090188ea2c9a82449c69 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Mon, 27 Jun 2022 03:58:55 +1000 Subject: Clean up code in TutorialPane Also simply tutorial instructions --- src/App.vue | 2 +- src/README.md | 2 +- src/components/SettingsModal.vue | 2 +- src/components/TutorialPane.vue | 146 +++++++++++++++++---------------------- 4 files changed, 67 insertions(+), 85 deletions(-) (limited to 'src') diff --git a/src/App.vue b/src/App.vue index 887b9a1..128312d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -990,7 +990,7 @@ export default defineComponent({
- diff --git a/src/README.md b/src/README.md index fe2b055..a97d23b 100644 --- a/src/README.md +++ b/src/README.md @@ -7,7 +7,7 @@ - SearchModal.vue: Modal providing a search bar. - SettingsModal: Modal displaying configurable settings. - HelpModal.vue: Modal displaying help info. - - AncestryBar.vue: Displays ancestors of the top-level Tile. + - AncestryBar.vue: Displays ancestors of the outermost Tile. - TutorialPane.vue: Displays tutorial content. - RButton.vue: Basic button component. - IconButton.vue: Basic button component containing SVG icon. diff --git a/src/components/SettingsModal.vue b/src/components/SettingsModal.vue index b09af07..34d0043 100644 --- a/src/components/SettingsModal.vue +++ b/src/components/SettingsModal.vue @@ -27,7 +27,7 @@ export default defineComponent({ }, }, watch: { - sweepLeaves(newVal, oldVal){ + sweepLeaves(newVal: boolean, oldVal: boolean){ this.lytOpts.layoutType = newVal ? 'sweep' : 'rect'; }, }, diff --git a/src/components/TutorialPane.vue b/src/components/TutorialPane.vue index fdebc8b..fe877ef 100644 --- a/src/components/TutorialPane.vue +++ b/src/components/TutorialPane.vue @@ -1,20 +1,25 @@