Commit a8832ae2 authored by Almouhannad Hafez's avatar Almouhannad Hafez

Initial commit

parents
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
# Data Visualization (DV) Course - HW4
***Data visualizing using D3.js***
***By: Almouhannad Hafez***
## How to run:
```node
npm install
npm run dev
```
\ No newline at end of file
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DV-HW</title>
</head>
<body>
<script type="module" src="/src/ts/main.ts"></script>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
{
"name": "hw",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
},
"devDependencies": {
"typescript": "~5.6.2",
"vite": "^6.0.5"
},
"dependencies": {
"@types/d3": "^7.4.3",
"bootstrap": "^5.3.3",
"d3": "^7.9.0"
}
}
@import '/node_modules/bootstrap/dist/css/bootstrap.min.css';
body {
margin: 0;
padding: 0;
box-sizing: border-box;
overflow-x: hidden;
}
h1 {
color: red;
}
\ No newline at end of file
declare module '*.css';
\ No newline at end of file
import '../css/style.css';
import * as d3 from 'd3';
d3.select("body")
.append("h1")
.text("Hello world");
{
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": [
"ES2020",
"DOM",
"DOM.Iterable"
],
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"isolatedModules": true,
"moduleDetection": "force",
"noEmit": true,
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
},
"include": [
"src/**/*"
]
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment