mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-27 12:49:01 +08:00
Refactor OTA API
This commit is contained in:
parent
3168a2aca0
commit
da85affe5c
@ -37,8 +37,8 @@ web_root/bundle.js:
|
||||
curl -s https://npm.reversehttp.com/preact,preact/hooks,htm/preact,preact-router -o $@
|
||||
|
||||
# Create optimised CSS. Prerequisite: npm -g i tailwindcss tailwindcss-font-inter
|
||||
web_root/main.css: web_root/index.html $(wildcard web_root/*.js)
|
||||
$(NPX) tailwindcss -o $@ --minify
|
||||
css: web_root/index.html $(wildcard web_root/*.js)
|
||||
$(NPX) tailwindcss -o web_root/main.css --minify
|
||||
|
||||
# Generate packed filesystem for serving Web UI
|
||||
packed_fs.c: $(wildcard web_root/*) $(wildcard certs/*) Makefile
|
||||
|
File diff suppressed because one or more lines are too long
@ -116,7 +116,7 @@ export function Login({loginFn, logoIcon, title, tipText}) {
|
||||
return fetch('api/login', {headers}).then(loginFn).finally(r => setPass(''));
|
||||
};
|
||||
return html`
|
||||
<div class="h-full flex items-center justify-center bg-slate-200">
|
||||
<div class="h-screen flex items-center justify-center bg-slate-200">
|
||||
<div class="border rounded bg-white w-96 p-5">
|
||||
<div class="my-5 py-2 flex items-center justify-center gap-x-4">
|
||||
<${logoIcon} class="h-12 stroke-cyan-600 stroke-1" />
|
||||
|
File diff suppressed because one or more lines are too long
@ -359,7 +359,7 @@ const App = function({}) {
|
||||
tipText="To login, use: admin/admin, user1/user1, user2/user2" />`; // If not logged in, show login screen
|
||||
|
||||
return html`
|
||||
<div class="min-h-screen bg-slate-100">
|
||||
<div class="h-screen bg-slate-100">
|
||||
<${Sidebar} url=${url} show=${showSidebar} />
|
||||
<${Header} logout=${logout} user=${user} showSidebar=${showSidebar} setShowSidebar=${setShowSidebar} />
|
||||
<div class="${showSidebar && 'pl-72'} transition-all duration-300 transform">
|
||||
|
Loading…
Reference in New Issue
Block a user