Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
1ffb699
refactor: add new tree compact view
didoda May 26, 2025
75e5944
fix: view as filesystem
didoda May 26, 2025
5afb426
refactor: tree content and folder
didoda May 27, 2025
4c92fd9
fix: children api get
didoda May 27, 2025
c64e292
Merge branch 'master' into refactor/trees-compact-view
didoda May 27, 2025
9e63c91
feat: side panel
didoda May 27, 2025
00cd58a
fix: aside form
didoda May 27, 2025
651d060
chore fix: component warnings
didoda May 29, 2025
4bd7de5
refactor: tree save data
didoda May 29, 2025
41dae8c
chore doc: phpdoc
didoda Jun 3, 2025
69b06bd
doc: phpdoc
didoda Jun 3, 2025
f711758
chore fix: phpstan
didoda Jun 3, 2025
ff4b7de
fix: LayoutHelperTest testMetaConfig
didoda Jun 3, 2025
3228ed8
tests: more coverage
didoda Jun 3, 2025
6d3dabf
tests: more coverage
didoda Jun 3, 2025
b1b1a0e
tests: TreeController children on not found exception
didoda Jun 3, 2025
98c83e3
Merge branch 'master' into feat/trees-compact-view
didoda Jun 3, 2025
a62f964
refactor: save contents and positions
didoda Jun 9, 2025
7c87092
tests: fix testMetaConfig
didoda Jun 9, 2025
0399715
tests: SchemaComponent allConcreteTypes
didoda Jun 9, 2025
7ae53c3
fix: phpcs, use slevomat coding-standard < 8.19.0
didoda Jun 9, 2025
915c082
ui: header and folders count
didoda Jun 9, 2025
4a88eec
ui: remove header
didoda Jun 9, 2025
ca7a0e8
chore i18n: update po files
didoda Jun 9, 2025
d211278
Merge branch 'master' into feat/trees-compact-view
didoda Jun 13, 2025
5f48b1a
ui: tree borders
didoda Jun 13, 2025
b1a184f
fix: po translation
didoda Jun 13, 2025
21ead87
Merge branch 'master' into feat/trees-compact-view
didoda Jun 17, 2025
be8b210
Merge branch 'master' into feat/trees-compact-view
didoda Jul 3, 2025
7d4c29c
Merge branch 'master' into feat/trees-compact-view
didoda Jul 3, 2025
08b6d04
Merge branch 'master' into feat/trees-compact-view
didoda Jul 31, 2025
402171a
Merge branch 'master' into feat/trees-compact-view
didoda Aug 7, 2025
239bcfd
Merge branch 'master' into feat/trees-compact-view
didoda Sep 15, 2025
e7ec38e
Merge branch 'master' into feat/trees-compact-view
didoda Oct 9, 2025
45439d6
Merge branch 'master' into feat/trees-compact-view
didoda Oct 27, 2025
a153378
Merge branch 'master' into feat/trees-compact-view
didoda Oct 27, 2025
7d2aea8
Merge branch 'master' into feat/trees-compact-view
didoda Dec 1, 2025
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
10 changes: 10 additions & 0 deletions config/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@
['controller' => 'Tree', 'action' => 'get'],
['_name' => 'tree:get']
);
$routes->connect(
'/tree/loadAll',
['controller' => 'Tree', 'action' => 'loadAll'],
['_name' => 'tree:load:all']
);
$routes->connect(
'/tree/node/{id}',
['controller' => 'Tree', 'action' => 'node'],
Expand All @@ -122,6 +127,11 @@
['controller' => 'Tree', 'action' => 'slug'],
['_name' => 'tree:slug']
);
$routes->connect(
'/tree/{id}/children',
['controller' => 'Tree', 'action' => 'children'],
['_name' => 'tree:children', 'pass' => ['id']]
);

// Admin.
$routes->prefix('admin', ['_namePrefix' => 'admin:'], function (RouteBuilder $routes) {
Expand Down
42 changes: 39 additions & 3 deletions locales/default.pot
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,9 @@ msgstr ""
msgid "Less"
msgstr ""

msgid "Limit"
msgstr ""

msgid "List"
msgstr ""

Expand Down Expand Up @@ -585,6 +588,9 @@ msgstr ""
msgid "Number of created objects"
msgstr ""

msgid "Number of folders"
msgstr ""

msgid "Number of login errors"
msgstr ""

Expand Down Expand Up @@ -876,6 +882,9 @@ msgstr ""
msgid "Temporary folder missing"
msgstr ""

msgid "The number of folders is too high to be displayed in tree-compact view"
msgstr ""

msgid "There were errors creating the thumbnail(s)"
msgstr ""

Expand Down Expand Up @@ -927,6 +936,9 @@ msgstr ""
msgid "Trashd"
msgstr ""

msgid "Tree compact"
msgstr ""

msgid "Tree view"
msgstr ""

Expand Down Expand Up @@ -1017,6 +1029,9 @@ msgstr ""
msgid "You are not authorized to access this resource"
msgstr ""

msgid "You cannot see folders in tree-compact view"
msgstr ""

msgid "You do not have the required permissions to view this page."
msgstr ""

Expand Down Expand Up @@ -1550,6 +1565,30 @@ msgstr ""
msgid "View"
msgstr ""

msgid "New content"
msgstr ""

msgid "New folder"
msgstr ""

msgid "Open in new tab"
msgstr ""

msgid "Undo"
msgstr ""

msgid "Choose object type"
msgstr ""

msgid "Object type"
msgstr ""

msgid "Parent folder"
msgstr ""

msgid "/ (root)"
msgstr ""

msgid "Add new tag"
msgstr ""

Expand Down Expand Up @@ -1919,9 +1958,6 @@ msgstr ""
msgid "Invalid date range"
msgstr ""

msgid "Undo"
msgstr ""

msgid "Copied!"
msgstr ""

Expand Down
42 changes: 39 additions & 3 deletions locales/en_US/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,9 @@ msgstr ""
msgid "Less"
msgstr ""

msgid "Limit"
msgstr ""

msgid "List"
msgstr ""

Expand Down Expand Up @@ -588,6 +591,9 @@ msgstr ""
msgid "Number of created objects"
msgstr ""

msgid "Number of folders"
msgstr ""

msgid "Number of login errors"
msgstr ""

Expand Down Expand Up @@ -879,6 +885,9 @@ msgstr ""
msgid "Temporary folder missing"
msgstr ""

msgid "The number of folders is too high to be displayed in tree-compact view"
msgstr ""

msgid "There were errors creating the thumbnail(s)"
msgstr ""

Expand Down Expand Up @@ -930,6 +939,9 @@ msgstr ""
msgid "Trashd"
msgstr "Trashed"

msgid "Tree compact"
msgstr ""

msgid "Tree view"
msgstr ""

Expand Down Expand Up @@ -1020,6 +1032,9 @@ msgstr ""
msgid "You are not authorized to access this resource"
msgstr ""

msgid "You cannot see folders in tree-compact view"
msgstr ""

msgid "You do not have the required permissions to view this page."
msgstr ""

Expand Down Expand Up @@ -1553,6 +1568,30 @@ msgstr ""
msgid "View"
msgstr ""

msgid "New content"
msgstr ""

msgid "New folder"
msgstr ""

msgid "Open in new tab"
msgstr ""

msgid "Undo"
msgstr ""

msgid "Choose object type"
msgstr ""

msgid "Object type"
msgstr ""

msgid "Parent folder"
msgstr ""

msgid "/ (root)"
msgstr ""

msgid "Add new tag"
msgstr ""

Expand Down Expand Up @@ -1922,9 +1961,6 @@ msgstr ""
msgid "Invalid date range"
msgstr ""

msgid "Undo"
msgstr ""

msgid "Copied!"
msgstr ""

Expand Down
42 changes: 39 additions & 3 deletions locales/it_IT/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,9 @@ msgstr "Tipi di sinistra"
msgid "Less"
msgstr "Meno"

msgid "Limit"
msgstr "Limite"

msgid "List"
msgstr "Lista"

Expand Down Expand Up @@ -593,6 +596,9 @@ msgstr "Non trovato"
msgid "Number of created objects"
msgstr "Numero di oggetti creati"

msgid "Number of folders"
msgstr "Numero di cartelle"

msgid "Number of login errors"
msgstr "Numero di errori di accesso"

Expand Down Expand Up @@ -887,6 +893,9 @@ msgstr "Tag"
msgid "Temporary folder missing"
msgstr "Cartella temporanea mancante"

msgid "The number of folders is too high to be displayed in tree-compact view"
msgstr "Il numero di cartelle è troppo elevato per essere visualizzato nella vista compatta ad albero."

msgid "There were errors creating the thumbnail(s)"
msgstr "È avvenuto un errore nella creazione delle miniature"

Expand Down Expand Up @@ -938,6 +947,9 @@ msgstr "Cestino"
msgid "Trashd"
msgstr "Cancellato"

msgid "Tree compact"
msgstr "Albero compatto"

msgid "Tree view"
msgstr "Vista ad albero"

Expand Down Expand Up @@ -1028,6 +1040,9 @@ msgstr "Non sei autorizzato ad accedere a quest'area."
msgid "You are not authorized to access this resource"
msgstr "Non sei autorizzato ad accedere a questa risorsa"

msgid "You cannot see folders in tree-compact view"
msgstr "Non puoi vedere le cartelle nella vista compatta ad albero."

msgid "You do not have the required permissions to view this page."
msgstr "Non hai i permessi necessari per visualizzare questa pagina."

Expand Down Expand Up @@ -1572,6 +1587,30 @@ msgstr "pagina"
msgid "View"
msgstr "Vedi"

msgid "New content"
msgstr "Nuovo contenuto"

msgid "New folder"
msgstr "Nuova cartella"

msgid "Open in new tab"
msgstr "Apri in una nuova scheda"

msgid "Undo"
msgstr "Annulla"

msgid "Choose object type"
msgstr "Scegli il tipo di oggetto"

msgid "Object type"
msgstr "Tipo di oggetto"

msgid "Parent folder"
msgstr "Cartella padre"

msgid "/ (root)"
msgstr "/ (radice)"

msgid "Add new tag"
msgstr "Aggiungi un nuovo tag"

Expand Down Expand Up @@ -1947,9 +1986,6 @@ msgstr "Tutti i giorni"
msgid "Invalid date range"
msgstr "Intervallo date non valido"

msgid "Undo"
msgstr "Annulla"

msgid "Copied!"
msgstr "Copiato!"

Expand Down
1 change: 1 addition & 0 deletions resources/js/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
DateRangesList: () => import(/* webpackChunkName: "date-ranges-list" */'app/components/date-ranges-list/date-ranges-list'),
TreeView: () => import(/* webpackChunkName: "tree-view" */'app/components/tree-view/tree-view'),
TreeSlug: () => import(/* webpackChunkName: "tree-slug" */'app/components/tree-slug/tree-slug'),
TreeCompact: () => import(/* webpackChunkName: "tree-compact" */'app/components/tree-compact/tree-compact'),
IndexCell: () => import(/* webpackChunkName: "index-cell" */'app/components/index-cell/index-cell'),
ModulesIndex: () => import(/* webpackChunkName: "modules-index" */'app/pages/modules/index'),
ModulesView: () => import(/* webpackChunkName: "modules-view" */'app/pages/modules/view'),
Expand Down Expand Up @@ -646,6 +647,6 @@
Vue.component('ObjectCaptions', _vueInstance.$options.components.ObjectCaptions);
Vue.component('ObjectInfo', _vueInstance.$options.components.ObjectInfo);
Vue.component('RelatedObjectsFilter', _vueInstance.$options.components.RelatedObjectsFilter);
Vue.component('Thumbnail', _vueInstance.$options.components.Thumbnail);

Check warning on line 650 in resources/js/app/app.js

View workflow job for this annotation

GitHub Actions / Check javascript build (22.x)

Component name "Thumbnail" should always be multi-word

Check warning on line 650 in resources/js/app/app.js

View workflow job for this annotation

GitHub Actions / Check javascript build (20.x)

Component name "Thumbnail" should always be multi-word

Check warning on line 650 in resources/js/app/app.js

View workflow job for this annotation

GitHub Actions / Check javascript build (24.x)

Component name "Thumbnail" should always be multi-word
Vue.component('RibbonItem', _vueInstance.$options.components.RibbonItem);
Vue.component('UploadedObject', _vueInstance.$options.components.UploadedObject);
2 changes: 1 addition & 1 deletion resources/js/app/components/folder-picker/folder-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default {

async created() {
if (this.initialFolder) {
const response = await fetch(`${API_URL}api/folders/${this.initialFolder}`);
const response = await fetch(`${API_URL}tree/${this.initialFolder}/children`);
const json = await response.json();
const data = json.data;
const folder = { id: data.id, label: data.attributes.title };
Expand Down
4 changes: 2 additions & 2 deletions resources/js/app/components/module/module-properties.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default {
props: {
module: {
type: Object,
required: true,
default: () => ({}),
},
objectType: {
type: String,
Expand Down Expand Up @@ -150,7 +150,7 @@ export default {
this.$nextTick(() => {
this.originalVal = JSON.stringify(this.module);
this.fields.forEach((field) => {
this.map[field] = this.module[field] || '';
this.map[field] = this.module?.[field] || '';
});
});
},
Expand Down
14 changes: 13 additions & 1 deletion resources/js/app/components/object-info/object-info.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ import { t } from 'ttag';
export default {
name: 'ObjectInfo',
props: {
borderColor: {
type: String,
default: 'black',
},
color: {
type: String,
default: 'white',
},
objectData: {
type: Object,
required: true
Expand All @@ -29,6 +37,10 @@ export default {
labelsMap: new Map(),
msgShowObjectInfo: t`Show object info`,
reloadedData: this.objectData || {},
styles: {
borderColor: this.borderColor,
color: this.color,
},
values: {},
};
},
Expand All @@ -55,7 +67,7 @@ export default {
}).join(' ');
},
fillData() {
const source = BEDITA?.indexLists?.[this.reloadedData?.type] || {};
const source = BEDITA?.indexLists?.[this.reloadedData?.type] || [];
this.fields = source || ['title', 'description'];
this.fields = this.fields?.filter((value, index, array) => {
return array.indexOf(value) === index;
Expand Down
Loading
Loading