Skip to content
Snippets Groups Projects
Commit 0818c2eb authored by Martin Hamerník's avatar Martin Hamerník
Browse files

Merge branch '12-refactor-to-use-sentinel-common-instead-of-kypo-common' into 'master'

Resolve "Refactor to use @sentinel-common instead of kypo-common"

Closes #12

See merge request kypo-crp/frontend-angular/models/kypo-sandbox-model!11
parents 7b48a395 1516547a
No related branches found
No related tags found
No related merge requests found
......@@ -9092,21 +9092,6 @@
"integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==",
"dev": true
},
"kypo-common": {
"version": "10.0.0",
"resolved": "https://nexus.csirt.muni.cz/repository/kypo-npm-group/kypo-common/-/kypo-common-10.0.0.tgz",
"integrity": "sha512-IpFj3GBFVgMaXZ2vvToT0xouaKwDKgkR2clL9NWralaU5QkarZtEy5N3GeMbRR5WUFvXF8Af0ycYI/TAM45/Pg==",
"requires": {
"tslib": "^2.0.0"
},
"dependencies": {
"tslib": {
"version": "2.0.0",
"resolved": "https://nexus.csirt.muni.cz/repository/kypo-npm-group/tslib/-/tslib-2.0.0.tgz",
"integrity": "sha512-lTqkx847PI7xEDYJntxZH89L2/aXInsyF2luSafe/+0fHOMjlBNXdH6th7f70qxLDhul7KZK0zC8V5ZIyHl0/g=="
}
}
},
"latest-version": {
"version": "5.1.0",
"resolved": "http://kypo-storage.ics.muni.cz:8081/repository/npm-group/latest-version/-/latest-version-5.1.0.tgz",
......
......@@ -3,8 +3,7 @@
"version": "10.1.0",
"peerDependencies": {
"@angular/common": "^10.0.0",
"@angular/core": "^10.0.0",
"kypo-common": "~10.0.0"
"@angular/core": "^10.0.0"
},
"dependencies": {
"tslib": "^2.0.0"
......
import { KypoDateTimeFormatPipe } from 'kypo-common';
/**
* Class representing pool request
*/
export abstract class Request {
id: number;
allocationUnitId: number;
createdAtFormatted: string;
createdAt: Date;
readonly type: string;
private _createdAt: Date;
protected constructor(type: string) {
this.type = type;
}
set createdAt(value: Date) {
this._createdAt = value;
const dateTimeFormatter = new KypoDateTimeFormatPipe('en-EN');
this.createdAtFormatted = dateTimeFormatter.transform(value);
}
}
import { KypoPaginatedResource } from 'kypo-common';
import { RequestStageType } from '../../enums/request-stage-type.enum';
import { AllocationRequestStage } from './allocation-request-stage';
......
import { KypoPaginatedResource } from 'kypo-common';
import { RequestStageType } from '../../enums/request-stage-type.enum';
import { AllocationRequestStage } from './allocation-request-stage';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment