Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

your-local-developer/inertia_oak_middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inertia_oak_middleware

⚠️💀 UNMAINTAINED ⚠️💀

About @inertiajs inertia server-side adapter for the @denoland Deno web-framework @oakserver oak

Credits

Favicon convertet from https://github.com/hashrock licensed under MIT

Features

  • Basic Inertia render
  • Static asset support
  • template to integrate with JS-UI-framework tooling
    • preferred eta but it is not possible, because vite cant process .eta and <%= =%>
    • check if vite can process {{{ html }}}
    • make it possible add support multiple renderer
  • Version support
    • Basic support
    • Move in Middleware to return early reference ?
      • Ask on discord or don't do it because the Pricing CRM sets headers and cookies even though the version mismatch and the render is the last call anyways.
      • Check if complete html should be returned on POST request without version header -> Not a use case
    • Session support ( reflash session when it contains errors, and version is incorrect )
  • Props
    • Shared Props
    • Computed Props
  • Redirect ( with shorthand ) for example in store methods
    • internal
    • external via inertia.location
  • Validation Errors
  • View Data
  • Partial Reloads

In question

  • Log if request version equals current version
  • Setup with session