Skip to content
Merged
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 apps/cyberstorm-remix/app/c/community.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
NewLink,
SkeletonBox,
} from "@thunderstore/cyberstorm";
import { classnames } from "@thunderstore/cyberstorm/src/utils/utils";
import { classnames } from "@thunderstore/cyberstorm";
import { DapperTs } from "@thunderstore/dapper-ts";

import { type OutletContextShape } from "../root";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { memo } from "react";
import { type TRISTATE } from "~/commonComponents/types";

import { Actionable, NewIcon } from "@thunderstore/cyberstorm";
import { classnames } from "@thunderstore/cyberstorm/src/utils/utils";
import { classnames } from "@thunderstore/cyberstorm";

import "./CheckboxList.css";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { type PropsWithChildren, memo } from "react";

import { NewIcon } from "@thunderstore/cyberstorm";
import { classnames } from "@thunderstore/cyberstorm/src/utils/utils";
import { classnames } from "@thunderstore/cyberstorm";

import "./Collapsible.css";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type ReactElement, useState } from "react";

import { classnames } from "@thunderstore/cyberstorm/src/utils/utils";
import { classnames } from "@thunderstore/cyberstorm";

import "./CollapsibleText.css";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { type ReactElement } from "react";

import { NewIcon, NewSwitch } from "@thunderstore/cyberstorm";
import { type OAuthConnection } from "@thunderstore/dapper/types";
import type { userLinkedAccountDisconnectProviders } from "@thunderstore/thunderstore-api";

import { type userLinkedAccountDisconnectProviders } from "../../../../../packages/thunderstore-api/src";
import "./Connection.css";

interface ConnectionProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { type Dispatch, type SetStateAction, useState } from "react";
import React from "react";

import { NewIcon, Tooltip } from "@thunderstore/cyberstorm/src";
import { NewIcon, Tooltip } from "@thunderstore/cyberstorm";

import "./CopyButton.css";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import {
OverwolfLogo,
ThunderstoreLogo,
} from "@thunderstore/cyberstorm";
import { classnames } from "@thunderstore/cyberstorm/src/utils/utils";
import { classnames } from "@thunderstore/cyberstorm";
import { type CurrentUser } from "@thunderstore/dapper/types";

import "./MobileNavigation.css";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { type PropsWithChildren, type ReactElement, memo } from "react";

import { Heading, Image } from "@thunderstore/cyberstorm";
import type { HeadingSizes } from "@thunderstore/cyberstorm-theme/src/components";
import { classnames } from "@thunderstore/cyberstorm/src/utils/utils";
import { classnames } from "@thunderstore/cyberstorm";
import type { HeadingSizes } from "@thunderstore/cyberstorm-theme";

import "./PageHeader.css";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as RadixRadioGroup from "@radix-ui/react-radio-group";
import { memo } from "react";

import { NewIcon } from "@thunderstore/cyberstorm";
import { classnames } from "@thunderstore/cyberstorm/src/utils/utils";
import { classnames } from "@thunderstore/cyberstorm";
import { type Section } from "@thunderstore/dapper/types";

import "./RadioGroup.css";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { type ReactNode } from "react";

import { NewIcon } from "@thunderstore/cyberstorm";
import { classnames } from "@thunderstore/cyberstorm/src/utils/utils";
import { classnames } from "@thunderstore/cyberstorm";

import "./StalenessIndicator.css";

Expand Down
2 changes: 1 addition & 1 deletion apps/cyberstorm-remix/app/p/packageListing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ import {
useToast,
} from "@thunderstore/cyberstorm";
import { PackageLikeAction } from "@thunderstore/cyberstorm-forms";
import type { TagVariants } from "@thunderstore/cyberstorm-theme/src/components";
import type { TagVariants } from "@thunderstore/cyberstorm-theme";
import { DapperTs, type DapperTsInterface } from "@thunderstore/dapper-ts";
import type { CurrentUser } from "@thunderstore/dapper/types";
import {
Expand Down
14 changes: 7 additions & 7 deletions apps/cyberstorm-remix/app/p/packageVersion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@ import {
NewButton,
NewIcon,
NewLink,
RelativeTime,
SkeletonBox,
Tabs,
} from "@thunderstore/cyberstorm";
import { RelativeTime } from "@thunderstore/cyberstorm/src/components/RelativeTime/RelativeTime";
import { ThunderstoreLogo } from "@thunderstore/cyberstorm/src/svg/svg";
import {
ThunderstoreLogo,
formatFileSize,
formatInteger,
formatToDisplayName,
} from "@thunderstore/cyberstorm/src/utils/utils";
} from "@thunderstore/cyberstorm";
import { DapperTs } from "@thunderstore/dapper-ts";
import { getPackageVersionDetails } from "@thunderstore/dapper-ts/src/methods/packageVersion";
import { getTeamDetails } from "@thunderstore/dapper-ts/src/methods/team";
import {
getPackageVersionDetails,
getTeamDetails,
} from "@thunderstore/dapper-ts";

import "./packageListing.css";

Expand Down
14 changes: 7 additions & 7 deletions apps/cyberstorm-remix/app/p/packageVersionWithoutCommunity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@ import {
NewButton,
NewIcon,
NewLink,
RelativeTime,
SkeletonBox,
Tabs,
} from "@thunderstore/cyberstorm";
import { RelativeTime } from "@thunderstore/cyberstorm/src/components/RelativeTime/RelativeTime";
import { ThunderstoreLogo } from "@thunderstore/cyberstorm/src/svg/svg";
import {
ThunderstoreLogo,
formatFileSize,
formatInteger,
formatToDisplayName,
} from "@thunderstore/cyberstorm/src/utils/utils";
} from "@thunderstore/cyberstorm";
import { DapperTs } from "@thunderstore/dapper-ts";
import { getPackageVersionDetails } from "@thunderstore/dapper-ts/src/methods/packageVersion";
import { getTeamDetails } from "@thunderstore/dapper-ts/src/methods/team";
import {
getPackageVersionDetails,
getTeamDetails,
} from "@thunderstore/dapper-ts";

import "./packageListing.css";

Expand Down
6 changes: 3 additions & 3 deletions apps/cyberstorm-remix/app/p/tabs/Source/Source.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ import ago from "s-ago";
import { type OutletContextShape } from "~/root";

import {
NewAlert as Alert,
Heading,
NewButton,
NewIcon,
SkeletonBox,
TooltipWrapper,
} from "@thunderstore/cyberstorm";
import { Alert } from "@thunderstore/cyberstorm/src/newComponents/Alert/Alert";
import { TooltipWrapper } from "@thunderstore/cyberstorm/src/primitiveComponents/utils/utils";
import { DapperTs } from "@thunderstore/dapper-ts";
import { getPackageSource } from "@thunderstore/dapper-ts/src/methods/package";
import { getPackageSource } from "@thunderstore/dapper-ts";
import { isApiError } from "@thunderstore/thunderstore-api";

import { CodeBoxHTML } from "../../../commonComponents/CodeBoxHTML/CodeBoxHTML";
Expand Down
2 changes: 1 addition & 1 deletion apps/cyberstorm-remix/app/p/tabs/Versions/common.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { memo } from "react";

import { NewAlert, NewButton, NewIcon } from "@thunderstore/cyberstorm";
import { ThunderstoreLogo } from "@thunderstore/cyberstorm/src/svg/svg";
import { ThunderstoreLogo } from "@thunderstore/cyberstorm";

export const ModManagerBanner = memo(function ModManagerBanner() {
return (
Expand Down
4 changes: 2 additions & 2 deletions apps/cyberstorm-remix/app/p/tabs/Wiki/Wiki.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import { type OutletContextShape } from "~/root";

import { NewButton, NewIcon, SkeletonBox } from "@thunderstore/cyberstorm";
import { DapperTs } from "@thunderstore/dapper-ts";
import { getPackageWiki } from "@thunderstore/dapper-ts/src/methods/package";
import { getPackageWiki } from "@thunderstore/dapper-ts";
import { ApiError } from "@thunderstore/thunderstore-api";

import { ApiError } from "../../../../../../packages/thunderstore-api/src";
import "./Wiki.css";

export async function loader({ params }: LoaderFunctionArgs) {
Expand Down
4 changes: 2 additions & 2 deletions apps/cyberstorm-remix/app/p/tabs/Wiki/WikiFirstPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import {
getPackagePermissions,
getPackageWiki,
getPackageWikiPage,
} from "@thunderstore/dapper-ts/src/methods/package";
} from "@thunderstore/dapper-ts";
import { isApiError } from "@thunderstore/thunderstore-api";

import { isApiError } from "../../../../../../packages/thunderstore-api/src";
import "./Wiki.css";
import { WikiContent } from "./WikiContent";

Expand Down
2 changes: 1 addition & 1 deletion apps/cyberstorm-remix/app/p/tabs/Wiki/WikiNewPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
Tabs,
useToast,
} from "@thunderstore/cyberstorm";
import { classnames } from "@thunderstore/cyberstorm/src/utils/utils";
import { classnames } from "@thunderstore/cyberstorm";
import {
type PackageWikiPageCreateRequestData,
postPackageWikiPageCreate,
Expand Down
6 changes: 3 additions & 3 deletions apps/cyberstorm-remix/app/p/tabs/Wiki/WikiPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
getSessionTools,
} from "cyberstorm/security/publicEnvVariables";
import { Suspense } from "react";
import { Await, useParams, type LoaderFunctionArgs } from "react-router";
import { Await, type LoaderFunctionArgs, useParams } from "react-router";
import { useLoaderData } from "react-router";

import { SkeletonBox } from "@thunderstore/cyberstorm";
Expand All @@ -12,9 +12,9 @@ import {
getPackagePermissions,
getPackageWiki,
getPackageWikiPage,
} from "@thunderstore/dapper-ts/src/methods/package";
} from "@thunderstore/dapper-ts";
import { isApiError } from "@thunderstore/thunderstore-api";

import { isApiError } from "../../../../../../packages/thunderstore-api/src";
import "./Wiki.css";
import { WikiContent } from "./WikiContent";

Expand Down
2 changes: 1 addition & 1 deletion apps/cyberstorm-remix/app/p/tabs/Wiki/WikiPageEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
Tabs,
useToast,
} from "@thunderstore/cyberstorm";
import { classnames } from "@thunderstore/cyberstorm/src/utils/utils";
import { classnames } from "@thunderstore/cyberstorm";
import { DapperTs } from "@thunderstore/dapper-ts";
import {
type PackageWikiPageEditRequestData,
Expand Down
12 changes: 6 additions & 6 deletions apps/cyberstorm-remix/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,21 @@ import {
LinkingProvider,
NewBreadCrumbs,
NewBreadCrumbsLink,
ToastProvider,
isRecord,
} from "@thunderstore/cyberstorm";
import "@thunderstore/cyberstorm-theme";
import Toast from "@thunderstore/cyberstorm/src/newComponents/Toast";
import { DapperTs } from "@thunderstore/dapper-ts";
import { type CurrentUser } from "@thunderstore/dapper/types";
import { type RequestConfig } from "@thunderstore/thunderstore-api";
import { NamespacedStorageManager } from "@thunderstore/ts-api-react";
import {
NamespacedStorageManager,
SESSION_STORAGE_KEY,
StorageManager,
getSessionContext,
getSessionStale,
runSessionValidationCheck,
} from "@thunderstore/ts-api-react/src/SessionContext";
import { StorageManager } from "@thunderstore/ts-api-react/src/storage";
} from "@thunderstore/ts-api-react";

import type { Route } from "./+types/root";
import { Footer } from "./commonComponents/Footer/Footer";
Expand Down Expand Up @@ -339,7 +339,7 @@ export function Layout({ children }: { children: React.ReactNode }) {
)}
<div className="container container--y container--full island layout">
<LinkingProvider value={LinkLibrary}>
<Toast.Provider toastDuration={10000}>
<ToastProvider toastDuration={10000}>
<TooltipProvider>
<NavigationWrapper
domain={resolvedEnvVars?.VITE_API_URL || ""}
Expand Down Expand Up @@ -558,7 +558,7 @@ export function Layout({ children }: { children: React.ReactNode }) {
<Footer />
{shouldShowAds ? <AdsInit /> : null}
</TooltipProvider>
</Toast.Provider>
</ToastProvider>
</LinkingProvider>
<ScrollRestoration />
<Scripts />
Expand Down
6 changes: 3 additions & 3 deletions apps/cyberstorm-remix/app/settings/teams/Teams.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useReducer, useState } from "react";
import type { MetaFunction } from "react-router";
import { useOutletContext, useRevalidator } from "react-router";
import { PageHeader } from "~/commonComponents/PageHeader/PageHeader";
import { RequiredIndicator } from "~/commonComponents/RequiredIndicator/RequiredIndicator";

import {
Heading,
Expand All @@ -16,8 +17,7 @@ import {
NewTextInput,
useToast,
} from "@thunderstore/cyberstorm";
import { postTeamCreate } from "@thunderstore/dapper-ts/src/methods/team";
import { RequiredIndicator } from "~/commonComponents/RequiredIndicator/RequiredIndicator";
import { postTeamCreate } from "@thunderstore/dapper-ts";
import {
type RequestConfig,
type TeamCreateRequestData,
Expand All @@ -27,7 +27,7 @@ import { NamespacedStorageManager } from "@thunderstore/ts-api-react";
import {
SESSION_STORAGE_KEY,
setSessionStale,
} from "@thunderstore/ts-api-react/src/SessionContext";
} from "@thunderstore/ts-api-react";

import { type OutletContextShape, type RootLoadersType } from "../../root";
import "./Teams.css";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
type SelectOption,
useToast,
} from "@thunderstore/cyberstorm";
import { TableSort } from "@thunderstore/cyberstorm/src/newComponents/Table/Table";
import { NewTableSort as TableSort } from "@thunderstore/cyberstorm";
import {
type RequestConfig,
type TeamMember,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { type OutletContextShape } from "app/root";
import { useOutletContext } from "react-router";

import { Heading, NewTable } from "@thunderstore/cyberstorm";
import { TableSort } from "@thunderstore/cyberstorm/src/newComponents/Table/Table";
import { NewTableSort as TableSort } from "@thunderstore/cyberstorm";
import { type TeamServiceAccount } from "@thunderstore/thunderstore-api";

import { ServiceAccountRemoveModal } from "./ServiceAccountRemoveModal";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ import { type OutletContextShape } from "~/root";

import { NewLink, OverwolfLogo, useToast } from "@thunderstore/cyberstorm";
import { ApiError } from "@thunderstore/thunderstore-api";
import { userLinkedAccountDisconnect } from "@thunderstore/thunderstore-api";
import { ApiAction } from "@thunderstore/ts-api-react-actions";

import { userLinkedAccountDisconnect } from "../../../../../../packages/thunderstore-api/src";

type ProvidersType = {
name: string;
identifier: "discord" | "github" | "overwolf";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ export default function ManifestValidator() {

const selectOptions = currentUser
? currentUser.teams.map((team) => {
if (typeof team === "string") {
return { value: team, label: team };
}
return { value: team.name, label: team.name };
return { value: team, label: team };
})
: [];

Expand Down
10 changes: 6 additions & 4 deletions apps/cyberstorm-remix/app/upload/upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ import {
NewTag,
useToast,
} from "@thunderstore/cyberstorm";
import { classnames } from "@thunderstore/cyberstorm/src/utils/utils";
import { DapperTs } from "@thunderstore/dapper-ts";
import { postPackageSubmissionMetadata } from "@thunderstore/dapper-ts/src/methods/package";
import { classnames } from "@thunderstore/cyberstorm";
import {
DapperTs,
postPackageSubmissionMetadata,
} from "@thunderstore/dapper-ts";
import {
type PackageSubmissionResult,
type PackageSubmissionStatus,
Expand All @@ -40,7 +42,7 @@ import {
type IBaseUploadHandle,
MultipartUpload,
} from "@thunderstore/ts-uploader";
import { type UserMedia } from "@thunderstore/ts-uploader/src/uploaders/types";
import { type UserMedia } from "@thunderstore/ts-uploader";

import { PageHeader } from "../commonComponents/PageHeader/PageHeader";
import { type OutletContextShape } from "../root";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getSessionContext } from "@thunderstore/ts-api-react/src/SessionContext";
import { getSessionContext } from "@thunderstore/ts-api-react";

import { isRecord } from "../utils/typeChecks";

Expand Down
Loading
Loading