forked from stevermeister/dutch-tax-income-calculator-old
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
angular 1.5, component structure, removed bower
- Loading branch information
1 parent
448a1de
commit 031bfe3
Showing
21 changed files
with
231 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.idea/ | ||
dist/ | ||
node_modules | ||
bower_components | ||
dutch-tax-income-calculator.iml | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import './styles.css'; | ||
import calcComponent from './calc/calc.component'; | ||
import toolbarComponent from './toolbar/toolbar.component'; | ||
import rulingComponent from './ruling/ruling.component'; | ||
|
||
angular.module('dit-calculator', ['ngMaterial'], function($locationProvider){ | ||
$locationProvider.html5Mode(true); | ||
}) | ||
.component('calc', calcComponent) | ||
.component('toolbar', toolbarComponent) | ||
.component('ruling', rulingComponent); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<md-content layout-lg="column" layout-gt-lg="column" layout-align="center"> | ||
<md-input-container class="md-display-1" layout-margin> | ||
<label>Annual gross income</label> | ||
<input type="number" ng-model="$ctrl.salary.grossYear" autofocus> | ||
</md-input-container> | ||
|
||
<div layout-lg="row" layout-gt-lg="row" layout-margin> | ||
<div flex="40"> | ||
<div layout="row" layout-margin | ||
ng-repeat-start="(salaryOptionKey, salaryOptionTitle) in $ctrl.salaryOutputOptions"> | ||
<div flex> | ||
{{::salaryOptionTitle}} | ||
</div> | ||
<div flex class="report-value"> | ||
{{$ctrl.salary[salaryOptionKey] | number:0}} | ||
</div> | ||
</div> | ||
<md-divider ng-if="!$last" ng-repeat-end></md-divider> | ||
</div> | ||
<div flex> | ||
<md-content class="md-body-1"> | ||
<div layout="column" layout-margin> | ||
<md-radio-group ng-model="$ctrl.year"> | ||
<md-radio-button value="2015">for 2015</md-radio-button> | ||
<md-radio-button value="2016">for 2016</md-radio-button> | ||
</md-radio-group> | ||
</div> | ||
</md-content> | ||
<md-content class="md-body-1"> | ||
<div layout="column" layout-margin> | ||
<!--<md-checkbox ng-model="$ctrl.salary.allowance" aria-label="I have 8% holiday allowance">I have 8% holiday allowance</md-checkbox>--> | ||
<md-checkbox ng-model="$ctrl.salary.allowance" aria-label="Holiday allowance is included in gross">Holiday | ||
allowance included | ||
</md-checkbox> | ||
<md-checkbox ng-model="$ctrl.salary.age" aria-label="I'm 65+ years old">I'm 65+ years old</md-checkbox> | ||
<md-checkbox ng-model="$ctrl.salary.socialSecurity" aria-label="Social security in the Netherlands">Social | ||
security | ||
</md-checkbox> | ||
<md-checkbox ng-model="$ctrl.salary.ruling" aria-label="I have 30% ruling">I have 30% ruling</md-checkbox> | ||
</div> | ||
</md-content> | ||
</div> | ||
</div> | ||
</md-content> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<!DOCTYPE html> | ||
<html ng-app="dit-calculator"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Dutch Income Tax Calculator</title> | ||
<meta name="description" content=""> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/0.10.1/angular-material.min.css"> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=RobotoDraft:300,400,500,700,400italic"> | ||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | ||
<link rel="shortcut icon" href="favicon.png" type="image/x-icon" /> | ||
<meta property="og:title" content="Dutch Income Tax Calculator" /> | ||
<base href="/"> | ||
</head> | ||
<body> | ||
<!--[if lt IE 9]> | ||
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade | ||
your browser</a> to improve your experience.</p> | ||
<![endif]--> | ||
|
||
<div class="container"> | ||
<md-container class="center-block"> | ||
<toolbar></toolbar> | ||
<calc></calc> | ||
</md-container> | ||
<ruling></ruling> | ||
</div> | ||
|
||
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js"></script> | ||
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular-animate.min.js"></script> | ||
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular-aria.min.js"></script> | ||
<script src="https://ajax.googleapis.com/ajax/libs/angular_material/0.10.1/angular-material.min.js"></script> | ||
<!-- Google Analytics --> | ||
<script> | ||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | ||
|
||
ga('create', 'UA-12112718-8', 'auto'); | ||
ga('send', 'pageview'); | ||
|
||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import template from './ruling.html'; | ||
|
||
let rulingComponent = { | ||
template | ||
}; | ||
|
||
export default rulingComponent; |
Oops, something went wrong.