Skip to content

Commit

Permalink
⬆️ Actualizar paquetes
Browse files Browse the repository at this point in the history
  • Loading branch information
1cgonza committed Sep 4, 2024
1 parent 4bdd132 commit 82e5120
Show file tree
Hide file tree
Showing 10 changed files with 2,695 additions and 1,158 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true

[*.{js,json,yml}]
charset = utf-8
indent_style = space
indent_size = 2
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.yarn/** linguist-vendored
/.yarn/releases/* binary
/.yarn/plugins/**/* binary
/.pnp.* binary linguist-generated
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,12 @@ node_modules
estaticos/videos/*
!estaticos/videos/README.md
estaticos/listaVideos.json

# Ver documentación de Yarn moderno (> v2): https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
4 changes: 2 additions & 2 deletions crearListaVideos.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { readdir, writeFileSync } = require('fs');
const { extname } = require('path');
import { readdir, writeFileSync } from 'fs';
import { extname } from 'path';
const formatos = ['mp4', 'webm', 'ogv'];
const videos = [];

Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="es">
<head>
<meta charset="UTF-8" />
Expand Down
24 changes: 13 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"name": "enflujo-emporio-no-benevolente",
"packageManager": "yarn@4.4.1",
"version": "1.0.0",
"main": "src/index.js",
"author": "Juan Camilo González <j.gonzalezj@uniandes.edu.co> (https://juancgonzalez.com)",
"license": "MIT",
"private": true,
"type": "module",
"scripts": {
"build": "yarn crear-lista && vite build",
"dev": "yarn crear-lista && vite",
Expand All @@ -13,18 +15,18 @@
"lint:fix": "prettier --write --list-different ."
},
"devDependencies": {
"autoprefixer": "^10.4.13",
"cssnano": "^6.0.1",
"postcss": "^8.4.21",
"prettier": "^2.8.3",
"sass": "^1.57.1",
"typescript": "^5.0.4",
"vite": "^4.3.9"
"autoprefixer": "^10.4.20",
"cssnano": "^7.0.5",
"postcss": "^8.4.45",
"prettier": "^3.3.3",
"sass": "^1.78.0",
"typescript": "^5.5.4",
"vite": "^5.4.3"
},
"dependencies": {
"@tensorflow-models/coco-ssd": "^2.2.2",
"@tensorflow/tfjs": "^4.2.0",
"@tensorflow/tfjs-backend-cpu": "^4.6.0",
"@tensorflow/tfjs-backend-webgl": "^4.6.0"
"@tensorflow-models/coco-ssd": "^2.2.3",
"@tensorflow/tfjs": "^4.21.0",
"@tensorflow/tfjs-backend-cpu": "^4.21.0",
"@tensorflow/tfjs-backend-webgl": "^4.21.0"
}
}
1 change: 1 addition & 0 deletions src/ambiente.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
4 changes: 2 additions & 2 deletions src/programa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function cargarVideo(nombre: string, formato: string) {
if (!video) return;
video.innerHTML = '';
const fuente = document.createElement('source');
fuente.setAttribute('src', `./videos/${nombre}`);
fuente.setAttribute('src', `${import.meta.env.BASE_URL}/videos/${nombre}`);
fuente.setAttribute('type', `video/${formato}`);
video.appendChild(fuente);
nombreVideo = nombre;
Expand Down Expand Up @@ -127,7 +127,7 @@ function download(nombre: string, datos: string) {
}

async function inicio() {
const videos = await fetch('./listaVideos.json').then((res) => res.json());
const videos = await fetch(`${import.meta.env.BASE_URL}/listaVideos.json`).then((res) => res.json());

imprimirMensaje('Loading model, this can take some time...');
modelo = await load();
Expand Down
Loading

0 comments on commit 82e5120

Please sign in to comment.