Skip to content

Commit 9ef7859

Browse files
committed
angular-phonecat
1 parent 233d4e6 commit 9ef7859

File tree

251 files changed

+23137
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

251 files changed

+23137
-6
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
'use strict';
2-
31
angular.
42
module('core').
53
filter('checkmark', function() {
6-
return function(input) {
4+
return function(input: boolean) {
75
return input ? '\u2713' : '\u2718';
86
};
97
});

shopping-cart/app/core/phone/phone.service.js renamed to angular-phonecat/app/core/phone/phone.service.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
'use strict';
21

32
angular.
43
module('core.phone').
54
factory('Phone', ['$resource',
6-
function($resource) {
5+
function($resource: angular.resource.IResourceService) {
76
return $resource('phones/:phoneId.json', {}, {
87
query: {
98
method: 'GET',
File renamed without changes.
File renamed without changes.

angular-phonecat/dist/out-tsc/checkmark.filter.js

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

angular-phonecat/dist/out-tsc/checkmark.filter.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

angular-phonecat/dist/out-tsc/checkmark/checkmark.filter.js

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

angular-phonecat/dist/out-tsc/checkmark/checkmark.filter.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

angular-phonecat/dist/out-tsc/phone/phone.service.js

+14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

angular-phonecat/dist/out-tsc/phone/phone.service.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

shopping-cart/package-lock.json renamed to angular-phonecat/package-lock.json

+90
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

shopping-cart/package.json renamed to angular-phonecat/package.json

+14-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@
1414
"jquery": "3.3.x"
1515
},
1616
"devDependencies": {
17+
"@types/angular": "^1.7.0",
18+
"@types/angular-animate": "^1.5.10",
19+
"@types/angular-aria": "^1.7.1",
20+
"@types/angular-cookies": "^1.4.5",
21+
"@types/angular-material": "^1.1.71",
22+
"@types/angular-mocks": "^1.7.0",
23+
"@types/angular-resource": "^1.5.15",
24+
"@types/angular-route": "^1.7.1",
25+
"@types/angular-sanitize": "^1.7.0",
26+
"@types/jasmine": "^3.5.10",
1727
"angular-mocks": "1.7.x",
1828
"cpx": "^1.5.0",
1929
"http-server": "^0.11.1",
@@ -22,9 +32,12 @@
2232
"karma-chrome-launcher": "^2.2.0",
2333
"karma-firefox-launcher": "^1.1.0",
2434
"karma-jasmine": "^1.1.2",
25-
"protractor": "^5.4.1"
35+
"protractor": "^5.4.1",
36+
"typescript": "^3.8.3"
2637
},
2738
"scripts": {
39+
"tsc": "tsc",
40+
"tsc:w": "tsc -w",
2841
"postinstall": "npm run copy-libs",
2942
"update-deps": "npm update",
3043
"postupdate-deps": "npm run copy-libs",

angular-phonecat/tsconfig.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"compileOnSave": false,
3+
"compilerOptions": {
4+
"baseUrl": "./",
5+
"outDir": "./dist/out-tsc",
6+
"sourceMap": true,
7+
"declaration": false,
8+
"module": "esnext",
9+
"moduleResolution": "node",
10+
"emitDecoratorMetadata": true,
11+
"experimentalDecorators": true,
12+
"importHelpers": true,
13+
"target": "es2015",
14+
"typeRoots": [
15+
"node_modules/@types"
16+
],
17+
"lib": [
18+
"es2018",
19+
"dom"
20+
]
21+
}
22+
}

node_modules/@angular/upgrade/README.md

+8

0 commit comments

Comments
 (0)