mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-02 05:23:14 +00:00
inputspec and required instead of nullable
This commit is contained in:
committed by
Aiden McClelland
parent
5675fc51a0
commit
e4cd4d64d7
@@ -280,10 +280,11 @@ const CifsSpec: InputSpec = {
|
||||
name: 'Hostname',
|
||||
description:
|
||||
'The hostname of your target device on the Local Area Network.',
|
||||
inputmode: 'text',
|
||||
placeholder: `e.g. 'My Computer' OR 'my-computer.local'`,
|
||||
pattern: '^[a-zA-Z0-9._-]+( [a-zA-Z0-9]+)*$',
|
||||
patternDescription: `Must be a valid hostname. e.g. 'My Computer' OR 'my-computer.local'`,
|
||||
nullable: false,
|
||||
required: true,
|
||||
masked: false,
|
||||
default: null,
|
||||
warning: null,
|
||||
@@ -292,10 +293,11 @@ const CifsSpec: InputSpec = {
|
||||
type: 'string',
|
||||
name: 'Path',
|
||||
description: `On Windows, this is the fully qualified path to the shared folder, (e.g. /Desktop/my-folder).\n\n On Linux and Mac, this is the literal name of the shared folder (e.g. my-shared-folder).`,
|
||||
inputmode: 'text',
|
||||
placeholder: 'e.g. my-shared-folder or /Desktop/my-folder',
|
||||
pattern: null,
|
||||
patternDescription: null,
|
||||
nullable: false,
|
||||
required: true,
|
||||
masked: false,
|
||||
default: null,
|
||||
warning: null,
|
||||
@@ -304,10 +306,11 @@ const CifsSpec: InputSpec = {
|
||||
type: 'string',
|
||||
name: 'Username',
|
||||
description: `On Linux, this is the samba username you created when sharing the folder.\n\n On Mac and Windows, this is the username of the user who is sharing the folder.`,
|
||||
inputmode: 'text',
|
||||
placeholder: null,
|
||||
pattern: null,
|
||||
patternDescription: null,
|
||||
nullable: false,
|
||||
required: true,
|
||||
masked: false,
|
||||
default: null,
|
||||
warning: null,
|
||||
@@ -316,10 +319,11 @@ const CifsSpec: InputSpec = {
|
||||
type: 'string',
|
||||
name: 'Password',
|
||||
description: `On Linux, this is the samba password you created when sharing the folder.\n\n On Mac and Windows, this is the password of the user who is sharing the folder.`,
|
||||
inputmode: 'text',
|
||||
placeholder: null,
|
||||
pattern: null,
|
||||
patternDescription: null,
|
||||
nullable: true,
|
||||
required: false,
|
||||
masked: true,
|
||||
default: null,
|
||||
warning: null,
|
||||
|
||||
Reference in New Issue
Block a user