Skip to content
Snippets Groups Projects
Commit 8e5ab2e1 authored by AndiMajore's avatar AndiMajore
Browse files

updated to simpler versioned drugst.one urls

parent eb05486d
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@
<app-pages
#pages
[version]="version" [theme]="theme" [host]="host" [backendPath]="backendPath" [cdn]="cdn"
[currentTabId]="currentTabId" [cdnVersion]="cdnVersion"
[currentTabId]="currentTabId"
(tabChangeEvent)="headerEl.tabChange($event)"
(tabIdChangeEvent)="switchTab($event)"
></app-pages>
......
......@@ -11,7 +11,6 @@ import { ThemeService } from 'src/app/services/theme.service';
})
export class AppComponent {
public version = "1.1.14"
public cdnVersion = "prod/v1.1.14"
public host = "https://drugst.one"
public cdn = "https://cdn.drugst.one"
public backendPath = "https://api.drugst.one/"
......
......@@ -3,6 +3,6 @@
(tabChangeEvent)="switchTab($event); tabChange($event)"></app-motivation>
<app-standalone #standalone *ngIf="currentTabId==2" [api]="backendPath" [hidden]="currentTabId!==2"></app-standalone>
<app-playground #playground *ngIf="currentTabId===3" [theme]="theme" [hidden]="currentTabId!==3" [api]="backendPath"></app-playground>
<app-doc [hidden]="currentTabId!==4" [api]="backendPath" [version]="cdnVersion" [cdn]="cdn"
<app-doc [hidden]="currentTabId!==4" [api]="backendPath" [version]="'v'+version" [cdn]="cdn"
[host]="host"></app-doc>
......@@ -10,7 +10,6 @@ export class PagesComponent implements OnInit {
@ViewChild("playground", {static: false}) playgroundEl: ElementRef | undefined;
@ViewChild("standalone", {static: false}) standaloneEl: ElementRef | undefined;
@Input() public version : string = ""
@Input() public cdnVersion : string = ""
@Input() public cdn : string = ""
@Input() public backendPath :string = ""
@Input() public host: string=""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment