Resources
-Here are some links to help you get started:
- - - - -Next Steps
-What do you want to do next with your app?
- - - -ng generate component xyz-
ng add @angular/material-
ng add @angular/pwa-
ng add _____-
ng test-
ng build --prod-
diff --git a/angular.json b/angular.json index 122a749..68f36c7 100644 --- a/angular.json +++ b/angular.json @@ -24,11 +24,11 @@ "tsConfig": "tsconfig.app.json", "aot": true, "assets": [ - "src/favicon.ico", + "src/favicon.png", "src/assets" ], "styles": [ - "src/styles.scss" + "src/css/bronze.scss" ], "scripts": [] }, diff --git a/copy.sh b/copy.sh new file mode 100755 index 0000000..25bc283 --- /dev/null +++ b/copy.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +rm -rf /home/martin/dev/Server/jobscraper/server/dist +mkdir -p /home/martin/dev/Server/jobscraper/server/dist +cp -r /home/martin/dev/Angular/angular-jobs/dist/angular-jobs/* /home/martin/dev/Server/jobscraper/server/dist + +npm run release diff --git a/package-lock.json b/package-lock.json index a5f409c..763c8bd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2020,6 +2020,12 @@ "integrity": "sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q==", "dev": true }, + "abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "dev": true + }, "accepts": { "version": "1.3.7", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", @@ -3116,6 +3122,24 @@ "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", "dev": true }, + "cli-color": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/cli-color/-/cli-color-0.2.3.tgz", + "integrity": "sha1-CiXOrlpqFgK+f3fShWPDZwAnTog=", + "dev": true, + "requires": { + "es5-ext": "~0.9.2", + "memoizee": "~0.2.5" + }, + "dependencies": { + "es5-ext": { + "version": "0.9.2", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.9.2.tgz", + "integrity": "sha1-0uMJ0fIjsHGGSINaz1uII6gGH4o=", + "dev": true + } + } + }, "cli-cursor": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", @@ -4717,6 +4741,23 @@ "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", "dev": true }, + "event-emitter": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.2.2.tgz", + "integrity": "sha1-yB43JOtVQHxaDV7jKZQR9wD1QpE=", + "dev": true, + "requires": { + "es5-ext": "~0.9.2" + }, + "dependencies": { + "es5-ext": { + "version": "0.9.2", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.9.2.tgz", + "integrity": "sha1-0uMJ0fIjsHGGSINaz1uII6gGH4o=", + "dev": true + } + } + }, "eventemitter3": { "version": "4.0.7", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", @@ -5067,6 +5108,11 @@ "websocket-driver": ">=0.5.1" } }, + "fecha": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/fecha/-/fecha-4.2.0.tgz", + "integrity": "sha512-aN3pcx/DSmtyoovUudctc8+6Hl4T+hI9GBBHLjA76jdZl7+b1sgh5g4k+u/GL3dTy1/pnYzKp69FpJ0OicE3Wg==" + }, "figgy-pudding": { "version": "3.5.2", "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.2.tgz", @@ -5258,6 +5304,12 @@ "mime-types": "^2.1.12" } }, + "format-json": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/format-json/-/format-json-1.0.3.tgz", + "integrity": "sha1-Jo49PhaXkv9Ju1sDDyLIfKHCzZ8=", + "dev": true + }, "forwarded": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", @@ -7464,6 +7516,31 @@ "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", "dev": true }, + "memoizee": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.2.6.tgz", + "integrity": "sha1-u0WnrQJTAILxYSZx2rNSGc0uB0E=", + "dev": true, + "requires": { + "es5-ext": "~0.9.2", + "event-emitter": "~0.2.2", + "next-tick": "0.1.x" + }, + "dependencies": { + "es5-ext": { + "version": "0.9.2", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.9.2.tgz", + "integrity": "sha1-0uMJ0fIjsHGGSINaz1uII6gGH4o=", + "dev": true + }, + "next-tick": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-0.1.0.tgz", + "integrity": "sha1-GRLM6OubaX1kD7upT48A3sO5Qlk=", + "dev": true + } + } + }, "memory-fs": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.5.0.tgz", @@ -7928,6 +8005,15 @@ "integrity": "sha512-DD5vebQLg8jLCOzwupn954fbIiZht05DAZs0k2u8NStSe6h9XdsuIQL8hSRKYiU8WUQRznmSDrKGbv3ObOmC7g==", "dev": true }, + "nopt": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", + "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=", + "dev": true, + "requires": { + "abbrev": "1" + } + }, "normalize-package-data": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", @@ -8699,6 +8785,12 @@ } } }, + "pad": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/pad/-/pad-0.0.5.tgz", + "integrity": "sha1-IhmrTbKsdFSaZ2FkvEddaMuH3gU=", + "dev": true + }, "pako": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", @@ -8716,6 +8808,12 @@ "readable-stream": "^2.1.5" } }, + "parentpath": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/parentpath/-/parentpath-0.2.0.tgz", + "integrity": "sha1-c9Gj3Aw54hegIb4CW20zkZwF0cY=", + "dev": true + }, "parse-asn1": { "version": "5.1.6", "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.6.tgz", @@ -12649,6 +12747,19 @@ "extsprintf": "^1.2.0" } }, + "vik": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/vik/-/vik-0.4.0.tgz", + "integrity": "sha512-hSJbQC8Yo9nyZxFyxnZT/gxCtYfDUiyCAzJwgcOmCz+YnxG2sgVU6ruYJDHU0uLmucKWAcZA9wix9miEbe7PEw==", + "dev": true, + "requires": { + "cli-color": "^0.2.3", + "format-json": "~1.0.3", + "nopt": "^3.0.1", + "pad": "0.0.5", + "parentpath": "~0.2.0" + } + }, "vm-browserify": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", diff --git a/package.json b/package.json index 6227ca2..7a547a4 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,11 @@ "name": "angular-jobs", "version": "0.0.0", "scripts": { + "release": "vik patch -t", "ng": "ng", "start": "ng serve", "build": "ng build", + "build:dist": "ng build --experimentalRollupPass=true --vendorChunk=false --commonChunk=false --namedChunks=false --optimization=true --prod=true", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" @@ -19,6 +21,7 @@ "@angular/platform-browser": "~10.1.5", "@angular/platform-browser-dynamic": "~10.1.5", "@angular/router": "~10.1.5", + "fecha": "^4.2.0", "rxjs": "~6.6.0", "tslib": "^2.0.0", "zone.js": "~0.10.2" @@ -27,9 +30,9 @@ "@angular-devkit/build-angular": "~0.1001.5", "@angular/cli": "~10.1.5", "@angular/compiler-cli": "~10.1.5", - "@types/node": "^12.11.1", "@types/jasmine": "~3.5.0", "@types/jasminewd2": "~2.0.3", + "@types/node": "^12.11.1", "codelyzer": "^6.0.0", "jasmine-core": "~3.6.0", "jasmine-spec-reporter": "~5.0.0", @@ -41,6 +44,7 @@ "protractor": "~7.0.0", "ts-node": "~8.3.0", "tslint": "~6.1.0", - "typescript": "~4.0.2" + "typescript": "~4.0.2", + "vik": "^0.4.0" } } diff --git a/projectIcon.png b/projectIcon.png new file mode 100644 index 0000000..aa52473 Binary files /dev/null and b/projectIcon.png differ diff --git a/src/app/app.component.html b/src/app/app.component.html index fdb26fb..1b722d1 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,532 +1,7 @@ - - - - - - - - - - - - -
Here are some links to help you get started:
- - - - -What do you want to do next with your app?
- - - -ng generate component xyz-
ng add @angular/material-
ng add @angular/pwa-
ng add _____-
ng test-
ng build --prod-
+ ++
list-item works!
diff --git a/src/app/components/list-item/list-item.component.scss b/src/app/components/list-item/list-item.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/components/list-item/list-item.component.spec.ts b/src/app/components/list-item/list-item.component.spec.ts new file mode 100644 index 0000000..169c9e4 --- /dev/null +++ b/src/app/components/list-item/list-item.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ListItemComponent } from './list-item.component'; + +describe('ListItemComponent', () => { + let component: ListItemComponent; + let fixture: ComponentFixture+ Title + | ++ Site + | ++ Company + | ++ Date + | +
---|---|---|---|
+ {{jobItem.title}} + | +{{jobItem.site}} | +{{ellipsisV2(jobItem.company, 25)}} | +{{timeOrDate(jobItem.timestamp)}} | +