first commit

This commit is contained in:
José Conde 2023-11-30 19:25:50 +01:00
parent 61c4bd5738
commit 6cc2d320a5
9 changed files with 26609 additions and 0 deletions

1
.gitignore vendored
View File

@ -130,3 +130,4 @@ dist
.yarn/install-state.gz
.pnp.*
.history

22
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,22 @@
{
"workbench.colorCustomizations": {
"activityBar.activeBackground": "#3ed6c6",
"activityBar.background": "#3ed6c6",
"activityBar.foreground": "#15202b",
"activityBar.inactiveForeground": "#15202b99",
"activityBarBadge.background": "#c947d8",
"activityBarBadge.foreground": "#e7e7e7",
"commandCenter.border": "#15202b99",
"sash.hoverBorder": "#3ed6c6",
"statusBar.background": "#27baaa",
"statusBar.foreground": "#15202b",
"statusBarItem.hoverBackground": "#1e9083",
"statusBarItem.remoteBackground": "#27baaa",
"statusBarItem.remoteForeground": "#15202b",
"titleBar.activeBackground": "#27baaa",
"titleBar.activeForeground": "#15202b",
"titleBar.inactiveBackground": "#27baaa99",
"titleBar.inactiveForeground": "#15202b99"
},
"peacock.color": "#27baaa"
}

3469
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

19
package.json Normal file
View File

@ -0,0 +1,19 @@
{
"name": "iv-d3js",
"version": "1.0.0",
"description": "",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server.js"
},
"repository": {
"type": "git",
"url": "https://gitea.xintanalabs.net/arhuako/iv-d3js.git"
},
"author": "",
"license": "ISC",
"dependencies": {
"live-server": "^1.2.2"
}
}

View File

@ -0,0 +1,19 @@
body {
font-family: Helvetica, Arial, sans-serif
}
h1 {
background-color: #2a5599;
color: #FFFFFF;
padding: 5px;
}
.mainView {
display: flex;
flex-grow: 1;
}
.mainView div {
border: solid 1px #000000;
width: 100%;
}

23042
public/assets/data/routes.csv Normal file

File diff suppressed because it is too large Load Diff

View File

22
public/index.html Normal file
View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Airlines Routes</title>
<link rel="stylesheet" href="./assets/css/styles.css" />
</head>
<body>
<h1>Airlines Routes</h1>
<div class="mainView">
<div>
<h2>Airlines</h2>
<svg id="AirlinesChart"></svg>
</div>
<div>
<h2>Airports</h2>
<svg id="Map"></svg>
</div>
</div>
</body>
</html>

15
server.js Normal file
View File

@ -0,0 +1,15 @@
var liveServer = require("live-server");
var params = {
port: 8181, // Set the server port. Defaults to 8080.
host: "0.0.0.0", // Set the address to bind to. Defaults to 0.0.0.0 or process.env.IP.
root: "./public", // Set root directory that's being served. Defaults to cwd.
open: true, // When false, it won't load your browser by default.
ignore: 'scss,my/templates', // comma-separated string for paths to ignore
file: "index.html", // When set, serve this file (server root relative) for every 404 (useful for single-page applications)
wait: 1000, // Waits for all changes, before reloading. Defaults to 0 sec.
// mount: [['/components', './node_modules']], // Mount a directory to a route.
logLevel: 2, // 0 = errors only, 1 = some, 2 = lots
middleware: [function(req, res, next) { next(); }] // Takes an array of Connect-compatible middleware that are injected into the server middleware stack
};
liveServer.start(params);