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/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<AuthModal v-if="authStore.isOpen" :mode="authStore.authMode" />
</template>

<script setup>
<script setup lang="ts">
import { onMounted, watch, inject } from "vue";

Check failure on line 7 in resources/js/App.vue

View workflow job for this annotation

GitHub Actions / tests

'inject' is declared but its value is never read.

Check failure on line 7 in resources/js/App.vue

View workflow job for this annotation

GitHub Actions / tests

'watch' is declared but its value is never read.

Check warning on line 7 in resources/js/App.vue

View workflow job for this annotation

GitHub Actions / tests

'inject' is defined but never used

Check warning on line 7 in resources/js/App.vue

View workflow job for this annotation

GitHub Actions / tests

'watch' is defined but never used
import { useAuthStore } from "@/stores/auth";
import AuthModal from "@/components/AuthModal.vue";

Expand All @@ -23,7 +23,7 @@
try {
await authStore.hasSessionExpired();
} catch (error) {
console.error("Error in App setup:", error);

Check warning on line 26 in resources/js/App.vue

View workflow job for this annotation

GitHub Actions / tests

Unexpected console statement
}
});
</script>
2 changes: 1 addition & 1 deletion resources/js/components/AccountCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@
</div>
</template>

<script setup>
<script setup lang="ts">
import { computed } from "vue";

Check failure on line 94 in resources/js/components/AccountCard.vue

View workflow job for this annotation

GitHub Actions / tests

'computed' is declared but its value is never read.

Check warning on line 94 in resources/js/components/AccountCard.vue

View workflow job for this annotation

GitHub Actions / tests

'computed' is defined but never used

const props = defineProps({
account: {
Expand Down Expand Up @@ -120,11 +120,11 @@
}
};

const onImageError = (event) => {

Check failure on line 123 in resources/js/components/AccountCard.vue

View workflow job for this annotation

GitHub Actions / tests

Parameter 'event' implicitly has an 'any' type.
event.target.src = "/storage/avatars/default.jpg";
};

const formatCount = (count) => {

Check failure on line 127 in resources/js/components/AccountCard.vue

View workflow job for this annotation

GitHub Actions / tests

Parameter 'count' implicitly has an 'any' type.
if (count >= 1000000) {
return (count / 1000000).toFixed(1) + "M";
} else if (count >= 1000) {
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/AlertModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<p
:id="bodyId"
class="text-gray-600 dark:text-gray-300"
v-html="body"

Check warning on line 72 in resources/js/components/AlertModal.vue

View workflow job for this annotation

GitHub Actions / tests

'v-html' directive can lead to XSS attack
></p>
</div>

Expand All @@ -79,10 +79,10 @@
<button
v-for="(action, index) in actions"
:key="index"
:class="getButtonClasses(action.type)"

Check failure on line 82 in resources/js/components/AlertModal.vue

View workflow job for this annotation

GitHub Actions / tests

'action' is of type 'unknown'.
@click="handleAction(action)"
class="px-4 py-2 text-sm font-medium rounded-md transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 dark:focus:ring-offset-gray-800 cursor-pointer"
v-html="action.text"

Check failure on line 85 in resources/js/components/AlertModal.vue

View workflow job for this annotation

GitHub Actions / tests

'action' is of type 'unknown'.

Check warning on line 85 in resources/js/components/AlertModal.vue

View workflow job for this annotation

GitHub Actions / tests

'v-html' directive can lead to XSS attack
></button>
</div>
</div>
Expand All @@ -92,8 +92,8 @@
</Teleport>
</template>

<script setup>
<script setup lang="ts">
import { ref, onMounted, onUnmounted, computed } from "vue";

Check failure on line 96 in resources/js/components/AlertModal.vue

View workflow job for this annotation

GitHub Actions / tests

'ref' is declared but its value is never read.

const props = defineProps({
title: {
Expand Down Expand Up @@ -140,7 +140,7 @@
() => `alert-modal-body-${Math.random().toString(36).substr(2, 9)}`,
);

const getButtonClasses = (type) => {

Check failure on line 143 in resources/js/components/AlertModal.vue

View workflow job for this annotation

GitHub Actions / tests

Parameter 'type' implicitly has an 'any' type.
const baseClasses =
"px-4 py-2 text-sm font-medium rounded-md transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 dark:focus:ring-offset-gray-800";

Expand All @@ -157,7 +157,7 @@
}
};

const handleAction = (action) => {

Check failure on line 160 in resources/js/components/AlertModal.vue

View workflow job for this annotation

GitHub Actions / tests

Parameter 'action' implicitly has an 'any' type.
if (action.callback && typeof action.callback === "function") {
action.callback();
}
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/AnimatedButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
</component>
</template>

<script>
<script lang="ts">
import { computed } from "vue";

export default {
Expand Down
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,7 +43,7 @@
</div>
</template>

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

const authStore = inject("authStore");
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Auth/TwoFactorInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</div>
</template>

<script setup>
<script setup lang="ts">
import { ref, computed, watch, nextTick, onMounted, onUnmounted } from "vue";

const props = defineProps({
Expand Down Expand Up @@ -87,7 +87,7 @@

if (isComplete.value) {
emit("complete", newCode);
if (props.autoSubmit) {

Check failure on line 90 in resources/js/components/Auth/TwoFactorInput.vue

View workflow job for this annotation

GitHub Actions / tests

Empty block statement
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/AuthModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@
</Teleport>
</template>

<script setup>
<script setup lang="ts">
import { ref, computed, watch, nextTick, inject } from "vue";
import { useAuthStore } from "~/stores/auth";
import CloudflareTurnstile from "@/components/Captcha/CloudflareTurnstile.vue";
Expand Down Expand Up @@ -1078,7 +1078,7 @@
loading.value = true;

try {
let data = {

Check failure on line 1081 in resources/js/components/AuthModal.vue

View workflow job for this annotation

GitHub Actions / tests

'data' is never reassigned. Use 'const' instead
email: form.value.email,
captcha_type: form.value.captcha_type,
captcha_token: form.value.captcha_token,
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Captcha/CloudflareTurnstile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div ref="turnstileRef" class="cf-turnstile"></div>
</template>

<script setup>
<script setup lang="ts">
import { ref, onMounted, onUnmounted } from "vue";

const props = defineProps({
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Captcha/HCaptcha.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
></div>
</template>

<script setup>
<script setup lang="ts">
import { ref, onMounted, onUnmounted } from "vue";

const props = defineProps({
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/DataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
</div>
</template>

<script setup>
<script setup lang="ts">
import { ref, watch } from "vue";
import {
MagnifyingGlassIcon,
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/ErrorDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</div>
</template>

<script>
<script lang="ts">
export default {
name: "ErrorDisplay",

Expand Down Expand Up @@ -76,7 +76,7 @@
return "The content you're looking for could not be found";
case 403:
return "You don't have permission to access this content";
case 401:

Check failure on line 79 in resources/js/components/ErrorDisplay.vue

View workflow job for this annotation

GitHub Actions / tests

Duplicate case label
return "Please log in to continue";
case 429:
return "Too many requests. Please try again later";
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Feed/ReportVideo.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script setup>
<script setup lang="ts">
import { ref, onMounted } from "vue";

const props = defineProps({
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Feed/ShareModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</div>

<div class="mt-6 grid grid-cols-4 gap-x-4 gap-y-6">
<div

Check failure on line 51 in resources/js/components/Feed/ShareModal.vue

View workflow job for this annotation

GitHub Actions / tests

Elements in iteration expect to have 'v-bind:key' directives
v-for="provider in shareProviders"
class="flex flex-col items-center gap-1"
>
Expand Down Expand Up @@ -96,7 +96,7 @@
</Teleport>
</div>
</template>
<script setup>
<script setup lang="ts">
import { ref, computed } from "vue";
import UrlCopyInput from "../Form/UrlCopyInput.vue";
import { useI18n } from "vue-i18n";
Expand Down Expand Up @@ -130,7 +130,7 @@

const { t } = useI18n();

const title = computed(() => {

Check failure on line 133 in resources/js/components/Feed/ShareModal.vue

View workflow job for this annotation

GitHub Actions / tests

Expected to return a value in computed function
if (props.type === "video") {
return t("common.shareThisLoop");
} else if (props.type === "profile") {
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Feed/SnapScrollFeed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
</div>
</template>

<script setup>
<script setup lang="ts">
import {
ref,
computed,
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Feed/VideoPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@
</div>
</template>

<script setup>
<script setup lang="ts">
import {
ref,
onMounted,
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Form/EmojiPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</div>
</template>

<script setup>
<script setup lang="ts">
import { ref } from "vue";
import { Picker } from "emoji-mart-vue-fast/src";
import { useEmojiStore } from "@/stores/emojiStore";
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Form/TextInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</div>
</template>

<script setup>
<script setup lang="ts">
import { onMounted, computed } from "vue";

const props = defineProps({
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Form/ToggleSwitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</button>
</template>

<script setup>
<script setup lang="ts">
defineProps({
modelValue: Boolean,
});
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Form/UrlCopyInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</div>
</template>

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

const props = defineProps({
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Layout/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@
</div>
</template>

<script setup>
<script setup lang="ts">
import { ref, onMounted, inject, nextTick } from "vue";
import { useRouter } from "vue-router";
import { useSearchStore } from "@/stores/search";
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Layout/LanguagePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
</Teleport>
</template>

<script setup>
<script setup lang="ts">
import { ref, computed, onMounted, onUnmounted } from "vue";
import { useI18n } from "vue-i18n";

Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Layout/LoginModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</div>
</template>

<script setup>
<script setup lang="ts">
import { ref, inject } from "vue";
import Login from "@/components/Login.vue";
import Register from "@/components/Register.vue";
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Layout/NotificationsDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
</div>
</template>

<script setup>
<script setup lang="ts">
import { ref, onMounted } from "vue";
import { useNotificationStore } from "~/stores/notifications";
import { useNotifications } from "~/composables/useNotifications";
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Layout/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
</div>
</template>

<script setup>
<script setup lang="ts">
import { inject, ref, computed, onMounted, onUnmounted } from "vue";
import { useRoute, useRouter } from "vue-router";
import { useAuthStore } from "@/stores/auth";
Expand Down Expand Up @@ -335,7 +335,7 @@
});

const footerLinks = computed(() => {
let links = [

Check failure on line 338 in resources/js/components/Layout/Sidebar.vue

View workflow job for this annotation

GitHub Actions / tests

'links' is never reassigned. Use 'const' instead
{ name: t("nav.about"), path: "/about" },
{ name: t("nav.contact"), path: "/contact" },
{ name: t("nav.community"), path: "/community-guidelines" },
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Layout/SidebarNavItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</div>
</template>

<script setup>
<script setup lang="ts">
import { computed, ref, onMounted, onUnmounted } from "vue";

defineProps({
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Layout/SidebarProfileCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</div>
</template>

<script>
<script lang="ts">
export default {
props: {
user: {
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Layout/StudioHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
</div>
</template>

<script setup>
<script setup lang="ts">
import { ref, onMounted, inject, nextTick } from "vue";
import { useRouter } from "vue-router";
import { useSearchStore } from "@/stores/search";
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Layout/StudioSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
</aside>
</template>

<script setup>
<script setup lang="ts">
import { ref, onMounted, onUnmounted, computed } from "vue";
import { useRouter, useRoute } from "vue-router";

Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Layout/ThemeToggleButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</button>
</template>

<script setup>
<script setup lang="ts">
import { ref } from "vue";
import { SunIcon, MoonIcon } from "@heroicons/vue/24/outline";

Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/LoadingSpinner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</div>
</template>

<script>
<script lang="ts">
export default {
name: "LoadingSpinner",
};
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
</div>
</template>

<script setup>
<script setup lang="ts">
import { ref, inject } from "vue";

const authStore = inject("authStore");
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/NotificationItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
</div>
</template>

<script setup>
<script setup lang="ts">
import { computed } from "vue";
import { useRouter } from "vue-router";
import {
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Profile/EditModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@
</div>
</template>

<script setup>
<script setup lang="ts">
import { ref, computed, watch, onMounted } from "vue";
import { useRoute } from "vue-router";
import { Cropper, CircleStencil } from "vue-advanced-cropper";
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Profile/FollowersModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
</Teleport>
</template>

<script setup>
<script setup lang="ts">
import { ref, watch, computed } from "vue";
import { storeToRefs } from "pinia";
import { useInfiniteScroll } from "@vueuse/core";
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Profile/ProfileHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
</Teleport>
</template>

<script setup>
<script setup lang="ts">
import { ref, watch, onMounted, onUnmounted, computed } from "vue";
import { useAuthStore } from "~/stores/auth";
import { useProfileStore } from "~/stores/profile";
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Profile/ProfileTabBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</div>
</template>

<script setup>
<script setup lang="ts">
import { ref, computed } from "vue";

const props = defineProps({
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Profile/ProfileVideoCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
</div>
</template>

<script setup>
<script setup lang="ts">
import { ref, onMounted, onBeforeUnmount } from "vue";
import { useRoute, useRouter } from "vue-router";
import { useHashids } from "@/composables/useHashids";
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Register.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
</div>
</template>

<script setup>
<script setup lang="ts">
let name = ref(null);

Check failure on line 63 in resources/js/components/Register.vue

View workflow job for this annotation

GitHub Actions / tests

'name' is never reassigned. Use 'const' instead
let email = ref(null);

Check failure on line 64 in resources/js/components/Register.vue

View workflow job for this annotation

GitHub Actions / tests

'email' is never reassigned. Use 'const' instead
let password = ref(null);
let confirmPassword = ref(null);
let errors = ref(null);
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/ReportModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
</Teleport>
</template>

<script setup>
<script setup lang="ts">
import { useReportModal } from "@/composables/useReportModal";
import { useI18n } from "vue-i18n";
const { t } = useI18n();
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Settings/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</aside>
</template>

<script setup>
<script setup lang="ts">
import { ref } from "vue";
import SidebarItem from "./SidebarItem.vue";
import { useI18n } from "vue-i18n";
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Settings/SidebarItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</router-link>
</template>

<script setup>
<script setup lang="ts">
import { computed } from "vue";
import { useRoute } from "vue-router";
const route = useRoute();
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Status/CommentItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@
</div>
</template>

<script setup>
<script setup lang="ts">
import { ref, onMounted, onUnmounted, computed, inject } from "vue";
import { useAuthStore } from "@/stores/auth";
import { useCommentStore } from "@/stores/comments";
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Status/Comments.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
</div>
</template>

<script setup>
<script setup lang="ts">
import { ref, computed, watch, inject, nextTick } from "vue";
import { useAuthStore } from "@/stores/auth";
import { useCommentStore } from "@/stores/comments";
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Status/EditModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
</div>
</template>

<script setup>
<script setup lang="ts">
import { ref, watch, computed } from "vue";
import { XMarkIcon, ExclamationTriangleIcon } from "@heroicons/vue/24/outline";
import { useAlertModal } from "@/composables/useAlertModal.js";
Expand Down
Loading
Loading