From d897eeee5c4d163891d0b6a8f85d328ccada7575 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 16 Dec 2019 12:51:42 +0100 Subject: Introduce base plugin This plugin offers base IMAP/SMTP functionality. References: https://todo.sr.ht/~sircmpwn/koushin/39 --- public/assets/style.css | 1 - public/compose.html | 26 ---------------------- public/foot.html | 2 -- public/head.html | 8 ------- public/login.html | 14 ------------ public/mailbox.html | 45 -------------------------------------- public/message.html | 58 ------------------------------------------------- 7 files changed, 154 deletions(-) delete mode 100644 public/assets/style.css delete mode 100644 public/compose.html delete mode 100644 public/foot.html delete mode 100644 public/head.html delete mode 100644 public/login.html delete mode 100644 public/mailbox.html delete mode 100644 public/message.html (limited to 'public') diff --git a/public/assets/style.css b/public/assets/style.css deleted file mode 100644 index 8f414f5..0000000 --- a/public/assets/style.css +++ /dev/null @@ -1 +0,0 @@ -/* TODO */ diff --git a/public/compose.html b/public/compose.html deleted file mode 100644 index 2a52675..0000000 --- a/public/compose.html +++ /dev/null @@ -1,26 +0,0 @@ -{{template "head.html"}} - -

koushin

- -

- Back -

- -

Compose new message

- -
- - -

From:

- -

To:

- -

Subject:

- -

Body:

- -

- -
- -{{template "foot.html"}} diff --git a/public/foot.html b/public/foot.html deleted file mode 100644 index b605728..0000000 --- a/public/foot.html +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/public/head.html b/public/head.html deleted file mode 100644 index 35dda42..0000000 --- a/public/head.html +++ /dev/null @@ -1,8 +0,0 @@ - - - - - koushin - - - diff --git a/public/login.html b/public/login.html deleted file mode 100644 index 6ae1737..0000000 --- a/public/login.html +++ /dev/null @@ -1,14 +0,0 @@ -{{template "head.html"}} - -

koushin

- -
- - - - -

- -
- -{{template "foot.html"}} diff --git a/public/mailbox.html b/public/mailbox.html deleted file mode 100644 index ddd1260..0000000 --- a/public/mailbox.html +++ /dev/null @@ -1,45 +0,0 @@ -{{template "head.html"}} - -

koushin

- -

- Logout · Compose -

- -

{{.Mailbox.Name}}

- -

Mailboxes:

- - -{{if .Messages}} -

Messages:

- - -

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

-{{else}} -

Mailbox is empty.

-{{end}} - -{{template "foot.html"}} diff --git a/public/message.html b/public/message.html deleted file mode 100644 index 729937d..0000000 --- a/public/message.html +++ /dev/null @@ -1,58 +0,0 @@ -{{template "head.html"}} - -

koushin

- -

- - Back - -

- -

- {{if .Message.Envelope.Subject}} - {{.Message.Envelope.Subject}} - {{else}} - (No subject) - {{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 gt (len .Children) 0}} - - {{end}} - {{end}} -{{end}} - -

Parts:

- -{{template "message-part-tree" (tuple $ .Message.PartTree)}} - -
- -{{if .Body}} -

Reply

-
{{.Body}}
-{{else}} -

Can't preview this message part.

- Download -{{end}} - -{{template "foot.html"}} -- cgit v1.2.3