Skip to content

Commit a5f48e3

Browse files
committed
Merge branch 'development' into release
2 parents b0dda6e + a58102d commit a5f48e3

File tree

596 files changed

+70534
-4211
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

596 files changed

+70534
-4211
lines changed

.env.example.complete

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,11 @@ EXPORT_PAGE_SIZE=a4
334334
# Example: EXPORT_PDF_COMMAND="/scripts/convert.sh {input_html_path} {output_pdf_path}"
335335
EXPORT_PDF_COMMAND=false
336336

337+
# Export PDF Command Timeout
338+
# The number of seconds that the export PDF command will run before a timeout occurs.
339+
# Only applies for the EXPORT_PDF_COMMAND option, not for DomPDF or wkhtmltopdf.
340+
EXPORT_PDF_COMMAND_TIMEOUT=15
341+
337342
# Set path to wkhtmltopdf binary for PDF generation.
338343
# Can be 'false' or a path path like: '/home/bins/wkhtmltopdf'
339344
# When false, BookStack will attempt to find a wkhtmltopdf in the application

.github/translators.txt

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Kauê Sena (kaue.sena.ks) :: Portuguese, Brazilian
141141
MatthieuParis :: French
142142
Douradinho :: Portuguese, Brazilian; Portuguese
143143
Gaku Yaguchi (tama11) :: Japanese
144-
johnroyer :: Chinese Traditional
144+
Zero Huang (johnroyer) :: Chinese Traditional
145145
jackaaa :: Chinese Traditional
146146
Irfan Hukama Arsyad (IrfanArsyad) :: Indonesian
147147
Jeff Huang (s8321414) :: Chinese Traditional
@@ -431,3 +431,21 @@ Michal Melich (michalmelich) :: Czech
431431
David (david-prv) :: German; German Informal
432432
Larry (lahoje) :: Swedish
433433
Marcia dos Santos (marciab80) :: Portuguese
434+
Ricard López Torres (richilpez.torres) :: Catalan
435+
sarahalves7 :: Portuguese, Brazilian
436+
petr.husak :: Czech
437+
javadataherian :: Persian
438+
Ludo-code :: French
439+
hollsten :: Swedish
440+
Ngoc Lan Phung (lanpncz) :: Vietnamese
441+
Worive :: Catalan
442+
Илья Скаба (skabailya) :: Russian
443+
Irjan Olsen (Irch) :: Norwegian Bokmal
444+
Aleksandar Jovanovic (jovanoviczaleksandar) :: Serbian (Cyrillic)
445+
Red (RedVortex) :: Hebrew
446+
xgrug :: Chinese Simplified
447+
HrCalmar :: Danish
448+
Avishay Rapp (AvishayRapp) :: Hebrew
449+
matthias4217 :: French
450+
Berke BOYLU2 (berkeboylu2) :: Turkish
451+
etwas7B :: German

.github/workflows/lint-js.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ on:
1313
jobs:
1414
build:
1515
if: ${{ github.ref != 'refs/heads/l10n_development' }}
16-
runs-on: ubuntu-22.04
16+
runs-on: ubuntu-24.04
1717
steps:
18-
- uses: actions/checkout@v1
18+
- uses: actions/checkout@v4
1919

2020
- name: Install NPM deps
2121
run: npm ci

.github/workflows/test-js.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: test-js
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.js'
7+
- '**.ts'
8+
- '**.json'
9+
pull_request:
10+
paths:
11+
- '**.js'
12+
- '**.ts'
13+
- '**.json'
14+
15+
jobs:
16+
build:
17+
if: ${{ github.ref != 'refs/heads/l10n_development' }}
18+
runs-on: ubuntu-24.04
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Install NPM deps
23+
run: npm ci
24+
25+
- name: Run TypeScript type checking
26+
run: npm run ts:lint
27+
28+
- name: Run JavaScript tests
29+
run: npm run test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/node_modules
33
/.vscode
44
/composer
5+
/coverage
56
Homestead.yaml
67
.env
78
.idea

app/Access/UserInviteException.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace BookStack\Access;
4+
5+
use Exception;
6+
7+
class UserInviteException extends Exception
8+
{
9+
//
10+
}

app/Access/UserInviteService.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,17 @@ class UserInviteService extends UserTokenService
1313
/**
1414
* Send an invitation to a user to sign into BookStack
1515
* Removes existing invitation tokens.
16+
* @throws UserInviteException
1617
*/
1718
public function sendInvitation(User $user)
1819
{
1920
$this->deleteByUser($user);
2021
$token = $this->createTokenForUser($user);
21-
$user->notify(new UserInviteNotification($token));
22+
23+
try {
24+
$user->notify(new UserInviteNotification($token));
25+
} catch (\Exception $exception) {
26+
throw new UserInviteException($exception->getMessage(), $exception->getCode(), $exception);
27+
}
2228
}
2329
}

app/App/MetaController.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,14 @@ public function licenses()
6464
'jsLibData' => file_get_contents(base_path('dev/licensing/js-library-licenses.txt')),
6565
]);
6666
}
67+
68+
/**
69+
* Show the view for /opensearch.xml.
70+
*/
71+
public function opensearch()
72+
{
73+
return response()
74+
->view('misc.opensearch')
75+
->header('Content-Type', 'application/opensearchdescription+xml');
76+
}
6777
}

app/Config/exports.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
// Example: EXPORT_PDF_COMMAND="/scripts/convert.sh {input_html_path} {output_pdf_path}"
3030
'pdf_command' => env('EXPORT_PDF_COMMAND', false),
3131

32+
// The amount of time allowed for PDF generation command to run
33+
// before the process times out and is stopped.
34+
'pdf_command_timeout' => env('EXPORT_PDF_COMMAND_TIMEOUT', 15),
35+
3236
// 2024-04: Snappy/WKHTMLtoPDF now considered deprecated in regard to BookStack support.
3337
'snappy' => [
3438
'pdf_binary' => env('WKHTMLTOPDF', false),

app/Entities/Models/Page.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace BookStack\Entities\Models;
44

55
use BookStack\Entities\Tools\PageContent;
6+
use BookStack\Entities\Tools\PageEditorType;
67
use BookStack\Permissions\PermissionApplicator;
78
use BookStack\Uploads\Attachment;
89
use Illuminate\Database\Eloquent\Builder;

0 commit comments

Comments
 (0)