Skip to content
Snippets Groups Projects
This project is mirrored from https://*****@github.com/iqb-berlin/verona-modules-aspect.git. Pull mirroring updated .
  1. Jun 17, 2024
  2. Jun 07, 2024
  3. Jun 03, 2024
  4. Jun 01, 2024
  5. May 30, 2024
    • rhenck's avatar
      [editor] Add static icons and names to element classes · dae0f897
      rhenck authored
      Separating code changes is rather hard right now, so there is a lot of stuff that is part of this commit that should not. Details below.
      
      - All elements have static fields that holds their title and icon. This way dynamic lists can be built (for example for delete dialog) which show title and icon for all elements. ALso icons and names can be changed in one place.
      - Template-Tab has been added. This should have templates to help creating groups of ui elements. This is work in progress and there are actually no templates yet. So this will change or even be removed in the future. This is mostly UI, the code is "TODO".
      - Refactoring and improvement for delete and reference dialogs
      - Delete logic refactored for elements, sections and pages. There are no longer different dialogs when references are found, but instead one dialog that can do both.
      dae0f897
  6. May 28, 2024
    • rhenck's avatar
      [editor-ui] Add shadows to side panels · 0c7eb437
      rhenck authored
      This sets them up from the central UnitView.
      0c7eb437
    • rhenck's avatar
      [editor] Add undo function · bbffab06
      rhenck authored
      Only works for a few commands (mainly page and section stuff).
      
      - Adds new menu to page-bar, which shows issued change commands with a 
      button to rollback the latest change.
      - Added warning to the UI element that this is a experimental feature 
      and can destroy units.
      - Undo is done by having the normal function to apply the change to the 
      unit-object and another to undo this change. The HistoryService manages 
      the list and calling rollack (via UnitService).
      - Further refactiring to the unit services.
      bbffab06
  7. May 27, 2024
  8. May 26, 2024
  9. Aug 07, 2023
  10. Aug 03, 2023
  11. Jul 24, 2023
    • rhenck's avatar
      Rework class constructors · 81de7c0f
      rhenck authored
      In Player-context the constructors are to fail, when the given 
      properties are not exactly as expected. Therefoore they are validated. 
      When this validation fails, an environment variable is checked to 
      determine if the element should be created anyway with defaults. This 
      switch is off in player-context. But the Editor is not so strict and can 
      create elements with incomplete parameters.
      
      There is also a new VersionManager which checks given unit definitions 
      for version-validity. Upon failing this check Player and Editor show 
      error messages.
      The Editor accepts a certain unit definition version, but shows a 
      warning.
      
      The Editor checks units for invalid references after loading. If any are 
      found, they are removed and an info-panel is shown.
      81de7c0f
  12. Jun 27, 2023
  13. Jun 13, 2023
    • rhenck's avatar
      [editor] Add reference checker · 0b27b48c
      rhenck authored
      - Add ReferenceManager to check if deleted elements are referenced 
      anywhere in the unit. If so display a warning.
      - Move page logic to UnitService
      0b27b48c
  14. Jun 08, 2023
  15. Jun 05, 2023
  16. May 05, 2023
  17. Sep 06, 2022
  18. Aug 01, 2022
  19. Jun 03, 2022
    • rhenck's avatar
      Fix type issues · e1ab36e3
      rhenck authored
      Remove 'any's be adding proper types and using 'never'.
      e1ab36e3
  20. May 17, 2022
    • rhenck's avatar
      Refactor model interfaces to classes · 2e9be6e9
      rhenck authored
      This way elements can handle their logic themselves without having to
      rely on outside utility classes.
      
      Also restructure files in common in a more logical way.
      2e9be6e9
  21. May 06, 2022
  22. May 05, 2022
  23. May 02, 2022
    • rhenck's avatar
      Implement copy on drop for dropLists · c6f4e3f2
      rhenck authored
      With this setting elements are copied when being dropped to another 
      list.
      
      On drop it is also checked if the item-ID is already present in the 
      list. If it is the drop event is silently discarded. This allows putting 
      items back in the list without creating duplicate IDs.
      
      Lists with this setting:
      - do show a placeholder of the items being dragged. This way it is 
      conveyed that the item will remain there after being dropped.
      - don't show a placeholder when items are hovered over them, to avoid 
      confusion with duplicate items.
      
      Sorting within DropLists is disabled, since it causes moving items 
      within the list. It has to be discussed if this feature is even needed.
      c6f4e3f2
    • rhenck's avatar
      Refactor simple elements for cloze · 28ead292
      rhenck authored
      - Split text field and drop list, so they can have differing props
      - Improve their dimension default values
      - Improve alignment of all cloze children components
      - Add dynamic width parameter of toggle buttons to dimension properties
      panel. Therefore the postion tab can always be shown and no longer needs
      a condition.
      28ead292
    • rhenck's avatar
      Cleanup styling · bfaa942e
      rhenck authored
      Remove unused class.
      bfaa942e
  24. Apr 25, 2022
    • rhenck's avatar
      [editor] Improve button properties panel · aa541c48
      rhenck authored
      - Add fieldset to make it look nicer.
      - Improve image to have fixed size, scale properly and show buttons only 
      on hover.
      - Improve translations
      - Add tooltip to actionparam dropdown: When having selected pageNav it 
      shows a tooltip to get across that only valid pages can show up.
      
      #240
      aa541c48
  25. Apr 22, 2022
  26. Apr 20, 2022
Loading