Ghost/ghost/admin/app/services
Rishabh Garg 65495b528f 🐛 Fixed settings previews not working in private site mode (#2128)
closes https://github.com/TryGhost/Team/issues/1161

- when a site is in private mode, design previews, the portal previews on membership, customize portal and offer pages were unable to load. 
- For design and theme previews, the request to fetch preview data was failing due to cors and cookie not attached when admin and frontend have split urls. 
- For portal and offer previews, there was no authentication done on private site before load, so if user opened the pages directly on them it failed to load the site.
- this change adds a new service that authenticates private site from admin as soon as user session is loaded, so previews on settings will always find the authenticated session for private sites and load correctly.
- it also updates fetch method for previews to include credentials so they are always able to fetch the site data after login
- removes authentication from site route since that was done as its now centrally taken care of by the frontend service
2021-10-28 18:29:41 +05:30
..
ajax.js Fixed tests 2021-07-14 12:55:23 +01:00
billing.js Fetched owner users at earlier stage to have it ready for BMA 2021-10-28 12:10:24 +02:00
clock.js Remove more import Ember via module imports 2018-05-03 17:52:39 +01:00
config.js Added pre-filled options to email-cta card's button url input 2021-08-20 14:33:30 +01:00
custom-theme-settings.js Optimized loading of custom theme setting in design screens 2021-10-22 10:49:13 +01:00
custom-views.js Made session.user a synchronous property rather than a promise 2021-07-08 14:54:31 +01:00
dropdown.js Switched from ember-cli-shims to new module imports (#779) 2017-08-22 14:53:26 +07:00
event-bus.js Switched from ember-cli-shims to new module imports (#779) 2017-08-22 14:53:26 +07:00
feature.js 🐛 Fixed offers and custom theme setting features not appearing in Admin 2021-10-23 15:56:16 +01:00
frontend.js 🐛 Fixed settings previews not working in private site mode (#2128) 2021-10-28 18:29:41 +05:30
ghost-paths.js 🐛 Fixed low-resolution gravatar images on Team/User screens 2018-05-14 12:15:08 +01:00
lazy-loader.js 🐛 Fixed night shift toggle in Firefox Nightly. (#1174) 2019-04-25 09:40:26 +02:00
limit.js Added upgrade moal when unsuspending staff user 2021-04-28 18:07:18 +04:00
media-queries.js Unsplash integration 2017-08-15 16:01:12 +01:00
media.js Bumped dependencies (#1108) 2019-03-05 17:34:00 +00:00
member-import-validator.js Added new members CSV importer (#1797) 2020-12-10 01:02:31 +05:30
members-count-cache.js Made session.user a synchronous property rather than a promise 2021-07-08 14:54:31 +01:00
members-stats.js 🐛 Fixed incorrect MRR value on dashboard 2021-08-09 17:47:09 +05:30
members-utils.js Refined offer detail screen 2021-10-19 13:08:31 +05:30
modals.js Added install+activate process to view theme screen 2021-10-12 16:47:44 +01:00
navigation.js Made session.user a synchronous property rather than a promise 2021-07-08 14:54:31 +01:00
notifications.js Switched from Sentry.captureMessage to captureException for better logging 2021-05-26 17:18:02 +01:00
resize-detector.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00
session.js 🐛 Fixed settings previews not working in private site mode (#2128) 2021-10-28 18:29:41 +05:30
settings.js Added default newsletter recipients setting (#1946) 2021-05-07 10:02:19 +01:00
slug-generator.js Refactored usage of .get('property') with es5 getters 2019-03-06 13:54:14 +00:00
theme-management.js 🐛 Fixed settings previews not working in private site mode (#2128) 2021-10-28 18:29:41 +05:30
ui.js Switched design screen from modals to standard routes 2021-10-11 15:24:46 +01:00
unsplash.js Fixed multiple no-shadow linting errors 2020-06-17 09:35:46 +01:00
upgrade-status.js Switch deprecated htmlSafe imports from @ember/string to @ember/template 2021-05-12 12:33:40 +01:00
utils.js Added utils service with downloadFile() method 2021-10-05 14:21:19 +01:00
whats-new.js Added "What's new" indicator and modal to highlight recent updates (#1292) 2019-08-23 10:01:27 +01:00