Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sqlpage/SQLPage
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: antler5/SQLPage
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 8 commits
  • 8 files changed
  • 1 contributor

Commits on Apr 5, 2025

  1. app_config.rs: Add config option extra-web-roots

    * configuration.md: Add config option `extra-web-roots`
    * src/app_config.rs: Add config option `extra-web-roots`
    antler5 committed Apr 5, 2025
    Configuration menu
    Copy the full SHA
    82cde66 View commit details
    Browse the repository at this point in the history
  2. filesystem: Initialize extra_web_root filesystems

    * src/filesystem.rs: Make FS database optional (primary web-root only).
    * src/lib.rs: Initialize extra filesystems into `AppState.extra_file_systems`.
    antler5 committed Apr 5, 2025
    Configuration menu
    Copy the full SHA
    9c5cbd9 View commit details
    Browse the repository at this point in the history
  3. filesystem: Load from fs-local-root instead of config-dir

    * src/filesystem.rs: Load from fs-local-root instead of config-dir
    antler5 committed Apr 5, 2025
    Configuration menu
    Copy the full SHA
    14bfa5f View commit details
    Browse the repository at this point in the history
  4. file_cache: Load templates from any web-root/filesystem

    I think the ideally we'd check modification time first, check that
    the first valid file matches the _source filesystem_ of the cache entry
    (which we'd have to store), otherwise load the higher priority file,
    and have a config option for whether or not to fall-through to a lower
    priority filesystem if the highest-priority non-missing modification
    time (or the file backing it) errors on-read.
    Tests would also be great.
    
    But since this meets my needs for the time being, and (IIUC) matches the
    functionality of existing filesystem -> database -> cache layers, I'll
    have to put a pin in it for now.
    
    * src/file_cache.rs: Load templates from any web-root/filesystem
    antler5 committed Apr 5, 2025
    Configuration menu
    Copy the full SHA
    22476c9 View commit details
    Browse the repository at this point in the history
  5. Routing/FS: Move extra_web_root logic into primary filesystem

    This is in response to the development of `http_routing`, which
    otherwise checked the cache and primary FS and would 404.
    
    Covering `modified_since` means the file_cache semantics are probably
    better like this anyway.
    
    * src/file_cache.rs: Remove `extra_web_root` logic.
    * src/filesystem.rs(file_exists): Add `extra_web_root` logic.
    * src/filesystem.rs(read_file): Add `extra_web_root` logic.
    * src/filesystem.rs(modified_since): Add `extra_web_root` logic.
    antler5 committed Apr 5, 2025
    Configuration menu
    Copy the full SHA
    7af6e4f View commit details
    Browse the repository at this point in the history
  6. Add extra-migration-directories

    * configuration.md: Add `extra-migration-directories`
    * src/app_config.rs: Add `extra-migration-directories`
    * src/webserver/database/migrations.rs: Add `extra-migration-directories`
    antler5 committed Apr 5, 2025
    Configuration menu
    Copy the full SHA
    25a114b View commit details
    Browse the repository at this point in the history
  7. csp: Add extra_csp_terms config option

    I want to append `unsafe-eval`, but don't want to lose the non-static
    nonce by setting CPS to a static header.
    
    * src/app_config.rs: Add `extra_csp_terms` config option
    * src/render.rs: Append `extra_csp_terms` to default CSP header
    * src/webserver/http.rs: `extra_csp_terms` to configured CSP header
    antler5 committed Apr 5, 2025
    Configuration menu
    Copy the full SHA
    9f31f2a View commit details
    Browse the repository at this point in the history
  8. Check for .hbs when .handlebars does not exist

    * src/templates.rs: Check for `.hbs` when `.handlebars` does not exist.
    antler5 committed Apr 5, 2025
    Configuration menu
    Copy the full SHA
    222413e View commit details
    Browse the repository at this point in the history
Loading