Ghost/ghost/admin/app
Kevin Ansfield 3fd32ce3cf
Lexical-powered editor experiment (#15278)
no issue

We're spending a bit of time playing with an alternative to mobiledoc-kit to test it's feasibility as a base for future editor improvements.

- add `editor.lexicalUrl` config that points at the unpkg release by default
- set up a route on `/ghost/#/lexical-editor/post/` for the test playground which renders `<KoenigLexicialEditor>` as the editor
- adds `<KoenigLexicalEditor>` component that lazy loads the external react component
2022-08-23 11:45:50 +01:00
..
adapters
authenticators
components Lexical-powered editor experiment (#15278) 2022-08-23 11:45:50 +01:00
controllers Lexical-powered editor experiment (#15278) 2022-08-23 11:45:50 +01:00
errors
helpers Added reset functions to Audit log 2022-08-23 11:37:45 +02:00
initializers
mixins
models Added member attribution to member details page (#15266) 2022-08-19 16:39:18 -04:00
modifiers
routes Lexical-powered editor experiment (#15278) 2022-08-23 11:45:50 +01:00
serializers
services Wired expiring comp subscriptions on Admin 2022-08-19 18:20:52 +05:30
session-stores
styles Fixed bug with free membership price card 2022-08-23 12:37:30 +02:00
templates Lexical-powered editor experiment (#15278) 2022-08-23 11:45:50 +01:00
transforms
transitions
utils
validators Updated error message 2022-08-17 21:27:02 +02:00
app.js
index.html
README.md
router.js Lexical-powered editor experiment (#15278) 2022-08-23 11:45:50 +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 JavaSript
  • 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!)