Skip to content
Snippets Groups Projects
  1. Mar 03, 2025
  2. Feb 12, 2025
    • Antoine Lambert's avatar
      browse: Fix redirect issue in search interface · 7ceba5a5
      Antoine Lambert authored
      When searching for an origin URL, the search interface redirects
      to its browse interface if the origin URL exists in SWH database.
      
      Nevertheless, it the origin could not be archived, the redirection
      was still done leading to a 404 error so ensure to check the origin
      has a snapshot before redirecting.
      
      Fixes #4828.
      Verified
      7ceba5a5
  3. Dec 18, 2024
  4. Oct 01, 2024
    • Antoine Lambert's avatar
      assets: Upgrade Bootstrap from 4.6 to 5.3 and AdminLTE from 3.2 to 4.0 · 809eba7a
      Antoine Lambert authored
      The bootstrap admin theme we are using (AdminLTE) recently added support for
      bootstrap 5.x in its 4.0 release (still in beta but works for our needs).
      
      So it was time to upgrade bootstrap from 4.x to 5.x for the SWH webapp.
      
      The following was made to complete the upgrade while keeping same look and
      feel as before:
      
      - remove use of bootstrap loader for webpack and simplify webpack configuration
      
      - replace use of deprecated node-sass package by sass one from Dart
      
      - update bootstrap sass variables to override and add button style matching the
        default one from AdminLTE 3.x we were using
      
      - adapt some CSS rules and add new ones to ensure same look and feel as before
      
      - remove explicit use of custom form controls from bootstrap 4.x as they are now
        the standard in bootstrap 5.x through new CSS classes form-*
      
      - update CSS classes renamed in bootstrap 5.x and adminlte 4.x, notably:
      
        * wrapper => app-wrapper
        * main-header => app-header
        * content => app-content
        * sidebar => app-sidebar
        * footer => app-footer
        * ml-* => ms-*
        * mr-* => me-*
        * pl-* => ps-*
        * pr-* => pe-*
        * float-left => float-end
        * float-right => float-start
        * text-left => text-start
        * text-right => text-end
      
      - rename some data-* attributes to data-bs-*
      
      - use btn-secondary CSS class for button style instead of btn-default
      
      - use standard bootstrap close button for modals and alerts
      
      - put sidebar HTML code in its own dedicated include file
      
      - simplify forms HTML code and use new form-label CSS class
      
      - remove no longer needed javascript hacks
      
      - improve color theme consistency notably when focusing elements with keyboard
      809eba7a
  5. Jul 08, 2024
  6. Mar 22, 2024
    • Antoine Lambert's avatar
      browse/search: Handle visit type when search pattern is an origin URL · 4ce23c9a
      Antoine Lambert authored and Antoine Lambert's avatar Antoine Lambert committed
      When searching for origins with the Web UI, if the search pattern is equal
      to the URL of an archived origin then user gets automatically redirected to
      the interface for browsing it.
      
      Previously the visit type was not taken into account prior performing the
      redirection so ensure to redirect only if the origin has a visit type
      that matches the selected one.
      4ce23c9a
  7. Feb 21, 2024
  8. Jan 08, 2024
  9. Nov 20, 2023
  10. Sep 07, 2022
    • Antoine Lambert's avatar
      Move static assets source code in related django application folders · c52158a8
      Antoine Lambert authored
      For each swh-web django application, create an assets folder in application
      one and move related static assets source code (js, css, ...) in it.
      
      Also modify webpack configuration to generate bundles the following way:
      
        - if swh/web/<app>/assets/index.js exists, a bundle named <app> is generated
      
        - if swh/web/<app>/assets/<bundle>/index.js exists, a bundle named <bundle>
          is generated
      
      After these changes, some bundles got renamed but also new ones are generated
      so update django templates and js code accordingly.
      
      Related to T4398
      c52158a8
  11. Sep 01, 2022
  12. Aug 30, 2022
  13. Aug 23, 2022
  14. Aug 18, 2022
  15. Aug 17, 2022
  16. Aug 10, 2022
  17. Aug 04, 2022
  18. Jul 21, 2022
    • Antoine Lambert's avatar
      templates/layout: Prevent flashing of collapsed sidebar on page load · d6415206
      Antoine Lambert authored
      When sidebar is in collpased mode, it was previously flashing from expanded
      to collapsed when loading a page as its state was changed using javascript.
      
      So prefer to use a cookie describing sidebar state that can be read server
      side from django and injected in templates, this way the sidebar is ensured
      to be in correct state in HTML code on page load.
      d6415206
  19. Jul 12, 2022
  20. Jul 11, 2022
  21. Jul 06, 2022
  22. Jun 13, 2022
  23. Jun 07, 2022
  24. May 23, 2022
  25. May 17, 2022
  26. May 12, 2022
  27. May 11, 2022
  28. May 10, 2022
  29. May 06, 2022
  30. May 03, 2022
Loading