mirror of
https://github.com/Unkn0wnCat/data-toolbox-site.git
synced 2025-04-29 18:16:21 +02:00
Cleanup code
This commit is contained in:
parent
bbb06e1bee
commit
8358fd7d27
4 changed files with 13 additions and 14 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "kevins-data-toolbox",
|
||||
"version": "1.0.0",
|
||||
"version": "1.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@loadable/component": "^5.15.0",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
@import "../common";
|
||||
|
||||
@mixin boxMessageColor($baseColor) {
|
||||
$bgColor: adjust-color($baseColor, $lightness: 30);
|
||||
$bgColor: adjust-color($baseColor, $lightness: 30%);
|
||||
background-color: $bgColor;
|
||||
|
||||
.icon > svg {
|
||||
|
@ -10,11 +10,11 @@
|
|||
|
||||
|
||||
@media(prefers-color-scheme: dark) {
|
||||
$bgColor: adjust-color($baseColor, $lightness: -35);
|
||||
$bgColor: adjust-color($baseColor, $lightness: -35%);
|
||||
background-color: $bgColor;
|
||||
|
||||
.icon > svg {
|
||||
color: adjust-color($baseColor, $lightness: 5);
|
||||
color: adjust-color($baseColor, $lightness: 5%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
import { useEffect, useState } from "react";
|
||||
|
||||
|
||||
enum events {
|
||||
updateAvailable
|
||||
}
|
||||
|
||||
type Event = {
|
||||
type: events
|
||||
}
|
||||
|
||||
let eventListeners: Map<events, ((ev: Event) => void)[]> = new Map<events, ((ev: Event) => void)[]>();
|
||||
|
||||
let pendingUpdate = false;
|
||||
|
@ -17,14 +26,6 @@ navigator.serviceWorker.getRegistration().then((reg) => {
|
|||
}
|
||||
})
|
||||
|
||||
enum events {
|
||||
updateAvailable
|
||||
}
|
||||
|
||||
type Event = {
|
||||
type: events
|
||||
}
|
||||
|
||||
const broadcast = new BroadcastChannel('sw-updates');
|
||||
|
||||
broadcast.addEventListener('message', (event) => {
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
import React, { useEffect, useState } from "react";
|
||||
import { AlertOctagon } from "lucide-react";
|
||||
import { useTranslation, Trans } from "react-i18next";
|
||||
import BoxMessage from "../../../components/BoxMessage";
|
||||
import * as styles from "./Base64Tool.module.scss"
|
||||
import { Helmet } from "react-helmet";
|
||||
import {Buffer} from "buffer/"
|
||||
|
|
Loading…
Add table
Reference in a new issue