feat(ipv6-ula-generator): changes requested by review

This commit is contained in:
Carsten Götzinger 2023-04-09 18:39:14 +02:00
parent 7bef6c96c1
commit e3bad35766
2 changed files with 4 additions and 12 deletions

View file

@ -4,12 +4,9 @@ import { defineTool } from '../tool';
export const tool = defineTool({
name: 'IPv6 ULA generator',
path: '/ipv6-ula-generator',
description: `When you set up IPv6, you may need to set up your own local, non-routable IP addresses on your network -
similar to the older RFC1918 blocks. RFC4193 addresses (no pun intended) this issue.
Your IP address block assigned should be generated randomly from the fc00::/7 block. As IETF hasn't formalized fc00::/8,
addresses should be assigned out of fd00::/8.`,
keywords: ['ipv6', 'ula', 'generator', 'rfc1918', 'rfc4193', 'network', 'private'],
description:
'This generator generates your own local, non-routable IP addresses on your network according to RFC4193.',
keywords: ['ipv6', 'ula', 'generator', 'rfc4193', 'network', 'private'],
component: () => import('./ipv6-ula-generator.vue'),
icon: BuildingFactory,
createdAt: new Date('2023-04-09'),

View file

@ -1,12 +1,7 @@
import { useValidation, type ValidationAttrs } from '@/composable/validation';
import type { Ref } from 'vue';
function macAddressValidation(value: Ref): {
message: string;
status: 'error' | undefined;
isValid: boolean;
attrs: ValidationAttrs;
} {
function macAddressValidation(value: Ref) {
return useValidation({
source: value,
rules: [