20 Commits (master)

Author SHA1 Message Date
Aravinth Manivannan 1568e48eea
feat: raw and single page views for gist files 2 years ago
Aravinth Manivannan 13388326ef
chore & fix: modularize templates and fix multi-file gists for the final
time.
2 years ago
Aravinth Manivannan 2bd3b38869
fix: multi-file gist styling 2 years ago
Aravinth Manivannan 5bdbdaf267
feat: display comments on gists 2 years ago
Aravinth Manivannan dbc233c1ed
feat: comment on gists 2 years ago
Aravinth Manivannan 95efab95da
feat: load comments in gists view route and comment form 2 years ago
Aravinth Manivannan b89a9004d4
feat: improve gist view styling 2 years ago
Aravinth Manivannan 2323dbf82c
feat: gist view 2 years ago
Aravinth Manivannan 9fb203de32
feat: conditionally display profile link 2 years ago
Aravinth Manivannan 53cb808083
feat: demo user banner on login and register pages 2 years ago
Aravinth Manivannan 92f48b7bfb
feat: add new gist form gets error handling and rendering with
user-provided values on error
2 years ago
Aravinth Manivannan 9e15e04ca5
feat: new gist page and extractors to handle new gist form payload
SUMMARY
    REST API for gist creation uses JSON for payload format, which
    supports array. Form doesn't so gist file field names(filename and
    content) follow {KNOWN_PREFIX}{index} semantics, which can be parsed
    while processing request.
2 years ago
Aravinth Manivannan 28b501810e
feat: separate navigation bars for logged and unauthenticated users
SUMMARY
    Authenticated and unauthenticated users have different requirements.
    Links to profile and settings are irrelevant for unauthenticated
    users. So separate navigation bars.

USAGE
    crate::pages::auth_ctx
	Authenticated user context should be supplied on every
	authenticated route template render. Authenticated navigation
	bar depends on "loggedin_user" to render profile link.

    AUTH_NAV("auth_nav")
	Should only be used in authenticated routes. Depends on
	"loggedin_user" authenticated user context, which can't be
	supplied in unauthenticated routes.

NOTES
    Currently, there's (template)code
    duplication, when inheritance for "include" templates are
    implemented in Tera crate, navigation bars implementations should be
    refactored to avoid duplication.
2 years ago
Aravinth Manivannan d0dbfd9729
chore: reorganize templates 2 years ago
Aravinth Manivannan 8dd20a4f52
feat: register templates fills form on err 2 years ago
Aravinth Manivannan fdbd62a0a6
feat: add error styling 2 years ago
Aravinth Manivannan 2a8df0ebb8
feat: register template renders errors 2 years ago
Aravinth Manivannan 2919611e00
feat: login template renders errors 2 years ago
Aravinth Manivannan 3d684ff53f
feat: error component 2 years ago
Aravinth Manivannan 34e8d8851f
feat: login and register HTML pages 2 years ago