-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(webapp): fully support NS type, offer it in RRset type dropdown
- Loading branch information
1 parent
61d41e9
commit 52f5b7b
Showing
3 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,7 @@ export default { | |
'TXT', | ||
'SPF', | ||
'CAA', | ||
'NS', | ||
'TLSA', | ||
'OPENPGPKEY', | ||
'PTR', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
<script> | ||
import { helpers } from 'vuelidate/lib/validators'; | ||
import Record from '../Record.vue'; | ||
const hostname = helpers.regex('hostname', /^((([a-zA-Z0-9-]+\.?)+)|\.)$/); | ||
const trailingDot = helpers.regex('trailingDot', /[.]$/); | ||
export default { | ||
name: 'RecordNS', | ||
extends: Record, | ||
data: () => ({ | ||
fields: [ | ||
{ label: 'Hostname', validations: {} }, | ||
{ | ||
label: 'Hostname', | ||
validations: { hostname, trailingDot }, | ||
}, | ||
], | ||
errors: { | ||
hostname: 'Please enter a valid hostname.', | ||
trailingDot: 'Hostname must end with a dot.', | ||
}, | ||
}), | ||
}; | ||
</script> |