Oviya commited on
Commit
4fd4bb8
·
1 Parent(s): 8b2a835

Static Space: auto-build Angular 20 (serve dist/Pytrade/browser/index.html)

Browse files
Files changed (6) hide show
  1. 404.html +0 -10
  2. README.md +66 -4
  3. index.html +0 -10
  4. package-lock.json +117 -17
  5. package.json +5 -2
  6. src/app/analysispage/analysispage.html +1 -2
404.html DELETED
@@ -1,10 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <title>Pytrade</title>
6
- <meta http-equiv="refresh" content="0; url=./dist/Pytrade/browser/" />
7
- <script>window.location.replace('./dist/Pytrade/browser/');</script>
8
- </head>
9
- <body></body>
10
- </html>
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -1,10 +1,72 @@
1
  ---
2
- title: Pytrade
3
- emoji: 🔥
4
- colorFrom: blue
5
- colorTo: gray
6
  sdk: static
 
 
 
7
  pinned: false
8
  ---
9
 
10
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: Pytrade (Angular 20)
 
 
 
3
  sdk: static
4
+ app_build_command: npm ci && npm run build
5
+ app_file: dist/Pytrade/browser/index.html
6
+ emoji: 🅰️
7
  pinned: false
8
  ---
9
 
10
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
11
+
12
+
13
+
14
+ # Pytrade
15
+
16
+ This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.2.0.
17
+
18
+ ## Development server
19
+
20
+ To start a local development server, run:
21
+
22
+ ```bash
23
+ ng serve
24
+ ```
25
+
26
+ Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files.
27
+
28
+ ## Code scaffolding
29
+
30
+ Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
31
+
32
+ ```bash
33
+ ng generate component component-name
34
+ ```
35
+
36
+ For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
37
+
38
+ ```bash
39
+ ng generate --help
40
+ ```
41
+
42
+ ## Building
43
+
44
+ To build the project run:
45
+
46
+ ```bash
47
+ ng build
48
+ ```
49
+
50
+ This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed.
51
+
52
+ ## Running unit tests
53
+
54
+ To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
55
+
56
+ ```bash
57
+ ng test
58
+ ```
59
+
60
+ ## Running end-to-end tests
61
+
62
+ For end-to-end (e2e) testing, run:
63
+
64
+ ```bash
65
+ ng e2e
66
+ ```
67
+
68
+ Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
69
+
70
+ ## Additional Resources
71
+
72
+ For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
index.html DELETED
@@ -1,10 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <title>Pytrade</title>
6
- <meta http-equiv="refresh" content="0; url=./dist/Pytrade/browser/" />
7
- <script>window.location.replace('./dist/Pytrade/browser/');</script>
8
- </head>
9
- <body></body>
10
- </html>
 
 
 
 
 
 
 
 
 
 
 
package-lock.json CHANGED
@@ -26,7 +26,7 @@
26
  },
27
  "devDependencies": {
28
  "@angular/build": "^20.2.0",
29
- "@angular/cli": "^20.2.0",
30
  "@angular/compiler-cli": "^20.2.0",
31
  "@types/jasmine": "~5.1.0",
32
  "jasmine-core": "~5.9.0",
@@ -305,13 +305,13 @@
305
  }
306
  },
307
  "node_modules/@angular-devkit/schematics": {
308
- "version": "20.2.1",
309
- "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-20.2.1.tgz",
310
- "integrity": "sha512-hxQQhlOKLjj4+fJrvMFWnVA6vwewwtkEGneolY+aMb8dUAEE7sw1FLo02pPdIBIXLWIYIcGVRI0E5iCTcLq9zw==",
311
  "dev": true,
312
  "license": "MIT",
313
  "dependencies": {
314
- "@angular-devkit/core": "20.2.1",
315
  "jsonc-parser": "3.3.1",
316
  "magic-string": "0.30.17",
317
  "ora": "8.2.0",
@@ -323,6 +323,34 @@
323
  "yarn": ">= 1.13.0"
324
  }
325
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
326
  "node_modules/@angular/build": {
327
  "version": "20.2.1",
328
  "resolved": "https://registry.npmjs.org/@angular/build/-/build-20.2.1.tgz",
@@ -438,19 +466,19 @@
438
  }
439
  },
440
  "node_modules/@angular/cli": {
441
- "version": "20.2.1",
442
- "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-20.2.1.tgz",
443
- "integrity": "sha512-uKuq4+7EcEer7ixe6cYAAe8/WOvDIbLd/F7ZCMCb5dCGkGRoQKgodo6sorwZUpGvyuXO+mCYarTXzrBrY2b/Cg==",
444
  "dev": true,
445
  "license": "MIT",
446
  "dependencies": {
447
- "@angular-devkit/architect": "0.2002.1",
448
- "@angular-devkit/core": "20.2.1",
449
- "@angular-devkit/schematics": "20.2.1",
450
  "@inquirer/prompts": "7.8.2",
451
  "@listr2/prompt-adapter-inquirer": "3.0.1",
452
  "@modelcontextprotocol/sdk": "1.17.3",
453
- "@schematics/angular": "20.2.1",
454
  "@yarnpkg/lockfile": "1.1.0",
455
  "algoliasearch": "5.35.0",
456
  "ini": "5.0.0",
@@ -472,6 +500,50 @@
472
  "yarn": ">= 1.13.0"
473
  }
474
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
475
  "node_modules/@angular/common": {
476
  "version": "20.2.3",
477
  "resolved": "https://registry.npmjs.org/@angular/common/-/common-20.2.3.tgz",
@@ -4180,14 +4252,14 @@
4180
  ]
4181
  },
4182
  "node_modules/@schematics/angular": {
4183
- "version": "20.2.1",
4184
- "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-20.2.1.tgz",
4185
- "integrity": "sha512-7Vx11KWooiqxP206JEVgz3cp0rRv31PYnocNoPM6UqLhGtlvL9GdgaZHzDhGFEm0hv6DUFrbTGIzB89gXc54Xg==",
4186
  "dev": true,
4187
  "license": "MIT",
4188
  "dependencies": {
4189
- "@angular-devkit/core": "20.2.1",
4190
- "@angular-devkit/schematics": "20.2.1",
4191
  "jsonc-parser": "3.3.1"
4192
  },
4193
  "engines": {
@@ -4196,6 +4268,34 @@
4196
  "yarn": ">= 1.13.0"
4197
  }
4198
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4199
  "node_modules/@sigstore/bundle": {
4200
  "version": "3.1.0",
4201
  "resolved": "https://registry.npmjs.org/@sigstore/bundle/-/bundle-3.1.0.tgz",
 
26
  },
27
  "devDependencies": {
28
  "@angular/build": "^20.2.0",
29
+ "@angular/cli": "^20.2.2",
30
  "@angular/compiler-cli": "^20.2.0",
31
  "@types/jasmine": "~5.1.0",
32
  "jasmine-core": "~5.9.0",
 
305
  }
306
  },
307
  "node_modules/@angular-devkit/schematics": {
308
+ "version": "20.2.2",
309
+ "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-20.2.2.tgz",
310
+ "integrity": "sha512-rtL7slZjzdChQoiADKZv/Ra8D3C3tIw/WcVxd2stiLHdK/Oaf9ejx5m/X9o0QMEbNsy2Fy/RKodNqmz1CjzpCg==",
311
  "dev": true,
312
  "license": "MIT",
313
  "dependencies": {
314
+ "@angular-devkit/core": "20.2.2",
315
  "jsonc-parser": "3.3.1",
316
  "magic-string": "0.30.17",
317
  "ora": "8.2.0",
 
323
  "yarn": ">= 1.13.0"
324
  }
325
  },
326
+ "node_modules/@angular-devkit/schematics/node_modules/@angular-devkit/core": {
327
+ "version": "20.2.2",
328
+ "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.2.2.tgz",
329
+ "integrity": "sha512-SC+f5isSWJBpEgR+R7jP++2Z14WExNWLAdKpIickLWjuL8FlGkj+kaF3dWXhh0KcXo+r6kKb4pWUptSaqer5gA==",
330
+ "dev": true,
331
+ "license": "MIT",
332
+ "dependencies": {
333
+ "ajv": "8.17.1",
334
+ "ajv-formats": "3.0.1",
335
+ "jsonc-parser": "3.3.1",
336
+ "picomatch": "4.0.3",
337
+ "rxjs": "7.8.2",
338
+ "source-map": "0.7.6"
339
+ },
340
+ "engines": {
341
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
342
+ "npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
343
+ "yarn": ">= 1.13.0"
344
+ },
345
+ "peerDependencies": {
346
+ "chokidar": "^4.0.0"
347
+ },
348
+ "peerDependenciesMeta": {
349
+ "chokidar": {
350
+ "optional": true
351
+ }
352
+ }
353
+ },
354
  "node_modules/@angular/build": {
355
  "version": "20.2.1",
356
  "resolved": "https://registry.npmjs.org/@angular/build/-/build-20.2.1.tgz",
 
466
  }
467
  },
468
  "node_modules/@angular/cli": {
469
+ "version": "20.2.2",
470
+ "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-20.2.2.tgz",
471
+ "integrity": "sha512-0K8cmuHzRTpPzy/w0+S5o3s0JPV++9/s2JhK4aw/+OnQRpUbodoqjm1ur5k5DUBQfIHi7aM73ZIW3G43lv4F0g==",
472
  "dev": true,
473
  "license": "MIT",
474
  "dependencies": {
475
+ "@angular-devkit/architect": "0.2002.2",
476
+ "@angular-devkit/core": "20.2.2",
477
+ "@angular-devkit/schematics": "20.2.2",
478
  "@inquirer/prompts": "7.8.2",
479
  "@listr2/prompt-adapter-inquirer": "3.0.1",
480
  "@modelcontextprotocol/sdk": "1.17.3",
481
+ "@schematics/angular": "20.2.2",
482
  "@yarnpkg/lockfile": "1.1.0",
483
  "algoliasearch": "5.35.0",
484
  "ini": "5.0.0",
 
500
  "yarn": ">= 1.13.0"
501
  }
502
  },
503
+ "node_modules/@angular/cli/node_modules/@angular-devkit/architect": {
504
+ "version": "0.2002.2",
505
+ "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.2002.2.tgz",
506
+ "integrity": "sha512-amppp/UqKyj+B8hYFU16j4t6SVN+SS0AEnHivDjKy41NNJgXv+5Sm2Q2jaMHviCT3rclyT0wqwNAi0RDjyLx5Q==",
507
+ "dev": true,
508
+ "license": "MIT",
509
+ "dependencies": {
510
+ "@angular-devkit/core": "20.2.2",
511
+ "rxjs": "7.8.2"
512
+ },
513
+ "engines": {
514
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
515
+ "npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
516
+ "yarn": ">= 1.13.0"
517
+ }
518
+ },
519
+ "node_modules/@angular/cli/node_modules/@angular-devkit/core": {
520
+ "version": "20.2.2",
521
+ "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.2.2.tgz",
522
+ "integrity": "sha512-SC+f5isSWJBpEgR+R7jP++2Z14WExNWLAdKpIickLWjuL8FlGkj+kaF3dWXhh0KcXo+r6kKb4pWUptSaqer5gA==",
523
+ "dev": true,
524
+ "license": "MIT",
525
+ "dependencies": {
526
+ "ajv": "8.17.1",
527
+ "ajv-formats": "3.0.1",
528
+ "jsonc-parser": "3.3.1",
529
+ "picomatch": "4.0.3",
530
+ "rxjs": "7.8.2",
531
+ "source-map": "0.7.6"
532
+ },
533
+ "engines": {
534
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
535
+ "npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
536
+ "yarn": ">= 1.13.0"
537
+ },
538
+ "peerDependencies": {
539
+ "chokidar": "^4.0.0"
540
+ },
541
+ "peerDependenciesMeta": {
542
+ "chokidar": {
543
+ "optional": true
544
+ }
545
+ }
546
+ },
547
  "node_modules/@angular/common": {
548
  "version": "20.2.3",
549
  "resolved": "https://registry.npmjs.org/@angular/common/-/common-20.2.3.tgz",
 
4252
  ]
4253
  },
4254
  "node_modules/@schematics/angular": {
4255
+ "version": "20.2.2",
4256
+ "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-20.2.2.tgz",
4257
+ "integrity": "sha512-VzJsEIiBmHzJAOVaKHn1CwTuOqvI1GwZuneUk/tmyYKkKdWEgxnoNBvz1ql6eHstkLz3S9yt6aUuAgjQC+J2Xw==",
4258
  "dev": true,
4259
  "license": "MIT",
4260
  "dependencies": {
4261
+ "@angular-devkit/core": "20.2.2",
4262
+ "@angular-devkit/schematics": "20.2.2",
4263
  "jsonc-parser": "3.3.1"
4264
  },
4265
  "engines": {
 
4268
  "yarn": ">= 1.13.0"
4269
  }
4270
  },
4271
+ "node_modules/@schematics/angular/node_modules/@angular-devkit/core": {
4272
+ "version": "20.2.2",
4273
+ "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.2.2.tgz",
4274
+ "integrity": "sha512-SC+f5isSWJBpEgR+R7jP++2Z14WExNWLAdKpIickLWjuL8FlGkj+kaF3dWXhh0KcXo+r6kKb4pWUptSaqer5gA==",
4275
+ "dev": true,
4276
+ "license": "MIT",
4277
+ "dependencies": {
4278
+ "ajv": "8.17.1",
4279
+ "ajv-formats": "3.0.1",
4280
+ "jsonc-parser": "3.3.1",
4281
+ "picomatch": "4.0.3",
4282
+ "rxjs": "7.8.2",
4283
+ "source-map": "0.7.6"
4284
+ },
4285
+ "engines": {
4286
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
4287
+ "npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
4288
+ "yarn": ">= 1.13.0"
4289
+ },
4290
+ "peerDependencies": {
4291
+ "chokidar": "^4.0.0"
4292
+ },
4293
+ "peerDependenciesMeta": {
4294
+ "chokidar": {
4295
+ "optional": true
4296
+ }
4297
+ }
4298
+ },
4299
  "node_modules/@sigstore/bundle": {
4300
  "version": "3.1.0",
4301
  "resolved": "https://registry.npmjs.org/@sigstore/bundle/-/bundle-3.1.0.tgz",
package.json CHANGED
@@ -4,7 +4,7 @@
4
  "scripts": {
5
  "ng": "ng",
6
  "start": "ng serve --host=127.0.0.1",
7
- "build": "ng build",
8
  "watch": "ng build --watch --configuration development",
9
  "test": "ng test"
10
  },
@@ -40,7 +40,7 @@
40
  },
41
  "devDependencies": {
42
  "@angular/build": "^20.2.0",
43
- "@angular/cli": "^20.2.0",
44
  "@angular/compiler-cli": "^20.2.0",
45
  "@types/jasmine": "~5.1.0",
46
  "jasmine-core": "~5.9.0",
@@ -50,5 +50,8 @@
50
  "karma-jasmine": "~5.1.0",
51
  "karma-jasmine-html-reporter": "~2.1.0",
52
  "typescript": "~5.9.2"
 
 
 
53
  }
54
  }
 
4
  "scripts": {
5
  "ng": "ng",
6
  "start": "ng serve --host=127.0.0.1",
7
+ "build": "ng build --configuration production --base-href ./",
8
  "watch": "ng build --watch --configuration development",
9
  "test": "ng test"
10
  },
 
40
  },
41
  "devDependencies": {
42
  "@angular/build": "^20.2.0",
43
+ "@angular/cli": "^20.2.2",
44
  "@angular/compiler-cli": "^20.2.0",
45
  "@types/jasmine": "~5.1.0",
46
  "jasmine-core": "~5.9.0",
 
50
  "karma-jasmine": "~5.1.0",
51
  "karma-jasmine-html-reporter": "~2.1.0",
52
  "typescript": "~5.9.2"
53
+ },
54
+ "engines": {
55
+ "node": ">=20.11.0"
56
  }
57
  }
src/app/analysispage/analysispage.html CHANGED
@@ -1,7 +1,6 @@
1
  <div class="analyse-container">
2
 
3
-
4
- <mat-card>
5
  <h1>Overall Score Board</h1>
6
 
7
  <table>
 
1
  <div class="analyse-container">
2
 
3
+ <mat-card>
 
4
  <h1>Overall Score Board</h1>
5
 
6
  <table>