Skip to content
Open
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
9 changes: 8 additions & 1 deletion app/components/Button/Base.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<script setup lang="ts">
type StartIcon =
| `i-carbon:${string}`
| `i-lucide:${string}`
| `i-simple-icons:${string}`
| `i-svg-spinners:${string}`
| `i-custom:${string}`

const props = withDefaults(
defineProps<{
disabled?: boolean
Expand All @@ -8,7 +15,7 @@ const props = withDefaults(
ariaKeyshortcuts?: string
block?: boolean

classicon?: string
classicon?: StartIcon
}>(),
{
type: 'button',
Expand Down
3 changes: 2 additions & 1 deletion app/pages/package/[[org]]/[name].vue
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,9 @@ const { copied: copiedPkgName, copy: copyPkgName } = useClipboard({
})

//copy version name
//orginally only copied name and not version number
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Typo and stale comment should be removed.

"orginally" is a misspelling of "originally". More broadly, the comment describes the old (broken) behaviour rather than the current intent — it reads as a leftover PR note and adds noise as permanent inline documentation.

🔧 Proposed fix
-//orginally only copied name and not version number
 const { copied: copiedVersion, copy: copyVersion } = useClipboard({
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
//orginally only copied name and not version number
const { copied: copiedVersion, copy: copyVersion } = useClipboard({

const { copied: copiedVersion, copy: copyVersion } = useClipboard({
source: resolvedVersion.value ?? '',
source: () => resolvedVersion.value ?? '',
copiedDuring: 2000,
})

Expand Down
Loading