This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Robert-Frampton
authored and
Robert-Frampton
committed
Feb 21, 2018
1 parent
2e56bf5
commit 0f41cca
Showing
14 changed files
with
174 additions
and
106 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,41 +1,41 @@ | ||
<div id="pageComponent"> | ||
{$content} | ||
<%= content %> | ||
</div> | ||
|
||
{if $page.componentName} | ||
<script src="${basePath}/js/bundles/{$page.componentName}.js"></script> | ||
{/if} | ||
<% if (page.componentName) { %> | ||
<script src="<%= basePath %>/js/bundles/<%= page.componentName %>.js"></script> | ||
<% } %> | ||
|
||
<script> | ||
var data = JSON.parse({$serialized}); | ||
var data = JSON.parse(`<%= serialized %>`); | ||
if (window.electricPageComponent) {lb} | ||
if (window.electricPageComponent) { | ||
window.electricPageComponent.dispose(); | ||
{rb} | ||
} | ||
var getByPath = function(obj, path) {lb} | ||
var getByPath = function(obj, path) { | ||
path = path.split('.'); | ||
for (var i = 0; i < path.length; i++) {lb} | ||
for (var i = 0; i < path.length; i++) { | ||
obj = obj[path[i]]; | ||
{rb}; | ||
}; | ||
return obj; | ||
{rb}; | ||
}; | ||
if (window.pageComponent) {lb} | ||
if (window.pageComponent) { | ||
var page = getByPath(data.site, data.pageLocation); | ||
if (page) {lb} | ||
window.electricPageComponent = pageComponent.default.render(pageComponent.default, {lb} | ||
if (page) { | ||
window.electricPageComponent = pageComponent.default.render(pageComponent.default, { | ||
element: '#pageComponent > *', | ||
page: page, | ||
site: data.site | ||
{rb}); | ||
{rb} | ||
}); | ||
} | ||
if (window.runCodeMirror) {lb} | ||
if (window.runCodeMirror) { | ||
runCodeMirror(); | ||
{rb} | ||
{rb} | ||
} | ||
} | ||
</script> |
This file was deleted.
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
Oops, something went wrong.