Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update code to use simply-render #32

Merged
merged 3 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
<template data-simply-template="code">
<div class="sb-editor-code">
<textarea data-codemirror-mode="javascript" data-simply-field="code" placeholder="function() {...}"></textarea>
<div is="simply-component" rel="componentQUnitActionRunner"></div>
<simply-render rel="componentQUnitActionRunner"></simply-render>
</div>
</template>
<template data-simply-template="tests">
<div class="sb-editor-code">
<div is="simply-component" rel="componentQUnitTests"></div>
<simply-render rel="componentQUnitTests"></simply-render>
</div>
</template>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<div class="sb-editors">
<div class="sb-editor-code">
<textarea data-codemirror-mode="htmlmixed" data-simply-field="code" placeholder="<link rel='stylesheet'..."></textarea>
<div is="simply-component" rel="componentHtmlValidator"></div>
<simply-render rel="componentHtmlValidator"></simply-render>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
<template data-simply-template="code">
<div class="sb-editor-code">
<textarea data-codemirror-mode="javascript" data-simply-field="code" placeholder="function() {...}"></textarea>
<div is="simply-component" rel="componentQUnitCommandRunner"></div>
<simply-render rel="componentQUnitCommandRunner"></simply-render>
</div>
</template>
<template data-simply-template="tests">
<div class="sb-editor-code">
<div is="simply-component" rel="componentQUnitTests"></div>
<simply-render rel="componentQUnitTests"></simply-render>
</div>
</template>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
</template>
</div>
<div class="sb-previews">
<div is="simply-component" rel="componentPreview"></div>
<simply-render rel="componentPreview"></simply-render>
</div>
</div>
<div is="simply-component" rel="componentHtmlValidator"></div>
<simply-render rel="componentHtmlValidator"></simply-render>
</div>
</template>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
</template>
<template data-simply-template="tests">
<div class="sb-editor-code">
<div is="simply-component" rel="componentQUnitTests"></div>
<simply-render rel="componentQUnitTests"></simply-render>
</div>
</template>
<div class="sb-editors" data-simply-field="editor" data-simply-content="template" data-simply-default-template="code">
Expand All @@ -64,7 +64,7 @@
</template>
<template data-simply-template="tests">
<div class="sb-editor-code">
<div is="simply-component" rel="componentQUnitTests"></div>
<simply-render rel="componentQUnitTests"></simply-render>
</div>
</template>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<div class="sb-editors">
<div class="sb-editor-code">
<textarea data-codemirror-mode="htmlmixed" data-simply-field="code" placeholder="<link rel='stylesheet'..."></textarea>
<div is="simply-component" rel="componentHtmlValidator"></div>
<simply-render rel="componentHtmlValidator"></simply-render>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<div class="sb-editors">
<div class="sb-editor-code">
<textarea data-codemirror-mode="htmlmixed" data-simply-field="code" placeholder="<link rel='stylesheet'..."></textarea>
<div is="simply-component" rel="componentHtmlValidator"></div>
<simply-render rel="componentHtmlValidator"></simply-render>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
</template>
</div>
<div class="sb-previews">
<div is="simply-component" rel="pagePreview"></div>
<simply-render rel="pagePreview"></simply-render>
</div>
</div>
<div is="simply-component" rel="componentHtmlValidator"></div>
<simply-render rel="componentHtmlValidator"></simply-render>
</div>
</template>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</template>
<template data-simply-template="tests">
<div class="sb-editor-code">
<div is="simply-component" rel="componentQUnitTests"></div>
<simply-render rel="componentQUnitTests"></simply-render>
</div>
</template>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<template>
<li data-simply-command="expandMenu">
<a data-simply-command="navigate" href="#" data-simply-field="item"></a>
<div is="simply-component" rel="menu"></div>
<simply-render rel="menu"></simply-render>
</li>
</template>
</ul>
110 changes: 55 additions & 55 deletions www/api/data/generated.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion www/api/data/page-frame/componentPreview.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
{{componentPreview}}
</div>
<script src="js/simply.everything.js"></script>
<script src="js/simply-edit.js" data-api-key="muze"></script>
<script src="js/simply-edit.js" data-simply-storage="none" data-api-key="muze"></script>
<script>
/* Transformers */
editor.transformers = {
Expand Down
4 changes: 2 additions & 2 deletions www/api/data/page-frame/fullApp.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@
<template data-simply-template='Header' rel="header"></template>
</header>
<nav>
<div is="simply-component" rel="menu"></div>
<simply-render rel="menu"></simply-render>
</nav>
<div class="main" data-simply-field="page" data-simply-content="template">
<!-- Page HTML templates -->
{{pageTemplates}}
<!-- /Page HTML templates -->
</div>
<script src="js/simply.everything.js"></script>
<script src="js/simply-edit.js" data-api-key="muze"></script>
<script src="js/simply-edit.js" data-simply-storage="none" data-api-key="muze"></script>
<script>
/* Transformers */
editor.transformers = {
Expand Down
4 changes: 2 additions & 2 deletions www/api/data/page-frame/pagePreview.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@
<template data-simply-template='Header' rel="header"></template>
</header>
<nav>
<div is="simply-component" rel="menu"></div>
<simply-render rel="menu"></simply-render>
</nav>
<div class="main" data-simply-field="page" data-simply-content="template">
{{pagePreview}}
</div>
<script src="js/simply.everything.js"></script>
<script src="js/simply-edit.js" data-api-key="muze"></script>
<script src="js/simply-edit.js" data-simply-storage="none" data-api-key="muze"></script>
<script>
/* Transformers */
editor.transformers = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ <h1>Edit base component: <span data-simply-field="component.id"></span></h1>
<button class="sb-button" data-simply-command="deleteBaseComponent">Delete</button>
</div>
</div>
<div is="simply-component" rel="componentDescription"></div>
<div is="simply-component" rel="componentHeadHtml"></div>
<div is="simply-component" rel="componentBodyHtml"></div>
<div is="simply-component" rel="componentFootHtml"></div>
<div is="simply-component" rel="componentCommands"></div>
<div is="simply-component" rel="componentActions"></div>
<div is="simply-component" rel="componentRoutes"></div>
<div is="simply-component" rel="componentRawApi"></div>
<simply-render rel="componentDescription"></simply-render>
<simply-render rel="componentHeadHtml"></simply-render>
<simply-render rel="componentBodyHtml"></simply-render>
<simply-render rel="componentFootHtml"></simply-render>
<simply-render rel="componentCommands"></simply-render>
<simply-render rel="componentActions"></simply-render>
<simply-render rel="componentRoutes"></simply-render>
<simply-render rel="componentRawApi"></simply-render>
</main>
20 changes: 10 additions & 10 deletions www/api/data/pages/component/pageTemplates/Edit component.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ <h1>Edit component: <span data-simply-field="component.id"></span></h1>
<button class="sb-button" data-simply-command="deleteComponent">Delete</button>
</div>
</div>
<div is="simply-component" rel="componentDescription"></div>
<div is="simply-component" rel="componentComponentTemplate"></div>
<div is="simply-component" rel="componentComponentCss"></div>
<div is="simply-component" rel="componentCommands"></div>
<div is="simply-component" rel="componentActions"></div>
<div is="simply-component" rel="componentDataApi"></div>
<div is="simply-component" rel="componentRoutes"></div>
<div is="simply-component" rel="componentTransformers"></div>
<div is="simply-component" rel="componentDataSources"></div>
<div is="simply-component" rel="componentSorters"></div>
<simply-render rel="componentDescription"></simply-render>
<simply-render rel="componentComponentTemplate"></simply-render>
<simply-render rel="componentComponentCss"></simply-render>
<simply-render rel="componentCommands"></simply-render>
<simply-render rel="componentActions"></simply-render>
<simply-render rel="componentDataApi"></simply-render>
<simply-render rel="componentRoutes"></simply-render>
<simply-render rel="componentTransformers"></simply-render>
<simply-render rel="componentDataSources"></simply-render>
<simply-render rel="componentSorters"></simply-render>
</main>
Loading
Loading