Ghost/ghost/admin/app/services
Kevin Ansfield c77c150745 Refactored facebook/twitter URL inputs
refs https://github.com/TryGhost/Ghost/issues/14101

Twitter/facebook URL validation doesn't follow our typical validation and was duplicated across multiple screens making the controllers unnecessarily complex.

- extracted url input fields and their validation into separate components
- uses tracked scratch values so that the input field values can reset to the saved value on save
  - twitter/facebook URL inputs are different to our other inputs because invalid values won't prevent saving, instead they are reset to their previous value on save
- added `this.validate()` call after a successful save in `settings` service so the service and underlying model validations are both in sync (fixes validation error sticking around after saving with invalid twitter/facebook values that have been reset)
2022-10-04 17:55:24 +01:00
..
ajax.js Fixed mirage members route permissions checks 2022-10-03 14:59:16 +01:00
billing.js Collapsed @service injection definitions to single-line style 2022-02-03 19:04:43 +00:00
clock.js Dropped ember-cli-moment-shim dependency 2022-09-24 13:28:23 +02:00
config.js Collapsed @service injection definitions to single-line style 2022-02-03 19:04:43 +00:00
custom-theme-settings.js Dropped ember-concurrency-decorators dependency 2022-02-09 10:49:38 +00:00
custom-views.js Cleaned up icon styles 2022-09-02 16:56:02 +01:00
dashboard-mocks.js Added empty state mock option for attribution data 2022-10-03 14:56:37 +05:30
dashboard-stats.js Added modal for showing all attribution sources 2022-09-26 10:43:05 +05:30
data-cache.js Added data-cache service for managing limited-lifetime cached data 2022-01-21 18:15:06 +00:00
dropdown.js [chore] Ran native classes codemod for app/services (#2240) 2022-02-02 22:11:11 +00:00
event-bus.js [chore] Ran native classes codemod for app/services (#2240) 2022-02-02 22:11:11 +00:00
feature.js Removed search labs flag 2022-09-20 15:22:06 +01:00
frontend.js Ran ember-cli-update --run-codemods (#2219) 2022-01-21 19:25:47 +00:00
ghost-paths.js [chore] Ran native classes codemod for app/services (#2240) 2022-02-02 22:11:11 +00:00
lazy-loader.js Collapsed @service injection definitions to single-line style 2022-02-03 19:04:43 +00:00
limit.js Update dependency eslint-plugin-ghost to v2.14.0 (#2441) 2022-08-03 12:21:16 +01:00
media-queries.js [chore] Ran native classes codemod for app/services (#2240) 2022-02-02 22:11:11 +00:00
member-import-validator.js Collapsed @service injection definitions to single-line style 2022-02-03 19:04:43 +00:00
members-count-cache.js Dropped ember-cli-moment-shim dependency 2022-09-24 13:28:23 +02:00
members-stats.js Merged v5.16.1 into main 2022-09-27 11:21:48 +07:00
members-utils.js Removed attribution sources from UI if site is invite-only 2022-09-28 17:26:38 +05:30
modals.js Fixed modalOptions.ignoreBackdropClick not always being picked up 2022-07-13 16:02:34 +01:00
navigation.js Ran ember-cli-update --run-codemods (#2219) 2022-01-21 19:25:47 +00:00
notifications.js Fixed @sentry/browser imports 2022-09-24 13:28:35 +02:00
resize-detector.js Migrated <GhUnsplash> to glimmer component 2022-02-07 16:53:12 +00:00
session.js Fixed @sentry/browser imports 2022-09-24 13:28:35 +02:00
settings.js Refactored facebook/twitter URL inputs 2022-10-04 17:55:24 +01:00
slug-generator.js Collapsed @service injection definitions to single-line style 2022-02-03 19:04:43 +00:00
tenor.js 💡 Upgraded Tenor API to v2 (#15087) 2022-08-05 12:13:27 +01:00
theme-management.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
ui.js Ran ember-cli-update --run-codemods (#2219) 2022-01-21 19:25:47 +00:00
unsplash.js Fixed multiple no-shadow linting errors 2020-06-17 09:35:46 +01:00
upgrade-status.js Collapsed @service injection definitions to single-line style 2022-02-03 19:04:43 +00:00
utils.js Fixed ref instead of rel when stripping querystring from tracked url 2022-09-28 11:03:00 +02:00
whats-new.js Dropped ember-cli-moment-shim dependency 2022-09-24 13:28:23 +02:00