From 3a2cbc9349ce5184133c1a71b5b67085572e3cce Mon Sep 17 00:00:00 2001 From: Gator Date: Fri, 2 Dec 2022 17:10:21 +0100 Subject: [PATCH] adapted components to pinia --- src/components/CanvasBoard.vue | 257 +++++++++++++------------- src/components/MainMenu.vue | 92 ++++----- src/components/Menu2dCA.vue | 43 ++--- src/components/MenuCellProperties.vue | 44 +++-- src/components/MenuElementaryCA.vue | 13 +- src/components/MenuGeneralOptions.vue | 69 +++---- src/components/MenuRow.vue | 104 +++++------ src/stores/index.js | 12 +- 8 files changed, 310 insertions(+), 324 deletions(-) diff --git a/src/components/CanvasBoard.vue b/src/components/CanvasBoard.vue index a7edc56..28bca70 100644 --- a/src/components/CanvasBoard.vue +++ b/src/components/CanvasBoard.vue @@ -9,138 +9,141 @@ diff --git a/src/components/MainMenu.vue b/src/components/MainMenu.vue index 86166fd..4da6c79 100644 --- a/src/components/MainMenu.vue +++ b/src/components/MainMenu.vue @@ -8,55 +8,55 @@ diff --git a/src/components/Menu2dCA.vue b/src/components/Menu2dCA.vue index 2d268b1..ce0640f 100644 --- a/src/components/Menu2dCA.vue +++ b/src/components/Menu2dCA.vue @@ -2,55 +2,40 @@
- +
- +
diff --git a/src/components/MenuCellProperties.vue b/src/components/MenuCellProperties.vue index a88bf50..3684795 100644 --- a/src/components/MenuCellProperties.vue +++ b/src/components/MenuCellProperties.vue @@ -34,29 +34,27 @@ diff --git a/src/components/MenuElementaryCA.vue b/src/components/MenuElementaryCA.vue index 672690f..d99a28d 100644 --- a/src/components/MenuElementaryCA.vue +++ b/src/components/MenuElementaryCA.vue @@ -63,20 +63,20 @@
- +
diff --git a/src/components/MenuRow.vue b/src/components/MenuRow.vue index 1db739a..0a36f31 100644 --- a/src/components/MenuRow.vue +++ b/src/components/MenuRow.vue @@ -10,66 +10,66 @@ diff --git a/src/stores/index.js b/src/stores/index.js index 850c03c..6736eb2 100644 --- a/src/stores/index.js +++ b/src/stores/index.js @@ -38,22 +38,22 @@ export const globalStore = defineStore("globalStore", { } }, actions: { - draw1d() { + toggleDraw1d() { this.draw1d = true; }, - draw2d() { + toggleDraw2d() { this.canDraw = true; this.draw2d = true; }, - draw2dLast() { + toggleDraw2dLast() { this.canDraw = true; this.draw2dLast = true; }, - reset() { - this.stop(); + toggleReset() { + this.toggleStop(); this.reset = true; }, - stop() { + toggleStop() { this.draw1d = false; this.draw2d = false; this.draw2dLast = false;