Ghost/ghost/admin/app/services
Kevin Ansfield 24507ac5cc Added preview page selector to design settings screen
closes https://github.com/TryGhost/Team/issues/1103

Custom post settings can be grouped by homepage or post, when set to `'post'` it makes sense to be able to preview a post page rather than the homepage.

- added preview type selection to `themeManagement` service
  - `.availablePreviewTypes` is useful for populating selects or other page selection elements
  - `.previewType` is set to the currently selected preview type name
  - `.setPreviewType()` is for setting the preview type and re-generating the preview html if necessary
- updated `themeManagement.updatePreviewHtmlTask` to fetch the latest published post if we don't already have a published post reference in the store, that post's `url` is then used when fetching the preview html if the preview type is set to `'post'`
- added a select element to the design index header that uses the themeManagement properties/actions to list types and update the preview on change
- updated the design nav menu to switch preview types when different sections are opened so the preview automatically switches to the post preview when making changes to the "post" custom theme settings group
2021-10-13 16:07:01 +01:00
..
ajax.js
billing.js Show notifications for overdue subscriptions and exceeded limits 2021-09-30 14:00:32 +01:00
clock.js
config.js
custom-theme-settings.js Fixed custom theme settings disappearing after save 2021-10-05 21:45:11 +01:00
custom-views.js
dropdown.js
event-bus.js
feature.js Added auto-check of match helper flag when enabling custom theme settings 2021-10-12 15:33:03 +01:00
ghost-paths.js
lazy-loader.js
limit.js
media-queries.js
media.js
member-import-validator.js
members-count-cache.js
members-stats.js
members-utils.js
modals.js Added install+activate process to view theme screen 2021-10-12 16:47:44 +01:00
navigation.js
notifications.js
resize-detector.js
session.js 🎨 Added ability to upload a feature image by drag and dropping an image file 2021-08-31 14:21:25 +01:00
settings.js
slug-generator.js
theme-management.js Added preview page selector to design settings screen 2021-10-13 16:07:01 +01:00
ui.js Switched design screen from modals to standard routes 2021-10-11 15:24:46 +01:00
unsplash.js
upgrade-status.js
utils.js Added utils service with downloadFile() method 2021-10-05 14:21:19 +01:00
whats-new.js