Commit Graph

14 Commits (b89a9004d4820a286e32e1bbf48f0efe2876bcbd)

Author SHA1 Message Date
Aravinth Manivannan b89a9004d4
feat: improve gist view styling 2022-03-12 23:47:48 +05:30
Aravinth Manivannan 2323dbf82c
feat: gist view 2022-03-12 18:16:42 +05:30
Aravinth Manivannan 9fb203de32
feat: conditionally display profile link 2022-03-11 23:53:31 +05:30
Aravinth Manivannan 53cb808083
feat: demo user banner on login and register pages 2022-03-08 08:43:46 +05:30
Aravinth Manivannan 92f48b7bfb
feat: add new gist form gets error handling and rendering with
user-provided values on error
2022-02-27 20:14:53 +05:30
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.
2022-02-23 20:34:24 +05:30
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.
2022-02-23 12:17:48 +05:30
Aravinth Manivannan d0dbfd9729
chore: reorganize templates 2022-02-23 09:52:56 +05:30
Aravinth Manivannan 8dd20a4f52
feat: register templates fills form on err 2022-02-23 08:10:43 +05:30
Aravinth Manivannan fdbd62a0a6
feat: add error styling 2022-02-23 08:07:37 +05:30
Aravinth Manivannan 2a8df0ebb8
feat: register template renders errors 2022-02-22 21:44:57 +05:30
Aravinth Manivannan 2919611e00
feat: login template renders errors 2022-02-22 10:12:05 +05:30
Aravinth Manivannan 3d684ff53f
feat: error component 2022-02-22 10:09:53 +05:30
Aravinth Manivannan 34e8d8851f
feat: login and register HTML pages 2022-02-21 02:22:01 +05:30