Stack Trace
42 |{{message}}
43 |-
44 | {{#foreach stack}}
45 |
- 46 | at 47 | {{#if function}}{{function}}{{/if}} 48 | ({{at}}) 49 | 50 | {{/foreach}} 51 |
├── core ├── client │ ├── tpl │ │ ├── modals │ │ │ ├── blank.hbs │ │ │ ├── copyToHTML.hbs │ │ │ ├── uploadImage.hbs │ │ │ └── markdown.hbs │ │ ├── notification.hbs │ │ ├── settings │ │ │ ├── sidebar.hbs │ │ │ ├── general.hbs │ │ │ └── user-profile.hbs │ │ ├── forgotten.hbs │ │ ├── reset.hbs │ │ ├── login.hbs │ │ ├── signup.hbs │ │ ├── list-item.hbs │ │ ├── modal.hbs │ │ └── preview.hbs │ ├── assets │ │ ├── sass │ │ │ ├── ie.scss │ │ │ ├── modules │ │ │ │ ├── breakpoint │ │ │ │ │ ├── _no-query.scss │ │ │ │ │ ├── parsers │ │ │ │ │ │ ├── single │ │ │ │ │ │ │ └── _default.scss │ │ │ │ │ │ ├── double │ │ │ │ │ │ │ ├── _double-string.scss │ │ │ │ │ │ │ ├── _default.scss │ │ │ │ │ │ │ └── _default-pair.scss │ │ │ │ │ │ ├── triple │ │ │ │ │ │ │ └── _default.scss │ │ │ │ │ │ ├── _single.scss │ │ │ │ │ │ ├── _resolution.scss │ │ │ │ │ │ ├── _triple.scss │ │ │ │ │ │ ├── _double.scss │ │ │ │ │ │ ├── resolution │ │ │ │ │ │ │ └── _resolution.scss │ │ │ │ │ │ └── _query.scss │ │ │ │ │ ├── _respond-to.scss │ │ │ │ │ ├── _parsers.scss │ │ │ │ │ └── _context.scss │ │ │ │ ├── animations.scss │ │ │ │ └── breakpoint.scss │ │ │ ├── screen.scss │ │ │ └── layouts │ │ │ │ └── errors.scss │ │ ├── img │ │ │ ├── large.png │ │ │ ├── medium.png │ │ │ ├── small.png │ │ │ ├── 404-ghost.png │ │ │ ├── loadingcat.gif │ │ │ ├── 404-ghost@2x.png │ │ │ ├── touch-icon-ipad.png │ │ │ └── touch-icon-iphone.png │ │ ├── fonts │ │ │ ├── icons.eot │ │ │ ├── icons.ttf │ │ │ └── icons.woff │ │ └── vendor │ │ │ ├── to-title-case.js │ │ │ ├── codemirror │ │ │ ├── addon │ │ │ │ └── mode │ │ │ │ │ └── overlay.js │ │ │ └── mode │ │ │ │ └── gfm │ │ │ │ ├── index.html │ │ │ │ ├── gfm.js │ │ │ │ └── test.js │ │ │ ├── showdown │ │ │ └── extensions │ │ │ │ └── ghostdown.js │ │ │ └── icheck │ │ │ └── jquery.icheck.min.js │ ├── models │ │ ├── tag.js │ │ ├── themes.js │ │ ├── settings.js │ │ ├── user.js │ │ ├── base.js │ │ ├── widget.js │ │ ├── uploadModal.js │ │ └── post.js │ ├── helpers │ │ └── index.js │ ├── toggle.js │ ├── mobile-interactions.js │ ├── router.js │ └── init.js ├── test │ ├── utils │ │ ├── fixtures │ │ │ ├── test.hbs │ │ │ └── theme │ │ │ │ └── partials │ │ │ │ └── test.hbs │ │ ├── api.js │ │ └── index.js │ ├── blanket_coverage.js │ ├── functional │ │ ├── frontend │ │ │ ├── route_test.js │ │ │ ├── error_test.js │ │ │ ├── post_test.js │ │ │ ├── feed_test.js │ │ │ └── home_test.js │ │ ├── admin │ │ │ ├── flow_test.js │ │ │ └── logout_test.js │ │ └── api │ │ │ └── tags_test.js │ ├── unit │ │ ├── server_helpers_template_spec.js │ │ ├── server_spec.js │ │ ├── export_spec.js │ │ ├── plugin_proxy_spec.js │ │ └── client_ghostdown_spec.js │ └── integration │ │ └── model │ │ ├── model_roles_spec.js │ │ └── model_permissions_spec.js ├── server │ ├── views │ │ ├── reset.hbs │ │ ├── login.hbs │ │ ├── forgotten.hbs │ │ ├── signup.hbs │ │ ├── settings.hbs │ │ ├── partials │ │ │ ├── notifications.hbs │ │ │ └── navbar.hbs │ │ ├── content.hbs │ │ ├── error.hbs │ │ ├── debug.hbs │ │ ├── user-error.hbs │ │ └── default.hbs │ ├── data │ │ ├── import │ │ │ ├── 001.js │ │ │ └── index.js │ │ ├── export │ │ │ └── index.js │ │ └── default-settings.json │ ├── routes │ │ ├── index.js │ │ ├── frontend.js │ │ ├── api.js │ │ └── admin.js │ ├── helpers │ │ ├── tpl │ │ │ ├── nav.hbs │ │ │ └── pagination.hbs │ │ └── template.js │ ├── permissions │ │ └── objectTypeModelMap.js │ ├── api │ │ ├── tags.js │ │ ├── notifications.js │ │ ├── index.js │ │ └── users.js │ ├── storage │ │ ├── index.js │ │ ├── base.js │ │ └── localfilesystem.js │ ├── plugins │ │ ├── proxy.js │ │ ├── loader.js │ │ └── index.js │ ├── api.js │ ├── middleware.js │ ├── models │ │ ├── session.js │ │ ├── role.js │ │ ├── permission.js │ │ ├── tag.js │ │ └── index.js │ ├── config │ │ ├── theme.js │ │ └── index.js │ ├── require-tree.js │ ├── middleware │ │ └── ghost-busboy.js │ ├── filters.js │ └── bookshelf-session.js ├── shared │ ├── img │ │ ├── user-cover.png │ │ └── user-image.png │ ├── lang │ │ ├── en_US.json │ │ └── i18n.js │ └── favicon.ico ├── index.js └── server.js ├── Gemfile ├── content ├── plugins │ └── README.md ├── images │ └── README.md └── data │ └── README.md ├── .gitmodules ├── index.js ├── Gemfile.lock ├── SECURITY.md ├── .travis.yml ├── .gitignore ├── LICENSE └── package.json /core/client/tpl/modals/blank.hbs: -------------------------------------------------------------------------------- 1 | {{{content.text}}} -------------------------------------------------------------------------------- /core/test/utils/fixtures/test.hbs: -------------------------------------------------------------------------------- 1 |
3 |
4 |
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | // # Ghost bootloader
2 | // Orchestrates the loading of Ghost
3 | // When run from command line.
4 |
5 | var ghost = require('./core');
6 |
7 | ghost();
--------------------------------------------------------------------------------
/core/server/data/import/001.js:
--------------------------------------------------------------------------------
1 | var Importer000 = require('./000');
2 |
3 | module.exports = {
4 | Importer001: Importer000,
5 | importData: function (data) {
6 | return new Importer000.importData(data);
7 | }
8 | };
--------------------------------------------------------------------------------
/core/client/tpl/notification.hbs:
--------------------------------------------------------------------------------
1 | {{message}}
17 |{{message}}
43 |Optionally depends on other modes for properly highlighted code blocks.
70 | 71 |Parsing/Highlighting Tests: normal, verbose.
72 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /core/test/utils/api.js: -------------------------------------------------------------------------------- 1 | var _ = require('underscore'), 2 | url = require('url'), 3 | ApiRouteBase = '/ghost/api/v0.1/', 4 | host = 'localhost', 5 | port = '2369'; 6 | schema = "http://", 7 | expectedProperties = { 8 | posts: ['posts', 'page', 'limit', 'pages', 'total'], 9 | post: ['id', 'uuid', 'title', 'slug', 'markdown', 'html', 'meta_title', 'meta_description', 10 | 'featured', 'image', 'status', 'language', 'author_id', 'created_at', 'created_by', 'updated_at', 11 | 'updated_by', 'published_at', 'published_by', 'page', 'author', 'user', 'tags'], 12 | // TODO: remove databaseVersion, dbHash 13 | settings: ['databaseVersion', 'dbHash', 'title', 'description', 'email', 'logo', 'cover', 'defaultLang', 14 | "permalinks", 'postsPerPage', 'forceI18n', 'activeTheme', 'activePlugins', 'installedPlugins', 15 | 'availableThemes', 'nextUpdateCheck', 'displayUpdateNotification'], 16 | tag: ['id', 'uuid', 'name', 'slug', 'description', 'parent_id', 17 | 'meta_title', 'meta_description', 'created_at', 'created_by', 'updated_at', 'updated_by'], 18 | user: ['id', 'uuid', 'name', 'slug', 'email', 'image', 'cover', 'bio', 'website', 19 | 'location', 'accessibility', 'status', 'language', 'meta_title', 'meta_description', 20 | 'created_at', 'updated_at'] 21 | }; 22 | 23 | 24 | function getApiURL (route) { 25 | var baseURL = url.resolve(schema + host + ':' + port, ApiRouteBase); 26 | return url.resolve(baseURL, route); 27 | } 28 | function getSigninURL () { 29 | return url.resolve(schema + host + ':' + port, 'ghost/signin/'); 30 | } 31 | function getAdminURL () { 32 | return url.resolve(schema + host + ':' + port, 'ghost/'); 33 | } 34 | 35 | // make sure the API only returns expected properties only 36 | function checkResponse (jsonResponse, objectType) { 37 | checkResponseValue(jsonResponse, expectedProperties[objectType]); 38 | } 39 | function checkResponseValue (jsonResponse, properties) { 40 | Object.keys(jsonResponse).length.should.eql(properties.length); 41 | for(var i=0; iHello There! Looks like something went wrong with your JavaScript.
50 |Either you need to enable JavaScript, or you haven't built the JavaScript files yet. See the README and CONTRIBUTING files for more info.
51 || Result | 6 |Markdown | 7 |Shortcut | 8 |
|---|---|---|
| Bold | 13 |**text** | 14 |Ctrl / Cmd + B | 15 |
| Emphasize | 18 |*text* | 19 |Ctrl / Cmd + I | 20 |
Inline Code |
23 | `code` | 24 |Cmd + K / Ctrl + Shift + K | 25 |
| Strike-through | 28 |~~text~~ | 29 |Ctrl + Alt + U | 30 |
| Link | 33 |[title](http://) | 34 |Ctrl + Shift + L | 35 |
| Image | 38 | | 39 |Ctrl + Shift + I | 40 |
| List | 43 |* item | 44 |Ctrl + L | 45 |
| Blockquote | 48 |> quote | 49 |Ctrl + Q | 50 |
| H1 | 53 |# Heading | 54 |Ctrl + Alt + 1 | 55 |
| H2 | 58 |## Heading | 59 |Ctrl + Alt + 2 | 60 |
| H3 | 63 |### Heading | 64 |Ctrl + Alt + 3 | 65 |
| H4 | 68 |#### Heading | 69 |Ctrl + Alt + 4 | 70 |
| H5 | 73 |##### Heading | 74 |Ctrl + Alt + 5 | 75 |
| H6 | 78 |###### Heading | 79 |Ctrl + Alt + 6 | 80 |
| Select Word | 83 |84 | | Ctrl + Alt + W | 85 |
| New Paragraph | 88 |89 | | Ctrl / Cmd + Enter | 90 |
| Uppercase | 93 |94 | | Ctrl + U | 95 |
| Lowercase | 98 |99 | | Ctrl + Shift + U | 100 |
| Titlecase | 103 |104 | | Ctrl + Alt + Shift + U | 105 |
| Insert Current Date | 108 |109 | | Ctrl + Shift + 1 | 110 |