Skip to content

Commit

Permalink
chore: run lint (#3140)
Browse files Browse the repository at this point in the history
* chore: run lint

* fix: whoops messed up lint
  • Loading branch information
Erb3 authored Jan 10, 2025
1 parent 82f81dc commit 0a81d9c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 31 deletions.
60 changes: 30 additions & 30 deletions apps/frontend/src/pages/[type]/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@
</div>
<ScrollablePanel :class="project.game_versions.length > 4 ? 'h-[15rem]' : ''">
<ButtonStyled
v-for="version in project.game_versions
v-for="gameVersion in project.game_versions
.filter(
(x) =>
(versionFilter && x.includes(versionFilter)) ||
Expand All @@ -284,30 +284,30 @@
)
.slice()
.reverse()"
:key="version"
:color="currentGameVersion === version ? 'brand' : 'standard'"
:key="gameVersion"
:color="currentGameVersion === gameVersion ? 'brand' : 'standard'"
>
<button
v-tooltip="
!possibleGameVersions.includes(version)
? `${project.title} does not support ${version} for ${formatCategory(currentPlatform)}`
!possibleGameVersions.includes(gameVersion)
? `${project.title} does not support ${gameVersion} for ${formatCategory(currentPlatform)}`
: null
"
:class="{
'looks-disabled !text-brand-red': !possibleGameVersions.includes(version),
'looks-disabled !text-brand-red': !possibleGameVersions.includes(gameVersion),
}"
@click="
() => {
userSelectedGameVersion = version;
userSelectedGameVersion = gameVersion;
gameVersionAccordion.close();
if (!currentPlatform && platformAccordion) {
platformAccordion.open();
}
}
"
>
{{ version }}
<CheckIcon v-if="userSelectedGameVersion === version" />
{{ gameVersion }}
<CheckIcon v-if="userSelectedGameVersion === gameVersion" />
</button>
</ButtonStyled>
</ScrollablePanel>
Expand Down Expand Up @@ -785,31 +785,31 @@
</template>
<script setup>
import {
ScaleIcon,
AlignLeftIcon as DescriptionIcon,
BookmarkIcon,
BookTextIcon,
CalendarIcon,
ChartIcon,
CheckIcon,
ClipboardCopyIcon,
CopyrightIcon,
AlignLeftIcon as DescriptionIcon,
DownloadIcon,
ExternalIcon,
ImageIcon as GalleryIcon,
GameIcon,
HeartIcon,
ImageIcon as GalleryIcon,
InfoIcon,
LinkIcon as LinksIcon,
MoreVerticalIcon,
PlusIcon,
ReportIcon,
ScaleIcon,
SearchIcon,
SettingsIcon,
TagsIcon,
UsersIcon,
VersionIcon,
WrenchIcon,
BookTextIcon,
CalendarIcon,
} from "@modrinth/assets";
import {
Avatar,
Expand All @@ -818,32 +818,32 @@ import {
NewModal,
OverflowMenu,
PopoutMenu,
ScrollablePanel,
ProjectBackgroundGradient,
ProjectHeader,
ProjectSidebarCompatibility,
ProjectSidebarCreators,
ProjectSidebarLinks,
ProjectSidebarDetails,
ProjectBackgroundGradient,
ProjectSidebarLinks,
ScrollablePanel,
} from "@modrinth/ui";
import VersionSummary from "@modrinth/ui/src/components/version/VersionSummary.vue";
import { formatCategory, isRejected, isStaff, isUnderReview, renderString } from "@modrinth/utils";
import dayjs from "dayjs";
import VersionSummary from "@modrinth/ui/src/components/version/VersionSummary.vue";
import ModrinthIcon from "~/assets/images/utils/modrinth.svg?component";
import Accordion from "~/components/ui/Accordion.vue";
import AdPlaceholder from "~/components/ui/AdPlaceholder.vue";
import AutomaticAccordion from "~/components/ui/AutomaticAccordion.vue";
import Badge from "~/components/ui/Badge.vue";
import NavTabs from "~/components/ui/NavTabs.vue";
import Breadcrumbs from "~/components/ui/Breadcrumbs.vue";
import CollectionCreateModal from "~/components/ui/CollectionCreateModal.vue";
import MessageBanner from "~/components/ui/MessageBanner.vue";
import ModerationChecklist from "~/components/ui/ModerationChecklist.vue";
import NavStack from "~/components/ui/NavStack.vue";
import NavStackItem from "~/components/ui/NavStackItem.vue";
import NavTabs from "~/components/ui/NavTabs.vue";
import ProjectMemberHeader from "~/components/ui/ProjectMemberHeader.vue";
import MessageBanner from "~/components/ui/MessageBanner.vue";
import { reportProject } from "~/utils/report-helpers.ts";
import Breadcrumbs from "~/components/ui/Breadcrumbs.vue";
import { userCollectProject } from "~/composables/user.js";
import CollectionCreateModal from "~/components/ui/CollectionCreateModal.vue";
import ModerationChecklist from "~/components/ui/ModerationChecklist.vue";
import Accordion from "~/components/ui/Accordion.vue";
import ModrinthIcon from "~/assets/images/utils/modrinth.svg?component";
import AutomaticAccordion from "~/components/ui/AutomaticAccordion.vue";
import AdPlaceholder from "~/components/ui/AdPlaceholder.vue";
import { reportProject } from "~/utils/report-helpers.ts";
const data = useNuxtApp();
const route = useNativeRoute();
Expand Down Expand Up @@ -1247,7 +1247,7 @@ if (!route.name.startsWith("type-id-settings")) {
const onUserCollectProject = useClientTry(userCollectProject);
const {version, loader} = route.query;
const { version, loader } = route.query;
if (version !== undefined && project.value.game_versions.includes(version)) {
userSelectedGameVersion.value = version;
}
Expand All @@ -1262,7 +1262,7 @@ watch(downloadModal, (modal) => {
if (route.hash === "#download") {
modal.show();
}
})
});
async function setProcessing() {
startLoading();
Expand Down
2 changes: 1 addition & 1 deletion apps/labrinth/src/routes/internal/admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ use crate::search::SearchConfig;
use crate::util::date::get_current_tenths_of_ms;
use crate::util::guards::admin_key_guard;
use actix_web::{get, patch, post, web, HttpRequest, HttpResponse};
use log::info;
use serde::Deserialize;
use sqlx::PgPool;
use std::collections::HashMap;
use std::net::Ipv4Addr;
use std::sync::Arc;
use log::info;

pub fn config(cfg: &mut web::ServiceConfig) {
cfg.service(
Expand Down

0 comments on commit 0a81d9c

Please sign in to comment.