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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@nanostores/vue": "1.0.0",
"@tailwindcss/vite": "4.1.10",
"@vueuse/core": "13.4.0",
"astro": "5.10.0",
"astro": "5.10.1",
"class-variance-authority": "0.7.1",
"clsx": "2.1.1",
"lucide-vue-next": "0.523.0",
Expand Down
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions src/components/WaymarkBox.astro
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const { href, img, downloadLabel = '下载标点文件' }: Props = Astro.props
#confirmOpen = false

get disabled() {
return this.hasAttribute('disabled')
return this.hasAttribute('disabled') && this.getAttribute('disabled') !== 'false'
}

connectedCallback() {
Expand Down Expand Up @@ -174,11 +174,6 @@ const { href, img, downloadLabel = '下载标点文件' }: Props = Astro.props
cursor: pointer;
}

:host([disabled]) {
cursor: not-allowed;
opacity: 0.6;
}

.container {
position: relative;
width: 100%;
Expand Down
4 changes: 1 addition & 3 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ export function isValidURL(str: string): boolean {
try {
new URL(str)
return true
} catch (
_ // eslint-disable-line unused-imports/no-unused-vars
) {
} catch {
return false
}
}
Expand Down