Skip to content

Commit

Permalink
更新 ipa.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
li-peifeng authored Dec 25, 2024
1 parent f121ff4 commit 5b4d570
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/pages/home/previews/ipa.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Button, HStack } from "@hope-ui/solid"
import { createSignal } from "solid-js"
import { useT, useLink } from "~/hooks"
import { useT, useLink, useCopyLink
} from "~/hooks"
import { objStore } from "~/store"
import { api, baseName, safeBtoa } from "~/utils"
import { FileInfo } from "./info"
import { Download } from "./download"

const Ipa = () => {
const t = useT()
Expand All @@ -15,14 +15,9 @@ const Ipa = () => {
return (
<FileInfo>
<HStack spacing="$2">
<Button as="a" href={objStore.raw_url} target="_blank">
{t("home.preview.download")}
</Button>
<Button colorScheme="accent" onClick={() => copyCurrentRawLink(true)}>
{t("home.toolbar.copy_link")}
</Button>
<Button
as="a"
colorScheme="accent"
href={
"itms-services://?action=download-manifest&url=" +
`${api}/i/${safeBtoa(
Expand All @@ -39,7 +34,7 @@ const Ipa = () => {
</Button>
<Button
as="a"
colorScheme="primary"
colorScheme="warning"
href={
"apple-magnifier://install?url=" +
encodeURIComponent(currentObjLink(true))
Expand All @@ -50,6 +45,12 @@ const Ipa = () => {
>
{t(`home.preview.${trInstalling() ? "tr-installing" : "tr-install"}`)}
</Button>
<Button colorScheme="success" onClick={() => copyCurrentRawLink(true)}>
{t("home.toolbar.copy_link")}
</Button>
<Button as="a" colorScheme="primary" href={objStore.raw_url} target="_blank">
{t("home.preview.download")}
</Button>
</HStack>
</FileInfo>
)
Expand Down

0 comments on commit 5b4d570

Please sign in to comment.