mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Update Ember Components with proper gh- prefix
GH-ISSUE 2373
This commit is contained in:
parent
97011e5eca
commit
a47980149f
33 changed files with 35 additions and 35 deletions
|
@ -41,4 +41,4 @@ var Codemirror = Ember.TextArea.extend({
|
|||
}.on('willDestroyElement')
|
||||
});
|
||||
|
||||
export default Codemirror;
|
||||
export default Codemirror;
|
|
@ -5,4 +5,4 @@ var GhostPopover = Ember.Component.extend({
|
|||
open: false
|
||||
});
|
||||
|
||||
export default GhostPopover;
|
||||
export default GhostPopover;
|
|
@ -1,9 +1,9 @@
|
|||
/*global console */
|
||||
|
||||
import ModalDialog from 'ghost/components/modal-dialog';
|
||||
import ModalDialog from 'ghost/components/gh-modal-dialog';
|
||||
|
||||
var UploadModal = ModalDialog.extend({
|
||||
layoutName: 'components/modal-dialog',
|
||||
layoutName: 'components/gh-modal-dialog',
|
||||
|
||||
didInsertElement: function () {
|
||||
this._super();
|
|
@ -4,9 +4,9 @@
|
|||
</a>
|
||||
<nav id="global-nav" role="navigation">
|
||||
<ul id="main-menu" >
|
||||
{{activating-list-item route="posts" title="Content" classNames="content"}}
|
||||
{{activating-list-item route="new" title="New post" classNames="editor"}}
|
||||
{{activating-list-item route="settings" title="Settings" classNames="settings"}}
|
||||
{{gh-activating-list-item route="posts" title="Content" classNames="content"}}
|
||||
{{gh-activating-list-item route="new" title="New post" classNames="editor"}}
|
||||
{{gh-activating-list-item route="settings" title="Settings" classNames="settings"}}
|
||||
|
||||
<li id="usermenu" class="usermenu subnav">
|
||||
<a href="javascript:void(0);" {{action 'toggleMenu'}} class="dropdown">
|
||||
|
@ -18,7 +18,7 @@
|
|||
<span class="name">{{user.name}}</span>
|
||||
</a>
|
||||
{{!-- @TODO: add functionality to allow for dropdown to work --}}
|
||||
{{#ghost-popover open=showMenu}}
|
||||
{{#gh-popover open=showMenu}}
|
||||
<ul class="overlay">
|
||||
<li class="usermenu-profile">{{#link-to 'settings.user'}}Your Profile{{/link-to}}</li>
|
||||
<li class="divider"></li>
|
||||
|
@ -26,7 +26,7 @@
|
|||
<li class="divider"></li>
|
||||
<li class="usermenu-signout"><a href="#">Sign Out</a></li>
|
||||
</ul>
|
||||
{{/ghost-popover}}
|
||||
{{/gh-popover}}
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
{{/unless}}
|
||||
|
||||
<main role="main" id="main">
|
||||
{{ghost-notifications}}
|
||||
|
||||
{{gh-notifications}}
|
||||
|
||||
{{outlet}}
|
||||
</main>
|
||||
{{outlet modal}}
|
||||
{{outlet modal}}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<div class="rendered-markdown">
|
||||
{{format-markdown markdown}}
|
||||
{{gh-format-markdown markdown}}
|
||||
</div>
|
3
core/client/templates/components/gh-notifications.hbs
Normal file
3
core/client/templates/components/gh-notifications.hbs
Normal file
|
@ -0,0 +1,3 @@
|
|||
{{#each messages}}
|
||||
{{gh-notification message=this}}
|
||||
{{/each}}
|
|
@ -1,3 +0,0 @@
|
|||
{{#each messages}}
|
||||
{{ghost-notification message=this}}
|
||||
{{/each}}
|
|
@ -28,7 +28,7 @@
|
|||
<fieldset>
|
||||
<div class="form-group">
|
||||
<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>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
|
|
@ -11,18 +11,18 @@
|
|||
<a class="markdown-help" href="" {{action "openModal" "markdown"}}><span class="hidden">What is Markdown?</span></a>
|
||||
</header>
|
||||
<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 class="entry-preview">
|
||||
<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>
|
||||
<section class="entry-preview-content">
|
||||
{{-markdown markdown=markdown scrollPosition=view.scrollPosition}}
|
||||
{{gh-markdown markdown=markdown scrollPosition=view.scrollPosition}}
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
{{partial 'publish-bar'}}
|
||||
{{partial 'publish-bar'}}
|
||||
|
|
|
@ -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}}
|
||||
|
||||
<p>This is permanent! No backups, no restores, no magic undo button. <br /> We warned you, ok?</p>
|
||||
|
||||
{{/modal-dialog}}
|
||||
{{/gh-modal-dialog}}
|
||||
|
|
|
@ -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}}
|
||||
|
||||
<p>This is permanent! No backups, no restores, no magic undo button. <br /> We warned you, ok?</p>
|
||||
|
||||
{{/modal-dialog}}
|
||||
{{/gh-modal-dialog}}
|
||||
|
|
|
@ -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"}}
|
||||
<section class="markdown-help-container">
|
||||
<table class="modal-markdown-help-table">
|
||||
|
@ -69,4 +69,4 @@
|
|||
</table>
|
||||
For further Markdown syntax reference: <a href="http://daringfireball.net/projects/markdown/syntax" target="_blank">Markdown Documentation</a>
|
||||
</section>
|
||||
{{/modal-dialog}}
|
||||
{{/gh-modal-dialog}}
|
||||
|
|
|
@ -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"}}
|
||||
|
||||
<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}}>
|
||||
</section>
|
||||
|
||||
{{/upload-modal}}
|
||||
{{/gh-upload-modal}}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<label for="url">URL</label>
|
||||
</td>
|
||||
<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>
|
||||
</tr>
|
||||
<tr class="post-setting">
|
||||
|
@ -14,7 +14,7 @@
|
|||
<label for="pub-date">Pub Date</label>
|
||||
</td>
|
||||
<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>
|
||||
</tr>
|
||||
<tr class="post-setting">
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<span class="page">Page</span>
|
||||
{{else}}
|
||||
<time datetime="{{unbound published_at}}" class="date published">
|
||||
Published {{format-timeago published_at}}
|
||||
Published {{gh-format-timeago published_at}}
|
||||
</time>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<section class="content-preview-content">
|
||||
<div class="wrapper">
|
||||
<h1>{{title}}</h1>
|
||||
{{format-markdown markdown}}
|
||||
{{gh-format-markdown markdown}}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
{{textarea id="blog-description" value=description}}
|
||||
<p>
|
||||
Describe what your blog is about
|
||||
<span class="word-count">{{count-words description}}</span>
|
||||
<span class="word-count">{{gh-count-words description}}</span>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
{{textarea id="user-bio" value=user.bio}}
|
||||
<p>
|
||||
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>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue