mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
5047b9f3d7
refs https://github.com/TryGhost/Ghost/issues/9865, https://github.com/TryGhost/Ghost/issues/9942 - `integration`, `api-key`, and `webhook` models and respective mirage mocks - moves integration routes around to match ember's concept of nested routes (nested routes reflect nested UI not nested URLs) - adds custom integrations list to integrations screen - adds custom integration screen - allow editing of integration details - show list of webhooks - webhook creation modal NB: the `enableDeveloperExperiments` flag needs to be enabled in the `config.development.json` file for the custom integrations UI to be displayed until it's out of development.
21 lines
506 B
JavaScript
21 lines
506 B
JavaScript
import moment from 'moment';
|
|
import {Factory} from 'ember-cli-mirage';
|
|
|
|
export default Factory.extend({
|
|
type: 'content',
|
|
secret() {
|
|
if (this.integration) {
|
|
return `${this.integration.slug}_${this.type}_key-12345`;
|
|
}
|
|
return `${this.type}_key-12345`;
|
|
},
|
|
lastSeenAt() {
|
|
return moment.utc().format();
|
|
},
|
|
|
|
createdAt() { return moment.utc().format(); },
|
|
createdBy: 1,
|
|
updatedAt() { return moment.utc().format(); },
|
|
updatedBy: 1
|
|
});
|