Skip to content

Commit

Permalink
🐛 Actualizar y arreglar problemas despliegue
Browse files Browse the repository at this point in the history
  • Loading branch information
1cgonza committed Nov 1, 2024
1 parent a0bb5ed commit 1a6f0fe
Show file tree
Hide file tree
Showing 15 changed files with 8,718 additions and 5,839 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: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,11 @@ dist-ssr
*.sln
*.sw?


# 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 .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
datos
www
publico
.astro
1 change: 0 additions & 1 deletion aplicaciones/servidor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"@types/stopword": "^2.0.0",
"dotenv": "^16.3.1",
"natural": "^6.5.0",
"nodemon": "^2.0.22",
"typescript": "^5.1.3"
}
}
9 changes: 9 additions & 0 deletions aplicaciones/sitio/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,13 @@ export default defineConfig({

robotsTxt(),
],
vite: {
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler',
},
},
},
},
});
10 changes: 5 additions & 5 deletions aplicaciones/sitio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/sitemap": "^1.3.3",
"@astrojs/sitemap": "^3.2.1",
"@enflujo/alquimia": "^2.0.0",
"astro": "^2.6.6",
"astro-compress": "^1.1.47",
"astro-critters": "^1.1.38",
"astro-robots-txt": "^0.5.0",
"astro": "^4.16.8",
"astro-compress": "^2.3.5",
"astro-critters": "^2.2.0",
"astro-robots-txt": "^1.0.0",
"autoprefixer": "^10.4.14",
"d3": "^7.8.5",
"dayjs": "^1.11.8",
Expand Down
1 change: 1 addition & 0 deletions aplicaciones/sitio/src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />
4 changes: 2 additions & 2 deletions aplicaciones/sitio/src/modulos/lineaTuits/indicadores.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BaseType, Selection, axisBottom, scaleLinear, scaleTime } from 'd3';
import type { ZoomTransform } from 'd3';
import { axisBottom, scaleLinear, scaleTime } from 'd3';
import type { BaseType, Selection, ZoomTransform } from 'd3';
import { duracion } from '../constantes';

type SeleccionD3 = Selection<SVGGElement, unknown, HTMLElement, any>;
Expand Down
3 changes: 2 additions & 1 deletion aplicaciones/sitio/src/pages/tuits-contextos.astro
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ import Plantilla from '../plantillas/Plantilla.astro';
</script>

<style lang="scss" is:global>
@import '../scss/twitter.scss';
@use '../scss/twitter.scss';
@use '../scss/twitter/constantes' as *;

#contextos {
padding-bottom: 5em;
Expand Down
18 changes: 15 additions & 3 deletions aplicaciones/sitio/src/pages/tuits-por-hora.astro
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ import Plantilla from '../plantillas/Plantilla.astro';
import { fechasIgualesAHora } from '@/utilidades/ayudas';
import { iniciarResumen } from '@/modulos/lineaTuits/resumen';
import { esconderCargador } from '@/modulos/cargador';
import { fechasActuales } from '@/modulos/lineaTuits/cerebro';

const fuente: { datos: TuitsPorHora[]; maximo: number } = { datos: [], maximo: 0 };
const escalaMax = 500;
Expand Down Expand Up @@ -111,15 +112,25 @@ import Plantilla from '../plantillas/Plantilla.astro';
}
});

fechasActuales.subscribe((fechas) => {
if (fechas.inicio && fechas.fin) {
const transformacion = zoomIdentity.translate(ejeX(fechas.inicio), ejeX(fechas.fin));
// lienzo.call(lupa.transform, transformacion);
}

// escalarEjeX(transformacionActual);
pintar(transformacionActual);
});

function escalar({ transform }: D3ZoomEvent<SVGElement, TuitsDatos>) {
escalarEjeX(transform);
pintar(transform);
transformacionActual = transform;

const inicio = ejeX.invert(transform.invertX(0));
const fin = ejeX.invert(transform.invertX(dimsGrafica.ancho));

definirValores(inicio, fin);

transformacionActual = transform;
}

async function inicio() {
Expand Down Expand Up @@ -266,7 +277,8 @@ import Plantilla from '../plantillas/Plantilla.astro';
</script>

<style lang="scss" is:global>
@import '../scss/twitter.scss';
@use '../scss/twitter.scss';
@use '../scss/twitter/constantes' as *;

.encabezado {
display: flex;
Expand Down
6 changes: 3 additions & 3 deletions aplicaciones/sitio/src/scss/twitter.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@import './twitter/constantes';
@import './twitter/normalizar';
@use './twitter/constantes' as *;
@use './twitter/normalizar' as *;

html {
background-color: $negro;
background-color: #22181c;
color: $blanco;
font-family: 'Courier New', 'Lucida Sans Typewriter', 'Lucida Typewriter', monospace;
}
Expand Down
2 changes: 1 addition & 1 deletion aplicaciones/tally/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"fuzzball": "^2.1.2",
"mongodb": "^5.6.0",
"node-emoji": "^2.1.0",
"nodemon": "^2.0.22",
"nodemon": "^3.1.7",
"ts-node": "^10.9.1",
"typescript": "^5.1.3",
"world_countries_lists": "^2.8.1"
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "colev-api",
"packageManager": "[email protected]",
"version": "0.0.1",
"export": "./servidor.js",
"author": "Juan Camilo González Jiménez <[email protected]> (https://enflujo.com)",
Expand All @@ -26,12 +27,12 @@
},
"devDependencies": {
"concurrently": "^8.2.0",
"nodemon": "^3.1.7",
"prettier": "^2.8.8"
},
"nodemonConfig": {
"ignore": [
"datos/*"
]
},
"packageManager": "[email protected]"
}
}
Loading

0 comments on commit 1a6f0fe

Please sign in to comment.