mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-07-17 21:32:00 +03:00
Compare commits
1 Commits
v26.05.1
...
ci_and_sta
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
79a2e017bb |
@@ -22,7 +22,7 @@ jobs:
|
||||
uses: https://github.com/shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 8.5
|
||||
extensions: gd, mbstring, json, curl, xml, mysql, ldap
|
||||
extensions: gd, mbstring, json, curl, xml, dom, mysql, ldap
|
||||
|
||||
- name: Get Composer Cache Directory
|
||||
id: composer-cache
|
||||
|
||||
@@ -23,6 +23,14 @@ jobs:
|
||||
services:
|
||||
mysql:
|
||||
image: docker.io/library/mariadb:12.2.2-noble
|
||||
options: --tmpfs /var/lib/mysql:rw
|
||||
cmd:
|
||||
- --innodb-flush-log-at-trx-commit=0
|
||||
- --innodb-flush-method=O_DIRECT
|
||||
- --innodb-doublewrite=0
|
||||
- --innodb-buffer-pool-size=256M
|
||||
- --skip-log-bin
|
||||
- --sync-binlog=0
|
||||
env:
|
||||
MARIADB_USER: bookstack-test
|
||||
MARIADB_PASSWORD: bookstack-test
|
||||
@@ -35,7 +43,7 @@ jobs:
|
||||
uses: https://github.com/shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php }}
|
||||
extensions: gd, mbstring, json, curl, xml, mysql, ldap
|
||||
extensions: gd, mbstring, json, curl, xml, dom, mysql, ldap
|
||||
|
||||
- name: Get Composer Cache Directory
|
||||
id: composer-cache
|
||||
|
||||
@@ -21,7 +21,7 @@ jobs:
|
||||
matrix:
|
||||
php: ['8.2', '8.3', '8.4', '8.5']
|
||||
env:
|
||||
phpextensions: gd, mbstring, json, curl, xml, mysql, ldap, gmp
|
||||
phpextensions: gd, mbstring, json, curl, xml, dom, mysql, ldap, gmp
|
||||
phpextensioncachekey: cache-v1
|
||||
steps:
|
||||
- uses: https://code.forgejo.org/actions/checkout@v6
|
||||
|
||||
6
.gitignore
vendored
6
.gitignore
vendored
@@ -9,10 +9,10 @@ Homestead.yaml
|
||||
.idea
|
||||
npm-debug.log
|
||||
yarn-error.log
|
||||
/public/dist/*.map
|
||||
/public/dist
|
||||
/public/plugins
|
||||
/public/css/*.map
|
||||
/public/js/*.map
|
||||
/public/css
|
||||
/public/js
|
||||
/public/bower
|
||||
/public/build/
|
||||
/public/favicon.ico
|
||||
|
||||
@@ -4,37 +4,12 @@ namespace BookStack\Sorting;
|
||||
|
||||
class BookSortMapItem
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $id;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $sort;
|
||||
|
||||
/**
|
||||
* @var ?int
|
||||
*/
|
||||
public $parentChapterId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $type;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $parentBookId;
|
||||
|
||||
public function __construct(int $id, int $sort, ?int $parentChapterId, string $type, int $parentBookId)
|
||||
{
|
||||
$this->id = $id;
|
||||
$this->sort = $sort;
|
||||
$this->parentChapterId = $parentChapterId;
|
||||
$this->type = $type;
|
||||
$this->parentBookId = $parentBookId;
|
||||
public function __construct(
|
||||
public int $id,
|
||||
public int $sort,
|
||||
public int|null $parentChapterId,
|
||||
public string $type,
|
||||
public int $parentBookId,
|
||||
) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -168,7 +168,7 @@ class BookSorter
|
||||
$model->priority = $sortMapItem->sort;
|
||||
}
|
||||
|
||||
if ($chapterChanged || $priorityChanged) {
|
||||
if ($priorityChanged || $chapterChanged) {
|
||||
$model::withoutTimestamps(fn () => $model->save());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,7 +38,6 @@ class ConfiguredHtmlPurifier
|
||||
$this->configureHtmlDefinition($htmlDef);
|
||||
}
|
||||
|
||||
/** @var \HTMLPurifier_URIDefinition $uriDef */
|
||||
$uriDef = $config->getDefinition('URI', true, true);
|
||||
if ($uriDef instanceof HTMLPurifier_URIDefinition) {
|
||||
$this->configureUriDefinition($uriDef);
|
||||
|
||||
@@ -1 +1 @@
|
||||
6d63a835dedf1b2052ca5ca38f2b00f393548763f15c28c8ba18c0fabc1e0299
|
||||
22e02ee72d21ff719c1073abbec8302f8e2096ba6d072e133051064ed24b45b1
|
||||
|
||||
33
public/dist/app.js
vendored
33
public/dist/app.js
vendored
File diff suppressed because one or more lines are too long
32
public/dist/code.js
vendored
32
public/dist/code.js
vendored
File diff suppressed because one or more lines are too long
1
public/dist/export-styles.css
vendored
1
public/dist/export-styles.css
vendored
File diff suppressed because one or more lines are too long
3
public/dist/legacy-modes.js
vendored
3
public/dist/legacy-modes.js
vendored
File diff suppressed because one or more lines are too long
29
public/dist/markdown.js
vendored
29
public/dist/markdown.js
vendored
File diff suppressed because one or more lines are too long
1
public/dist/styles.css
vendored
1
public/dist/styles.css
vendored
File diff suppressed because one or more lines are too long
33
public/dist/wysiwyg.js
vendored
33
public/dist/wysiwyg.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user