0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/client/app
Kevin Ansfield 9aa43ec751 Don't add trailing slash to end of url with parameters
no issue
- updates the `TrailingHistory` locationType so that trailing slashes aren't added to the end of URLs with parameters but instead matches how the server-side redirects to trailing-slash URLs
- before: `/subscribers?order=created_at/`
- after: `/subscribers/?order=created_at`
2016-04-28 12:42:03 +01:00
..
adapters Return http status 204 on deletes 2016-03-22 11:42:48 -05:00
authenticators
authorizers
components deps: ember-invoke-action@1.3.0 2016-04-26 16:32:17 -05:00
controllers Use a custom transform to simplify navigation settings 2016-04-26 12:32:29 +01:00
helpers replace gh-selectize with power-select in gh-search-input 2016-04-19 10:55:10 -05:00
html
initializers Don't add trailing slash to end of url with parameters 2016-04-28 12:42:03 +01:00
instance-initializers deps: ember@2.5.0 2016-04-15 00:24:57 -05:00
mirage Enable ability to mock endpoints in development mode 2016-04-14 15:26:39 +01:00
mixins Don't share errors and hasValidated references between validator instances 2016-04-25 10:56:11 +01:00
models Use a custom transform to simplify navigation settings 2016-04-26 12:32:29 +01:00
routes Improve PaginationRoute mixin 2016-04-19 10:53:45 +01:00
serializers Fix redirect to posts list when saving a new post as an author 2016-04-13 12:28:11 -05:00
services Replace jQuery-based uploader.js with ember components 2016-04-05 12:03:20 +01:00
session-stores
styles replace gh-selectize with power-select in gh-search-input 2016-04-19 10:55:10 -05:00
templates Use a custom transform to simplify navigation settings 2016-04-26 12:32:29 +01:00
transforms Use a custom transform to simplify navigation settings 2016-04-26 12:32:29 +01:00
utils Merge pull request #6651 from kevinansfield/uploader-js-must-die 2016-04-14 16:57:57 +01:00
validators
_config.yml
app.js
index.html Restructure Configuration API endpoint 2016-02-19 18:49:23 +00:00
README.md
resolver.js
router.js
transitions.js

Ghost Admin Client

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!)