-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #295 from IgniteUI/hPopov/transform-to-spa
Transforming from MPA to SPA
- Loading branch information
Showing
32 changed files
with
1,146 additions
and
933 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export * from './iframe-load'; | ||
export * from './lazyload'; | ||
export * from './theming'; |
This file contains 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
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { AngularCodeService, CodeService, XplatCodeService } from "."; | ||
import { XHRService } from '../jqXHR-tasks'; | ||
|
||
|
||
export function createCodeService(): CodeService | undefined { | ||
let $platformMeta: JQuery<HTMLElement>, platform: string, codeService: CodeService | undefined; | ||
|
||
$platformMeta = $("meta[property='docfx:platform']"); | ||
if (!$platformMeta) { | ||
return undefined; | ||
} | ||
|
||
platform = $platformMeta.attr("content")!; | ||
if (platform === "angular") { | ||
codeService = new AngularCodeService(XHRService.getInstance()); | ||
} else { | ||
codeService = new XplatCodeService(platform, XHRService.getInstance()); | ||
} | ||
|
||
return codeService; | ||
} |
This file contains 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export * from './angular-code-service'; | ||
export * from './base-code-service'; | ||
export * from './xplat-code-service'; | ||
export * from './code-view'; | ||
export * from './common'; |
This file contains 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
Oops, something went wrong.