mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-21 15:26:15 -04:00
feat(new-tool): ipv4 address converter
This commit is contained in:
parent
28145e0ffe
commit
d7a503b4ae
2 changed files with 2 additions and 1 deletions
1
components.d.ts
vendored
1
components.d.ts
vendored
|
@ -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']
|
||||
|
|
|
@ -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 });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue