Skip to content
Draft
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: 6 additions & 3 deletions app/components/Input/Base.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<script setup lang="ts">
import { noCorrect, noPasswordManager } from '~/utils/input'

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

× [vue(no-dupe-keys)](https://oxc.rs/docs/guide/usage/linter/rules/vue/no-dupe-keys.html): Duplicate key 'noCorrect'. May cause name collision in script or template tag.
   ╭─[app/components/Input/Base.vue:2:10]
 1 │ <script setup lang="ts">
 2 │ import { noCorrect, noPasswordManager } from '~/utils/input'
   ·          ─────────
 3 │
   ╰────

  × [vue(no-dupe-keys)](https://oxc.rs/docs/guide/usage/linter/rules/vue/no-dupe-keys.html): Duplicate key 'noPasswordManager'. May cause name collision in script or template tag.
   ╭─[app/components/Input/Base.vue:2:21]
 1 │ <script setup lang="ts">
 2 │ import { noCorrect, noPasswordManager } from '~/utils/input'
   ·                     ─────────────────
 3 │
   ╰────

import {
noCorrect as noCorrectAttrs,
noPasswordManager as noPasswordManagerAttrs,
} from '~/utils/input'

const model = defineModel<string>({ default: '' })

Expand Down Expand Up @@ -44,8 +47,8 @@ defineExpose({
})

const inputAttrs = computed(() => ({
...(props.noCorrect ? noCorrect : {}),
...(props.noPasswordManager ? noPasswordManager : {}),
...(props.noCorrect ? noCorrectAttrs : {}),
...(props.noPasswordManager ? noPasswordManagerAttrs : {}),
}))
</script>

Expand Down
4 changes: 2 additions & 2 deletions app/components/Tooltip/Base.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue'
import type { Placement, Strategy } from '@floating-ui/vue'
import { autoUpdate, flip, offset, shift, useFloating } from '@floating-ui/vue'
import { autoUpdate, flip, offset as offsetMiddleware, shift, useFloating } from '@floating-ui/vue'

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

× [vue(no-dupe-keys)](https://oxc.rs/docs/guide/usage/linter/rules/vue/no-dupe-keys.html): Duplicate key 'offset'. May cause name collision in script or template tag.
   ╭─[app/components/Tooltip/Base.vue:4:28]
 3 │ import type { Placement, Strategy } from '@floating-ui/vue'
 4 │ import { autoUpdate, flip, offset, shift, useFloating } from '@floating-ui/vue'
   ·                            ──────
 5 │
   ╰────


const props = withDefaults(
defineProps<{
Expand Down Expand Up @@ -40,7 +40,7 @@ const { floatingStyles } = useFloating(triggerRef, tooltipRef, {
placement,
whileElementsMounted: autoUpdate,
strategy: props.strategy,
middleware: [offset(props.offset), flip(), shift({ padding: 8 })],
middleware: [offsetMiddleware(props.offset), flip(), shift({ padding: 8 })],
})
</script>

Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"validate-npm-package-name": "8.0.0",
"virtua": "0.49.0",
"vite-plugin-pwa": "1.3.0",
"vite-plus": "0.1.20",
"vite-plus": "0.2.1",
"vue": "3.5.34",
"vue-data-ui": "3.21.5",
"vue-router": "5.0.4"
Expand All @@ -128,7 +128,8 @@
"@types/sanitize-html": "2.16.1",
"@types/semver": "7.7.1",
"@types/validate-npm-package-name": "4.0.2",
"@vitest/coverage-v8": "4.1.6",
"@vitest/browser-playwright": "4.1.9",
"@vitest/coverage-v8": "4.1.9",
"@vue/test-utils": "2.4.6",
"axe-core": "4.11.2",
"changelogen": "0.6.2",
Expand All @@ -147,7 +148,7 @@
"storybook-i18n": "catalog:storybook",
"typescript": "6.0.2",
"unplugin-vue-markdown": "30.0.0",
"vitest": "npm:@voidzero-dev/vite-plus-test@0.1.20",
"vitest": "4.1.9",
"vue-i18n-extract": "2.0.7",
"vue-tsc": "3.2.6"
},
Expand Down
Loading
Loading