mirror of
				https://github.com/avatao-content/frontend-tutorial-framework
				synced 2025-11-04 11:12:55 +00:00 
			
		
		
		
	Make URL bar optional
This commit is contained in:
		@@ -21,6 +21,7 @@ export const config = {
 | 
				
			|||||||
      'web-only'
 | 
					      'web-only'
 | 
				
			||||||
      ],
 | 
					      ],
 | 
				
			||||||
    iframeUrl: '/webservice',
 | 
					    iframeUrl: '/webservice',
 | 
				
			||||||
 | 
					    showUrlBar: false,
 | 
				
			||||||
    hideMessages: false
 | 
					    hideMessages: false
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  ide: {
 | 
					  ide: {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -12,7 +12,7 @@
 | 
				
			|||||||
    <div class="tfw-web tao-grid-top-left"
 | 
					    <div class="tfw-web tao-grid-top-left"
 | 
				
			||||||
         [ngClass]="{'deploy-blur': deploying || polling}">
 | 
					         [ngClass]="{'deploy-blur': deploying || polling}">
 | 
				
			||||||
         <app-web *ngIf="!iframeUrl"></app-web>
 | 
					         <app-web *ngIf="!iframeUrl"></app-web>
 | 
				
			||||||
         <div class="urlbar-container">
 | 
					         <div *ngIf="showUrlBar" class="urlbar-container">
 | 
				
			||||||
           <button class="refresh btn btn-sm rounded-circle" (click)="reloadIframe()">↻</button>
 | 
					           <button class="refresh btn btn-sm rounded-circle" (click)="reloadIframe()">↻</button>
 | 
				
			||||||
           <input type="text"
 | 
					           <input type="text"
 | 
				
			||||||
                  #urlbar
 | 
					                  #urlbar
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,6 +29,7 @@ export class DashboardComponent implements OnInit, OnDestroy {
 | 
				
			|||||||
  layout: string = config.dashboard.currentLayout;
 | 
					  layout: string = config.dashboard.currentLayout;
 | 
				
			||||||
  hideMessages: boolean = config.dashboard.hideMessages;
 | 
					  hideMessages: boolean = config.dashboard.hideMessages;
 | 
				
			||||||
  iframeUrl: string = config.dashboard.iframeUrl;
 | 
					  iframeUrl: string = config.dashboard.iframeUrl;
 | 
				
			||||||
 | 
					  showUrlBar = config.dashboard.showUrlBar;
 | 
				
			||||||
  actualIframeUrl: string = this.iframeUrl;
 | 
					  actualIframeUrl: string = this.iframeUrl;
 | 
				
			||||||
  selectedTerminalMenuItem: string = config.dashboard.terminalOrConsole;
 | 
					  selectedTerminalMenuItem: string = config.dashboard.terminalOrConsole;
 | 
				
			||||||
  iframeReloadSubscription: Subscription;
 | 
					  iframeReloadSubscription: Subscription;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user