diff --git a/src/components/Buttons/Button1.vue b/src/components/Buttons/Button1.vue index c5dfa9cfa37b8d1d047ae0a0dbb4ab2907b00a78..b4e1001d33c7b509f3c11f2c15e0d511e5596c88 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 4ed5e02632d891b47f6752b8e870987b3e178edc..6d70b92e4d6113296035e3fe004d758b4c22b254 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 36e2e75e365f0f9bb01d81155533be0fa48e2ec0..3a50f55927afd22b84dd12e331b83960865a409a 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 8be05c6a348a0ecd3a1e295fcee44c0922cff104..e0ffc537d39098a8654eaeffbd901f65fd9b4234 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 233614f32b4d2ecf3d44920879666b16bf7b2628..225f1ae14d2fb1c26febea564ac1908461e9c4c1 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 2e79554d2ddf9024e05cde67064b0d14533d611c..eecd1f3b581d28870f4bebaabdd2f8486747646b 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