From ce6d5aad666382dd103122d0ab68444f9581316f Mon Sep 17 00:00:00 2001 From: Annie Huang Date: Thu, 23 Nov 2023 16:16:20 +0800 Subject: [PATCH] Add complete animation --- app/package.json | 1 + app/src/components/CompleteModal.vue | 51 +++++++++++++++++++++++++--- app/src/img/complete-animation.json | 1 + app/src/main.js | 4 +++ app/src/views/GamePage.vue | 4 +-- server/package.json | 1 - yarn.lock | 23 ++++++++++--- 7 files changed, 73 insertions(+), 12 deletions(-) create mode 100644 app/src/img/complete-animation.json diff --git a/app/package.json b/app/package.json index 4fbe9d2..6a326a0 100644 --- a/app/package.json +++ b/app/package.json @@ -26,6 +26,7 @@ "vue": "^3.3.4", "vue-router": "^4.2.4", "vue-toastification": "^2.0.0-rc.5", + "vue3-lottie": "^3.2.0", "xterm": "^5.2.1", "xterm-addon-attach": "^0.8.0", "xterm-addon-fit": "^0.7.0" diff --git a/app/src/components/CompleteModal.vue b/app/src/components/CompleteModal.vue index 628e11f..81e632d 100644 --- a/app/src/components/CompleteModal.vue +++ b/app/src/components/CompleteModal.vue @@ -1,12 +1,36 @@ diff --git a/server/package.json b/server/package.json index 581bd9b..b127f77 100644 --- a/server/package.json +++ b/server/package.json @@ -16,7 +16,6 @@ "@linux-odyssey/file-graph": "*", "@linux-odyssey/models": "*", "@linux-odyssey/utils": "*", - "animejs": "^3.2.1", "bcrypt": "^5.1.1", "commander": "^11.0.0", "connect-mongo": "^5.0.0", diff --git a/yarn.lock b/yarn.lock index 501edf5..e5c7d07 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1328,11 +1328,6 @@ ajv@^6.10.0, ajv@^6.12.4: json-schema-traverse "^0.4.1" uri-js "^4.2.2" -animejs@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/animejs/-/animejs-3.2.1.tgz#de9fe2e792f44a777a7fdf6ae160e26604b0cdda" - integrity sha512-sWno3ugFryK5nhiDm/2BKeFCpZv7vzerWUcUPyAZLDhMek3+S/p418ldZJbJXo5ZUOpfm2kP2XRO4NJcULMy9A== - ansi-colors@^4.1.1: version "4.1.3" resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.3.tgz#37611340eb2243e70cc604cad35d63270d48781b" @@ -4556,6 +4551,11 @@ locate-path@^6.0.0: dependencies: p-locate "^5.0.0" +lodash-es@^4.17.21: + version "4.17.21" + resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.21.tgz#43e626c46e6591b7750beb2b50117390c609e3ee" + integrity sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw== + lodash.includes@^4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/lodash.includes/-/lodash.includes-4.3.0.tgz#60bb98a87cb923c68ca1e51325483314849f553f" @@ -4636,6 +4636,11 @@ long-timeout@0.1.1: resolved "https://registry.yarnpkg.com/long-timeout/-/long-timeout-0.1.1.tgz#9721d788b47e0bcb5a24c2e2bee1a0da55dab514" integrity sha512-BFRuQUqc7x2NWxfJBCyUrN8iYUYznzL9JROmRz1gZ6KlOIgmoD+njPVbb+VNn2nGMKggMsK79iUNErillsrx7w== +lottie-web@5.12.2: + version "5.12.2" + resolved "https://registry.yarnpkg.com/lottie-web/-/lottie-web-5.12.2.tgz#579ca9fe6d3fd9e352571edd3c0be162492f68e5" + integrity sha512-uvhvYPC8kGPjXT3MyKMrL3JitEAmDMp30lVkuq/590Mw9ok6pWcFCwXJveo0t5uqYw1UREQHofD+jVpdjBv8wg== + lru-cache@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" @@ -6620,6 +6625,14 @@ vue-toastification@^2.0.0-rc.5: resolved "https://registry.yarnpkg.com/vue-toastification/-/vue-toastification-2.0.0-rc.5.tgz#92798604d806ae473cfb76ed776fae294280f8f8" integrity sha512-q73e5jy6gucEO/U+P48hqX+/qyXDozAGmaGgLFm5tXX4wJBcVsnGp4e/iJqlm9xzHETYOilUuwOUje2Qg1JdwA== +vue3-lottie@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/vue3-lottie/-/vue3-lottie-3.2.0.tgz#7f95831d3483dc304c680a9b2cac6ed098070a2a" + integrity sha512-PtNXbv7iD4XGmK8CXd71aLWmILIR6P6VzLMDw6ZzmDAeuJZuJ0MdOVnn50LOARgq+cOFJsn/2z+7tZh0F9T9qw== + dependencies: + lodash-es "^4.17.21" + lottie-web "5.12.2" + vue@^3.3.4: version "3.3.4" resolved "https://registry.yarnpkg.com/vue/-/vue-3.3.4.tgz#8ed945d3873667df1d0fcf3b2463ada028f88bd6"