Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: BookStackApp/BookStack
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v25.02
Choose a base ref
...
head repository: BookStackApp/BookStack
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v25.02.1
Choose a head ref
  • 9 commits
  • 49 files changed
  • 2 contributors

Commits on Mar 11, 2025

  1. System CLI: Updated with new version

    As per https://codeberg.org/bookstack/system-cli/pulls/21
    dev/checksums folder added to support this new system.
    
    Related to #161
    ssddanbrown committed Mar 11, 2025
    Copy the full SHA
    94b1cff View commit details

Commits on Mar 15, 2025

  1. Config: Updated DB host to handle ipv6

    Can be set via the square bracket format.
    For #5464
    ssddanbrown committed Mar 15, 2025
    Copy the full SHA
    4f5ad17 View commit details

Commits on Mar 16, 2025

  1. Revisions: Hid changes link for oldest revision

    Just as a UX improvement to help avoid confusion, as the whole content
    will be changes for this revision.
    
    For #5454
    ssddanbrown committed Mar 16, 2025
    Copy the full SHA
    dfbc789 View commit details
  2. Dependancies: Updated PHP composer deps

    ssddanbrown committed Mar 16, 2025
    Copy the full SHA
    304a1d8 View commit details
  3. Updated translations with latest Crowdin changes (#5505)

    ssddanbrown authored Mar 16, 2025
    Copy the full SHA
    8a9215e View commit details
  4. Copy the full SHA
    e980564 View commit details
  5. Copy the full SHA
    0ec0913 View commit details
  6. Copy the full SHA
    997931c View commit details
  7. Updated version, assets, and checksums for release v25.02.1

    ssddanbrown committed Mar 16, 2025
    Copy the full SHA
    304ade4 View commit details
Showing with 677 additions and 678 deletions.
  1. +1 −0 .env.example.complete
  2. +9 −0 .github/translators.txt
  3. +1 −0 .gitignore
  4. +13 −9 app/Config/database.php
  5. +1 −1 app/Entities/Controllers/PageRevisionController.php
  6. BIN bookstack-system-cli
  7. +204 −265 composer.lock
  8. +1 −0 dev/checksums/.gitignore
  9. +1 −0 dev/checksums/vendor
  10. +15 −15 lang/ar/activities.php
  11. +24 −24 lang/ar/auth.php
  12. +4 −4 lang/ar/common.php
  13. +13 −13 lang/ar/components.php
  14. +159 −159 lang/ar/entities.php
  15. +1 −1 lang/cs/settings.php
  16. +1 −1 lang/et/settings.php
  17. +6 −6 lang/fr/activities.php
  18. +3 −3 lang/he/settings.php
  19. +1 −1 lang/he/validation.php
  20. +15 −15 lang/hu/activities.php
  21. +10 −10 lang/hu/auth.php
  22. +1 −1 lang/hu/components.php
  23. +3 −3 lang/hu/editor.php
  24. +5 −5 lang/hu/entities.php
  25. +2 −2 lang/hu/errors.php
  26. +7 −7 lang/hu/preferences.php
  27. +1 −1 lang/it/settings.php
  28. +9 −9 lang/ja/activities.php
  29. +2 −2 lang/ja/editor.php
  30. +3 −3 lang/ja/entities.php
  31. +28 −28 lang/ja/settings.php
  32. +1 −1 lang/ko/activities.php
  33. +2 −2 lang/ko/editor.php
  34. +2 −2 lang/ko/settings.php
  35. +6 −6 lang/nb/activities.php
  36. +4 −4 lang/nb/editor.php
  37. +3 −3 lang/nb/entities.php
  38. +20 −20 lang/nb/settings.php
  39. +12 −12 lang/nl/settings.php
  40. +1 −1 lang/nn/errors.php
  41. +1 −1 lang/pl/activities.php
  42. +16 −16 lang/sv/notifications.php
  43. +13 −13 lang/tr/activities.php
  44. +4 −2 resources/views/pages/parts/revisions-index-row.blade.php
  45. +5 −1 resources/views/pages/revisions.blade.php
  46. +12 −0 tests/Entity/PageRevisionTest.php
  47. +9 −5 tests/TestCase.php
  48. +21 −0 tests/Unit/ConfigTest.php
  49. +1 −1 version
1 change: 1 addition & 0 deletions .env.example.complete
Original file line number Diff line number Diff line change
@@ -56,6 +56,7 @@ APP_PROXIES=null

# Database details
# Host can contain a port (localhost:3306) or a separate DB_PORT option can be used.
# An ipv6 address can be used via the square bracket format ([::1]).
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=database_database
9 changes: 9 additions & 0 deletions .github/translators.txt
Original file line number Diff line number Diff line change
@@ -469,3 +469,12 @@ Raphael Moreno (RaphaelMoreno) :: Portuguese, Brazilian
yn (user99) :: Arabic
Pavel Zlatarov (pzlatarov) :: Bulgarian
ingelres :: French
mabdullah :: Arabic
Skrabák Csaba (kekcsi) :: Hungarian
Evert Meulie (Evert) :: Norwegian Bokmal
Jasper Backer (jasperb) :: Dutch
Alexandar Cavdarovski (ace.200112) :: Swedish
구닥다리TV (yjj8353) :: Korean
Onur Oskay (o.oskay) :: Turkish
Sébastien Merveille (SebastienMerv) :: French
Maxim Kouznetsov (masya.work) :: Hebrew
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -32,3 +32,4 @@ webpack-stats.json
phpstan.neon
esbuild-meta.json
.phpactor.json
/*.zip
22 changes: 13 additions & 9 deletions app/Config/database.php
Original file line number Diff line number Diff line change
@@ -40,12 +40,16 @@

// MYSQL
// Split out port from host if set
$mysql_host = env('DB_HOST', 'localhost');
$mysql_host_exploded = explode(':', $mysql_host);
$mysql_port = env('DB_PORT', 3306);
if (count($mysql_host_exploded) > 1) {
$mysql_host = $mysql_host_exploded[0];
$mysql_port = intval($mysql_host_exploded[1]);
$mysqlHost = env('DB_HOST', 'localhost');
$mysqlHostExploded = explode(':', $mysqlHost);
$mysqlPort = env('DB_PORT', 3306);
$mysqlHostIpv6 = str_starts_with($mysqlHost, '[');
if ($mysqlHostIpv6 && str_contains($mysqlHost, ']:')) {
$mysqlHost = implode(':', array_slice($mysqlHostExploded, 0, -1));
$mysqlPort = intval(end($mysqlHostExploded));
} else if (!$mysqlHostIpv6 && count($mysqlHostExploded) > 1) {
$mysqlHost = $mysqlHostExploded[0];
$mysqlPort = intval($mysqlHostExploded[1]);
}

return [
@@ -61,12 +65,12 @@
'mysql' => [
'driver' => 'mysql',
'url' => env('DATABASE_URL'),
'host' => $mysql_host,
'host' => $mysqlHost,
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'port' => $mysql_port,
'port' => $mysqlPort,
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
// Prefixes are only semi-supported and may be unstable
@@ -88,7 +92,7 @@
'database' => 'bookstack-test',
'username' => env('MYSQL_USER', 'bookstack-test'),
'password' => env('MYSQL_PASSWORD', 'bookstack-test'),
'port' => $mysql_port,
'port' => $mysqlPort,
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
2 changes: 1 addition & 1 deletion app/Entities/Controllers/PageRevisionController.php
Original file line number Diff line number Diff line change
@@ -43,7 +43,6 @@ public function index(Request $request, string $bookSlug, string $pageSlug)
->selectRaw("IF(markdown = '', false, true) as is_markdown")
->with(['page.book', 'createdBy'])
->reorder('id', $listOptions->getOrder())
->reorder('created_at', $listOptions->getOrder())
->paginate(50);

$this->setPageTitle(trans('entities.pages_revisions_named', ['pageName' => $page->getShortName()]));
@@ -52,6 +51,7 @@ public function index(Request $request, string $bookSlug, string $pageSlug)
'revisions' => $revisions,
'page' => $page,
'listOptions' => $listOptions,
'oldestRevisionId' => $page->revisions()->min('id'),
]);
}

Binary file modified bookstack-system-cli
Binary file not shown.
Loading