This project is mirrored from https://gitlab.archlinux.org/archlinux/aurweb.git. Pull mirroring updated .
  1. 12 May, 2022 1 commit
  2. 01 Apr, 2022 1 commit
  3. 30 Mar, 2022 1 commit
  4. 09 Mar, 2022 3 commits
  5. 08 Mar, 2022 2 commits
  6. 26 Feb, 2022 1 commit
  7. 23 Feb, 2022 1 commit
  8. 20 Feb, 2022 1 commit
  9. 19 Feb, 2022 2 commits
  10. 18 Feb, 2022 2 commits
  11. 14 Feb, 2022 2 commits
  12. 11 Feb, 2022 1 commit
  13. 10 Feb, 2022 1 commit
  14. 09 Feb, 2022 1 commit
  15. 08 Feb, 2022 1 commit
  16. 05 Feb, 2022 2 commits
  17. 04 Feb, 2022 3 commits
  18. 20 Jan, 2022 1 commit
  19. 18 Jan, 2022 2 commits
  20. 28 Nov, 2021 2 commits
  21. 04 Oct, 2021 1 commit
  22. 27 Jun, 2021 1 commit
  23. 26 Jun, 2021 1 commit
  24. 06 Jun, 2021 3 commits
    • Leonidas Spyropoulos's avatar
      64bc9392
    • Kevin Morris's avatar
      add aurweb.db.session · 4238a9fc
      Kevin Morris authored
      
      
      + Added Session class and global session object to aurweb.db,
        these are sessions created by sqlalchemy ORM's sessionmaker
        and will allow us to use declarative/imperative models.
      
      Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
      4238a9fc
    • Kevin Morris's avatar
      port over base HTML layout from PHP to FastAPI+Jinja2 · 2df90ce2
      Kevin Morris authored
      
      
      + Mounted static files (at web/html) to /static.
      + Added AURWEB_VERSION to aurweb.config (this is used around HTML
        to refer back to aurweb's release on git.archlinux.org), so we
        need it easily accessible in the Python codebase.
      + Implemented basic Jinja2 partials to put together whole aurweb
        pages. This may be missing some things currently and is a WIP
        until this set is ready to be merged.
      + Added config [options] aurwebdir = YOUR_AUR_ROOT; this configuration
        option should specify the root directory of the aurweb project.
        It is used by various parts of the FastAPI codebase to target
        project directories.
      
      Added routes via aurweb.routers.html:
          * POST /language: Set your session language.
          * GET /favicon.ico: Redirect to /static/images/favicon.ico.
              * Some browsers always look for $ROOT/favicon.ico to get an icon
                for the page being loaded, regardless of a specified "shortcut
                icon" given in a <link> directive.
          * GET /: Home page; WIP.
      
      * Updated aurweb.routers.html.language passes query parameters to
        its next redirection.
      
      When calling aurweb.templates.render_template, the context passed should
      be formed via the aurweb.templates.make_context. See
      aurweb.routers.html.index for an example of this.
      
      Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
      2df90ce2
  25. 22 Apr, 2018 1 commit
    • Eli Schwartz's avatar
      config: allow reading both the defaults file and the modified config · 97c5bcec
      Eli Schwartz authored and Lukas Fleischer's avatar Lukas Fleischer committed
      
      
      In the process, rename config.proto to config.defaults (because that is
      what it is now).
      
      Also use dict.get('key', default_value) when querying os.environ, rather
      than an if block, as it is more pythonic/readable/concise, and reduces
      the number of dict lookups.
      
      This change allows aurweb configuration to be done via either:
      - copying config.defaults to config and modifying values
      - creating a new config only containing modified values, next to a
        config.defaults containing unmodified values
      
      The motivation for this change is to enable ansible configuration in our
      flagship deployment by storing only changed values, and deferring to
      config.defaults otherwise.
      
      A side benefit is, it is easier to see what has changed by inspecting
      only the site configuration file.
      
      If a config.defaults file does not exist next to $AUR_CONFIG or in
      $AUR_CONFIG_DEFAULTS, it is ignored and *all* values are expected to
      live in the modified config file.
      
      Signed-off-by: Eli Schwartz's avatarEli Schwartz <eschwartz@archlinux.org>
      Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
      97c5bcec
  26. 17 Oct, 2016 1 commit
  27. 29 Sep, 2016 1 commit