From 8394e11f3f310b9856bfda9e259116f7418d9859 Mon Sep 17 00:00:00 2001 From: sronveaux Date: Fri, 17 Nov 2023 13:13:27 +0100 Subject: [PATCH 1/2] Corrected some eslint errors inside workshop --- docs/workshop.md | 158 ++++++++++++++++++++++++----------------------- 1 file changed, 80 insertions(+), 78 deletions(-) diff --git a/docs/workshop.md b/docs/workshop.md index 55b45568..529d68f1 100644 --- a/docs/workshop.md +++ b/docs/workshop.md @@ -607,7 +607,7 @@ export default { components: { 'wgu-app-tpl': WguAppTemplate }, - data() { + data () { return { buttonValue: undefined } @@ -616,7 +616,7 @@ export default { /** * Executed once the button value changes */ - buttonValue(value) { + buttonValue (value) { // the button is pressed when its value is 0 const buttonPressed = (value === 0); @@ -737,23 +737,23 @@ Create new file at `app/components/MyTool.vue` with the content below. Note the @@ -765,6 +765,7 @@ Create new file at `app/components/MyTool.vue` with the content below. Note the right: 10px; } + ``` We need to register our modules in `app/WguAppTemplate.vue`. Add this line to the imports: @@ -875,70 +876,70 @@ Let's add some more functionality to the tool. At the moment we show the static @@ -950,6 +951,7 @@ Let's add some more functionality to the tool. At the moment we show the static right: 10px; } + ``` Refresh your application and check the result. When you zoom or pan the map, the values in your new module should change. From 2b15a19831aa5afb4a2a8397d06c35b8fc6947ff Mon Sep 17 00:00:00 2001 From: sronveaux Date: Fri, 17 Nov 2023 13:14:19 +0100 Subject: [PATCH 2/2] Corrected a bug inside the workshop --- docs/workshop.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/workshop.md b/docs/workshop.md index 529d68f1..dde0a978 100644 --- a/docs/workshop.md +++ b/docs/workshop.md @@ -687,7 +687,7 @@ export default {