Skip to content

Commit

Permalink
Merge branch 'main' into zh-cn
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Sep 3, 2024
2 parents 87e919f + 66acae8 commit 46f44ca
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@
"eslint": "^9.9.1",
"eslint-plugin-format": "^0.1.2",
"eslint-plugin-svelte": "^2.43.0",
"svelte-check": "^3.8.6"
"svelte-check": "^4.0.0"
}
}
2 changes: 1 addition & 1 deletion src/python/common/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async def runcode(self: PyodideConsole, source: str, code):
@cache
def patch_input():
def input(prompt=""):
return window.prompt(prompt) or ""
return window.prompt(str(prompt)) or ""

builtins.input = input

Expand Down
2 changes: 1 addition & 1 deletion src/routes/pypi/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}
</script>

<section class="sticky top-0 z-1 mb-4 bg-gradient-(from-neutral-9/95 via-neutral-9/80 to-neutral-9/95 to-t) px-1rem pt-4 backdrop-blur-md -mx-1rem 2xl:pt-10 lg:pt-7 md:pt-6 sm:pt-5 xl:pt-8">
<section class="sticky top-0 z-1 mb-4 bg-gradient-(from-neutral-9/95 via-neutral-9/80 to-neutral-9/95 to-t) pt-4 backdrop-blur-md 2xl:pt-10 lg:pt-7 md:pt-6 sm:pt-5 xl:pt-8">
<header class="mx-auto w-[calc(100%-2rem)] 2xl:w-4xl lg:w-2xl sm:w-xl xl:w-3xl">

<nav class="mb-4 w-full flex flex-row items-center justify-between gap-2 text-sm [&_a]:(text-xl text-neutral-3 transition) lg:text-base [&_a:not(:hover)]:op-60">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/pypi/[project]/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const load = (async ({ fetch, params: { project } }) => {

const updated = $(".banner time").text().trim();

const tags = info.keywords?.split(" ").map(s => s.replace(/,$/, "")) ?? [];
const tags = $("#data .tags .package-keyword").map((_, el) => $(el).text().trim().replace(/,$/, "")).toArray();

const readme = info.description_content_type === "text/markdown" ? info.description : html2markdown($(".project-description").html()!);

Expand Down

0 comments on commit 46f44ca

Please sign in to comment.