fix: lint
This commit is contained in:
parent
3714375c86
commit
43dcc03aed
@ -7,8 +7,8 @@
|
|||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { NotificationPanel, provideNotificationManager } from "@modrinth/ui";
|
import { NotificationPanel, provideNotificationManager } from "@modrinth/ui";
|
||||||
|
import { FrontendNotificationManager } from "./providers/web-notifications.ts";
|
||||||
import ModrinthLoadingIndicator from "~/components/ui/modrinth-loading-indicator.ts";
|
import ModrinthLoadingIndicator from "~/components/ui/modrinth-loading-indicator.ts";
|
||||||
import { FrontendNotificationManager } from "./providers/web-notifications";
|
|
||||||
|
|
||||||
provideNotificationManager(new FrontendNotificationManager());
|
provideNotificationManager(new FrontendNotificationManager());
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -80,10 +80,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { useAuth } from "@/composables/auth.js";
|
|
||||||
import { useBaseFetch } from "@/composables/fetch.js";
|
|
||||||
import { CheckIcon, XIcon } from "@modrinth/assets";
|
import { CheckIcon, XIcon } from "@modrinth/assets";
|
||||||
import { Avatar, Button, commonMessages, injectNotificationManager } from "@modrinth/ui";
|
import { Avatar, Button, commonMessages, injectNotificationManager } from "@modrinth/ui";
|
||||||
|
import { useAuth } from "@/composables/auth.js";
|
||||||
|
import { useBaseFetch } from "@/composables/fetch.js";
|
||||||
|
|
||||||
import { useScopes } from "@/composables/auth/scopes.ts";
|
import { useScopes } from "@/composables/auth/scopes.ts";
|
||||||
|
|
||||||
@ -118,8 +118,6 @@ const messages = defineMessages({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const data = useNuxtApp();
|
|
||||||
|
|
||||||
const router = useNativeRoute();
|
const router = useNativeRoute();
|
||||||
const auth = await useAuth();
|
const auth = await useAuth();
|
||||||
const { scopesToDefinitions } = useScopes();
|
const { scopesToDefinitions } = useScopes();
|
||||||
|
|||||||
@ -67,9 +67,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import HCaptcha from "@/components/ui/HCaptcha.vue";
|
|
||||||
import { KeyIcon, MailIcon, SendIcon } from "@modrinth/assets";
|
import { KeyIcon, MailIcon, SendIcon } from "@modrinth/assets";
|
||||||
import { commonMessages, injectNotificationManager } from "@modrinth/ui";
|
import { commonMessages, injectNotificationManager } from "@modrinth/ui";
|
||||||
|
import HCaptcha from "@/components/ui/HCaptcha.vue";
|
||||||
|
|
||||||
const { addNotification } = injectNotificationManager();
|
const { addNotification } = injectNotificationManager();
|
||||||
const { formatMessage } = useVIntl();
|
const { formatMessage } = useVIntl();
|
||||||
|
|||||||
@ -129,7 +129,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import HCaptcha from "@/components/ui/HCaptcha.vue";
|
|
||||||
import {
|
import {
|
||||||
KeyIcon,
|
KeyIcon,
|
||||||
MailIcon,
|
MailIcon,
|
||||||
@ -142,6 +141,7 @@ import {
|
|||||||
SSOSteamIcon,
|
SSOSteamIcon,
|
||||||
} from "@modrinth/assets";
|
} from "@modrinth/assets";
|
||||||
import { commonMessages, injectNotificationManager } from "@modrinth/ui";
|
import { commonMessages, injectNotificationManager } from "@modrinth/ui";
|
||||||
|
import HCaptcha from "@/components/ui/HCaptcha.vue";
|
||||||
|
|
||||||
const { addNotification } = injectNotificationManager();
|
const { addNotification } = injectNotificationManager();
|
||||||
const { formatMessage } = useVIntl();
|
const { formatMessage } = useVIntl();
|
||||||
|
|||||||
@ -133,7 +133,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import HCaptcha from "@/components/ui/HCaptcha.vue";
|
|
||||||
import {
|
import {
|
||||||
KeyIcon,
|
KeyIcon,
|
||||||
MailIcon,
|
MailIcon,
|
||||||
@ -147,6 +146,7 @@ import {
|
|||||||
UserIcon,
|
UserIcon,
|
||||||
} from "@modrinth/assets";
|
} from "@modrinth/assets";
|
||||||
import { Checkbox, commonMessages, injectNotificationManager } from "@modrinth/ui";
|
import { Checkbox, commonMessages, injectNotificationManager } from "@modrinth/ui";
|
||||||
|
import HCaptcha from "@/components/ui/HCaptcha.vue";
|
||||||
|
|
||||||
const { addNotification } = injectNotificationManager();
|
const { addNotification } = injectNotificationManager();
|
||||||
const { formatMessage } = useVIntl();
|
const { formatMessage } = useVIntl();
|
||||||
|
|||||||
@ -99,7 +99,10 @@
|
|||||||
import { ChevronRightIcon, HistoryIcon } from "@modrinth/assets";
|
import { ChevronRightIcon, HistoryIcon } from "@modrinth/assets";
|
||||||
import { Avatar } from "@modrinth/ui";
|
import { Avatar } from "@modrinth/ui";
|
||||||
import NotificationItem from "~/components/ui/NotificationItem.vue";
|
import NotificationItem from "~/components/ui/NotificationItem.vue";
|
||||||
import { fetchExtraNotificationData, groupNotifications } from "~/helpers/platform-notifications";
|
import {
|
||||||
|
fetchExtraNotificationData,
|
||||||
|
groupNotifications,
|
||||||
|
} from "~/helpers/platform-notifications.ts";
|
||||||
|
|
||||||
useHead({
|
useHead({
|
||||||
title: "Dashboard - Modrinth",
|
title: "Dashboard - Modrinth",
|
||||||
|
|||||||
@ -56,16 +56,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { Button, Pagination, Chips } from "@modrinth/ui";
|
import { CheckCheckIcon, HistoryIcon } from "@modrinth/assets";
|
||||||
import { HistoryIcon, CheckCheckIcon } from "@modrinth/assets";
|
import { Button, Chips, Pagination } from "@modrinth/ui";
|
||||||
import { formatProjectType } from "@modrinth/utils";
|
import { formatProjectType } from "@modrinth/utils";
|
||||||
|
import Breadcrumbs from "~/components/ui/Breadcrumbs.vue";
|
||||||
|
import NotificationItem from "~/components/ui/NotificationItem.vue";
|
||||||
import {
|
import {
|
||||||
fetchExtraNotificationData,
|
fetchExtraNotificationData,
|
||||||
groupNotifications,
|
groupNotifications,
|
||||||
markAsRead,
|
markAsRead,
|
||||||
} from "~/helpers/platform-notifications";
|
} from "~/helpers/platform-notifications.ts";
|
||||||
import NotificationItem from "~/components/ui/NotificationItem.vue";
|
|
||||||
import Breadcrumbs from "~/components/ui/Breadcrumbs.vue";
|
|
||||||
|
|
||||||
useHead({
|
useHead({
|
||||||
title: "Notifications - Modrinth",
|
title: "Notifications - Modrinth",
|
||||||
|
|||||||
@ -109,7 +109,6 @@ useHead({
|
|||||||
title: "Transfer history - Modrinth",
|
title: "Transfer history - Modrinth",
|
||||||
});
|
});
|
||||||
|
|
||||||
const data = await useNuxtApp();
|
|
||||||
const auth = await useAuth();
|
const auth = await useAuth();
|
||||||
|
|
||||||
const { data: payouts, refresh } = await useAsyncData(`payout`, () =>
|
const { data: payouts, refresh } = await useAsyncData(`payout`, () =>
|
||||||
|
|||||||
@ -121,7 +121,6 @@ useHead({
|
|||||||
|
|
||||||
const vintl = useVIntl();
|
const vintl = useVIntl();
|
||||||
|
|
||||||
const data = useNuxtApp();
|
|
||||||
const config = useRuntimeConfig();
|
const config = useRuntimeConfig();
|
||||||
|
|
||||||
const auth = await useAuth();
|
const auth = await useAuth();
|
||||||
|
|||||||
@ -421,6 +421,7 @@ import {
|
|||||||
XIcon,
|
XIcon,
|
||||||
} from "@modrinth/assets";
|
} from "@modrinth/assets";
|
||||||
import { ConfirmModal, injectNotificationManager } from "@modrinth/ui";
|
import { ConfirmModal, injectNotificationManager } from "@modrinth/ui";
|
||||||
|
import QrcodeVue from "qrcode.vue";
|
||||||
import KeyIcon from "assets/icons/auth/key.svg";
|
import KeyIcon from "assets/icons/auth/key.svg";
|
||||||
import DiscordIcon from "assets/icons/auth/sso-discord.svg";
|
import DiscordIcon from "assets/icons/auth/sso-discord.svg";
|
||||||
import GithubIcon from "assets/icons/auth/sso-github.svg";
|
import GithubIcon from "assets/icons/auth/sso-github.svg";
|
||||||
@ -428,7 +429,6 @@ import GitLabIcon from "assets/icons/auth/sso-gitlab.svg";
|
|||||||
import GoogleIcon from "assets/icons/auth/sso-google.svg";
|
import GoogleIcon from "assets/icons/auth/sso-google.svg";
|
||||||
import MicrosoftIcon from "assets/icons/auth/sso-microsoft.svg";
|
import MicrosoftIcon from "assets/icons/auth/sso-microsoft.svg";
|
||||||
import SteamIcon from "assets/icons/auth/sso-steam.svg";
|
import SteamIcon from "assets/icons/auth/sso-steam.svg";
|
||||||
import QrcodeVue from "qrcode.vue";
|
|
||||||
import Modal from "~/components/ui/Modal.vue";
|
import Modal from "~/components/ui/Modal.vue";
|
||||||
|
|
||||||
useHead({
|
useHead({
|
||||||
|
|||||||
@ -246,7 +246,6 @@ useHead({
|
|||||||
title: "Applications - Modrinth",
|
title: "Applications - Modrinth",
|
||||||
});
|
});
|
||||||
|
|
||||||
const data = useNuxtApp();
|
|
||||||
const { scopesToLabels } = useScopes();
|
const { scopesToLabels } = useScopes();
|
||||||
|
|
||||||
const appModal = ref();
|
const appModal = ref();
|
||||||
|
|||||||
@ -603,7 +603,6 @@ useHead({
|
|||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
const data = useNuxtApp();
|
|
||||||
const config = useRuntimeConfig();
|
const config = useRuntimeConfig();
|
||||||
|
|
||||||
const vintl = useVIntl();
|
const vintl = useVIntl();
|
||||||
|
|||||||
@ -108,7 +108,6 @@ useHead({
|
|||||||
title: () => `${formatMessage(commonSettingsMessages.sessions)} - Modrinth`,
|
title: () => `${formatMessage(commonSettingsMessages.sessions)} - Modrinth`,
|
||||||
});
|
});
|
||||||
|
|
||||||
const data = useNuxtApp();
|
|
||||||
const { data: sessions, refresh } = await useAsyncData("session/list", () =>
|
const { data: sessions, refresh } = await useAsyncData("session/list", () =>
|
||||||
useBaseFetch("session/list"),
|
useBaseFetch("session/list"),
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user