Skip to main content
Homepage
Explore
Search or go to…
/
Sign in
Explore
Primary navigation
Project
N
Nextcloud mail - PostGuard
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
Laura Kolijn
Nextcloud mail - PostGuard
Commits
366bd948
Unverified
Commit
366bd948
authored
Oct 31, 2018
by
Christoph Wurst
Browse files
Options
Downloads
Patches
Plain Diff
fixup! Add tabs to the setup/settings screen
Signed-off-by:
Christoph Wurst
<
christoph@winzerhof-wurst.at
>
parent
645c421c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/AccountForm.vue
+182
-101
182 additions, 101 deletions
src/components/AccountForm.vue
src/views/Setup.vue
+6
-0
6 additions, 0 deletions
src/views/Setup.vue
with
188 additions
and
101 deletions
src/components/AccountForm.vue
+
182
−
101
View file @
366bd948
<
template
>
<div
id=
"account-form"
>
<form
method=
"post"
v-on:submit.prevent.stop=
"onSubmit"
>
<tabs
:options=
"
{ useUrlFragment: false }">
<tab
:name=
"t('mail', 'Auto')"
key=
"auto"
>
<label
for=
"auto-name"
>
{{
t
(
'
mail
'
,
'
Name
'
)
}}
</label>
<input
type=
"text"
ref=
"accountName"
name=
"account-name"
id=
"auto-name"
:placeholder=
"t('mail', 'Name')"
v-model=
"
c
onfig.accountName"
v-model=
"
autoC
onfig.accountName"
autofocus
/>
<label
for=
"auto-address"
>
{{
t
(
'
mail
'
,
'
Mail Address
'
)
}}
</label>
<input
type=
"email"
ref=
"mailAddress"
name=
"mail-address"
id=
"auto-address"
:placeholder=
"t('mail', 'Mail Address')"
v-model=
"
c
onfig.emailAddress"
v-model=
"
autoC
onfig.emailAddress"
required
/>
<label
for=
"auto-password"
>
{{
t
(
'
mail
'
,
'
Password
'
)
}}
</label>
<input
type=
"password"
name=
"mail-password"
ref=
"mailPassword"
id=
"auto-password"
:placeholder=
"t('mail', 'Password')"
v-model=
"
c
onfig.password"
v-model=
"
autoC
onfig.password"
required
/>
</tab>
<tab
:name=
"t('mail', 'Manual')"
key=
"manual"
>
<label
for=
"man-name"
>
{{
t
(
'
mail
'
,
'
Name
'
)
}}
</label>
<input
type=
"text"
name=
"imap-host"
ref=
"imapHost"
id=
"man-name"
:placeholder=
"t('mail', 'Name')"
v-model=
"manualConfig.accountName"
autofocus
/>
<label
for=
"man-address"
>
{{
t
(
'
mail
'
,
'
Mail Address
'
)
}}
</label>
<input
type=
"email"
id=
"man-address"
:placeholder=
"t('mail', 'Mail Address')"
v-model=
"manualConfig.emailAddress"
required
/>
<h3>
{{
t
(
'
mail
'
,
'
IMAP Settings
'
)
}}
</h3>
<label
for=
"man-imap-host"
>
{{
t
(
'
mail
'
,
'
IMAP Host
'
)
}}
</label>
<input
type=
"text"
id=
"man-imap-host"
:placeholder=
"t('mail', 'IMAP Host')"
v-model=
"config.imapHost"
/>
<select
id=
"setup-imap-ssl-mode"
v-model=
"config.imapSslMode"
ref=
"imapSslMode"
name=
"imap-sslmode"
:title=
"t('mail', 'IMAP security')"
v-on:change=
"onImapSslModeChange"
>
<option
value=
"none"
>
{{
t
(
'
mail
'
,
'
None
'
)
}}
</option>
<option
value=
"ssl"
>
{{
t
(
'
mail
'
,
'
SSL/TLS
'
)
}}
</option>
<option
value=
"tls"
>
{{
t
(
'
mail
'
,
'
STARTTLS
'
)
}}
</option>
</select>
v-model=
"manualConfig.imapHost"
/>
<h4>
{{
t
(
'
mail
'
,
'
IMAP Security
'
)
}}
</h4>
<div
class=
"flex-row"
>
<label
class=
"button"
:class=
"
{primary: manualConfig.imapSslMode === 'none' }">
<input
type=
"radio"
name=
"man-imap-sec"
v-model=
"manualConfig.imapSslMode"
value=
"none"
>
{{
t
(
'
mail
'
,
'
None
'
)
}}
</label>
<label
class=
"button"
:class=
"
{primary: manualConfig.imapSslMode === 'ssl' }">
<input
type=
"radio"
name=
"man-imap-sec"
v-model=
"manualConfig.imapSslMode"
value=
"ssl"
>
{{
t
(
'
mail
'
,
'
SSL/TLS
'
)
}}
</label>
<label
class=
"button"
:class=
"
{primary: manualConfig.imapSslMode === 'tls' }">
<input
type=
"radio"
name=
"man-imap-sec"
v-model=
"manualConfig.imapSslMode"
value=
"tls"
>
{{
t
(
'
mail
'
,
'
STARTTLS
'
)
}}
</label>
</div>
<input
type=
"number"
ref=
"imapPort"
name=
"imap-port"
:placeholder=
"t('mail', 'IMAP Port')"
v-model=
"
c
onfig.imapPort"
/>
v-model=
"
manualC
onfig.imapPort"
/>
<input
type=
"text"
ref=
"imapUser"
name=
"imap-user"
:placeholder=
"t('mail', 'IMAP User')"
v-model=
"
c
onfig.imapUser"
/>
v-model=
"
manualC
onfig.imapUser"
/>
<input
type=
"password"
ref=
"imapPassword"
name=
"imap-password"
:placeholder=
"t('mail', 'IMAP Password')"
v-model=
"
c
onfig.imapPassword"
v-model=
"
manualC
onfig.imapPassword"
required
/>
<h3>
{{
t
(
'
mail
'
,
'
SMTP Settings
'
)
}}
</h3>
<input
type=
"text"
ref=
"smtpHost"
name=
"smtp-host"
:placeholder=
"t('mail', 'SMTP Host')"
v-model=
"config.smtpHost"
/>
<select
id=
"setup-smtp-ssl-mode"
v-model=
"config.smtpSslMode"
ref=
"smtpSslMode"
name=
"mail-smtp-sslmode"
:title=
"t('mail', 'SMTP security')"
v-on:change=
"onSmtpSslModeChange"
>
<option
value=
"none"
>
{{
t
(
'
mail
'
,
'
None
'
)
}}
</option>
<option
value=
"ssl"
>
{{
t
(
'
mail
'
,
'
SSL/TLS
'
)
}}
</option>
<option
value=
"tls"
>
{{
t
(
'
mail
'
,
'
STARTTLS
'
)
}}
</option>
</select>
v-model=
"manualConfig.smtpHost"
/>
<div
class=
"flex-row"
>
<label
class=
"button"
:class=
"
{primary: manualConfig.smtpSslMode === 'none' }">
<input
type=
"radio"
name=
"man-smtp-sec"
v-model=
"manualConfig.smtpSslMode"
value=
"none"
>
{{
t
(
'
mail
'
,
'
None
'
)
}}
</label>
<label
class=
"button"
:class=
"
{primary: manualConfig.smtpSslMode === 'ssl' }">
<input
type=
"radio"
name=
"man-smtp-sec"
v-model=
"manualConfig.smtpSslMode"
value=
"ssl"
>
{{
t
(
'
mail
'
,
'
SSL/TLS
'
)
}}
</label>
<label
class=
"button"
:class=
"
{primary: manualConfig.smtpSslMode === 'tls' }">
<input
type=
"radio"
name=
"man-smtp-sec"
v-model=
"manualConfig.smtpSslMode"
value=
"tls"
>
{{
t
(
'
mail
'
,
'
STARTTLS
'
)
}}
</label>
</div>
<input
type=
"number"
ref=
"smtpPort"
name=
"smtp-port"
:placeholder=
"t('mail', 'SMTP Port')"
v-model=
"
c
onfig.smtpPort"
/>
v-model=
"
manualC
onfig.smtpPort"
/>
<input
type=
"text"
ref=
"smtpUser"
name=
"smtp-user"
:placeholder=
"t('mail', 'SMTP User')"
v-model=
"
c
onfig.smtpUser"
/>
v-model=
"
manualC
onfig.smtpUser"
/>
<input
type=
"password"
ref=
"smtpPassword"
name=
"smtp-password"
:placeholder=
"t('mail', 'SMTP Password')"
v-model=
"
c
onfig.smtpPassword"
v-model=
"
manualC
onfig.smtpPassword"
required
/>
</tab>
</tabs>
...
...
@@ -99,7 +153,6 @@
ref=
"submitButton"
class=
"primary"
:value=
"t('mail', 'Connect')"
/>
</form>
</div>
</
template
>
...
...
@@ -118,10 +171,14 @@
data
()
{
return
{
firstToggle
:
true
,
c
onfig
:
{
autoC
onfig
:
{
accountName
:
$
(
'
#user-displayname
'
).
text
()
||
''
,
emailAddress
:
$
(
'
#user-email
'
).
text
()
||
''
,
password
:
''
,
},
manualConfig
:
{
accountName
:
$
(
'
#user-displayname
'
).
text
()
||
''
,
emailAddress
:
$
(
'
#user-email
'
).
text
()
||
''
,
accountName
:
''
,
autoDetect
:
true
,
imapHost
:
''
,
...
...
@@ -256,15 +313,39 @@
.tabs-component-tabs
{
display
:
flex
;
}
.tabs-component-tab
{
flex-grow
:
1
;
color
:
var
(
--color-text-lighter
);
font-weight
:
bold
;
}
.tabs-component-tab.is-active
{
border-bottom
:
1px
solid
black
;
}
.tabs-component-panels
{
padding-top
:
20px
;
}
.tabs-component-panels
label
{
text-align
:
left
;
width
:
100%
;
display
:
inline-block
;
}
.tabs-component-panels
input
,
.tabs-component-panels
select
{
margin-bottom
:
10px
;
}
.flex-row
{
display
:
flex
;
}
label
.button
{
display
:
inline-block
;
flex-grow
:
1
;
}
label
input
[
type
=
"radio"
]
{
display
:
none
;
}
</
style
>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/views/Setup.vue
+
6
−
0
View file @
366bd948
...
...
@@ -20,3 +20,9 @@
}
}
</
script
>
<
style
>
#emptycontent
{
margin-top
:
10vh
;
}
</
style
>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment