mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-29 00:59:58 -07:00
website: fixes
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<!doctype html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
/>
|
/>
|
||||||
<link rel="manifest" href="/manifest.webmanifest" />
|
<link rel="manifest" href="/manifest.webmanifest" />
|
||||||
<meta name="mobile-web-app-capable" content="yes" />
|
<meta name="mobile-web-app-capable" content="yes" />
|
||||||
<script defer type="module" crossorigin src="./script.js"></script>
|
<script type="module" crossorigin src="./script.js"></script>
|
||||||
|
|
||||||
<!-- Styles -->
|
<!-- Styles -->
|
||||||
|
|
||||||
@@ -1114,11 +1114,21 @@
|
|||||||
|
|
||||||
> #timescale {
|
> #timescale {
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
|
|
||||||
border-radius: 9999px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
border: 1px;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
z-index: 50;
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
margin-bottom: -1.5rem;
|
||||||
|
border-top: 1px;
|
||||||
|
margin-left: -1.5rem;
|
||||||
|
margin-right: -1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
border-radius: 9999px;
|
||||||
|
border: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
> button {
|
> button {
|
||||||
flex: 0;
|
flex: 0;
|
||||||
@@ -1273,7 +1283,7 @@
|
|||||||
z-index: 10;
|
z-index: 10;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
|
||||||
&:not(:has(~ #selected-frame:not([hidden]))) {
|
main > &:not(:has(~ #selected-frame:not([hidden]))) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1298,7 +1308,7 @@
|
|||||||
localStorage.getItem(settingsThemeLocalStorageKey)
|
localStorage.getItem(settingsThemeLocalStorageKey)
|
||||||
);
|
);
|
||||||
const preferredColorSchemeMatchMedia = window.matchMedia(
|
const preferredColorSchemeMatchMedia = window.matchMedia(
|
||||||
"(prefers-color-scheme: dark)",
|
"(prefers-color-scheme: dark)"
|
||||||
);
|
);
|
||||||
if (
|
if (
|
||||||
theme === "dark" ||
|
theme === "dark" ||
|
||||||
@@ -1310,7 +1320,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
const backgroundColor = getComputedStyle(
|
const backgroundColor = getComputedStyle(
|
||||||
window.document.documentElement,
|
window.document.documentElement
|
||||||
).getPropertyValue("--background-color");
|
).getPropertyValue("--background-color");
|
||||||
const meta = window.document.createElement("meta");
|
const meta = window.document.createElement("meta");
|
||||||
meta.name = "theme-color";
|
meta.name = "theme-color";
|
||||||
@@ -1666,7 +1676,7 @@
|
|||||||
<a
|
<a
|
||||||
id="anchor-git"
|
id="anchor-git"
|
||||||
title="Git"
|
title="Git"
|
||||||
href="https://github.com/satonomics-org"
|
href="https://github.com/kibo-money"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
@@ -1708,6 +1718,7 @@
|
|||||||
|
|
||||||
<main id="main">
|
<main id="main">
|
||||||
<script>
|
<script>
|
||||||
|
// Prevent width jumping
|
||||||
const savedWidth = localStorage.getItem("bar-width");
|
const savedWidth = localStorage.getItem("bar-width");
|
||||||
if (savedWidth) {
|
if (savedWidth) {
|
||||||
const mainFrames = window.document.getElementById("frames");
|
const mainFrames = window.document.getElementById("frames");
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
"start_url": "/",
|
"start_url": "/",
|
||||||
"scope": "/",
|
"scope": "/",
|
||||||
"display": "standalone",
|
"display": "standalone",
|
||||||
|
"handle_links": "preferred",
|
||||||
"theme_color": "#f26610",
|
"theme_color": "#f26610",
|
||||||
"background_color": "#f26610",
|
"background_color": "#f26610",
|
||||||
"lang": "en",
|
"lang": "en",
|
||||||
|
|||||||
5575
website/script.js
5575
website/script.js
File diff suppressed because it is too large
Load Diff
6
website/types/self.d.ts
vendored
6
website/types/self.d.ts
vendored
@@ -136,7 +136,7 @@ interface OHLC {
|
|||||||
|
|
||||||
interface ResourceDataset<
|
interface ResourceDataset<
|
||||||
S extends Scale,
|
S extends Scale,
|
||||||
Type extends OHLC | number = number,
|
Type extends OHLC | number = number
|
||||||
> {
|
> {
|
||||||
scale: S;
|
scale: S;
|
||||||
url: string;
|
url: string;
|
||||||
@@ -154,7 +154,7 @@ interface FetchedResult<
|
|||||||
SingleValueData | ValuedCandlestickData
|
SingleValueData | ValuedCandlestickData
|
||||||
> = DatasetValue<
|
> = DatasetValue<
|
||||||
Type extends number ? SingleValueData : ValuedCandlestickData
|
Type extends number ? SingleValueData : ValuedCandlestickData
|
||||||
>,
|
>
|
||||||
> {
|
> {
|
||||||
at: Date | null;
|
at: Date | null;
|
||||||
json: Signal<FetchedJSON<S, Type> | null>;
|
json: Signal<FetchedJSON<S, Type> | null>;
|
||||||
@@ -184,7 +184,7 @@ interface FetchedChunk {
|
|||||||
|
|
||||||
type FetchedDataset<
|
type FetchedDataset<
|
||||||
S extends Scale,
|
S extends Scale,
|
||||||
Type extends number | OHLC,
|
Type extends number | OHLC
|
||||||
> = S extends "date" ? FetchedDateDataset<Type> : FetchedHeightDataset<Type>;
|
> = S extends "date" ? FetchedDateDataset<Type> : FetchedHeightDataset<Type>;
|
||||||
|
|
||||||
interface Versioned {
|
interface Versioned {
|
||||||
|
|||||||
Reference in New Issue
Block a user