From c80d30d2bdbc3218b198e5a6c05e52d525186c5f Mon Sep 17 00:00:00 2001 From: VIktorGrev <viktog2210@gmail.com> Date: Fri, 26 Apr 2024 09:01:46 +0200 Subject: [PATCH] fix: Fixing setup button --- src/components/Buttons/Button1.vue | 2 +- src/components/Buttons/ShopButton.vue | 2 +- src/views/Authentication/ChangePasswordView.vue | 2 +- src/views/LeaderboardView.vue | 4 +--- src/views/Settings/SettingsNotificationView.vue | 10 +++++----- src/views/UnauthorizedView.vue | 3 --- 6 files changed, 9 insertions(+), 14 deletions(-) diff --git a/src/components/Buttons/Button1.vue b/src/components/Buttons/Button1.vue index c5dfa9c..b4e1001 100644 --- a/src/components/Buttons/Button1.vue +++ b/src/components/Buttons/Button1.vue @@ -2,7 +2,7 @@ <button type="button" class="btn btn-primary" id="buttonStyle">{{ buttonText }}</button> </template> -<script> +<script setup lang="ts"> export default { props: ['buttonText'] } diff --git a/src/components/Buttons/ShopButton.vue b/src/components/Buttons/ShopButton.vue index 4ed5e02..6d70b92 100644 --- a/src/components/Buttons/ShopButton.vue +++ b/src/components/Buttons/ShopButton.vue @@ -2,7 +2,7 @@ <button type="button" class="btn btn-primary" id="buttonStyle"><img src="@/assets/items/pigcoin.png" style="width: 2rem"> +{{ buttonText }}</button> </template> -<script> +<script setup lang="ts"> export default { props: ['buttonText'] } diff --git a/src/views/Authentication/ChangePasswordView.vue b/src/views/Authentication/ChangePasswordView.vue index 36e2e75..3a50f55 100644 --- a/src/views/Authentication/ChangePasswordView.vue +++ b/src/views/Authentication/ChangePasswordView.vue @@ -60,7 +60,7 @@ const submitForm = async () => { try { const resetPassword = { password: newPassword.value, - token: token + token: token as string, }; const response = await UserService.confirmPasswordReset({ requestBody: resetPassword }); console.log(response); diff --git a/src/views/LeaderboardView.vue b/src/views/LeaderboardView.vue index 8be05c6..e0ffc53 100644 --- a/src/views/LeaderboardView.vue +++ b/src/views/LeaderboardView.vue @@ -17,7 +17,7 @@ </div> <main> <div id="leaderboard"> - <h1><img src="@/assets/items/pigcoin.png" style="width: 3rem"> Total points</h1> + <h1><img src="@/assets/items/pigcoin.png" style="width: 2rem"> Total points</h1> <Leaderboard :leaderboard="pointsLeaderboardData" :leaderboardExtra="pointsLeaderboardDataExtra" @navigateToUserProfile="navigateToUserProfile" /> </div> <div id="leaderboard"> @@ -26,8 +26,6 @@ </div> <div id="leaderboard"> <h1><img src="@/assets/icons/fire.png" style="width: 2rem"> Highest streak</h1> - let streakLeaderboardData = ref([] as LeaderboardEntryDTO[]); - let streakLeaderboardDataExtra = ref([] as LeaderboardEntryDTO[]); <Leaderboard :leaderboard="streakLeaderboardData" :leaderboardExtra="streakLeaderboardDataExtra" @navigateToUserProfile="navigateToUserProfile" /> </div> </main> diff --git a/src/views/Settings/SettingsNotificationView.vue b/src/views/Settings/SettingsNotificationView.vue index 233614f..225f1ae 100644 --- a/src/views/Settings/SettingsNotificationView.vue +++ b/src/views/Settings/SettingsNotificationView.vue @@ -8,12 +8,12 @@ <div class="small text-muted mb-3">Receive security alert notifications via email </div> <div class="custom-control custom-checkbox"> - <input type="checkbox" class="custom-control-input" id="customCheck1" checked=""> + <input type="checkbox" class="custom-control-input" id="customCheck1"> <label class="custom-control-label" for="customCheck1">Email each time a vulnerability is found</label> </div> <div class="custom-control custom-checkbox"> - <input type="checkbox" class="custom-control-input" id="customCheck2" checked=""> + <input type="checkbox" class="custom-control-input" id="customCheck2"> <label class="custom-control-label" for="customCheck2">Email a digest summary of vulnerability</label> </div> @@ -24,7 +24,7 @@ <li class="list-group-item has-icon"> Comments <div class="custom-control custom-control-nolabel custom-switch ml-auto"> - <input type="checkbox" class="custom-control-input" id="customSwitch1" checked=""> + <input type="checkbox" class="custom-control-input" id="customSwitch1"> <label class="custom-control-label" for="customSwitch1"></label> </div> </li> @@ -38,14 +38,14 @@ <li class="list-group-item has-icon"> Reminders <div class="custom-control custom-control-nolabel custom-switch ml-auto"> - <input type="checkbox" class="custom-control-input" id="customSwitch3" checked=""> + <input type="checkbox" class="custom-control-input" id="customSwitch3"> <label class="custom-control-label" for="customSwitch3"></label> </div> </li> <li class="list-group-item has-icon"> Events <div class="custom-control custom-control-nolabel custom-switch ml-auto"> - <input type="checkbox" class="custom-control-input" id="customSwitch4" checked=""> + <input type="checkbox" class="custom-control-input" id="customSwitch4"> <label class="custom-control-label" for="customSwitch4"></label> </div> </li> diff --git a/src/views/UnauthorizedView.vue b/src/views/UnauthorizedView.vue index 2e79554..eecd1f3 100644 --- a/src/views/UnauthorizedView.vue +++ b/src/views/UnauthorizedView.vue @@ -29,7 +29,4 @@ const home = () => { <style scoped> - body { - background-image: url('@/assets/401-error.jpg'); - } </style> \ No newline at end of file -- GitLab