Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pat-contentbrowser implementation #1377

Merged
merged 51 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
da73b82
feat: WIP svelte content-browser
MrTango Jul 10, 2023
3c77cbc
fix webpack..?
thet Jul 10, 2023
c03f086
fix: back to svelte3, fix selector in tinymce init of ContentBrwser
MrTango Jul 11, 2023
456bc70
contentbrowser: rework for class based patterns, add svelte test comp…
thet Jul 11, 2023
949644c
fix: make inserting images working
MrTango Jul 12, 2023
0fa744c
fix: working internal/external link
MrTango Jul 12, 2023
17a45c6
fix: clean up
MrTango Jul 13, 2023
bcff710
fix: working image and link in Tinymce
MrTango Jul 14, 2023
5c1fd44
feat: add filter to contentbrowser
MrTango Jul 14, 2023
aa5097c
feat: add icon resolver/ resolveIcon action
MrTango Jul 14, 2023
3fe361b
feat: add upload pattern WIP
MrTango Jul 14, 2023
fcb978c
fix: pat-tinymce after rebase and svelte update 4.x
MrTango Mar 7, 2024
03ad0d6
upload WIP
MrTango Mar 7, 2024
aa78589
feat(pat contentbrowser): extend features and polishing.
petschki Mar 8, 2024
dcdc1e8
contentbrowser updates. trying storeMap for multiple pat-contentbrows…
petschki Mar 11, 2024
a0e427b
trying reactive context store for multiple pat-contentbrowser occurre…
petschki Mar 12, 2024
bb04076
Fix multiple pattern occurrences on one page with context stores
petschki Mar 14, 2024
89c910f
fix uploader
petschki Mar 15, 2024
422d098
grid view, use SearchableText, levelInfo
petschki Mar 15, 2024
47f5007
eslint
petschki Mar 15, 2024
28c9c10
Fix implementation when generating internal urls
petschki Mar 18, 2024
8ae8d25
fix updateing path cache when uploading items
petschki Mar 25, 2024
1831ee5
implement "upload" config
petschki Mar 25, 2024
576287a
implement "selectableTypes" config
petschki Mar 25, 2024
10547bc
fix for maximumSelectionSize
petschki Mar 25, 2024
ee22a9a
fix catching errors in vocabulary lookup
petschki Mar 25, 2024
ea3baac
svelte testsetup (draft)
petschki Mar 25, 2024
a180498
fix initialize sorting when selecting items the first time
petschki Apr 4, 2024
5c99ba5
refactor: use plone.restapi '@search' endpoint instead of vocabulary/…
petschki Apr 4, 2024
0699fa5
draft: load level batches with IntersectionObserver
petschki Apr 4, 2024
5b67670
revert to vocabularyUrl lookup
petschki Apr 11, 2024
bd94622
ensure selected items order
petschki Apr 12, 2024
b911ff3
Implement one level search mode
petschki Apr 25, 2024
06a6dda
implement i18n-wrapper and update widgets.pot
petschki Apr 25, 2024
40a6131
Implement level batching
petschki May 8, 2024
1879bc9
enable updload to basePath in search mode
petschki May 8, 2024
008ae27
fix selecting items on top level
petschki May 8, 2024
38ac3ea
multiselection with shift or ctrl/meta
petschki May 15, 2024
96410e3
cleanup package
petschki May 15, 2024
e9584a4
fix levelInfo with selectableTypes
petschki May 22, 2024
0fbbe3b
Cleanup remainings from previous experiments (@patternslib/pat-tinymc…
thet May 24, 2024
5c5288e
add and close browser on ESC
petschki Jun 18, 2024
a134b0c
Make 'Plone Site' selectable
petschki Jun 18, 2024
80b5505
latest svelte 4.x and other minor upgrades
petschki Jun 18, 2024
a65e399
yarn install/upgrade
petschki Jul 16, 2024
cde2fbe
fix deprecation warnings
petschki Jul 16, 2024
ea033ab
limit column width and fix text-overflow
petschki Jul 16, 2024
92e4f66
Implement keyboard navigation with arrow up/down/left/right, multisel…
petschki Jul 17, 2024
28b2631
prepare configurable 'favorites' option
petschki Jul 17, 2024
14512c6
rebase and upgrade
petschki Sep 2, 2024
fa5d9ee
update dependencies
petschki Sep 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
const path = require("path");
const config = require("@patternslib/dev/jest.config.js");

// config.setupFilesAfterEnv.push("./node_modules/@testing-library/jest-dom/extend-expect");
config.setupFilesAfterEnv.push(path.resolve(__dirname, "./src/setup-tests.js"));
config.transformIgnorePatterns = [
"/node_modules/(?!@patternslib/)(?!@plone/)(?!preact/)(?!screenfull/)(?!sinon/)(?!bootstrap/)(?!datatable/).+\\.[t|j]sx?$",
"/node_modules/(?!@patternslib/)(?!@plone/)(?!preact/)(?!screenfull/)(?!sinon/)(?!bootstrap/)(?!datatable/)(?!svelte/).+\\.[t|j]sx?$",
];

// add svelte-jester
config.transform["^.+\\.svelte$"] = "svelte-jester";

console.log(JSON.stringify(config, null, 4));
module.exports = config;
17 changes: 12 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"dependencies": {
"@11ty/eleventy-upgrade-help": "2",
"@patternslib/pat-code-editor": "4.0.1",
"@patternslib/patternslib": "9.9.14",
"@patternslib/patternslib": "9.9.16",
"@plone/registry": "^1.7.0",
"backbone": "1.4.1",
"backbone.paginator": "2.0.8",
"bootstrap": "5.3.3",
Expand All @@ -33,14 +34,14 @@
"datatables.net-rowreorder-bs5": "1.2.8",
"datatables.net-select": "1.4.0",
"datatables.net-select-bs5": "1.4.0",
"dropzone": "4.3.0",
"dropzone": "5.9.3",
"jqtree": "1.8.4",
"jquery": "^3.7.1",
"jquery-form": "4.3.0",
"jquery.browser": "0.1.0",
"js-cookie": "^3.0.5",
"select2": "git+https://github.com/ivaynberg/select2.git#3.5.4",
"sortablejs": "^1.15.2",
"sortablejs": "^1.15.3",
"tinymce": "7.2.1",
"tinymce-i18n": "24.7.29",
"underscore": "^1.13.7"
Expand All @@ -50,14 +51,20 @@
"@11ty/eleventy-navigation": "^0.3.5",
"@11ty/eleventy-plugin-syntaxhighlight": "^4.2.0",
"@patternslib/dev": "^3.6.1",
"@testing-library/jest-dom": "^6.4.2",
"@types/sinon": "^10.0.20",
"css.escape": "^1.5.1",
"npm-run-all": "^4.1.5",
"rimraf": "^4.1.3",
"sinon": "^15.2.0"
"sinon": "^15.2.0",
"svelte": "^4.2.19",
"svelte-jester": "^3.0.0",
"svelte-loader": "^3.2.3",
"svelte-scrollto": "^0.2.0",
"svg-inline-loader": "^0.8.2"
},
"resolutions": {
"@patternslib/patternslib": "9.9.14",
"@patternslib/patternslib": "9.9.16",
"backbone": "1.4.1",
"datatables.net": "<1.13",
"datatables.net-bs5": "<1.13",
Expand Down
Loading
Loading