misskey-tools/packages/backend/public/views/frontend.pug
2023-04-26 12:54:20 +09:00

45 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

doctype html
html
head
meta(charset="UTF-8")
meta(name="viewport", content="width=device-width, initial-scale=1.0")
block meta
- const title = t ? `${t} | Misskey Tools`: 'Misskey Tools';
- const desc = d || '✨Misskey での1日のート数、フォロー数、フォロワー数をカウントし、深夜0時にお知らせする便利サービスです。';
title= title
meta(name='description' content=desc)
meta(property='og:title' content=title)
meta(property='og:description' content=desc)
meta(property='og:type' content='website')
script(src='https://kit.fontawesome.com/c7ab6eba70.js' crossorigin='anonymous')
link(rel="stylesheet", href="/assets/style.css")
body
#app
if token
script.
const token = '#{token}';
const previousToken = localStorage.getItem('token');
const accounts = JSON.parse(localStorage.getItem('accounts') || '[]');
if (previousToken && !accounts.includes(previousToken)) {
accounts.push(previousToken);
}
localStorage.setItem('accounts', JSON.stringify(accounts));
localStorage.setItem('token', token);
history.replaceState(null, null, '/');
if error
script.
window.__misshaialert = { error: '#{error}' };
script(type='module').
import RefreshRuntime from 'http://localhost:5173/@react-refresh'
RefreshRuntime.injectIntoGlobalHook(window)
window.$RefreshReg$ = () => {}
window.$RefreshSig$ = () => (type) => type
window.__vite_plugin_react_preamble_installed__ = true
script(type='module' src='http://localhost:5173/@vite/client')
script(type='module' src='http://localhost:5173/src/init.tsx')