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.
      7ceba5a5
  3. 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
  4. 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
  5. Aug 17, 2022
  6. Aug 04, 2022
  7. Jun 07, 2022
  8. Apr 05, 2022
  9. Mar 24, 2022
  10. Mar 17, 2022
  11. Aug 18, 2021
  12. Jul 01, 2021
  13. Jun 15, 2021
  14. Apr 07, 2021
  15. Nov 24, 2020
  16. Mar 25, 2020
  17. Sep 02, 2019
  18. Jun 21, 2019
  19. Mar 27, 2019
    • Antoine Lambert's avatar
      assets: Enable whole code/pre text content selection · 2d99e134
      Antoine Lambert authored
      To ease copy/paste of source code or web api response for instance,
      add the possibility to select the whole content of a code/pre element
      using double click or the following procedure:
      
        1. click inside the code/pre element to make it the focus
      
        2. hit Ctrl+A to select all its textual content
      2d99e134
  20. Dec 04, 2018
  21. Sep 12, 2018
  22. Sep 04, 2018
  23. Jun 29, 2018
  24. May 04, 2018
  25. Apr 20, 2018
    • Antoine Lambert's avatar
      swh-web: Improve frontend development workflow · 0bc0934b
      Antoine Lambert authored
      This commit improves frontend development for swh web applications
      by setting up a static assets pipeline using the module bundler tool
      webpack. It enables to organize frontend development into logical
      modules and then package those modules into multiple bundles that
      will be loaded when required by client browsers.
      
      This induces the following changes (see updated README):
      
        - node.js is now a requirement for developping swh-web
      
        - all static assets dependencies (javascript libraries, stylesheets,
          web fonts) are now managed and retrieved using npm.
      
        - all static assets will now be served through our web server
      
      Regarding the webpack workflow put in place, it offers the following
      features:
      
        - automatic linting of custom javascript and stylesheets in order
          to have a consistent code style and avoid bad pratices
      
        - the possibility to use es6 syntax and recent javascript features
          (like async/await) through the use of babel (es6 to es5 transpiler)
      
        - leverage the use of webpack-dev-server in development mode
          in order to automatically reload web applications in the browser
          when modifying source files
      
        - in production mode, minify javascript and stylesheets but also
          perform dead code elimination in order to reduce bundle sizes and
          thus optimize the amount of data to serve to the clients.
      
      Closes T1006
      0bc0934b
Loading