updated prettier config
This commit is contained in:
@@ -12,19 +12,14 @@ window.SERVER_HOST = SERVER_HOST;
|
||||
window.onload = function () {
|
||||
let app = document.documentElement;
|
||||
|
||||
if (
|
||||
window.matchMedia &&
|
||||
window.matchMedia('(prefers-color-scheme: dark)').matches
|
||||
) {
|
||||
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||||
switch_theme('dark');
|
||||
} else {
|
||||
switch_theme('light');
|
||||
}
|
||||
|
||||
// theme switcher
|
||||
document
|
||||
.getElementById('app_theme_switcher')
|
||||
.addEventListener('click', switch_theme, false);
|
||||
document.getElementById('app_theme_switcher').addEventListener('click', switch_theme, false);
|
||||
|
||||
// routes handler
|
||||
window.addEventListener('hashchange', location_handler);
|
||||
@@ -60,9 +55,7 @@ const location_handler = async () => {
|
||||
const html = await fetch(route.template).then((response) => response.text());
|
||||
document.getElementById('content').innerHTML = html;
|
||||
document.title = route.title;
|
||||
document
|
||||
.querySelector('meta[name="description"]')
|
||||
.setAttribute('content', route.description);
|
||||
document.querySelector('meta[name="description"]').setAttribute('content', route.description);
|
||||
|
||||
if (route.script) {
|
||||
let script = document.getElementById('content').querySelector('script');
|
||||
|
||||
@@ -32,8 +32,7 @@ export const routes = {
|
||||
},
|
||||
rer2: {
|
||||
template: '/pages/rer2.html',
|
||||
title:
|
||||
'RE: Revelation 2 — Статус ежемесячных событий «Вторжение огромных тварей»',
|
||||
title: 'RE: Revelation 2 — Статус ежемесячных событий «Вторжение огромных тварей»',
|
||||
description: '...',
|
||||
script: true,
|
||||
},
|
||||
|
||||
@@ -6,11 +6,7 @@
|
||||
<title>a2s</title>
|
||||
<meta name="description" content="" />
|
||||
<link rel="manifest" href="manifest.json" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
type="text/css"
|
||||
href="./assets/css/bootstrap-v5.3.1.min.css"
|
||||
/>
|
||||
<link rel="stylesheet" type="text/css" href="./assets/css/bootstrap-v5.3.1.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="./assets/css/styles.css" />
|
||||
<script type="module">
|
||||
import './assets/js/app.js';
|
||||
|
||||
@@ -2,13 +2,9 @@
|
||||
<div class="text-shadow">
|
||||
<h3 id="app_title" class="float-md-start mb-0">
|
||||
<span class="font-monospace">inet://</span><br />
|
||||
<p class="text-secondary fs-6 text-shadow m-0">
|
||||
// licking and assemble //
|
||||
</p>
|
||||
<p class="text-secondary fs-6 text-shadow m-0">// licking and assemble //</p>
|
||||
</h3>
|
||||
<nav
|
||||
class="nav nav-masthead justify-content-center mt-3 mt-md-0 float-md-end"
|
||||
>
|
||||
<nav class="nav nav-masthead justify-content-center mt-3 mt-md-0 float-md-end">
|
||||
<a class="nav-link fw-bold py-1 px-0 icon-link" href="/">
|
||||
<svg
|
||||
class="svg-icon"
|
||||
@@ -21,11 +17,8 @@
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
class="feather feather-home"
|
||||
>
|
||||
<path
|
||||
d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"
|
||||
></path>
|
||||
class="feather feather-home">
|
||||
<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path>
|
||||
<polyline points="9 22 9 12 15 12 15 22"></polyline>
|
||||
</svg>
|
||||
Home
|
||||
@@ -42,8 +35,7 @@
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
class="feather feather-info"
|
||||
>
|
||||
class="feather feather-info">
|
||||
<circle cx="12" cy="12" r="10"></circle>
|
||||
<line x1="12" y1="16" x2="12" y2="12"></line>
|
||||
<line x1="12" y1="8" x2="12.01" y2="8"></line>
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
class="feather feather-activity"
|
||||
>
|
||||
class="feather feather-activity">
|
||||
<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline>
|
||||
</svg>
|
||||
Games
|
||||
@@ -23,8 +22,7 @@
|
||||
<a
|
||||
class="dropdown-item d-flex gap-2 align-items-center"
|
||||
href="https://ё.a2s.su/"
|
||||
target="_blank"
|
||||
>
|
||||
target="_blank">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="16"
|
||||
@@ -35,22 +33,16 @@
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
class="feather feather-book"
|
||||
>
|
||||
class="feather feather-book">
|
||||
<path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path>
|
||||
<path
|
||||
d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"
|
||||
></path>
|
||||
<path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path>
|
||||
</svg>
|
||||
Буква <span class="font-monospace">ё</span>
|
||||
</a>
|
||||
</li>
|
||||
<li><hr class="dropdown-divider" /></li>
|
||||
<li>
|
||||
<a
|
||||
class="dropdown-item d-flex gap-2 align-items-center"
|
||||
href="#personal"
|
||||
>
|
||||
<a class="dropdown-item d-flex gap-2 align-items-center" href="#personal">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="16"
|
||||
@@ -61,8 +53,7 @@
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
class="feather feather-user"
|
||||
>
|
||||
class="feather feather-user">
|
||||
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
|
||||
<circle cx="12" cy="7" r="4"></circle>
|
||||
</svg>
|
||||
@@ -81,12 +72,10 @@
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
class="feather feather-trash-2"
|
||||
>
|
||||
class="feather feather-trash-2">
|
||||
<polyline points="3 6 5 6 21 6"></polyline>
|
||||
<path
|
||||
d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"
|
||||
></path>
|
||||
d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>
|
||||
<line x1="10" y1="11" x2="10" y2="17"></line>
|
||||
<line x1="14" y1="11" x2="14" y2="17"></line>
|
||||
</svg>
|
||||
|
||||
Reference in New Issue
Block a user