Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
renamed to koenig
Browse files Browse the repository at this point in the history
  • Loading branch information
disordinary authored and kevinansfield committed Mar 2, 2017
1 parent 80db0d3 commit bcdf9ce
Show file tree
Hide file tree
Showing 131 changed files with 49 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ install:
- yarn global add bower
- yarn
- bower install
- cd lib/ghost-editor && yarn && bower install
- cd lib/gh-koenig && yarn && bower install

before_script:
- yarn add --force node-sass # temporary, workaround for https://github.com/yarnpkg/yarn/issues/1981
Expand Down
2 changes: 1 addition & 1 deletion app/models/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {belongsTo, hasMany} from 'ember-data/relationships';

import ValidationEngine from 'ghost-admin/mixins/validation-engine';

import {BLANK_DOC} from 'ghost-admin/components/ghost-editor'; // a blank mobile doc
import {BLANK_DOC} from 'ghost-admin/components/gh-koenig'; // a blank mobile doc

// ember-cli-shims doesn't export these so we must get them manually
const {Comparable, compare} = Ember;
Expand Down
2 changes: 1 addition & 1 deletion app/styles/addons/ghost-editor/ghost-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.editor-holder {
height: 100%;
}
.ghost-editor {
.gh-koenig {
height: 100%;
-webkit-overflow-scrolling: touch;
}
Expand Down
4 changes: 2 additions & 2 deletions app/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
@import "layouts/subscribers.css";


/* Addons: Ghost-Editor
/* Addons: gh-koenig
/* ---------------------------------------------------------- */
@import "addons/ghost-editor/ghost-editor.css";
@import "addons/gh-koenig/gh-koenig.css";
2 changes: 1 addition & 1 deletion app/templates/editor/edit.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
Post will be published {{scheduleCountdown}}.
</time>
{{/if}}
{{ghost-editor
{{gh-koenig
value=(readonly model.scratch)
onChange=(action (mut model.scratch))
onFirstChange=(action "autoSaveNew")
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions lib/ghost-editor/README.md → lib/gh-koenig/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Ghost-editor
# gh-koenig

This is the new mobiledoc editor for Ghost-Admin. It's still a work in progress but we're very excited about it.

Expand All @@ -20,7 +20,7 @@ Like Ghost, Mobiledoc-kit is still moving towards its 1.0 release - it still has
## To try it out:

- clone this repo
- `cd Ghost-Editor`
- `cd gh-koenig`
- `npm install && bower install`
- `ember serve`
- Visit `http://localhost:4200`
Expand All @@ -36,7 +36,7 @@ A fantastic guide on the Ghost workflow is here: https://github.com/TryGhost/Gho

## Some features of the editor.

Ghost-Editor is very much a WYSIWYG editor but it supports a subset of markdown as content shortcuts for those of us who are mouse adverse, specifically:
gh-koenig is very much a WYSIWYG editor but it supports a subset of markdown as content shortcuts for those of us who are mouse adverse, specifically:

```text
# H1
Expand Down
File renamed without changes.
12 changes: 12 additions & 0 deletions lib/gh-koenig/addon/cards/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import htmlCard from 'gh-koenig/cards/html-card_dom';
import imageCard from 'gh-koenig/cards/image-card_dom';
import markdownCard from 'gh-koenig/cards/markdown-card_dom';

let cards = [];

[htmlCard, imageCard, markdownCard].forEach(_card => {
_card.type = 'dom';
cards.push(_card);
});

export default cards;
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import run from 'ember-runloop';
import layout from '../../templates/components/image-card';

import {invokeAction} from 'ember-invoke-action';
//import ghostPaths from 'ghost-editor/utils/ghost-paths';
//import ghostPaths from 'gh-koenig/utils/ghost-paths';
import {
isRequestEntityTooLargeError,
isUnsupportedMediaTypeError,
isVersionMismatchError,
UnsupportedMediaTypeError
} from 'ghost-editor/services/ajax';
} from 'gh-koenig/services/ajax';

export default Component.extend({
layout,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
isUnsupportedMediaTypeError,
isVersionMismatchError,
UnsupportedMediaTypeError
} from 'ghost-editor/services/ajax';
} from 'gh-koenig/services/ajax';
/* legacyConverter.makeHtml(_.toString(this.get('markdown')))
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Ember from 'ember';
import layout from '../templates/components/ghost-editor';
import layout from '../templates/components/gh-koenig';
import Mobiledoc from 'mobiledoc-kit';
import {MOBILEDOC_VERSION} from 'mobiledoc-kit/renderers/mobiledoc';
import createCardFactory from '../libs/card-factory';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import run from 'ember-runloop';
import layout from '../../templates/components/image-card';

import {invokeAction} from 'ember-invoke-action';
//import ghostPaths from 'ghost-editor/utils/ghost-paths';
//import ghostPaths from 'gh-koenig/utils/ghost-paths';
import {
isRequestEntityTooLargeError,
isUnsupportedMediaTypeError,
isVersionMismatchError,
UnsupportedMediaTypeError
} from 'ghost-editor/services/ajax';
} from 'gh-koenig/services/ajax';

export default Component.extend({
layout,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{ghost-card card=card apiRoot=apiRoot assetPath=assetPath}}
{{/ember-wormhole}}
{{/each}}
<div class='ghost-editor'>
<div class='gh-koenig'>
<div class='surface' tabindex="{{tabindex}}"/>
</div>

Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions lib/gh-koenig/app/components/gh-file-input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {default} from 'gh-koenig/components/gh-file-input';
1 change: 1 addition & 0 deletions lib/gh-koenig/app/components/gh-koenig.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {default, BLANK_DOC} from 'gh-koenig/components/gh-koenig';
1 change: 1 addition & 0 deletions lib/gh-koenig/app/components/ghost-card.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {default} from 'gh-koenig/components/ghost-card';
1 change: 1 addition & 0 deletions lib/gh-koenig/app/components/ghost-toolbar-blockitem.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'gh-koenig/components/ghost-toolbar-blockitem';
1 change: 1 addition & 0 deletions lib/gh-koenig/app/components/ghost-toolbar-button.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {default} from 'gh-koenig/components/ghost-toolbar-button';
1 change: 1 addition & 0 deletions lib/gh-koenig/app/components/ghost-toolbar-newitem.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'gh-koenig/components/ghost-toolbar-newitem';
1 change: 1 addition & 0 deletions lib/gh-koenig/app/components/ghost-toolbar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {default} from 'gh-koenig/components/ghost-toolbar';
1 change: 1 addition & 0 deletions lib/gh-koenig/app/components/html-card.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {default} from 'gh-koenig/components/cards/html-card';
1 change: 1 addition & 0 deletions lib/gh-koenig/app/components/image-card.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'gh-koenig/components/cards/image-card';
1 change: 1 addition & 0 deletions lib/gh-koenig/app/components/markdown-card.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'gh-koenig/components/cards/markdown-card';
1 change: 1 addition & 0 deletions lib/gh-koenig/app/components/slash-menu-item.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'gh-koenig/components/slash-menu-item';
1 change: 1 addition & 0 deletions lib/gh-koenig/app/components/slash-menu.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'gh-koenig/components/slash-menu';
1 change: 1 addition & 0 deletions lib/gh-koenig/app/helpers/if-equals.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default, ifEquals } from 'gh-koenig/helpers/if-equals';
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/ghost-editor/bower.json → lib/gh-koenig/bower.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "ghost-editor",
"name": "∂gh-koenig",
"dependencies": {
"ember": "~1.13.0",
"ember-cli-shims": "0.1.1",
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/ghost-editor/index.js → lib/gh-koenig/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var Funnel = require('broccoli-funnel');
var path = require('path');

module.exports = {
name: 'ghost-editor',
name: 'gh-koenig',
treeForVendor: function () {
var files = [];
var MOBILEDOC_DIST_DIRECTORY = path.join(path.dirname(
Expand Down
8 changes: 4 additions & 4 deletions lib/ghost-editor/package.json → lib/gh-koenig/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "ghost-editor",
"name": "gh-koenig",
"version": "0.1.10",
"description": "A mobiledoc-kit based editor for Ghost. WARNING DO NOT USE!",
"directories": {
Expand Down Expand Up @@ -57,10 +57,10 @@
"ember-addon": {
"configPath": "tests/dummy/config"
},
"readme": "# Ghost-editor\n\nThis is the new mobiledoc editor for Ghost, it's very much a WIP so **PLEASE DO NOT USE!**\n\n",
"readme": "# gh-koenig\n\nThis is the new mobiledoc editor for Ghost, it's very much a WIP so **PLEASE DO NOT USE!**\n\n",
"readmeFilename": "README.md",
"gitHead": "69ea8886e6d63202c267f37baa3ffa98ae65f3e4",
"_id": "ghost-editor@0.0.2",
"_id": "gh-koenig@0.0.2",
"_shasum": "32cc128a935a22510e421f2beaa20314edfd4560",
"_from": "ghost-editor@latest"
"_from": "gh-koenig@latest"
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

{{ghost-editor
{{gh-koenig
apiRoot="/todo"
assetPath="/assets"
}}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 0 additions & 12 deletions lib/ghost-editor/addon/cards/index.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/ghost-editor/app/components/gh-file-input.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/ghost-editor/app/components/ghost-card.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/ghost-editor/app/components/ghost-editor.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/ghost-editor/app/components/ghost-toolbar-blockitem.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/ghost-editor/app/components/ghost-toolbar-button.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/ghost-editor/app/components/ghost-toolbar-newitem.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/ghost-editor/app/components/ghost-toolbar.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/ghost-editor/app/components/html-card.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/ghost-editor/app/components/image-card.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/ghost-editor/app/components/markdown-card.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/ghost-editor/app/components/slash-menu-item.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/ghost-editor/app/components/slash-menu.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/ghost-editor/app/helpers/if-equals.js

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"ember-addon": {
"paths": [
"lib/asset-delivery",
"lib/ghost-editor"
"lib/gh-koenig"
]
},
"greenkeeper": {
Expand Down

0 comments on commit bcdf9ce

Please sign in to comment.