chore: eslint
This commit is contained in:
parent
efbd6c7994
commit
61fec839e4
8 changed files with 10 additions and 8 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ChartTooltip } from '@/components/ui/chart'
|
|
||||||
import { VisSingleContainer, VisTopoJSONMap, VisTopoJSONMapSelectors } from '@unovis/vue'
|
import { VisSingleContainer, VisTopoJSONMap, VisTopoJSONMapSelectors } from '@unovis/vue'
|
||||||
|
import { ChartTooltip } from '@/components/ui/chart'
|
||||||
|
|
||||||
const id = inject('id')
|
const id = inject('id')
|
||||||
const time = inject('time')
|
const time = inject('time')
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { DependencyType } from '@/components/ui/auto-form/interface'
|
|
||||||
import { LinkSchema, nanoid } from '@@/schemas/link'
|
import { LinkSchema, nanoid } from '@@/schemas/link'
|
||||||
import { toTypedSchema } from '@vee-validate/zod'
|
import { toTypedSchema } from '@vee-validate/zod'
|
||||||
import { Shuffle, Sparkles } from 'lucide-vue-next'
|
import { Shuffle, Sparkles } from 'lucide-vue-next'
|
||||||
import { useForm } from 'vee-validate'
|
import { useForm } from 'vee-validate'
|
||||||
import { toast } from 'vue-sonner'
|
import { toast } from 'vue-sonner'
|
||||||
import { z } from 'zod'
|
import { z } from 'zod'
|
||||||
|
import { DependencyType } from '@/components/ui/auto-form/interface'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
link: {
|
link: {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import heroImg from '@/assets/images/hero.svg?raw'
|
|
||||||
import { AreaChart } from 'lucide-vue-next'
|
import { AreaChart } from 'lucide-vue-next'
|
||||||
import { GitHubIcon } from 'vue3-simple-icons'
|
import { GitHubIcon } from 'vue3-simple-icons'
|
||||||
|
import heroImg from '@/assets/images/hero.svg?raw'
|
||||||
|
|
||||||
const { title, description, github } = useAppConfig()
|
const { title, description, github } = useAppConfig()
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { cn } from '@/lib/utils'
|
|
||||||
import { computed, onMounted, ref, useSlots } from 'vue'
|
import { computed, onMounted, ref, useSlots } from 'vue'
|
||||||
|
import { cn } from '@/lib/utils'
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
class?: string
|
class?: string
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
import { type ClassValue, clsx } from 'clsx'
|
import type { ClassValue } from 'clsx'
|
||||||
|
import { clsx } from 'clsx'
|
||||||
import { twMerge } from 'tailwind-merge'
|
import { twMerge } from 'tailwind-merge'
|
||||||
|
|
||||||
export function cn(...inputs: ClassValue[]) {
|
export function cn(...inputs: ClassValue[]) {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
import { type DateValue, fromAbsolute, toCalendarDate } from '@internationalized/date'
|
import type { DateValue } from '@internationalized/date'
|
||||||
|
import { fromAbsolute, toCalendarDate } from '@internationalized/date'
|
||||||
|
|
||||||
export function getTimeZone() {
|
export function getTimeZone() {
|
||||||
if (typeof Intl === 'undefined')
|
if (typeof Intl === 'undefined')
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ const locales: LocaleObject[] = [
|
||||||
code: 'zh-TW',
|
code: 'zh-TW',
|
||||||
file: 'zh-TW.json',
|
file: 'zh-TW.json',
|
||||||
name: '繁體中文',
|
name: '繁體中文',
|
||||||
emoji: '🇹🇼',
|
emoji: '🇹🇼',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
code: 'fr-FR',
|
code: 'fr-FR',
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
import type { H3Event } from 'h3'
|
import type { H3Event } from 'h3'
|
||||||
import { getFlag } from '@/utils/flag'
|
|
||||||
import { parseAcceptLanguage } from 'intl-parse-accept-language'
|
import { parseAcceptLanguage } from 'intl-parse-accept-language'
|
||||||
import { UAParser } from 'ua-parser-js'
|
import { UAParser } from 'ua-parser-js'
|
||||||
import {
|
import {
|
||||||
|
|
@ -13,6 +12,7 @@ import {
|
||||||
Vehicles,
|
Vehicles,
|
||||||
} from 'ua-parser-js/extensions'
|
} from 'ua-parser-js/extensions'
|
||||||
import { parseURL } from 'ufo'
|
import { parseURL } from 'ufo'
|
||||||
|
import { getFlag } from '@/utils/flag'
|
||||||
|
|
||||||
function toBlobNumber(blob: string) {
|
function toBlobNumber(blob: string) {
|
||||||
return +blob.replace(/\D/g, '')
|
return +blob.replace(/\D/g, '')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue