feat(new-tool): ipv4 address converter

This commit is contained in:
Corentin Thomasset 2023-04-08 21:10:00 +02:00
parent 28145e0ffe
commit d7a503b4ae
No known key found for this signature in database
GPG key ID: DBD997E935996158
2 changed files with 2 additions and 1 deletions

1
components.d.ts vendored
View file

@ -25,6 +25,7 @@ declare module '@vue/runtime-core' {
NCollapseTransition: typeof import('naive-ui')['NCollapseTransition']
NColorPicker: typeof import('naive-ui')['NColorPicker']
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
NCopyableInput: typeof import('naive-ui')['NCopyableInput']
NDatePicker: typeof import('naive-ui')['NDatePicker']
NDivider: typeof import('naive-ui')['NDivider']
NDynamicInput: typeof import('naive-ui')['NDynamicInput']

View file

@ -26,7 +26,7 @@ import { useValidation } from '@/composable/validation';
import { convertBase } from '../integer-base-converter/integer-base-converter.model';
import { ipv4ToInt, ipv4ToIpv6, isValidIpv4 } from './ipv4-address-converter.service';
const rawIpAddress = ref('192.168.1.1');
const rawIpAddress = useStorage('ipv4-converter:ip', '192.168.1.1');
const convertedSections = computed(() => {
const ipInDecimal = ipv4ToInt({ ip: rawIpAddress.value });