Fix assets
3
.gitignore
vendored
@@ -1,2 +1 @@
|
|||||||
dist/index.html
|
dist/*
|
||||||
dist/*.js
|
|
||||||
|
Before Width: | Height: | Size: 210 KiB After Width: | Height: | Size: 210 KiB |
|
Before Width: | Height: | Size: 378 KiB After Width: | Height: | Size: 378 KiB |
|
Before Width: | Height: | Size: 300 KiB After Width: | Height: | Size: 300 KiB |
252
assets/index.html
Normal file
@@ -0,0 +1,252 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="es">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<link rel="manifest" href="manifest.json" />
|
||||||
|
<title>TeleSec</title>
|
||||||
|
<link rel="icon" type="image/png" href="static/TeleSec.jpg" />
|
||||||
|
<link href="static/euskaditech-css/simple.css" rel="stylesheet" />
|
||||||
|
<link href="static/toastr.min.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<link rel="prefetch" href="icon512_maskable.png" />
|
||||||
|
<link rel="prefetch" href="icon512_rounded.png" />
|
||||||
|
<link rel="prefetch" href="manifest.json" />
|
||||||
|
<link rel="prefetch" href="static/axe.js" />
|
||||||
|
<link rel="prefetch" href="static/doublescroll.js" />
|
||||||
|
<link rel="prefetch" href="static/gun.js" />
|
||||||
|
<link rel="prefetch" href="static/jquery.js" />
|
||||||
|
<link rel="prefetch" href="static/load.js" />
|
||||||
|
<link rel="prefetch" href="static/open.js" />
|
||||||
|
<link rel="prefetch" href="static/path.js" />
|
||||||
|
<link rel="prefetch" href="static/radisk.js" />
|
||||||
|
<link rel="prefetch" href="static/radix.js" />
|
||||||
|
<link rel="prefetch" href="static/rindexed.js" />
|
||||||
|
<link rel="prefetch" href="static/sea.js" />
|
||||||
|
<link rel="prefetch" href="static/showdown.min.js" />
|
||||||
|
<link rel="prefetch" href="static/simplemde.min.css" />
|
||||||
|
<link rel="prefetch" href="static/simplemde.min.js" />
|
||||||
|
<link rel="prefetch" href="static/store.js" />
|
||||||
|
<link rel="prefetch" href="static/synchronous.js" />
|
||||||
|
<link rel="prefetch" href="static/TeleSec.jpg" />
|
||||||
|
<link rel="prefetch" href="static/toastr.min.css" />
|
||||||
|
<link rel="prefetch" href="static/toastr.min.js" />
|
||||||
|
<link rel="prefetch" href="static/webrtc.js" />
|
||||||
|
<link rel="prefetch" href="static/yson.js" />
|
||||||
|
<link rel="prefetch" href="static/ico/add.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/azucar-moreno.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/azucar-blanco.jpg" />
|
||||||
|
<link rel="prefetch" href="static/ico/stevia.jpg" />
|
||||||
|
<link rel="prefetch" href="static/ico/stevia-gotas.webp" />
|
||||||
|
<link rel="prefetch" href="static/ico/sacarina.jpg" />
|
||||||
|
<link rel="prefetch" href="static/ico/arrow_down_blue.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/arrow_left_green.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/arrow_up_red.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/camera2.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/cereales.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/checkbox.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/checkbox_unchecked.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/connect_ok.svg" />
|
||||||
|
<link rel="prefetch" href="static/ico/connect_ko.svg" />
|
||||||
|
<link rel="prefetch" href="static/ico/coffee_bean.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/colacao.jpg" />
|
||||||
|
<link rel="prefetch" href="static/ico/cookies.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/cow.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/delete.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/fire.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/keyboard_key_g.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/keyboard_key_p.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/lollipop.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/milk.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/preferences.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/sizes.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/statusok.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/snowflake.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/tea_bag.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/thermometer2.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/user.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/user_generic.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/water_tap.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/wheat.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Azucar-Az. Blanco.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Azucar-Az. Moreno.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Azucar-Edulcorante.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Azucar-Sacarina.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Azucar-Sin.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Azucar-Stevia (Gotas).png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Azucar-Stevia (Pastillas).png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Background.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Cafeina-Con.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Cafeina-Sin.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Leche-Agua.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Leche-Sin lactosa.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Leche-Vegetal.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Leche-de Vaca.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Selección-CafeSolo.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Selección-CaféLeche.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Selección-ColaCao.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Selección-Infusion.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Selección-Leche.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Tamaño-Grande.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Tamaño-Pequeño.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Temperatura-Caliente.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Temperatura-Frio.png" />
|
||||||
|
<link rel="prefetch" href="static/ico/layered1/Temperatura-Templado.png" />
|
||||||
|
<link rel="prefetch" href="page__supercafe.js" />
|
||||||
|
<link rel="prefetch" href="app_logic.js" />
|
||||||
|
<link rel="prefetch" href="page__index.js" />
|
||||||
|
<link rel="prefetch" href="page__notificaciones.js" />
|
||||||
|
<link rel="prefetch" href="page__materiales.js" />
|
||||||
|
<link rel="prefetch" href="index.html" />
|
||||||
|
<link rel="prefetch" href="page__exportar.js" />
|
||||||
|
<link rel="prefetch" href="gun_init.js" />
|
||||||
|
<link rel="prefetch" href="page__personas.js" />
|
||||||
|
<link rel="prefetch" href="page__importar.js" />
|
||||||
|
<link rel="prefetch" href="config.js" />
|
||||||
|
<link rel="prefetch" href="app_modules.js" />
|
||||||
|
<link rel="prefetch" href="page__comedor.js" />
|
||||||
|
<link rel="prefetch" href="page__resumen_diario.js" />
|
||||||
|
<link rel="prefetch" href="pwa.js" />
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<details class="supermesh-indicator">
|
||||||
|
<summary>
|
||||||
|
<b>SuperMesh</b><br />
|
||||||
|
<br /><small id="peerPID" style="font-family: monospace"
|
||||||
|
>PID ??????????</small
|
||||||
|
>
|
||||||
|
</summary>
|
||||||
|
<ul id="peerList"></ul>
|
||||||
|
<i>Todos los datos están encriptados.</i>
|
||||||
|
</details>
|
||||||
|
<main>
|
||||||
|
<header class="no_print" id="header_hide_query">
|
||||||
|
<details id="LinkAccount_details" open>
|
||||||
|
<summary>
|
||||||
|
<b
|
||||||
|
>TeleSec - <span id="groupId">???</span> - (<span id="peerCount"
|
||||||
|
>?</span
|
||||||
|
>
|
||||||
|
nodos)</b
|
||||||
|
>
|
||||||
|
</summary>
|
||||||
|
<fieldset id="auth_fieldSet">
|
||||||
|
<legend>Credenciales</legend>
|
||||||
|
<br />
|
||||||
|
<label
|
||||||
|
>Codigo de grupo:<br />
|
||||||
|
<input type="text" id="LinkAccount_group"
|
||||||
|
/></label>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<label
|
||||||
|
>Clave secreta:<br />
|
||||||
|
<input type="text" id="LinkAccount_secret"
|
||||||
|
/></label>
|
||||||
|
<br /><br />
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
onclick='LinkAccount(document.getElementById("LinkAccount_group").value, document.getElementById("LinkAccount_secret").value, true)'
|
||||||
|
>
|
||||||
|
Iniciar sesión
|
||||||
|
</button>
|
||||||
|
</fieldset>
|
||||||
|
</details>
|
||||||
|
<!-- <button onclick="displayPost('index')">Ir a la pagina de inicio</button> -->
|
||||||
|
<div id="appendApps">
|
||||||
|
<!--<a class="button nav-supercafe nav-disabled" disabled>SuperCafé</a>
|
||||||
|
<a class="button nav-comedor nav-disabled" disabled>Menú Comedor</a>
|
||||||
|
<a class="button nav-recetas nav-disabled" disabled>Recetas</a>-->
|
||||||
|
</div>
|
||||||
|
<hr />
|
||||||
|
</header>
|
||||||
|
<div id="container"></div>
|
||||||
|
<!-- <br><br><br>
|
||||||
|
<footer>
|
||||||
|
<hr>
|
||||||
|
<details>
|
||||||
|
<summary><b>Apps SuperMesh</b></summary>
|
||||||
|
<button type="button">
|
||||||
|
<img src="static/TeleSec.jpg" alt="" width="100px">
|
||||||
|
<br>TeleSec
|
||||||
|
</button>
|
||||||
|
</details>
|
||||||
|
</footer> -->
|
||||||
|
<img
|
||||||
|
id="connectStatus"
|
||||||
|
style="bottom: 15px; right: 15px; position: fixed; width: 50px"
|
||||||
|
/>
|
||||||
|
</main>
|
||||||
|
<img
|
||||||
|
id="actionStatus"
|
||||||
|
src="static/ico/statusok.png"
|
||||||
|
style="
|
||||||
|
z-index: 2048;
|
||||||
|
margin: 0px;
|
||||||
|
position: fixed;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
display: none;
|
||||||
|
"
|
||||||
|
/>
|
||||||
|
<div id="snackbar">
|
||||||
|
Hay una nueva versión de TeleSec.<br /><a id="reload"
|
||||||
|
>Pulsa aqui para actualizar.</a
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
<script src="static/showdown.min.js"></script>
|
||||||
|
<script src="static/jquery.js"></script>
|
||||||
|
<script src="static/gun.js"></script>
|
||||||
|
<script src="static/webrtc.js"></script>
|
||||||
|
<script src="static/sea.js"></script>
|
||||||
|
<script src="static/yson.js"></script>
|
||||||
|
<script src="static/radix.js"></script>
|
||||||
|
<!-- <script src="static/radisk.js"></script> -->
|
||||||
|
<!-- <script src="static/store.js"></script> -->
|
||||||
|
<script src="static/rindexed.js"></script>
|
||||||
|
<script src="static/path.js"></script>
|
||||||
|
<script src="static/open.js"></script>
|
||||||
|
<script src="static/load.js"></script>
|
||||||
|
<!--<script src="static/synchronous.js"></script>-->
|
||||||
|
<!--<script src="static/axe.js"></script>-->
|
||||||
|
<script src="static/toastr.min.js"></script>
|
||||||
|
<script src="static/doublescroll.js"></script>
|
||||||
|
<!--<script src="static/simplemde.min.js"></script>-->
|
||||||
|
<script async>
|
||||||
|
async function getQuota(cb = () => {}) {
|
||||||
|
if (navigator.storage && navigator.storage.estimate) {
|
||||||
|
const quota = await navigator.storage.estimate();
|
||||||
|
// quota.usage -> Number of bytes used.
|
||||||
|
// quota.quota -> Maximum number of bytes available.
|
||||||
|
const percentageUsed = (quota.usage / quota.quota) * 100;
|
||||||
|
console.log(
|
||||||
|
`You've used ${percentageUsed}% of the available storage.`
|
||||||
|
);
|
||||||
|
const remaining = quota.quota - quota.usage;
|
||||||
|
cb(percentageUsed, remaining);
|
||||||
|
console.log(`You can write up to ${remaining} more bytes.`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
getQuota();
|
||||||
|
</script>
|
||||||
|
<script src="pwa.js"></script>
|
||||||
|
<script src="config.js"></script>
|
||||||
|
<script src="gun_init.js"></script>
|
||||||
|
<script src="app_logic.js"></script>
|
||||||
|
<script src="app_modules.js"></script>
|
||||||
|
<script src="page__index.js"></script>
|
||||||
|
<script src="page__importar.js"></script>
|
||||||
|
<script src="page__exportar.js"></script>
|
||||||
|
<script src="page__materiales.js"></script>
|
||||||
|
<script src="page__resumen_diario.js"></script>
|
||||||
|
<script src="page__personas.js"></script>
|
||||||
|
<script src="page__supercafe.js"></script>
|
||||||
|
<script src="page__notificaciones.js"></script>
|
||||||
|
<script src="page__comedor.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
Before Width: | Height: | Size: 185 KiB After Width: | Height: | Size: 185 KiB |
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.0 KiB |
|
Before Width: | Height: | Size: 210 KiB After Width: | Height: | Size: 210 KiB |
|
Before Width: | Height: | Size: 884 B After Width: | Height: | Size: 884 B |
|
Before Width: | Height: | Size: 653 B After Width: | Height: | Size: 653 B |
|
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.1 KiB |
|
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 246 B After Width: | Height: | Size: 246 B |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 8.1 KiB |
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.1 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
2
build.py
@@ -9,7 +9,7 @@ for asset in ASSETS:
|
|||||||
if asset != "sw.js":
|
if asset != "sw.js":
|
||||||
PREFETCH += f'<link rel="prefetch" href="{asset}" />\n'
|
PREFETCH += f'<link rel="prefetch" href="{asset}" />\n'
|
||||||
|
|
||||||
|
os.system("rm -r dist ; mkdir -p dist ; cp -r assets/* dist/")
|
||||||
def replace_handles(string):
|
def replace_handles(string):
|
||||||
string = string.replace("%%PREFETCH%%", PREFETCH)
|
string = string.replace("%%PREFETCH%%", PREFETCH)
|
||||||
string = string.replace("%%VERSIONCO%%", VERSIONCO)
|
string = string.replace("%%VERSIONCO%%", VERSIONCO)
|
||||||
|
|||||||