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 frontend/components/GitHubRepoInput.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2024 the JSR authors. All rights reserved. MIT license.
import { Signal } from "@preact/signals";
import { useRef } from "preact/hooks";
import TbBrandGithub from "@preact-icons/tb/TbBrandGithub";
import TbBrandGithub from "tb-icons/TbBrandGithub";

export interface GithubRepoInputProps {
id: string;
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { FullUser } from "../utils/api_types.ts";
import { GlobalSearch } from "../islands/GlobalSearch.tsx";
import { UserMenu } from "../islands/UserMenu.tsx";
import TbBrandGithub from "@preact-icons/tb/TbBrandGithub";
import TbBrandGithub from "tb-icons/TbBrandGithub";
import { SearchKind } from "../util.ts";
import { HeaderLogo } from "../islands/HeaderLogo.tsx";

Expand Down
2 changes: 1 addition & 1 deletion frontend/components/HomepageHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { asset } from "fresh/runtime";
import { GlobalSearch } from "../islands/GlobalSearch.tsx";
import { HomepageHeroParticles } from "../islands/HomepageHeroParticles.tsx";
import { AnimatedLogo } from "./AnimatedLogo.tsx";
import TbPlus from "@preact-icons/tb/TbPlus";
import TbPlus from "tb-icons/TbPlus";

const canvasStyle = /*css*/ `.particles-js-canvas-el {
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/List.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2024 the JSR authors. All rights reserved. MIT license.
import { PaginationData } from "../util.ts";
import TbChevronRight from "@preact-icons/tb/TbChevronRight";
import TbChevronRight from "tb-icons/TbChevronRight";
import { ComponentChildren } from "preact";

export interface ListDisplayItem {
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/NavOverflow.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2024 the JSR authors. All rights reserved. MIT license.
import TbDots from "@preact-icons/tb/TbDots";
import TbDots from "tb-icons/TbDots";

const NAV_OVERFLOW_SCRIPT = /* js */ `
(() => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Table.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2024 the JSR authors. All rights reserved. MIT license.

import { ComponentChild, ComponentChildren } from "preact";
import { TbChevronLeft, TbChevronRight } from "@preact-icons/tb";
import { TbChevronLeft, TbChevronRight } from "tb-icons";
import { PaginationData } from "../util.ts";

interface TableProps {
Expand Down
2 changes: 1 addition & 1 deletion frontend/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
},
"imports": {
"@preact-icons/tb": "jsr:@preact-icons/tb@^1.0.12",
"tb-icons": "jsr:@preact-icons/tb@^1.0.12",
"@std/fmt": "jsr:@std/fmt@^1.0.6",
"fresh": "jsr:@fresh/core@^2.0.0-alpha.25",
"@fresh/plugin-tailwind": "jsr:@fresh/plugin-tailwind@^0.0.1-alpha.7",
Expand Down
2 changes: 1 addition & 1 deletion frontend/islands/CopyButton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2024 the JSR authors. All rights reserved. MIT license.
import { useSignal } from "@preact/signals";
import { useCallback, useRef } from "preact/hooks";
import { TbCheck, TbCopy } from "@preact-icons/tb";
import { TbCheck, TbCopy } from "tb-icons";

interface CopyButtonProps {
title: string;
Expand Down
2 changes: 1 addition & 1 deletion frontend/islands/GithubUserLink.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2024 the JSR authors. All rights reserved. MIT license.
import { useSignal } from "@preact/signals";
import TbBrandGithub from "@preact-icons/tb/TbBrandGithub";
import TbBrandGithub from "tb-icons/TbBrandGithub";
import { useEffect } from "preact/hooks";
import { User } from "../utils/api_types.ts";
import { cachedGitHubLogin } from "../utils/github.ts";
Expand Down
8 changes: 1 addition & 7 deletions frontend/islands/UserMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
// Copyright 2024 the JSR authors. All rights reserved. MIT license.
import { useEffect, useId, useRef, useState } from "preact/hooks";
import { FullUser } from "../utils/api_types.ts";
import {
TbArrowRight,
TbLogout,
TbPlus,
TbUser,
TbUserCog,
} from "@preact-icons/tb";
import { TbArrowRight, TbLogout, TbPlus, TbUser, TbUserCog } from "tb-icons";

const SHARED_ITEM_CLASSES =
"flex items-center justify-start gap-2 px-4 py-2.5 focus-visible:ring-2 ring-inset outline-none";
Expand Down
2 changes: 1 addition & 1 deletion frontend/routes/@[scope]/~/members.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
ScopeMember,
} from "../../../utils/api_types.ts";
import { scopeData } from "../../../utils/data.ts";
import TbTrash from "@preact-icons/tb/TbTrash";
import TbTrash from "tb-icons/TbTrash";
import { scopeIAM } from "../../../utils/iam.ts";
import { ScopeIAM } from "../../../utils/iam.ts";

Expand Down
2 changes: 1 addition & 1 deletion frontend/routes/@[scope]/~/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { FullScope, User } from "../../../utils/api_types.ts";
import { scopeDataWithMember } from "../../../utils/data.ts";
import { path } from "../../../utils/api.ts";
import { QuotaCard } from "../../../components/QuotaCard.tsx";
import TbCheck from "@preact-icons/tb/TbCheck";
import TbCheck from "tb-icons/TbCheck";
import { scopeIAM } from "../../../utils/iam.ts";

export default define.page<typeof handler>(function ScopeSettingsPage(
Expand Down
2 changes: 1 addition & 1 deletion frontend/routes/account/tokens/(_islands)/CreateToken.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useCallback, useEffect, useRef } from "preact/hooks";
import { Signal, useComputed, useSignal } from "@preact/signals";
import { IS_BROWSER } from "fresh/runtime";
import { CopyButton } from "../../../../islands/CopyButton.tsx";
import TbChevronLeft from "@preact-icons/tb/TbChevronLeft";
import TbChevronLeft from "tb-icons/TbChevronLeft";
import { api, APIResponseError, path } from "../../../../utils/api.ts";
import { CreatedToken, Permission } from "../../../../utils/api_types.ts";
import { ErrorDisplay } from "../../../../components/ErrorDisplay.tsx";
Expand Down
2 changes: 1 addition & 1 deletion frontend/routes/account/tokens/create.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2024 the JSR authors. All rights reserved. MIT license.
import { HttpError } from "fresh";
import { define } from "../../../util.ts";
import TbChevronLeft from "@preact-icons/tb/TbChevronLeft";
import TbChevronLeft from "tb-icons/TbChevronLeft";
import { CreateToken } from "./(_islands)/CreateToken.tsx";

export default define.page<typeof handler>(function AccountCreateTokenPage() {
Expand Down
2 changes: 1 addition & 1 deletion frontend/routes/account/tokens/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Token } from "../../../utils/api_types.ts";
import { AccountLayout } from "../(_components)/AccountLayout.tsx";
import twas from "twas";
import { RevokeToken } from "./(_islands)/RevokeToken.tsx";
import TbPlus from "@preact-icons/tb/TbPlus";
import TbPlus from "tb-icons/TbPlus";

export default define.page<typeof handler>(function AccountTokensPage({
data,
Expand Down
2 changes: 1 addition & 1 deletion frontend/routes/admin/scopes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { path } from "../../../utils/api.ts";
import { AdminNav } from "../(_components)/AdminNav.tsx";
import { URLQuerySearch } from "../../../components/URLQuerySearch.tsx";
import { define } from "../../../util.ts";
import TbArrowRight from "@preact-icons/tb/TbArrowRight";
import TbArrowRight from "tb-icons/TbArrowRight";

export default define.page<typeof handler>(function Scopes({ data, url }) {
return (
Expand Down
2 changes: 1 addition & 1 deletion frontend/routes/auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type {
Permission,
PermissionPackagePublishVersion,
} from "../utils/api_types.ts";
import TbChevronRight from "@preact-icons/tb/TbChevronRight";
import TbChevronRight from "tb-icons/TbChevronRight";

export default define.page<typeof handler>(function AuthPage({ data }) {
if (data.code === "" || data.authorization === null) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/routes/docs/[...id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { define } from "../../util.ts";
import { extract } from "@std/front-matter/yaml";

import TOC, { groupsNames } from "../../docs/toc.ts";
import TbBrandGithub from "@preact-icons/tb/TbBrandGithub";
import TbBrandGithub from "tb-icons/TbBrandGithub";

const groups = new Map<string, { id: string; title: string }[]>();
for (const group of groupsNames) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/routes/new.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2024 the JSR authors. All rights reserved. MIT license.
import { useSignal } from "@preact/signals";
import { TbBrandGithub, TbFolder, TbPackage } from "@preact-icons/tb";
import { TbBrandGithub, TbFolder, TbPackage } from "tb-icons";
import {
CreatePackage,
IconCircle,
Expand Down
4 changes: 2 additions & 2 deletions frontend/routes/package/(_components)/PackageHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Copyright 2024 the JSR authors. All rights reserved. MIT license.
import { Package, PackageVersionWithUser } from "../../../utils/api_types.ts";
import TbBrandGithub from "@preact-icons/tb/TbBrandGithub";
import TbBrandGithub from "tb-icons/TbBrandGithub";
import { RuntimeCompatIndicator } from "../../../components/RuntimeCompatIndicator.tsx";
import { getScoreTextColorClass } from "../../../utils/score_ring_color.ts";
import {
TbAlertTriangleFilled,
TbExternalLink,
TbFlag,
TbRosetteDiscountCheck,
} from "@preact-icons/tb";
} from "tb-icons";
import { Tooltip } from "../../../components/Tooltip.tsx";
import twas from "twas";
import { greaterThan, parse } from "@std/semver";
Expand Down
2 changes: 1 addition & 1 deletion frontend/routes/package/(_islands)/DependencyGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
TbMinus,
TbPlus,
TbRefresh,
} from "@preact-icons/tb";
} from "tb-icons";

import type {
DependencyGraphItem,
Expand Down
2 changes: 1 addition & 1 deletion frontend/routes/package/publish.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { packageData } from "../../utils/data.ts";
import { GitHubActionsLink } from "../../islands/GitHubActionsLink.tsx";
import { PackageNav, Params } from "./(_components)/PackageNav.tsx";
import { PackageHeader } from "./(_components)/PackageHeader.tsx";
import TbBrandGithub from "@preact-icons/tb/TbBrandGithub";
import TbBrandGithub from "tb-icons/TbBrandGithub";
import { scopeIAM } from "../../utils/iam.ts";
import { CopyButton } from "../../islands/CopyButton.tsx";

Expand Down
2 changes: 1 addition & 1 deletion frontend/routes/package/score.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { define } from "../../util.ts";
import { packageData } from "../../utils/data.ts";
import { PackageHeader } from "./(_components)/PackageHeader.tsx";
import { PackageNav, Params } from "./(_components)/PackageNav.tsx";
import { TbAlertCircle, TbCheck, TbX } from "@preact-icons/tb";
import { TbAlertCircle, TbCheck, TbX } from "tb-icons";
import { getScoreBgColorClass } from "../../utils/score_ring_color.ts";
import { scopeIAM } from "../../utils/iam.ts";
import { Logo } from "../../components/Logo.tsx";
Expand Down
2 changes: 1 addition & 1 deletion frontend/routes/package/source.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { define } from "../../util.ts";
import { packageDataWithSource } from "../../utils/data.ts";
import { PackageNav, Params } from "./(_components)/PackageNav.tsx";
import { PackageHeader } from "./(_components)/PackageHeader.tsx";
import { TbFolder, TbSourceCode } from "@preact-icons/tb";
import { TbFolder, TbSourceCode } from "tb-icons";
import { ListDisplay } from "../../components/List.tsx";
import { scopeIAM } from "../../utils/iam.ts";
import { format as formatBytes } from "@std/fmt/bytes";
Expand Down
7 changes: 1 addition & 6 deletions frontend/routes/package/versions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ import { packageData } from "../../utils/data.ts";
import { PackageHeader } from "./(_components)/PackageHeader.tsx";
import { PackageNav, Params } from "./(_components)/PackageNav.tsx";
import { path } from "../../utils/api.ts";
import {
TbAlertCircle,
TbCheck,
TbClockHour3,
TbTrashX,
} from "@preact-icons/tb";
import { TbAlertCircle, TbCheck, TbClockHour3, TbTrashX } from "tb-icons";
import { ScopeIAM, scopeIAM } from "../../utils/iam.ts";

export default define.page<typeof handler>(function Versions({
Expand Down
2 changes: 1 addition & 1 deletion frontend/routes/publishing/(_islands)/publishing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
PublishingTask,
PublishingTaskStatus,
} from "../../../utils/api_types.ts";
import { TbAlertCircle, TbCheck, TbClockHour3 } from "@preact-icons/tb";
import { TbAlertCircle, TbCheck, TbClockHour3 } from "tb-icons";

export interface VersionPublishStatus {
loading: boolean;
Expand Down
2 changes: 1 addition & 1 deletion frontend/routes/status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { PackageHeader } from "./package/(_components)/PackageHeader.tsx";
import { PackageNav } from "./package/(_components)/PackageNav.tsx";
import twas from "twas";
import PublishingTaskRequeue from "../islands/PublishingTaskRequeue.tsx";
import { TbAlertCircle, TbCheck, TbClockHour3 } from "@preact-icons/tb";
import { TbAlertCircle, TbCheck, TbClockHour3 } from "tb-icons";
import { scopeIAM } from "../utils/iam.ts";

export default define.page<typeof handler>(function PackageListPage({
Expand Down