Skip to content

Commit 5412b6c

Browse files
committed
// Thanks @Azathothas for forcing us to write this hellifying script
const [, , , , , , pkg_family, pkg] = app.pkg_webpage.split("/");
1 parent 7f800e5 commit 5412b6c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

web/src/components/app.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ function Show({ value, Key, props }: { value: any, props: AppProps, Key?: string
205205

206206
export default function App({ data, logs: build, repo }: AppProps) {
207207
const { copy, copied } = useClipboard();
208+
209+
// Thanks @Azathothas for forcing us to write this hellifying script
210+
const [, , , , , , pkg_family, pkg] = data.pkg_webpage.split("/");
211+
208212
return (
209213
<TooltipProvider delayDuration={0}>
210214
<div className="flex flex-col lg:flex-row space-y-3 lg:space-y-0 lg:space-x-3 px-5 mt-3 items-start pb-4">
@@ -217,8 +221,8 @@ export default function App({ data, logs: build, repo }: AppProps) {
217221
webpage_url={data.pkg_webpage}
218222
repo={repo}
219223
arch={data.host}
220-
family={data.pkg_family}
221-
name={data.pkg_name}
224+
family={pkg_family}
225+
name={pkg}
222226
download_url={data.download_url}
223227
/>
224228
<Table className="border border-muted/70 mt-4 rounded-xl">

0 commit comments

Comments
 (0)