mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-23 08:16:16 -04:00
chore(lint): switched to a better lint config
This commit is contained in:
parent
4d2b037dbe
commit
33c9b6643f
178 changed files with 4105 additions and 3371 deletions
|
@ -1,49 +1,8 @@
|
|||
<template>
|
||||
<c-card>
|
||||
<c-input-text
|
||||
v-model:value="urlToParse"
|
||||
label="Your url to parse:"
|
||||
placeholder="Your url to parse..."
|
||||
raw-text
|
||||
:validation-rules="urlValidationRules"
|
||||
/>
|
||||
|
||||
<n-divider />
|
||||
|
||||
<input-copyable
|
||||
v-for="{ title, key } in properties"
|
||||
:key="key"
|
||||
:label="title"
|
||||
:value="(urlParsed?.[key] as string) ?? ''"
|
||||
readonly
|
||||
label-position="left"
|
||||
label-width="110px"
|
||||
mb-2
|
||||
placeholder=" "
|
||||
/>
|
||||
|
||||
<div
|
||||
v-for="[k, v] in Object.entries(Object.fromEntries(urlParsed?.searchParams.entries() ?? []))"
|
||||
:key="k"
|
||||
mb-2
|
||||
w-full
|
||||
flex
|
||||
>
|
||||
<div style="flex: 1 0 110px">
|
||||
<icon-mdi-arrow-right-bottom />
|
||||
</div>
|
||||
|
||||
<input-copyable :value="k" readonly />
|
||||
<input-copyable :value="v" readonly />
|
||||
</div>
|
||||
</c-card>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { isNotThrowing } from '@/utils/boolean';
|
||||
import { withDefaultOnError } from '@/utils/defaults';
|
||||
import { computed, ref } from 'vue';
|
||||
import InputCopyable from '../../components/InputCopyable.vue';
|
||||
import { isNotThrowing } from '@/utils/boolean';
|
||||
import { withDefaultOnError } from '@/utils/defaults';
|
||||
|
||||
const urlToParse = ref('https://me:pwd@it-tools.tech:3000/url-parser?key1=value&key2=value2#the-hash');
|
||||
|
||||
|
@ -66,6 +25,47 @@ const properties: { title: string; key: keyof URL }[] = [
|
|||
];
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<c-card>
|
||||
<c-input-text
|
||||
v-model:value="urlToParse"
|
||||
label="Your url to parse:"
|
||||
placeholder="Your url to parse..."
|
||||
raw-text
|
||||
:validation-rules="urlValidationRules"
|
||||
/>
|
||||
|
||||
<n-divider />
|
||||
|
||||
<InputCopyable
|
||||
v-for="{ title, key } in properties"
|
||||
:key="key"
|
||||
:label="title"
|
||||
:value="(urlParsed?.[key] as string) ?? ''"
|
||||
readonly
|
||||
label-position="left"
|
||||
label-width="110px"
|
||||
mb-2
|
||||
placeholder=" "
|
||||
/>
|
||||
|
||||
<div
|
||||
v-for="[k, v] in Object.entries(Object.fromEntries(urlParsed?.searchParams.entries() ?? []))"
|
||||
:key="k"
|
||||
mb-2
|
||||
w-full
|
||||
flex
|
||||
>
|
||||
<div style="flex: 1 0 110px">
|
||||
<icon-mdi-arrow-right-bottom />
|
||||
</div>
|
||||
|
||||
<InputCopyable :value="k" readonly />
|
||||
<InputCopyable :value="v" readonly />
|
||||
</div>
|
||||
</c-card>
|
||||
</template>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.n-input-group-label {
|
||||
text-align: right;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue