Skip to content

Commit

Permalink
move toolbar to own component
Browse files Browse the repository at this point in the history
  • Loading branch information
ylebre committed Dec 1, 2024
1 parent 5a5cafa commit 9709bec
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 68 deletions.
33 changes: 1 addition & 32 deletions www/api/data/components/header/componentTemplates/header.html
Original file line number Diff line number Diff line change
@@ -1,32 +1 @@
<header class="simplycode-header">
<nav class="simply-toolbar">
<div class="simply-toolbar-title">
<img src="/assets/img/simplycode-narrow.svg" title="SimplyCod">
</div>
<button class="ds-button simply-button" data-simply-command="save-all">
<svg class="ds-icon ds-icon-feather">
<use xlink:href="/assets/img/feather-sprite.svg#save">
</use></svg>
Save All
</button>
<span class="simply-push-right"></span>
<button class="ds-button simply-button" data-simply-command="search">
<svg class="ds-icon ds-icon-feather">
<use xlink:href="/assets/img/feather-sprite.svg#search">
</use></svg>
Search
</button>
<button class="ds-button simply-button" data-simply-command="preview">
<svg class="ds-icon ds-icon-feather">
<use xlink:href="/assets/img/feather-sprite.svg#eye">
</use></svg>
Preview
</button>
<button class="ds-button simply-button" data-simply-command="help">
<svg class="ds-icon ds-icon-feather">
<use xlink:href="/assets/img/feather-sprite.svg#help-circle">
</use></svg>
Help
</button>
</nav>
</header>
<simply-render rel="simplycode-toolbar"></simply-render>
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<nav class="simply-toolbar">
<div class="simply-toolbar-title">
<img src="/assets/img/simplycode-narrow.svg" title="SimplyCod">
</div>
<button class="ds-button simply-button" data-simply-command="save-all">
<svg class="ds-icon ds-icon-feather">
<use xlink:href="/assets/img/feather-sprite.svg#save">
</use></svg>
Save All
</button>
<span class="simply-push-right"></span>
<button class="ds-button simply-button" data-simply-command="search">
<svg class="ds-icon ds-icon-feather">
<use xlink:href="/assets/img/feather-sprite.svg#search">
</use></svg>
Search
</button>
<button class="ds-button simply-button" data-simply-command="preview">
<svg class="ds-icon ds-icon-feather">
<use xlink:href="/assets/img/feather-sprite.svg#eye">
</use></svg>
Preview
</button>
<button class="ds-button simply-button" data-simply-command="help">
<svg class="ds-icon ds-icon-feather">
<use xlink:href="/assets/img/feather-sprite.svg#help-circle">
</use></svg>
Help
</button>
</nav>
1 change: 1 addition & 0 deletions www/api/data/components/simplycode-toolbar/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"id":"simplycode-toolbar","description":""}
68 changes: 34 additions & 34 deletions www/api/data/generated.html
Original file line number Diff line number Diff line change
Expand Up @@ -5966,39 +5966,7 @@
</details>
</template>
<template id="header">
<header class="simplycode-header">
<nav class="simply-toolbar">
<div class="simply-toolbar-title">
<img src="/assets/img/simplycode-narrow.svg" title="SimplyCod">
</div>
<button class="ds-button simply-button" data-simply-command="save-all">
<svg class="ds-icon ds-icon-feather">
<use xlink:href="/assets/img/feather-sprite.svg#save">
</use></svg>
Save All
</button>
<span class="simply-push-right"></span>
<button class="ds-button simply-button" data-simply-command="search">
<svg class="ds-icon ds-icon-feather">
<use xlink:href="/assets/img/feather-sprite.svg#search">
</use></svg>
Search
</button>
<button class="ds-button simply-button" data-simply-command="preview">
<svg class="ds-icon ds-icon-feather">
<use xlink:href="/assets/img/feather-sprite.svg#eye">
</use></svg>
Preview
</button>
<button class="ds-button simply-button" data-simply-command="help">
<svg class="ds-icon ds-icon-feather">
<use xlink:href="/assets/img/feather-sprite.svg#help-circle">
</use></svg>
Help
</button>
</nav>
</header>

<simply-render rel="simplycode-toolbar"></simply-render>
</template>
<template id="componentHtmlValidator">
<div data-simply-field="code" data-simply-transformer="validateHtml"></div>
Expand Down Expand Up @@ -6057,8 +6025,40 @@
</div>
</div>
</template>
<template id="simplycode-toolbar">
<nav class="simply-toolbar">
<div class="simply-toolbar-title">
<img src="/assets/img/simplycode-narrow.svg" title="SimplyCod">
</div>
<button class="ds-button simply-button" data-simply-command="save-all">
<svg class="ds-icon ds-icon-feather">
<use xlink:href="/assets/img/feather-sprite.svg#save">
</use></svg>
Save All
</button>
<span class="simply-push-right"></span>
<button class="ds-button simply-button" data-simply-command="search">
<svg class="ds-icon ds-icon-feather">
<use xlink:href="/assets/img/feather-sprite.svg#search">
</use></svg>
Search
</button>
<button class="ds-button simply-button" data-simply-command="preview">
<svg class="ds-icon ds-icon-feather">
<use xlink:href="/assets/img/feather-sprite.svg#eye">
</use></svg>
Preview
</button>
<button class="ds-button simply-button" data-simply-command="help">
<svg class="ds-icon ds-icon-feather">
<use xlink:href="/assets/img/feather-sprite.svg#help-circle">
</use></svg>
Help
</button>
</nav>
</template>
<!-- /Component HTML templates -->
<header class="ds-nightmode" data-simply-path="/" data-simply-field="header" data-simply-content="template" data-simply-default-value="Header">
<header class="simplycode-header ds-nightmode" data-simply-path="/" data-simply-field="header" data-simply-content="template" data-simply-default-value="Header">
<template data-simply-template='Header' rel="header"></template>
</header>
<nav>
Expand Down
2 changes: 1 addition & 1 deletion www/api/data/page-frame/fullApp.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<!-- Component HTML templates -->
{{componentTemplates}}
<!-- /Component HTML templates -->
<header class="ds-nightmode" data-simply-path="/" data-simply-field="header" data-simply-content="template" data-simply-default-value="Header">
<header class="simplycode-header ds-nightmode" data-simply-path="/" data-simply-field="header" data-simply-content="template" data-simply-default-value="Header">
<template data-simply-template='Header' rel="header"></template>
</header>
<nav>
Expand Down
2 changes: 1 addition & 1 deletion www/api/data/page-frame/pagePreview.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<!-- Component HTML templates -->
{{componentTemplates}}
<!-- /Component HTML templates -->
<header class="ds-nightmode" data-simply-path="/" data-simply-field="header" data-simply-content="template" data-simply-default-value="Header">
<header class="simplycode-header ds-nightmode" data-simply-path="/" data-simply-field="header" data-simply-content="template" data-simply-default-value="Header">
<template data-simply-template='Header' rel="header"></template>
</header>
<nav>
Expand Down

0 comments on commit 9709bec

Please sign in to comment.