Dan Brown
779f09bff6
Merge branch 'chapter-templates' into development
2024-02-01 12:55:38 +00:00
Dan Brown
4137cf9c8f
Default chapter templates: Updated api docs and tests
...
Also applied minor tweaks to some wording and logic.
During review of #4750
2024-02-01 12:22:16 +00:00
Dan Brown
adf1806fea
Chapters API: Added missing book_slug field
...
Was removed during previous changes, but reflected in response examples.
This adds into all standard single chapter responses.
For #4765
2024-01-16 12:06:13 +00:00
Dan Brown
fb3cfaf7c7
Input WYSIWYG: Updated API examples to align with changes
2023-12-22 14:37:48 +00:00
Dan Brown
00ae04e0bd
Input WYSIWYG: Updated API to show/accept html descriptions
...
Also aligned books, shelves and chapters to return description content
and some relations (where not breaking API) in create/update responses
also so that information can be seen direct from that input in a
request.
API docs and tests not yet updated to match.
2023-12-21 13:23:52 +00:00
Dan Brown
4017048555
Page Templates: Changed template field name, added API support
2023-12-12 12:14:00 +00:00
Dan Brown
11955e270c
Depenencies: Updated NPM packages
...
Avoided updating markdown-it package to 14 for now since it would cause
bundle size to inflate. Don't think ESBuild is properly tree shaking
"entities" sub package which inflates size.
2023-12-09 10:49:28 +00:00
Dan Brown
324e403ae5
JS Events: Added CM pre/post init events
...
To allow hacking of all CodeMirror instances.
Closes #4639 .
2023-11-01 17:56:52 +00:00
Dan Brown
95b9ea1a21
Dev: Reviewed and expanded on PHP testing docs
2023-09-17 23:41:02 +01:00
omahs
976f241ae0
fix typo
2023-08-31 10:01:56 +02:00
omahs
415dab9936
fix typos
2023-08-31 10:00:45 +02:00
Dan Brown
391478465a
Merge branch 'add-priority' into development
2023-08-21 15:43:16 +01:00
Dan Brown
9ca1139ab0
API: Reviewed changes for API priority control
...
Review of #4313
- Made constructor changes while reviewing some classes.
- Updated API examples for consistency.
- Tweaked formatting for some array changes.
- Simplified added tests.
- Tweaked chapter/page repo priority handling to be simpler.
Performed manual API endpoint testing of page/chapter create/update.
2023-08-21 15:42:47 +01:00
Dan Brown
7bf5425c6b
Updated PHP and npm deps, Upped node version
2023-08-19 20:22:19 +01:00
Jean-René ROUET
3a36d3c847
add tests for priority
2023-07-11 14:11:13 +02:00
Thomas Kuschan
d293171da2
API Docs: Add Missing Fields in Example Responses
2023-06-30 09:36:46 +02:00
Thomas Kuschan
174cd5a893
API Docs: Add Missing editor fields in Example Responses
2023-06-30 09:35:47 +02:00
Thomas Kuschan
ccfe38e963
API Docs: Add book_slug to Example Responses
...
Remove the book attribute in responses because it is never returned by the API. Currently, Chapters Create does not return book_slug! (The example response is consistent with the inconsistent API behavior)
2023-06-30 09:33:53 +02:00
Thomas Kuschan
23ae332c1b
API Docs: Sort a few example responses
2023-06-30 09:27:18 +02:00
Thomas Kuschan
3a39f13420
API Docs: Remove Dates from Tags in Example Responses
2023-06-30 09:24:46 +02:00
Thomas Kuschan
ca2d2c97d4
API Docs: Add User Slugs to Example Responses
2023-06-30 09:23:02 +02:00
Thomas Kuschan
e47870794d
API Docs: Add Missing Type in Response
...
Type is always returned when pages/chapters are in a contents array.
2023-06-26 10:14:10 +02:00
Thomas Kuschan
e43d85b801
API Docs: Remove id from Tag in Response
2023-06-26 10:13:02 +02:00
Dan Brown
8b935e71d1
Pages API: Made raw_html available on page responses
...
To provide a way to see the original un-pre-processed database HTML
content.
For #4310
2023-06-20 17:07:46 +01:00
Dan Brown
00b5dd7852
Users API: Fixed incorrect created_at date on index endpoint
...
For #4325
2023-06-17 18:18:17 +01:00
Dan Brown
1e220c473f
API: Fixed misaligned image datetime format
...
For #4294
2023-06-10 10:54:56 +01:00
Mark Weiler
01f3f4d315
Fix timestamp in API docs example response
2023-04-24 11:19:00 +02:00
Dan Brown
e1bd13f481
Edits from reviewing public events page
2023-04-20 16:54:11 +01:00
Dan Brown
c74f7cc628
Documented public JS events used
...
Related to #4179
2023-04-20 16:25:48 +01:00
Dan Brown
974390688d
ESLINT: Added GH action and details to dev docs
2023-04-19 22:56:55 +01:00
Dan Brown
9874a53206
Added cm6 strategy for splitting and dyn. loading langs
...
Split out legacy modes to their own dynamically imported bundle to
reduce main code bundle size.
2023-04-14 18:08:57 +01:00
Dan Brown
c81cb6f2af
Merge branch 'development' into codemirror6
2023-03-19 10:22:44 +00:00
Dan Brown
402eb845ab
Added examples, updated docs for image gallery api endpoints
2023-03-15 11:37:03 +00:00
Dan Brown
1903924829
Added content-perms API examples and docs tweaks
2023-03-13 20:41:32 +00:00
Dan Brown
950c02e996
Added role API responses & requests
...
Also applied other slight tweaks and comment updates based upon manual
endpoint testing.
2023-02-19 15:58:29 +00:00
Dan Brown
c148e2f3d9
Added esbuild bundle inspection metafile
2023-02-17 22:37:13 +00:00
Dan Brown
9135a85de4
Merge branch 'codemirror6' into codemirror6_take2
2023-02-17 21:28:23 +00:00
Dan Brown
f6a6b11ec5
Added and addressed multi-role/own-role-perm/inheretance scenario
...
Found during manual testing.
Have checked against relation queries manually too.
2023-01-26 12:53:25 +00:00
Dan Brown
0f113ec41f
Merge pull request #3986 from BookStackApp/permission_testing
...
Permission Testing & Alignment
2023-01-24 21:37:28 +00:00
Dan Brown
1fa5a31960
Fixed role entity permissions ignoring inheritance
...
Added additional scnenario tests to cover
2023-01-24 21:26:41 +00:00
Dan Brown
8be36455ab
Addressed fallback override cases found during testing
...
Had misalignment between query and usercan, The nuance between fallback
and entity-role permissions was not taken into account by the query
system. Now added with new test cases to cover.
2023-01-24 20:42:20 +00:00
Dan Brown
78ebcb6f38
Addressed a range of deprecation warnings
...
Closes #3969
2023-01-21 20:50:04 +00:00
Dan Brown
e2a72d16aa
Made adjustments to fit copied work into dev branch
...
Ported non-compatible elements, Now all tests passing apart from some
specific permission scenario tests which are probably correctly failing.
Updates some tests to better avoid messing environment state.
2023-01-21 13:03:47 +00:00
Dan Brown
c724bfe4d3
Copied over work from user_permissions branch
...
Only that relevant to the additional testing work.
2023-01-21 11:08:34 +00:00
Dan Brown
05a24ea355
Updated js dev docs with latest component changes
2022-11-16 16:02:31 +00:00
Dan Brown
a090720241
Developed dev JS docs a bit further
2022-10-02 14:27:12 +01:00
Dan Brown
0e94fd44a8
Added contents to book-show endpoint
...
Created a generic list formatting helper class for this, to align with
logic used on the search results endpoint and for easier future re-use
in a standardised way.
Also updated some class property types.
Added test to cover new books-contents results.
Related to #3734
2022-09-29 15:08:18 +01:00
Dan Brown
6dd89ba956
Split out some development-specific readme parts to own pages
2022-09-27 20:11:58 +01:00
Dan Brown
d4f2fcdf79
Started codemirror update, In broken state
2022-08-02 20:11:02 +01:00
Dan Brown
7e04f70bf3
Tweaked docker dev container to work with m1 apple silicon
...
Tested on m1 macbook, needs testing on amd64
2022-07-14 01:34:57 +01:00