-
-
Service Limits Checks
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/dashboard/src/app/pages/limits/limits.component.spec.ts b/dashboard/src/app/pages/limits/limits.component.spec.ts
deleted file mode 100644
index b930ed9a4..000000000
--- a/dashboard/src/app/pages/limits/limits.component.spec.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
-
-import { LimitsComponent } from './limits.component';
-
-describe('LimitsComponent', () => {
- let component: LimitsComponent;
- let fixture: ComponentFixture
;
-
- beforeEach(waitForAsync(() => {
- TestBed.configureTestingModule({
- declarations: [ LimitsComponent ]
- })
- .compileComponents();
- }));
-
- beforeEach(() => {
- fixture = TestBed.createComponent(LimitsComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/dashboard/src/app/pages/limits/limits.component.ts b/dashboard/src/app/pages/limits/limits.component.ts
deleted file mode 100644
index a1ea1de63..000000000
--- a/dashboard/src/app/pages/limits/limits.component.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-import { Component, OnInit, OnDestroy } from '@angular/core';
-import { StoreService } from '../../services/store.service';
-import { Subscription } from 'rxjs';
-
-@Component({
- selector: 'app-limits',
- templateUrl: './limits.component.html',
- styleUrls: ['./limits.component.css']
-})
-export class LimitsComponent implements OnInit {
- public provider: string;
- public _subscription: Subscription;
-
- ngOnDestroy() {
- this._subscription.unsubscribe();
- }
-
- constructor(private storeService: StoreService) {
- this.provider = this.storeService.getProvider();
- this._subscription = this.storeService.providerChanged.subscribe(provider => {
- this.provider = provider;
- });
- }
-
- ngOnInit() {
- }
-
-}
-
diff --git a/dashboard/src/app/pages/limits/ovh/ovh.component.css b/dashboard/src/app/pages/limits/ovh/ovh.component.css
deleted file mode 100644
index 920418965..000000000
--- a/dashboard/src/app/pages/limits/ovh/ovh.component.css
+++ /dev/null
@@ -1,102 +0,0 @@
-.flag-icon{
- width: 25px;
- margin-right: 10px;
-}
-.gcp-logo {
- width: 40px !important;
- padding-bottom: 10px !important;
-}
-
-.card-warning{
- background: #FBAD4B;
-}
-
-.spinner{
- padding-top: 200px;
-}
-
-.card-success {
- background: #4BC0C0;
-}
-
-.loader {
- color: #000000;
- font-size: 90px;
- text-indent: -9999em;
- overflow: hidden;
- width: 1em;
- height: 1em;
- border-radius: 50%;
- margin: 72px auto;
- position: relative;
- -webkit-transform: translateZ(0);
- -ms-transform: translateZ(0);
- transform: translateZ(0);
- -webkit-animation: load6 1.7s infinite ease, round 1.7s infinite ease;
- animation: load6 1.7s infinite ease, round 1.7s infinite ease;
- }
- @-webkit-keyframes load6 {
- 0% {
- box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
- }
- 5%,
- 95% {
- box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
- }
- 10%,
- 59% {
- box-shadow: 0 -0.83em 0 -0.4em, -0.087em -0.825em 0 -0.42em, -0.173em -0.812em 0 -0.44em, -0.256em -0.789em 0 -0.46em, -0.297em -0.775em 0 -0.477em;
- }
- 20% {
- box-shadow: 0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em, -0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em, -0.749em -0.34em 0 -0.477em;
- }
- 38% {
- box-shadow: 0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em, -0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em, -0.82em -0.09em 0 -0.477em;
- }
- 100% {
- box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
- }
- }
- @keyframes load6 {
- 0% {
- box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
- }
- 5%,
- 95% {
- box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
- }
- 10%,
- 59% {
- box-shadow: 0 -0.83em 0 -0.4em, -0.087em -0.825em 0 -0.42em, -0.173em -0.812em 0 -0.44em, -0.256em -0.789em 0 -0.46em, -0.297em -0.775em 0 -0.477em;
- }
- 20% {
- box-shadow: 0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em, -0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em, -0.749em -0.34em 0 -0.477em;
- }
- 38% {
- box-shadow: 0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em, -0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em, -0.82em -0.09em 0 -0.477em;
- }
- 100% {
- box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
- }
- }
- @-webkit-keyframes round {
- 0% {
- -webkit-transform: rotate(0deg);
- transform: rotate(0deg);
- }
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg);
- }
- }
- @keyframes round {
- 0% {
- -webkit-transform: rotate(0deg);
- transform: rotate(0deg);
- }
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg);
- }
- }
-
\ No newline at end of file
diff --git a/dashboard/src/app/pages/limits/ovh/ovh.component.html b/dashboard/src/app/pages/limits/ovh/ovh.component.html
deleted file mode 100644
index fd26c363e..000000000
--- a/dashboard/src/app/pages/limits/ovh/ovh.component.html
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- Region |
- Instances |
- Volumes |
- SSH Keys |
-
-
-
-
-
-
- {{limit.region}}
-
- |
- {{limit.instance.usedInstances}} / {{limit.instance.maxInstances}} |
- {{limit.volume.usedGigabytes}} / {{limit.volume.maxGigabytes}} |
- {{limit.keypair.maxCount}} |
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/dashboard/src/app/pages/limits/ovh/ovh.component.spec.ts b/dashboard/src/app/pages/limits/ovh/ovh.component.spec.ts
deleted file mode 100644
index 3eaa4cfd0..000000000
--- a/dashboard/src/app/pages/limits/ovh/ovh.component.spec.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
-
-import { OvhComponent } from './ovh.component';
-
-describe('OvhComponent', () => {
- let component: OvhComponent;
- let fixture: ComponentFixture;
-
- beforeEach(waitForAsync(() => {
- TestBed.configureTestingModule({
- declarations: [ OvhComponent ]
- })
- .compileComponents();
- }));
-
- beforeEach(() => {
- fixture = TestBed.createComponent(OvhComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/dashboard/src/app/pages/limits/ovh/ovh.component.ts b/dashboard/src/app/pages/limits/ovh/ovh.component.ts
deleted file mode 100644
index 735f61cd1..000000000
--- a/dashboard/src/app/pages/limits/ovh/ovh.component.ts
+++ /dev/null
@@ -1,56 +0,0 @@
-import { Component, OnInit } from '@angular/core';
-import { OvhService } from '../../../services/ovh.service';
-@Component({
- selector: 'ovh-limits',
- templateUrl: './ovh.component.html',
- styleUrls: ['./ovh.component.css']
-})
-export class OvhLimitsComponent implements OnInit {
-
- public limits: Array = new Array();
- public loadingServiceLimits: boolean = true;
-
- constructor(private ovhService: OvhService) {
- this.ovhService.getLimits().subscribe(data => {
- this.limits = data;
- data.forEach(item => {
- item.volume.usedGigabytes = this.bytesToSizeWithUnit(item.volume.usedGigabytes * 1024 * 1024 * 1024);
- item.volume.maxGigabytes = this.bytesToSizeWithUnit(item.volume.maxGigabytes * 1024 * 1024 * 1024);
- });
- this.loadingServiceLimits = false;
- }, err => {
- this.loadingServiceLimits = false;
- this.limits = [];
- })
- }
-
- public getFlagIcon(region) {
- switch (region) {
- case 'SBG5':
- return 'https://cdn.komiser.io/images/flags/france.png';
- case 'BHS5':
- return 'https://cdn.komiser.io/images/flags/canada.png';
- case 'GRA5':
- return 'https://cdn.komiser.io/images/flags/france.png';
- case 'WAW1':
- return 'https://cdn.komiser.io/images/flags/poland.png';
- case 'DE1':
- return 'https://cdn.komiser.io/images/flags/germany.png';
- case 'UK1':
- return 'https://cdn.komiser.io/images/flags/uk.png';
- default:
- return 'https://cdn.komiser.io/images/flags/france.png';
- }
- }
-
- private bytesToSizeWithUnit(bytes) {
- var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
- if (bytes == 0) return '0 Byte';
- var i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)).toString());
- return Math.round(bytes / Math.pow(1024, i)) + ' ' + sizes[i];
- };
-
- ngOnInit() {
- }
-
-}
diff --git a/dashboard/src/environments/environment.ts b/dashboard/src/environments/environment.ts
index 931a57847..e76a9fe06 100644
--- a/dashboard/src/environments/environment.ts
+++ b/dashboard/src/environments/environment.ts
@@ -1,9 +1,4 @@
-// The file contents for the current environment will overwrite these during build.
-// The build system defaults to the dev environment which uses `environment.ts`, but if you do
-// `ng build --env=prod` then `environment.prod.ts` will be used instead.
-// The list of which env maps to which file can be found in `.angular-cli.json`.
-
export const environment = {
production: true,
apiUrl: ''
-};
\ No newline at end of file
+};