Skip to content

Commit

Permalink
add release version to console logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
zcarroll4 committed Jan 19, 2025
1 parent 36da67e commit 0595b6d
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 9 deletions.
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<head>
<meta charset="utf-8">
<title>Tax Estimator Calculator</title>
<base href="docs">
<base href="/tax-calculator/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="styles.ef46db3751d8e999.css"></head>
<link rel="stylesheet" href="/tax-calculator/styles.ef46db3751d8e999.css"></head>
<body>
<app-root></app-root>
<script src="runtime.be747780a686e7cd.js" type="module"></script><script src="polyfills.76d5513bb096a376.js" type="module"></script><script src="main.b7a75b2d26ffed24.js" type="module"></script></body>
<script src="/tax-calculator/runtime.be747780a686e7cd.js" type="module"></script><script src="/tax-calculator/polyfills.76d5513bb096a376.js" type="module"></script><script src="/tax-calculator/main.a4335844abc21d9c.js" type="module"></script></body>
</html>

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "td-calc",
"version": "0.0.0",
"version": "2.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down
8 changes: 7 additions & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
import { Component, OnInit } from '@angular/core';
import { CookieService } from 'ngx-cookie-service';
import version from '../../package.json';

@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})


export class AppComponent implements OnInit {
version: string = version.version;

filing_state: string | undefined;
filing_status: string | undefined;
tax_year: | number | undefined;
Expand Down Expand Up @@ -35,11 +40,12 @@ export class AppComponent implements OnInit {
estimated_employer_fica_contribution: number | undefined;
estimated_total_taxes: number | undefined;
estimated_net_income: number | undefined;

constructor(private cookieService: CookieService) { }


ngOnInit(): void {
console.info("Release: " + version.version)
this.loadFromCookies();
// this.loadFromSession();

Expand Down
5 changes: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
"es2020",
"dom"
],
"useDefineForClassFields": false
"useDefineForClassFields": false,
"resolveJsonModule": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
Expand Down

0 comments on commit 0595b6d

Please sign in to comment.