From b325933a8bc68fa99bc79982938f6936e9a6de8e Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 24 Jan 2020 20:58:27 +0100 Subject: [PATCH] Add .editorconfig --- .editorconfig | 9 ++ plugins/base/public/assets/style.css | 6 +- plugins/base/public/compose.html | 38 +++--- plugins/base/public/login.html | 14 +- plugins/base/public/mailbox.html | 56 ++++---- plugins/base/public/message.html | 188 +++++++++++++-------------- 6 files changed, 160 insertions(+), 151 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..ca821f9 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +indent_style = tab +indent_size = 4 + +[*.{html,css,scss}] +indent_style = space +indent_size = 2 diff --git a/plugins/base/public/assets/style.css b/plugins/base/public/assets/style.css index c27f10f..4f91f63 100644 --- a/plugins/base/public/assets/style.css +++ b/plugins/base/public/assets/style.css @@ -1,5 +1,5 @@ iframe { - width: 100%; - height: 400px; - border: 0; + width: 100%; + height: 400px; + border: 0; } diff --git a/plugins/base/public/compose.html b/plugins/base/public/compose.html index 4d69c81..0db84c0 100644 --- a/plugins/base/public/compose.html +++ b/plugins/base/public/compose.html @@ -3,31 +3,31 @@

koushin

- Back + Back

Compose new message

- + - - -

- - -

- - -

-
- -

- - -

- - + + +

+ + +

+ + +

+
+ +

+ + +

+ +
{{template "foot.html"}} diff --git a/plugins/base/public/login.html b/plugins/base/public/login.html index 7378935..94f1b23 100644 --- a/plugins/base/public/login.html +++ b/plugins/base/public/login.html @@ -3,13 +3,13 @@

koushin

- - -

- - -

- + + +

+ + +

+
{{template "foot.html"}} diff --git a/plugins/base/public/mailbox.html b/plugins/base/public/mailbox.html index d480440..d19c73d 100644 --- a/plugins/base/public/mailbox.html +++ b/plugins/base/public/mailbox.html @@ -3,48 +3,48 @@

koushin

- Logout · Compose + Logout · Compose

{{.Mailbox.Name}}

- - + +

Mailboxes:

{{if .Messages}} -

Messages:

- +

Messages:

+ -

- {{if ge .PrevPage 0}} - Prev - {{end}} - {{if and (ge .PrevPage 0) (ge .NextPage 0)}}·{{end}} - {{if ge .NextPage 0}} - Next - {{end}} -

+

+ {{if ge .PrevPage 0}} + Prev + {{end}} + {{if and (ge .PrevPage 0) (ge .NextPage 0)}}·{{end}} + {{if ge .NextPage 0}} + Next + {{end}} +

{{else}} -

No message.

+

No message.

{{end}} {{template "foot.html"}} diff --git a/plugins/base/public/message.html b/plugins/base/public/message.html index 3dc7f62..a973881 100644 --- a/plugins/base/public/message.html +++ b/plugins/base/public/message.html @@ -3,105 +3,105 @@

koushin

- - Back - + + Back +

- {{if .Message.Envelope.Subject}} - {{.Message.Envelope.Subject}} - {{else}} - (No subject) - {{end}} + {{if .Message.Envelope.Subject}} + {{.Message.Envelope.Subject}} + {{else}} + (No subject) + {{end}}

- - - + + +
- +
{{if .Flags}} -
-

Flags:

- {{range $name, $has := .Flags}} - {{if ismutableflag $name}} - - -
- {{else}} - {{if $has}} - - {{end}} - {{end}} - {{end}} - -
+
+

Flags:

+ {{range $name, $has := .Flags}} + {{if ismutableflag $name}} + + +
+ {{else}} + {{if $has}} + + {{end}} + {{end}} + {{end}} + +
{{end}} {{define "addr-list"}} - {{range $i, $addr := .}} - {{if $i}},{{end}} - {{.PersonalName}} - <{{.Address}}> - {{end}} + {{range $i, $addr := .}} + {{if $i}},{{end}} + {{.PersonalName}} + <{{.Address}}> + {{end}} {{end}} {{define "message-part-tree"}} - {{/* nested templates can't access the parent's context */}} - {{$ = index . 0}} - {{with index . 1}} - - {{if eq $.PartPath .PathString}}{{end}} - {{.String}} - {{if eq $.PartPath .PathString}}{{end}} - - {{if .Children}} - - {{end}} - {{end}} + {{/* nested templates can't access the parent's context */}} + {{$ = index . 0}} + {{with index . 1}} + + {{if eq $.PartPath .PathString}}{{end}} + {{.String}} + {{if eq $.PartPath .PathString}}{{end}} + + {{if .Children}} + + {{end}} + {{end}} {{end}}

Parts:

@@ -111,23 +111,23 @@
{{if .Body}} -

- {{if .Message.HasFlag "\\Draft"}} - Edit draft - {{else}} - Reply - {{end}} -

- {{if .IsHTML}} - - - - {{else}} -
{{.Body}}
- {{end}} +

+ {{if .Message.HasFlag "\\Draft"}} + Edit draft + {{else}} + Reply + {{end}} +

+ {{if .IsHTML}} + + + + {{else}} +
{{.Body}}
+ {{end}} {{else}} -

Can't preview this message part.

- Download +

Can't preview this message part.

+ Download {{end}} {{template "foot.html"}}