FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

refactor: fix examples not recognizing webcontainer stackblitz instances by devversion · Pull Request #23901 · angular/components · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .ts  (7) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ export class SidenavDisableCloseExample {
this.sidenav.close();
}

shouldRun = [/(^|\.)plnkr\.co$/, /(^|\.)stackblitz\.io$/].some(h => h.test(window.location.host));
shouldRun = /(^|.)(stackblitz|webcontainer).(io|com)$/.test(window.location.host);
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ export class SidenavFixedExample {
});
}

shouldRun = [/(^|\.)plnkr\.co$/, /(^|\.)stackblitz\.io$/].some(h => h.test(window.location.host));
shouldRun = /(^|.)(stackblitz|webcontainer).(io|com)$/.test(window.location.host);
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ import {FormControl} from '@angular/forms';
})
export class SidenavModeExample {
mode = new FormControl('over');
shouldRun = [/(^|\.)plnkr\.co$/, /(^|\.)stackblitz\.io$/].some(h => h.test(window.location.host));
shouldRun = /(^|.)(stackblitz|webcontainer).(io|com)$/.test(window.location.host);
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export class SidenavOpenCloseExample {
events: string[] = [];
opened: boolean;

shouldRun = [/(^|\.)plnkr\.co$/, /(^|\.)stackblitz\.io$/].some(h => h.test(window.location.host));
shouldRun = /(^|.)(stackblitz|webcontainer).(io|com)$/.test(window.location.host);
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ import {Component} from '@angular/core';
styleUrls: ['sidenav-overview-example.css'],
})
export class SidenavOverviewExample {
shouldRun = [/(^|\.)plnkr\.co$/, /(^|\.)stackblitz\.io$/].some(h => h.test(window.location.host));
shouldRun = /(^|.)(stackblitz|webcontainer).(io|com)$/.test(window.location.host);
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ import {Component} from '@angular/core';
styleUrls: ['sidenav-position-example.css'],
})
export class SidenavPositionExample {
shouldRun = [/(^|\.)plnkr\.co$/, /(^|\.)stackblitz\.io$/].some(h => h.test(window.location.host));
shouldRun = /(^|.)(stackblitz|webcontainer).(io|com)$/.test(window.location.host);
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ export class SidenavResponsiveExample implements OnDestroy {
this.mobileQuery.removeListener(this._mobileQueryListener);
}

shouldRun = [/(^|\.)plnkr\.co$/, /(^|\.)stackblitz\.io$/].some(h => h.test(window.location.host));
shouldRun = /(^|.)(stackblitz|webcontainer).(io|com)$/.test(window.location.host);
}

Back | FazBrowse Home | New Git URL