This commit is contained in:
Eike Kettner
2019-09-16 23:35:28 +02:00
parent 6ce7096af0
commit c76af5cbf4
51 changed files with 341 additions and 14 deletions

View File

@ -1 +1 @@
../../../../../../webapp/src/main/webjar/favicon/android-icon-96x96.png
../../../../../../../artwork/logo-96.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 40 B

View File

@ -0,0 +1 @@
../../../../../../../artwork/logo-96.png

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 40 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 40 B

View File

@ -0,0 +1 @@
../../../../../../../artwork/logo-96.png

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 40 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 40 B

View File

@ -0,0 +1 @@
../../../../../../../artwork/logo-96.png

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 40 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 40 B

View File

@ -0,0 +1 @@
../../../../../../../artwork/logo-96.png

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 40 B

View File

@ -10,7 +10,7 @@ for integrating docspell.
## consumedir
The `consumerdir` is a bash script that works in two modes:
The `consumerdir.sh` is a bash script that works in two modes:
- Go through all files in given directories (non recursively) and sent
each to docspell.
@ -31,15 +31,39 @@ files. For this the `sha256sum` command is required.
Example for watching two directories:
``` bash
./tools/consumedir.sh --path ~/Downloads --path ~/pdfs/ -m /var/run/consumedir -dv http://localhost:7880/api/v1/open/upload/item/5DxhjkvWf9S-CkWqF3Kr892-WgoCspFWDo7-XBykwCyAUxQ
./tools/consumedir.sh --path ~/Downloads --path ~/pdfs -m /var/run/consumedir -dv http://localhost:7880/api/v1/open/upload/item/5DxhjkvWf9S-CkWqF3Kr892-WgoCspFWDo7-XBykwCyAUxQ
```
The script by default watches the given directories. If the `-o`
option is used, it will instead go through these directories and
upload all pdf files in there.
Example for uploading all immediatly:
Example for uploading all immediatly (the same as above only with `-o`
added):
``` bash
./tools/consumedir.sh -o --path ~/Downloads --path ~/pdfs/ -m /var/run/consumedir -dv http://localhost:7880/api/v1/open/upload/item/5DxhjkvWf9S-CkWqF3Kr892-WgoCspFWDo7-XBykwCyAUxQ
```
### Systemd
The script can be used with systemd to run as a service. This is an
example unit file:
```
[Unit]
After=networking.target
Description=Docspell Consumedir
[Service]
Environment="PATH=/set/a/path"
ExecStartPre=mkdir -p /var/run/consumedir && chown -R someuser /var/run/consumedir
ExecStart=/bin/su -s /bin/bash someuser -c "consumedir.sh --path '/a/path/' -m '/var/run/consumedir' 'http://localhost:7880/api/v1/open/upload/item/5DxhjkvWf9S-CkWqF3Kr892-WgoCspFWDo7-XBykwCyAUxQ'"
```
This unit file is just an example, it needs some fiddling. It assumes
an existing user `someuser` that is used to run this service. The url
`http://localhost:7880/api/v1/open/upload/...` is an anonymous upload
url as described [here](./uploading.html).

View File

@ -59,10 +59,12 @@ defaultLayout model =
[ a [class "header item narrow-item"
,Page.href HomePage
]
[i [classList [("umbrella icon", True)
]]
[]
,text model.flags.config.appName]
[img [class "image"
,src "assets/docspell-webapp/0.1.0-SNAPSHOT/img/logo-96.png"][]
,div [class "content"]
[text model.flags.config.appName
]
]
, (loginInfo model)
]
]
@ -150,7 +152,9 @@ loginInfo model =
]
]
[menuEntry model HomePage
[i [class "umbrella icon"][]
[img [class "image icon"
,src "assets/docspell-webapp/0.1.0-SNAPSHOT/img/logo-mc-96.png"
][]
,text "Items"
]
,div [class "divider"][]

View File

@ -13,7 +13,9 @@ view model =
[div [class "row"]
[div [class "six wide column ui segment login-view"]
[h1 [class "ui center aligned icon header"]
[i [class "umbrella icon"][]
[img [class "ui image"
,src "assets/docspell-webapp/0.1.0-SNAPSHOT/img/logo-96.png"
][]
,div [class "content"]
[text "Sign in to Docspell"
]

View File

@ -15,8 +15,12 @@ view flags model =
[div [class "row"]
[div [class "eight wide column ui segment newinvite-view"]
[h1 [class "ui cener aligned icon header"]
[i [class "umbrella icon"][]
,text "Create new invitations"
[img [class "ui image"
,src "assets/docspell-webapp/0.1.0-SNAPSHOT/img/logo-96.png"
][]
,div [class "content"]
[text "Create new invitations"
]
]
,inviteMessage flags
,Html.form [classList [("ui large form raised segment", True)

View File

@ -14,8 +14,11 @@ view flags model =
[div [class "row"]
[div [class "six wide column ui segment register-view"]
[h1 [class "ui cener aligned icon header"]
[i [class "umbrella icon"][]
,text "Sign up @ Docspell"
[img [class "ui image"
,src "assets/docspell-webapp/0.1.0-SNAPSHOT/img/logo-96.png"][]
,div [class "content"]
[text "Sign up @ Docspell"
]
]
,Html.form [class "ui large error form raised segment", onSubmit RegisterSubmit]
[div [class "required field"]

View File

@ -17,6 +17,17 @@
box-shadow: 1px 1px 0px 0px black;
}
.default-layout .top-menu a.header.item img {
width: 24px;
height: 24px;
}
.default-layout .top-menu a.header.item .content {
margin-left: 0.5em;
}
.default-layout a.icon.item img.image.icon {
width: 18.75px;
}
.default-layout .ui.multiple.search.dropdown>input.search {
width: 3.5em;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

@ -0,0 +1 @@
../../../../../../artwork/logo-400.png

View File

@ -0,0 +1 @@
../../../../../../artwork/logo-96.png

View File

@ -0,0 +1 @@
../../../../../../artwork/logo-mc-400.png

View File

@ -0,0 +1 @@
../../../../../../artwork/logo-mc-96.png

View File

@ -0,0 +1 @@
../../../../../../artwork/logo-only-mc.svg

View File

@ -0,0 +1 @@
../../../../../../artwork/logo-only.svg