Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/tiborrr/docspell
Browse files Browse the repository at this point in the history
  • Loading branch information
Tibor Casteleijn committed Dec 24, 2024
2 parents 0f99c96 + cdabf18 commit b5c15fc
Show file tree
Hide file tree
Showing 18 changed files with 175 additions and 164 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
auto-approve:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: hmarr/[email protected]
if: github.actor == 'eikek-scala-steward'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
check-website:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v27
- uses: cachix/install-nix-action@v30
- name: Set current version
run: echo "DOCSPELL_VERSION=$(cat version.sbt | grep version | cut -d= -f2 | xargs)" >> $GITHUB_ENV
- name: Build website (${{ env.DOCSPELL_VERSION }})
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ jobs:
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.2
with:
fetch-depth: 100
- name: Fetch tags
run: git fetch --depth=100 origin +refs/tags/*:refs/tags/*
- uses: cachix/install-nix-action@v27
- uses: cachix/install-nix-action@v30
- name: sbt ci ${{ github.ref }}
run: nix develop .#ci --command sbt ci
ci:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [ci-matrix]
steps:
- name: Aggregate of lint, and all tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
docker-images:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- name: Set current version
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v27
- uses: cachix/install-nix-action@v30
- name: Set current version
run: echo "DOCSPELL_VERSION=$(cat version.sbt | grep version | cut -d= -f2 | xargs)" >> $GITHUB_ENV
- name: sbt ci ${{ github.ref }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v27
- uses: cachix/install-nix-action@v30
- name: Set current version
run: echo "DOCSPELL_VERSION=$(cat version.sbt | grep version | cut -d= -f2 | xargs)" >> $GITHUB_ENV
- name: sbt make-pkg (${{ env.DOCSPELL_VERSION }})
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
publish-website:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v27
- uses: cachix/install-nix-action@v30
- name: Set current version
run: echo "DOCSPELL_VERSION=$(cat version.sbt | grep version | cut -d= -f2 | xargs)" >> $GITHUB_ENV
- name: Build website (${{ env.DOCSPELL_VERSION }})
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ _site/
.idea/*
sbt.json
/yarn.lock
.metals
.vscode
2 changes: 1 addition & 1 deletion docker/docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ services:
- restserver

db:
image: postgres:16.4
image: postgres:17.2
container_name: postgres_db
restart: unless-stopped
volumes:
Expand Down
2 changes: 1 addition & 1 deletion docker/dockerfiles/joex.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.20.3
FROM alpine:3.21.0

ARG version=
ARG joex_url=
Expand Down
2 changes: 1 addition & 1 deletion docker/dockerfiles/restserver.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.20.3
FROM alpine:3.21.0

ARG version=
ARG restserver_url=
Expand Down
1 change: 0 additions & 1 deletion modules/joex/src/main/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,6 @@ Docpell Update Check
command = {
program = "weasyprint"
args = [
"--optimize-size", "all",
"--encoding", "{{encoding}}",
"-",
"{{outfile}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import org.http4s.internal.CharPredicate
import org.http4s.multipart.Part
import org.http4s.{Header, ParseFailure, ParseResult}
import org.typelevel.ci.CIString
import org.typelevel.ci._

/** A replacement for `Content-Disposition` class with a slightly modified parser to allow
* utf8 filenames.
Expand All @@ -32,8 +31,7 @@ case class ContentDisposition(dispositionType: String, parameters: Map[CIString,

object ContentDisposition {

def getFileName[F[_]](part: Part[F]): Option[String] =
part.headers.get[ContentDisposition].flatMap(_.parameters.get(ci"filename"))
def getFileName[F[_]](part: Part[F]): Option[String] = part.filename

private[http4s] val mimeValue: Parser[String] = {
val value = Parser.anyChar.repUntilAs[String](Parser.char(';').orElse(Parser.end))
Expand Down
125 changes: 66 additions & 59 deletions modules/webapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b5c15fc

Please sign in to comment.