mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 14:43:08 +03:00
f6d164b5d8
Closes #340. Closes #375 * Replaced session with id of current user * Added method to ghostlocals to always send profile picture and full name to templates (template checks if falsy) * Modified user saving (`forge().set(new).save()` died on me, `forge().save(new)` didn't) * If user has profile picture, that will be used * If user has name, that will be used * Password changing doesn't care about your email. Uses cookies. Tasty! * User pane uses current user id. Had to set path to me, otherwise goes to `browse` instead of `read`. * Added logic to user api to check for `id === 'me'`, and then use the cookie value * User data saves are now correct * There is no logout error |
||
---|---|---|
.. | ||
client | ||
server | ||
shared | ||
test | ||
ghost.js | ||
README.md |
Core
Core contains the bread and butter of ghost. It is currently divided up into:
- client - the assets, helpers, models, view and templates for rendering the admin panel backbone app
- server - the controllers & helpers for driving the server side app along with the model, api, and data
- shared - just contains lang for now, although it's not shared yet, more stuff should go here soon like handlebars helpers
- test - contains unit tests and a set of html prototypes of the admin UI. Really, this folder should reflect all of core
- ghost.js - currently both the glue that binds everything together and what gives us the API for registering themes and plugins. The initTheme function is a bit of a hack which lets us serve different views & static content up for the admin & blog
This structure is by no means final and recommendations are more than welcome.