Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/js/components/Auth/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
</div>
</template>

<script setup>

Check failure on line 46 in resources/js/components/Auth/Login.vue

View workflow job for this annotation

GitHub Actions / tests

The 'lang' attribute of '<script>' is missing
import { ref } from "vue";
import { ref, inject } from "vue";

const authStore = inject("authStore");
const appStore = inject("appStore");
Expand Down
8 changes: 3 additions & 5 deletions resources/js/components/ErrorDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,11 @@ export default {

switch (status) {
case 401:
return "The content you're trying to view is not available";
case 404:
return "The content you're looking for could not be found";
return "Please log in to continue";
case 403:
return "You don't have permission to access this content";
case 401:
return "Please log in to continue";
case 404:
return "The content you're looking for could not be found";
case 429:
return "Too many requests. Please try again later";
case 500:
Expand Down
17 changes: 11 additions & 6 deletions resources/js/components/Profile/ProfileListCard.vue
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
<script setup lang="ts">
import { computed } from "vue";
import Avatar from "./Avatar.vue";

interface Account {
username: string;
name: string;
avatar: string;
}

interface Props {
account: object;
account: Account;
}

const props = withDefaults(defineProps<Props>(), {
account: {
withDefaults(defineProps<Props>(), {
account: () => ({
username: "Username",
name: "name",
avatar: "",
},
}),
});
</script>

<template>
<div class="flex items-center space-x-3">
<Avatar :src="account.avatar" width="40" />
<Avatar :src="account.avatar" :width="40" />
<div>
<div class="font-medium text-[15px] dark:text-slate-200">
{{ account.name }}
Expand Down
2 changes: 2 additions & 0 deletions resources/js/components/Register.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
</template>

<script setup>
import { ref } from "vue";

let name = ref(null);
let email = ref(null);
let password = ref(null);
Expand Down
2 changes: 0 additions & 2 deletions resources/js/composables/useHashids.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { ref } from "vue";

export function useHashids() {
const charset =
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_".split(
Expand Down
2 changes: 1 addition & 1 deletion resources/js/pages/auth/VerifyEmail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ const submitVerification = async () => {
? "Your email address has been successfully updated!"
: "Your email has been verified and your account is now active!");
} else {
throw new Error(data.message || "Verification failed");
throw new Error(response.data.message || "Verification failed");
}
} catch (error) {
verificationStatus.value = "error";
Expand Down
4 changes: 3 additions & 1 deletion resources/js/pages/dashboard/account/AccountEmail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,9 @@ const fetchEmailData = async () => {
pendingEmail.value = res.data.data.pending_email;
console.log(res.data.data);
});
} catch (error) {}
} catch (error) {
console.error("Error fetching email settings:", error);
}
};

const validateEmail = () => {
Expand Down
4 changes: 3 additions & 1 deletion resources/js/pages/dashboard/safety.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ const fetchTotalBlocked = async () => {
.then((res) => {
blockedAccountsCount.value = res.data.data.count;
});
} catch {}
} catch (error) {
console.error("Error fetching blocked accounts:", error);
}
};

onMounted(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,9 @@ const fetchTotalBlocked = async () => {
loadedTotal.value = true;
totalBlocked.value = res.data.data.count;
});
} catch {}
} catch (error) {
console.error("Error fetching blocked accounts count:", error);
}
};

const fetchBlockedAccounts = async (
Expand Down
4 changes: 3 additions & 1 deletion resources/js/stores/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ export const useVideoStore = defineStore("video", {
.then((res) => {
this.currentVideo = res.data;
});
} catch (error) {}
} catch (error) {
console.error("Error fetching video:", error);
}
},

async decrementCommentCount() {
Expand Down
Loading