Skip to content

Commit

Permalink
feat: Make note treeview drawer a re-usable component - EXO-73047, EX…
Browse files Browse the repository at this point in the history
…O-73046 - Meeds-io/MIPs#161 (#1236)

Make note treeview drawer a re-usable component
  • Loading branch information
hakermi committed Dec 4, 2024
1 parent 69981af commit db6c749
Show file tree
Hide file tree
Showing 9 changed files with 175 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ notes.publication.success.message=Note successfully published
notes.schedule.success.message=Note scheduled successfully
notes.publication.externalPage.publish.cancel.label=Cancel publishing

notes.move.select.destination.label=Select a destination

popup.confirm=Confirm
popup.msg.confirmation=Confirmation
popup.confirmation.delete=Delete the note
Expand All @@ -132,6 +134,7 @@ notes.alert.success.label.exported=Your notes have been exported
notes.alert.success.label.export.canceled=Your notes export have been canceled
notes.export.status.label.started=Started
notes.export.status.label.preparingNotes=Preparing notes to export
notes.export.status.label.preparingNotes.total=Preparing notes to export ({0} notes)
notes.export.status.label.updatingNoteParents=Updating notes parents
notes.export.status.label.creatingJson=Creating notes content
notes.export.status.label.updatingImages=Updating images urls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ notes.publication.success.message=Note publi\u00E9e avec succ\u00E8s
notes.schedule.success.message=Note planifi\u00E9 avec succ\u00E8s
notes.publication.externalPage.publish.cancel.label=Annuler la publication

notes.move.select.destination.label=S\u00E9lectionner une destination

popup.confirm=Confirmer
popup.msg.confirmation=Confirmation
popup.confirmation.delete=Supprimer la note
Expand All @@ -132,6 +134,7 @@ notes.alert.success.label.exported=Vos notes ont été exportées.
notes.alert.success.label.export.canceled=L'export de vos notes a été annulé
notes.export.status.label.started=Lancé
notes.export.status.label.preparingNotes=Préparation des notes à exporter
notes.export.status.label.preparingNotes.total=Préparation des notes à exporter ({0} notes)
notes.export.status.label.updatingNoteParents=Mise à jour des notes parents
notes.export.status.label.creatingJson=Création du contenu Json des notes
notes.export.status.label.updatingImages=Mise à jour des URL des images
Expand Down
29 changes: 29 additions & 0 deletions notes-webapp/src/main/webapp/WEB-INF/gatein-resources.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
<depends>
<module>NotesPublication</module>
</depends>
<depends>
<module>NotesTreeview</module>
</depends>
<depends>
<module>imageCropper</module>
</depends>
Expand Down Expand Up @@ -95,6 +98,9 @@
<depends>
<module>NotesPublication</module>
</depends>
<depends>
<module>NotesTreeview</module>
</depends>
<depends>
<module>commonVueComponents</module>
</depends>
Expand Down Expand Up @@ -148,6 +154,29 @@
<module>imageCropper</module>
</depends>
</module>

<module>
<name>NotesTreeview</name>
<load-group>NotesGRP</load-group>
<script>
<path>/javascript/notesTreeview.bundle.js</path>
</script>
<depends>
<module>commonVueComponents</module>
</depends>
<depends>
<module>extensionRegistry</module>
</depends>
<depends>
<module>vue</module>
</depends>
<depends>
<module>vuetify</module>
</depends>
<depends>
<module>eXoVueI18n</module>
</depends>
</module>

<portlet>
<name>NotesEditor</name>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import NoteCustomPlugins from '../notes-rich-editor/components/NoteCustomPlugins.vue';
import TranslationsEditBar from '../notes-rich-editor/components/TranslationsEditBar.vue';
import NoteTreeviewDrawer from '../notes/components/NoteTreeviewDrawer.vue';
import NoteEditorTopBar from '../notes-rich-editor/components/NoteEditorTopBar.vue';
import NoteFullRichEditor from './components/NoteFullRichEditor.vue';
import NoteEditorMetadataDrawer from './components/note-properties/NoteEditorMetadataDrawer.vue';
Expand All @@ -9,7 +8,6 @@ import NoteMetadataPropertiesForm from './components/note-properties/NoteMetadat

const components = {
'note-custom-plugins': NoteCustomPlugins,
'note-treeview-drawer': NoteTreeviewDrawer,
'note-translation-edit-bar': TranslationsEditBar,
'note-editor-top-bar': NoteEditorTopBar,
'note-full-rich-editor': NoteFullRichEditor,
Expand Down
Loading

0 comments on commit db6c749

Please sign in to comment.