Skip to content

Commit

Permalink
WA for Github Demos built with ng build and SystemJS (cherry-pick #27690
Browse files Browse the repository at this point in the history
) (#27693)
  • Loading branch information
ivanblinov2k17 committed Jul 2, 2024
1 parent dc15515 commit d1eeaec
Show file tree
Hide file tree
Showing 468 changed files with 3,711 additions and 903 deletions.
10 changes: 8 additions & 2 deletions apps/demos/Demos/Accordion/Overview/Angular/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,16 @@ if (!/localhost/.test(document.location.host)) {
enableProdMode();
}

let modulePrefix = '';
// @ts-ignore
if (window && window.config.packageConfigPaths) {
modulePrefix = '/app';
}

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: `.${modulePrefix}/app.component.html`,
styleUrls: [`.${modulePrefix}/app.component.css`],
providers: [Service],
preserveWhitespaces: true,
})
Expand Down
10 changes: 8 additions & 2 deletions apps/demos/Demos/ActionSheet/Basics/Angular/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ if (!/localhost/.test(document.location.host)) {
enableProdMode();
}

let modulePrefix = '';
// @ts-ignore
if (window && window.config.packageConfigPaths) {
modulePrefix = '/app';
}

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: `.${modulePrefix}/app.component.html`,
styleUrls: [`.${modulePrefix}/app.component.css`],
})
export class AppComponent {
commands: { text: string }[] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ if (!/localhost/.test(document.location.host)) {
enableProdMode();
}

let modulePrefix = '';
// @ts-ignore
if (window && window.config.packageConfigPaths) {
modulePrefix = '/app';
}

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: `.${modulePrefix}/app.component.html`,
styleUrls: [`.${modulePrefix}/app.component.css`],
providers: [Service],
})
export class AppComponent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,17 @@ function isNotEmpty(value: unknown): boolean {
return value !== undefined && value !== null && value !== '';
}

let modulePrefix = '';
// @ts-ignore
if (window && window.config.packageConfigPaths) {
modulePrefix = '/app';
}

@Component({
selector: 'demo-app',
providers: [Service],
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: `.${modulePrefix}/app.component.html`,
styleUrls: [`.${modulePrefix}/app.component.css`],
})

export class AppComponent {
Expand Down
10 changes: 8 additions & 2 deletions apps/demos/Demos/Box/Overview/Angular/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ if (!/localhost/.test(document.location.host)) {
enableProdMode();
}

let modulePrefix = '';
// @ts-ignore
if (window && window.config.packageConfigPaths) {
modulePrefix = '/app';
}

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: `.${modulePrefix}/app.component.html`,
styleUrls: [`.${modulePrefix}/app.component.css`],
})
export class AppComponent {
}
Expand Down
10 changes: 8 additions & 2 deletions apps/demos/Demos/Button/Icons/Angular/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ if (!/localhost/.test(document.location.host)) {
enableProdMode();
}

let modulePrefix = '';
// @ts-ignore
if (window && window.config.packageConfigPaths) {
modulePrefix = '/app';
}

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: `.${modulePrefix}/app.component.html`,
styleUrls: [`.${modulePrefix}/app.component.css`],
preserveWhitespaces: true,
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ if (!/localhost/.test(document.location.host)) {
enableProdMode();
}

let modulePrefix = '';
// @ts-ignore
if (window && window.config.packageConfigPaths) {
modulePrefix = '/app';
}

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: `.${modulePrefix}/app.component.html`,
styleUrls: [`.${modulePrefix}/app.component.css`],
})

export class AppComponent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ if (!/localhost/.test(document.location.host)) {
enableProdMode();
}

let modulePrefix = '';
// @ts-ignore
if (window && window.config.packageConfigPaths) {
modulePrefix = '/app';
}

@Component({
selector: 'demo-app',
providers: [Service],
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: `.${modulePrefix}/app.component.html`,
styleUrls: [`.${modulePrefix}/app.component.css`],
preserveWhitespaces: true,
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ if (!/localhost/.test(document.location.host)) {
enableProdMode();
}

let modulePrefix = '';
// @ts-ignore
if (window && window.config.packageConfigPaths) {
modulePrefix = '/app';
}

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: `.${modulePrefix}/app.component.html`,
styleUrls: [`.${modulePrefix}/app.component.css`],
})

export class AppComponent {
Expand Down
10 changes: 8 additions & 2 deletions apps/demos/Demos/Calendar/Overview/Angular/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ if (!/localhost/.test(document.location.host)) {
enableProdMode();
}

let modulePrefix = '';
// @ts-ignore
if (window && window.config.packageConfigPaths) {
modulePrefix = '/app';
}

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: `.${modulePrefix}/app.component.html`,
styleUrls: [`.${modulePrefix}/app.component.css`],
})

export class AppComponent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,17 @@ if (!/localhost/.test(document.location.host)) {
enableProdMode();
}

let modulePrefix = '';
// @ts-ignore
if (window && window.config.packageConfigPaths) {
modulePrefix = '/app';
}

@Component({
selector: 'demo-app',
providers: [Service],
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: `.${modulePrefix}/app.component.html`,
styleUrls: [`.${modulePrefix}/app.component.css`],
})
export class AppComponent {
@ViewChild(DxPieChartComponent, { static: false }) chart: DxPieChartComponent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,17 @@ if (!/localhost/.test(document.location.host)) {
enableProdMode();
}

let modulePrefix = '';
// @ts-ignore
if (window && window.config.packageConfigPaths) {
modulePrefix = '/app';
}

@Component({
selector: 'demo-app',
providers: [Service],
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: `.${modulePrefix}/app.component.html`,
styleUrls: [`.${modulePrefix}/app.component.css`],
})
export class AppComponent {
catBreedsData: CatBreed[];
Expand Down
10 changes: 8 additions & 2 deletions apps/demos/Demos/Charts/AjaxRequest/Angular/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ if (!/localhost/.test(document.location.host)) {
enableProdMode();
}

let modulePrefix = '';
// @ts-ignore
if (window && window.config.packageConfigPaths) {
modulePrefix = '/app';
}

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: `.${modulePrefix}/app.component.html`,
styleUrls: [`.${modulePrefix}/app.component.css`],
})
export class AppComponent {
customizeText(arg) {
Expand Down
10 changes: 8 additions & 2 deletions apps/demos/Demos/Charts/Annotation/Angular/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ if (!/localhost/.test(document.location.host)) {
enableProdMode();
}

let modulePrefix = '';
// @ts-ignore
if (window && window.config.packageConfigPaths) {
modulePrefix = '/app';
}

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: `.${modulePrefix}/app.component.html`,
styleUrls: [`.${modulePrefix}/app.component.css`],
providers: [Service],
})
export class AppComponent {
Expand Down
10 changes: 8 additions & 2 deletions apps/demos/Demos/Charts/Area/Angular/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ if (!/localhost/.test(document.location.host)) {
enableProdMode();
}

let modulePrefix = '';
// @ts-ignore
if (window && window.config.packageConfigPaths) {
modulePrefix = '/app';
}

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: `.${modulePrefix}/app.component.html`,
styleUrls: [`.${modulePrefix}/app.component.css`],
providers: [Service],
preserveWhitespaces: true,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ if (!/localhost/.test(document.location.host)) {
enableProdMode();
}

let modulePrefix = '';
// @ts-ignore
if (window && window.config.packageConfigPaths) {
modulePrefix = '/app';
}

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: `.${modulePrefix}/app.component.html`,
styleUrls: [`.${modulePrefix}/app.component.css`],
providers: [Service],
})
export class AppComponent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ if (!/localhost/.test(document.location.host)) {
enableProdMode();
}

let modulePrefix = '';
// @ts-ignore
if (window && window.config.packageConfigPaths) {
modulePrefix = '/app';
}

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: `.${modulePrefix}/app.component.html`,
styleUrls: [`.${modulePrefix}/app.component.css`],
providers: [Service],
})
export class AppComponent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ if (!/localhost/.test(document.location.host)) {
enableProdMode();
}

let modulePrefix = '';
// @ts-ignore
if (window && window.config.packageConfigPaths) {
modulePrefix = '/app';
}

@Component({
selector: 'demo-app',
providers: [Service],
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: `.${modulePrefix}/app.component.html`,
styleUrls: [`.${modulePrefix}/app.component.css`],
preserveWhitespaces: true,
})
export class AppComponent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ if (!/localhost/.test(document.location.host)) {
enableProdMode();
}

let modulePrefix = '';
// @ts-ignore
if (window && window.config.packageConfigPaths) {
modulePrefix = '/app';
}

@Component({
selector: 'demo-app',
providers: [Service],
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: `.${modulePrefix}/app.component.html`,
styleUrls: [`.${modulePrefix}/app.component.css`],
preserveWhitespaces: true,
})
export class AppComponent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ if (!/localhost/.test(document.location.host)) {
enableProdMode();
}

let modulePrefix = '';
// @ts-ignore
if (window && window.config.packageConfigPaths) {
modulePrefix = '/app';
}

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: `.${modulePrefix}/app.component.html`,
styleUrls: [`.${modulePrefix}/app.component.css`],
providers: [Service],
})
export class AppComponent {
Expand Down
Loading

0 comments on commit d1eeaec

Please sign in to comment.