0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Update Ember Components with proper gh- prefix

GH-ISSUE 2373
This commit is contained in:
Lucas Holmquist 2014-05-28 15:26:05 -04:00
parent 97011e5eca
commit a47980149f
33 changed files with 35 additions and 35 deletions

View file

@ -1,9 +1,9 @@
/*global console */ /*global console */
import ModalDialog from 'ghost/components/modal-dialog'; import ModalDialog from 'ghost/components/gh-modal-dialog';
var UploadModal = ModalDialog.extend({ var UploadModal = ModalDialog.extend({
layoutName: 'components/modal-dialog', layoutName: 'components/gh-modal-dialog',
didInsertElement: function () { didInsertElement: function () {
this._super(); this._super();

View file

@ -4,9 +4,9 @@
</a> </a>
<nav id="global-nav" role="navigation"> <nav id="global-nav" role="navigation">
<ul id="main-menu" > <ul id="main-menu" >
{{activating-list-item route="posts" title="Content" classNames="content"}} {{gh-activating-list-item route="posts" title="Content" classNames="content"}}
{{activating-list-item route="new" title="New post" classNames="editor"}} {{gh-activating-list-item route="new" title="New post" classNames="editor"}}
{{activating-list-item route="settings" title="Settings" classNames="settings"}} {{gh-activating-list-item route="settings" title="Settings" classNames="settings"}}
<li id="usermenu" class="usermenu subnav"> <li id="usermenu" class="usermenu subnav">
<a href="javascript:void(0);" {{action 'toggleMenu'}} class="dropdown"> <a href="javascript:void(0);" {{action 'toggleMenu'}} class="dropdown">
@ -18,7 +18,7 @@
<span class="name">{{user.name}}</span> <span class="name">{{user.name}}</span>
</a> </a>
{{!-- @TODO: add functionality to allow for dropdown to work --}} {{!-- @TODO: add functionality to allow for dropdown to work --}}
{{#ghost-popover open=showMenu}} {{#gh-popover open=showMenu}}
<ul class="overlay"> <ul class="overlay">
<li class="usermenu-profile">{{#link-to 'settings.user'}}Your Profile{{/link-to}}</li> <li class="usermenu-profile">{{#link-to 'settings.user'}}Your Profile{{/link-to}}</li>
<li class="divider"></li> <li class="divider"></li>
@ -26,7 +26,7 @@
<li class="divider"></li> <li class="divider"></li>
<li class="usermenu-signout"><a href="#">Sign Out</a></li> <li class="usermenu-signout"><a href="#">Sign Out</a></li>
</ul> </ul>
{{/ghost-popover}} {{/gh-popover}}
</li> </li>
</ul> </ul>
</nav> </nav>

View file

@ -3,7 +3,7 @@
{{/unless}} {{/unless}}
<main role="main" id="main"> <main role="main" id="main">
{{ghost-notifications}} {{gh-notifications}}
{{outlet}} {{outlet}}
</main> </main>

View file

@ -1,3 +1,3 @@
<div class="rendered-markdown"> <div class="rendered-markdown">
{{format-markdown markdown}} {{gh-format-markdown markdown}}
</div> </div>

View file

@ -0,0 +1,3 @@
{{#each messages}}
{{gh-notification message=this}}
{{/each}}

View file

@ -1,3 +0,0 @@
{{#each messages}}
{{ghost-notification message=this}}
{{/each}}

View file

@ -28,7 +28,7 @@
<fieldset> <fieldset>
<div class="form-group"> <div class="form-group">
<label>Import</label> <label>Import</label>
{{file-upload onUpload="importData" uploadButtonText=uploadButtonText}} {{gh-file-upload onUpload="importData" uploadButtonText=uploadButtonText}}
<p>Import from another Ghost installation. If you import a user, this will replace the current user & log you out.</p> <p>Import from another Ghost installation. If you import a user, this will replace the current user & log you out.</p>
</div> </div>
</fieldset> </fieldset>

View file

@ -11,16 +11,16 @@
<a class="markdown-help" href="" {{action "openModal" "markdown"}}><span class="hidden">What is Markdown?</span></a> <a class="markdown-help" href="" {{action "openModal" "markdown"}}><span class="hidden">What is Markdown?</span></a>
</header> </header>
<section id="entry-markdown-content" class="entry-markdown-content"> <section id="entry-markdown-content" class="entry-markdown-content">
{{-codemirror value=markdown scrollPosition=view.scrollPosition}} {{gh-codemirror value=markdown scrollPosition=view.scrollPosition}}
</section> </section>
</section> </section>
<section class="entry-preview"> <section class="entry-preview">
<header class="floatingheader"> <header class="floatingheader">
<small>Preview <span class="entry-word-count js-entry-word-count">{{count-words markdown}} words</span></small> <small>Preview <span class="entry-word-count js-entry-word-count">{{gh-count-words markdown}} words</span></small>
</header> </header>
<section class="entry-preview-content"> <section class="entry-preview-content">
{{-markdown markdown=markdown scrollPosition=view.scrollPosition}} {{gh-markdown markdown=markdown scrollPosition=view.scrollPosition}}
</section> </section>
</section> </section>
</section> </section>

View file

@ -1,6 +1,6 @@
{{#modal-dialog action="closeModal" type="action" style="wide,centered" animation="fade" {{#gh-modal-dialog action="closeModal" type="action" style="wide,centered" animation="fade"
title="Would you really like to delete all content from your blog?" confirm=confirm}} title="Would you really like to delete all content from your blog?" confirm=confirm}}
<p>This is permanent! No backups, no restores, no magic undo button. <br /> We warned you, ok?</p> <p>This is permanent! No backups, no restores, no magic undo button. <br /> We warned you, ok?</p>
{{/modal-dialog}} {{/gh-modal-dialog}}

View file

@ -1,6 +1,6 @@
{{#modal-dialog action="closeModal" showClose=true type="action" style="wide,centered" animation="fade" {{#gh-modal-dialog action="closeModal" showClose=true type="action" style="wide,centered" animation="fade"
title="Are you sure you want to delete this post?" confirm=confirm}} title="Are you sure you want to delete this post?" confirm=confirm}}
<p>This is permanent! No backups, no restores, no magic undo button. <br /> We warned you, ok?</p> <p>This is permanent! No backups, no restores, no magic undo button. <br /> We warned you, ok?</p>
{{/modal-dialog}} {{/gh-modal-dialog}}

View file

@ -1,4 +1,4 @@
{{#modal-dialog action="closeModal" showClose=true style="wide" animation="fade" {{#gh-modal-dialog action="closeModal" showClose=true style="wide" animation="fade"
title="Markdown Help"}} title="Markdown Help"}}
<section class="markdown-help-container"> <section class="markdown-help-container">
<table class="modal-markdown-help-table"> <table class="modal-markdown-help-table">
@ -69,4 +69,4 @@
</table> </table>
For further Markdown syntax reference: <a href="http://daringfireball.net/projects/markdown/syntax" target="_blank">Markdown Documentation</a> For further Markdown syntax reference: <a href="http://daringfireball.net/projects/markdown/syntax" target="_blank">Markdown Documentation</a>
</section> </section>
{{/modal-dialog}} {{/gh-modal-dialog}}

View file

@ -1,4 +1,4 @@
{{#upload-modal action="closeModal" close=true type="action" style="wide" {{#gh-upload-modal action="closeModal" close=true type="action" style="wide"
animation="fade"}} animation="fade"}}
<section class="js-drop-zone"> <section class="js-drop-zone">
@ -6,4 +6,4 @@
<input data-url="upload" class="js-fileupload main" type="file" name="uploadimage" {{#if options.acceptEncoding}}accept="{{options.acceptEncoding}}"{{/if}}> <input data-url="upload" class="js-fileupload main" type="file" name="uploadimage" {{#if options.acceptEncoding}}accept="{{options.acceptEncoding}}"{{/if}}>
</section> </section>
{{/upload-modal}} {{/gh-upload-modal}}

View file

@ -6,7 +6,7 @@
<label for="url">URL</label> <label for="url">URL</label>
</td> </td>
<td class="post-setting-field"> <td class="post-setting-field">
{{blur-text-field class="post-setting-slug" id="url" value=newSlug action="updateSlug" placeholder=slugPlaceholder selectOnClick="true"}} {{gh-blur-text-field class="post-setting-slug" id="url" value=newSlug action="updateSlug" placeholder=slugPlaceholder selectOnClick="true"}}
</td> </td>
</tr> </tr>
<tr class="post-setting"> <tr class="post-setting">
@ -14,7 +14,7 @@
<label for="pub-date">Pub Date</label> <label for="pub-date">Pub Date</label>
</td> </td>
<td class="post-setting-field"> <td class="post-setting-field">
{{blur-text-field class="post-setting-date" value=view.publishedAt action="updatePublishedAt" placeholder=view.datePlaceholder}} {{gh-blur-text-field class="post-setting-date" value=view.publishedAt action="updatePublishedAt" placeholder=view.datePlaceholder}}
</td> </td>
</tr> </tr>
<tr class="post-setting"> <tr class="post-setting">

View file

@ -19,7 +19,7 @@
<span class="page">Page</span> <span class="page">Page</span>
{{else}} {{else}}
<time datetime="{{unbound published_at}}" class="date published"> <time datetime="{{unbound published_at}}" class="date published">
Published {{format-timeago published_at}} Published {{gh-format-timeago published_at}}
</time> </time>
{{/if}} {{/if}}
{{else}} {{else}}

View file

@ -5,7 +5,7 @@
<section class="content-preview-content"> <section class="content-preview-content">
<div class="wrapper"> <div class="wrapper">
<h1>{{title}}</h1> <h1>{{title}}</h1>
{{format-markdown markdown}} {{gh-format-markdown markdown}}
</div> </div>
</section> </section>

View file

@ -21,7 +21,7 @@
{{textarea id="blog-description" value=description}} {{textarea id="blog-description" value=description}}
<p> <p>
Describe what your blog is about Describe what your blog is about
<span class="word-count">{{count-words description}}</span> <span class="word-count">{{gh-count-words description}}</span>
</p> </p>
</div> </div>

View file

@ -56,7 +56,7 @@
{{textarea id="user-bio" value=user.bio}} {{textarea id="user-bio" value=user.bio}}
<p> <p>
Write about you, in 200 characters or less. Write about you, in 200 characters or less.
<span class="word-count">{{count-words user.bio}}</span> <span class="word-count">{{gh-count-words user.bio}}</span>
</p> </p>
</div> </div>