1300 Commits

Author SHA1 Message Date
Eike Kettner
7a14b05ea7 Enhance item card displaying current file and number of pages 2020-11-09 17:04:56 +01:00
Eike Kettner
848c245db6 Change the card link to only use the main content
The card is no longer a link itself. The main target is moved to be
the content (the area containing the title and tags). This is in
preparation of upcoming changes: if the whole card is a link, it
cannot contain other links, due to a restriction by html. Later a card
may have more links to provide.
2020-11-09 14:36:58 +01:00
Eike Kettner
67e8994aec Use attachment preview urls
This changes the preview urls to use the concrete attachment ids. This
way browsers have it easier to switch the preview image when the
attachment position is changed.
2020-11-09 14:29:52 +01:00
Eike Kettner
8c08bf233d Amend search results with attachment info
This uses again another query per item to retrieve some information
about each attachment already in the search results.
2020-11-09 14:24:28 +01:00
Eike Kettner
a77f34b7ba Add a processing step to retrieve page counts 2020-11-09 11:08:24 +01:00
mergify[bot]
5f217e6a76
Merge pull request #428 from eikek/attachment-preview
Attachment preview
2020-11-09 09:15:22 +00:00
Eike Kettner
757273d6ce Add a simple script for re-generating preview images
Submits jobs to regenerate previews of all attachments of a
collective.
2020-11-09 09:57:27 +01:00
Eike Kettner
5906c705c9 Allow the user to choose between 3 preview sizes 2020-11-09 09:40:21 +01:00
Eike Kettner
8c8788bc69 Provide fallback image for previews 2020-11-09 09:00:03 +01:00
Eike Kettner
d4bbb936b6 Count preview image sizes in insight data 2020-11-09 09:00:03 +01:00
Eike Kettner
30682fbecc Document the re-generate all previews endpoint 2020-11-09 09:00:03 +01:00
Eike Kettner
f4e50c5229 Provide endpoints to submit tasks to re-generate previews
The scaling factor can be given in the config file. When this changes,
images can be regenerated via POSTing to certain endpoints. It is
possible to regenerate just one attachment preview or all within a
collective.
2020-11-09 09:00:02 +01:00
Eike Kettner
6037b54959 Don't fail processing if generating preview fails 2020-11-09 00:05:11 +01:00
Eike Kettner
cf6e63785d Fix potential index-out-of-bounds error in classifier
The stanford library expects a non-empty text.
2020-11-09 00:04:51 +01:00
Eike Kettner
709848244c Create tasks to generate all previews
There is a task to generate preview images per attachment. It can
either add them (if not present yet) or overwrite them (e.g. some
config has changed).

There is a task that selects all attachments without previews and
submits a task to create it. This is submitted on start automatically
to generate previews for all existing attachments.
2020-11-08 23:46:02 +01:00
Eike Kettner
eede194352 Fix deleting preview files 2020-11-08 21:27:55 +01:00
Eike Kettner
2c96590aad First ui view of preview images for items
Users can choose to not show them via ui settings
2020-11-08 15:12:56 +01:00
Eike Kettner
7ba6baf6f0 Make preview image smaller 2020-11-08 15:12:56 +01:00
Eike Kettner
757ad31165 Add a route to get the item preview
This is the first available preview of an attachment wrt position. If
all attachments have a preview image, the preview of the first
attachment is returned.
2020-11-08 15:12:56 +01:00
Eike Kettner
8cc89fd3b7 Move handling binary responses to a shared space 2020-11-08 15:12:56 +01:00
Eike Kettner
d376ef3ef1 Add simple route to get the preview image 2020-11-08 13:33:39 +01:00
Eike Kettner
6db5c39d78 Fix converted filename
Mark it by default with a string from the config file.

Issue: 397
2020-11-08 09:45:03 +01:00
Eike Kettner
ef7cb4e779 Create a preview image of all files during processing 2020-11-08 01:25:59 +01:00
Eike Kettner
0841a33ae3 Add a table to hold the preview files 2020-11-08 01:25:38 +01:00
Eike Kettner
350a271b22 Add simple pdf page preview function 2020-11-08 01:25:14 +01:00
mergify[bot]
36317a3a95
Merge pull request #426 from scala-steward/update/fomantic-slim-default-2.8.7-3
Update fomantic-slim-default to 2.8.7-3
2020-11-07 07:28:57 +00:00
Scala Steward
bd72da49c6
Update fomantic-slim-default to 2.8.7-3 2020-11-07 08:17:30 +01:00
mergify[bot]
d76ac952ee
Merge pull request #425 from scala-steward/update/swagger-ui-3.36.2
Update swagger-ui to 3.36.2
2020-11-06 22:28:59 +00:00
Scala Steward
47e8f881c3
Update swagger-ui to 3.36.2 2020-11-06 22:20:30 +01:00
mergify[bot]
2db9c29700
Merge pull request #421 from eikek/fomantic-ui
Introduce fomantic-ui, replacing semantic-ui
2020-11-05 22:37:44 +00:00
Eike Kettner
59dfae6a49 Introduce fomantic-ui, replacing semantic-ui
Replaced semantic-ui with the drop-in replacement fomantic-ui [0]
which is a maintained fork. The fomantic-ui used here is a custom
build [1] of the less-version _without_ google-fonts (css-only). The
javascript part of fomantic-ui is not used, and also jquery could be
dropped now.

[0] https://fomantic-ui.com
[1] https://github.com/eikek/fomantic-slim-default

Issue: #349
2020-11-05 22:44:10 +01:00
mergify[bot]
c661980302
Merge pull request #420 from scala-steward/update/sbt-scalafix-0.9.23
Update sbt-scalafix to 0.9.23
2020-11-05 02:02:58 +00:00
Scala Steward
f6012f7f64
Update sbt-scalafix to 0.9.23 2020-11-05 02:31:06 +01:00
mergify[bot]
d79955d574
Merge pull request #419 from scala-steward/update/sbt-sonatype-3.9.5
Update sbt-sonatype to 3.9.5
2020-11-03 01:40:17 +00:00
Scala Steward
7336e5c22b
Update sbt-sonatype to 3.9.5 2020-11-03 01:04:17 +01:00
mergify[bot]
68ce355260
Merge pull request #418 from scala-steward/update/sbt-1.4.2
Update sbt to 1.4.2
2020-11-02 06:12:13 +00:00
mergify[bot]
e861009418
Merge pull request #417 from scala-steward/update/sbt-openapi-schema-0.7.1
Update sbt-openapi-schema to 0.7.1
2020-11-02 06:11:27 +00:00
Scala Steward
ce97770775
Update sbt to 1.4.2 2020-11-02 06:58:51 +01:00
Scala Steward
32b5605011
Update sbt-openapi-schema to 0.7.1 2020-11-02 06:58:37 +01:00
Eike Kettner
47e780d35f Set version to 0.15.0-SNAPSHOT 2020-11-01 21:00:19 +01:00
Eike Kettner
79c781db79 Update nix setup 2020-11-01 20:59:04 +01:00
Eike Kettner
1a1104c387 Set version to 0.14.0 2020-11-01 20:25:07 +01:00
Eike Kettner
2c1368655b Update changelog 2020-11-01 20:24:38 +01:00
eikek
5da6cd4291
Merge pull request #416 from totti4ever/pr-fix-ocrmypdf
Fix ocrmypdf containers not being removed after a run
2020-10-31 21:08:18 +01:00
Malte
d5f0d47e80 Merge branch 'master' of github.com:eikek/docspell into pr-fix-ocrmypdf 2020-10-31 19:39:23 +01:00
totti4ever
5dbd35060a
Fix ocrmypdf containers not being removed after a run
before they would kind of lying around and pile up after a couple of processed items
2020-10-31 19:35:35 +01:00
mergify[bot]
17e8fb9b65
Merge pull request #415 from eikek/fix-multi-tag-edit
Fix multi tag edit
2020-10-31 13:53:29 +00:00
Eike Kettner
ff3ea883ba Update changelog 2020-10-31 14:44:24 +01:00
Eike Kettner
a965605a9e Improve tag multi-edit 2020-10-31 14:42:17 +01:00
Eike Kettner
f4c79c72ae Allow to remove tags from multiple items 2020-10-31 14:42:17 +01:00