From 0b136a830aa641aad07d68c62af16e74af8389b5 Mon Sep 17 00:00:00 2001 From: Annie Huang Date: Sun, 28 Apr 2024 21:22:11 +0800 Subject: [PATCH 01/16] add start button - new stage will load previous stored data at first --- app/src/components/game/StartButton.vue | 51 +++++++++++++++++++++++ app/src/library.ts | 4 +- app/src/utils/terminal.ts | 2 +- app/src/views/GamePage.vue | 55 ++++++++++++++----------- 4 files changed, 87 insertions(+), 25 deletions(-) create mode 100644 app/src/components/game/StartButton.vue diff --git a/app/src/components/game/StartButton.vue b/app/src/components/game/StartButton.vue new file mode 100644 index 0000000..9e09810 --- /dev/null +++ b/app/src/components/game/StartButton.vue @@ -0,0 +1,51 @@ + + diff --git a/app/src/library.ts b/app/src/library.ts index 7f3c00c..d56bf6d 100644 --- a/app/src/library.ts +++ b/app/src/library.ts @@ -19,6 +19,7 @@ import { faTrophy, faFileInvoice, faEnvelope, + faPlay, } from '@fortawesome/free-solid-svg-icons' import { faLightbulb, @@ -54,5 +55,6 @@ library.add( faGoogle, faFileInvoice, faFacebook, - faEnvelope + faEnvelope, + faPlay ) diff --git a/app/src/utils/terminal.ts b/app/src/utils/terminal.ts index 337047a..a97bdf5 100644 --- a/app/src/utils/terminal.ts +++ b/app/src/utils/terminal.ts @@ -46,7 +46,7 @@ class SocketTerminal { mount(reference: HTMLElement): void { this.term.open(reference) - this.term.focus() + // this.term.focus() this.resizeScreen() } diff --git a/app/src/views/GamePage.vue b/app/src/views/GamePage.vue index 7325737..fcea8e4 100644 --- a/app/src/views/GamePage.vue +++ b/app/src/views/GamePage.vue @@ -1,7 +1,9 @@