mirror of https://github.com/tycrek/ass
parent
72a58295ae
commit
9d3dc96aec
@ -0,0 +1,16 @@
|
||||
import { path } from '@tycrek/joint';
|
||||
import { Router, json as BodyParserJson } from 'express';
|
||||
import { log } from '../log';
|
||||
import { UserConfig } from '../UserConfig';
|
||||
import { App } from '../app';
|
||||
|
||||
const router = Router({ caseSensitive: true });
|
||||
|
||||
// Static routes
|
||||
router.get('/', (req, res) => !UserConfig.ready ? res.redirect('/') : res.render('user', { version: App.pkgVersion }));
|
||||
router.get('/ui.js', (req, res) => !UserConfig.ready ? res.send('') : res.type('text/javascript').sendFile(path.join('dist-frontend/user.mjs')));
|
||||
|
||||
router.post('/', BodyParserJson(), async (req, res) => {
|
||||
});
|
||||
|
||||
export { router };
|
@ -0,0 +1,4 @@
|
||||
import { SlInput, SlButton } from '@shoelace-style/shoelace';
|
||||
|
||||
// * Wait for the document to be ready
|
||||
document.addEventListener('DOMContentLoaded', () => console.log('User page loaded'));
|
@ -0,0 +1,9 @@
|
||||
extends _base_
|
||||
block title
|
||||
title ass user 🍑
|
||||
block section
|
||||
span user
|
||||
block content
|
||||
h1.text-3xl Coming soon.
|
||||
|
||||
script(src='/user/ui.js')
|
Loading…
Reference in new issue