Ghost/ghost/admin/app
Kevin Ansfield bd6ca272dd 🐛 Fixed wrong breadcrumb and missing post status when starting new post from analytics
closes https://linear.app/tryghost/issue/ENG-1533

- the code to switch to "from analytics" state for the editor was applying when clicking the create post button in the nav menu whilst on the analytics screen which was confusing because you not only lost the `< Posts` link in the editor but you couldn't see the post's saving status
2024-09-19 16:27:40 +01:00
..
adapters
authenticators
components Updated missed references to unique visitors 2024-09-19 12:09:46 +01:00
controllers Fixed missing extra context for Sentry report for editor 404 2024-09-18 17:49:19 +01:00
decorators
errors
helpers Make split number helper handle empty value (#20848) 2024-08-28 10:47:03 +00:00
initializers
instance-initializers
mixins
models 🐛 Fixed editor unsaved changes modal showing too often (#20787) 2024-08-19 18:03:13 +00:00
modifiers Fixed onboarding checklist video logo autoplay (#19967) 2024-04-02 13:55:22 +01:00
routes 🐛 Fixed wrong breadcrumb and missing post status when starting new post from analytics 2024-09-19 16:27:40 +01:00
serializers Added custom excerpt to post revisions (#20323) 2024-06-05 14:47:33 +01:00
services Added comment improvements feature flag (#20986) 2024-09-12 14:49:22 +09:00
session-stores
styles Updated buttons for share modal and post analytics (publish flow) in dark mode (#20989) 2024-09-12 11:39:50 +00:00
templates Removed unused react-editor template file (#20996) 2024-09-12 22:20:19 +00:00
transforms
transitions
utils Refined ui details for Stats page (#20977) 2024-09-11 14:14:05 +00:00
validators Excerpt form error fix (#20730) 2024-08-12 09:35:21 +00:00
app.js
index.html
README.md
router.js Added initial Stats page to Ghost Admin (#20877) 2024-08-29 12:56:39 +01:00
transitions.js

Ghost Admin App

Ember.js application used as a client-side admin for the Ghost blogging platform. This readme is a work in progress guide aimed at explaining the specific nuances of the Ghost Ember app to contributors whose main focus is on this side of things.

CSS

We use pure CSS, which is pre-processed for backwards compatibility by Myth. We do not follow any strict CSS framework, however our general style is pretty similar to BEM.

Styles are primarily broken up into 4 main categories:

  • Patterns - are base level visual styles for HTML elements (eg. Buttons)
  • Components - are groups of patterns used to create a UI component (eg. Modals)
  • Layouts - are groups of components used to create application screens (eg. Settings)

All of these separate files are subsequently imported and compiled in app.css.

Front End Standards

  • 4 spaces for HTML & CSS indentation. Never tabs.
  • Double quotes only, never single quotes.
  • Use tags and elements appropriate for an HTML5 doctype (including self-closing tags)
  • Adhere to the Recess CSS property order.
  • Always a space after a property's colon (.e.g, display: block; and not display:block;).
  • End all lines with a semi-colon.
  • For multiple, comma-separated selectors, place each selector on its own line.
  • Use js- prefixed classes for JavaScript hooks into the DOM, and never use these in CSS as per Slightly Obtrusive JavaScript
  • Avoid over-nesting CSS. Never nest more than 3 levels deep.
  • Use comments to explain "why" not "what" (Good: This requires a z-index in order to appear above mobile navigation. Bad: This is a thing which is always on top!)