Skip to content

Commit

Permalink
API Remove GraphQL
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jul 30, 2024
1 parent 4911ddd commit cc3f8f7
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 700 deletions.
29 changes: 0 additions & 29 deletions _config/graphql-legacy.yml

This file was deleted.

21 changes: 0 additions & 21 deletions _config/graphql.yml

This file was deleted.

13 changes: 0 additions & 13 deletions _graphql/config.yml

This file was deleted.

17 changes: 0 additions & 17 deletions _graphql/models.yml

This file was deleted.

49 changes: 1 addition & 48 deletions client/dist/js/bundle.js

Large diffs are not rendered by default.

25 changes: 0 additions & 25 deletions client/src/boot/registerComponents.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,6 @@
import Injector from 'lib/Injector';
import AnchorSelectorField from 'components/AnchorSelectorField/AnchorSelectorField';
import readOnePageQuery from 'state/history/readOnePageQuery';
import rollbackPageMutation from 'state/history/rollbackPageMutation';

export default () => {
Injector.component.register('AnchorSelectorField', AnchorSelectorField);

Injector.transform(
'pages-history',
(updater) => {
// Add CMS page history GraphQL query to the HistoryViewer
updater.component('HistoryViewer.pages-controller-cms-content', readOnePageQuery, 'PageHistoryViewer');
}
);

Injector.transform(
'pages-history-revert',
(updater) => {
// Add CMS page revert GraphQL mutation to the HistoryViewerToolbar
updater.component(
'HistoryViewerToolbar.VersionedAdmin.HistoryViewer.SiteTree.HistoryViewerVersionDetail',
// This was using `copyToStage` incorrectly which also provides from and to stage
// arguments. The "rollback" mutation correctly handles relations and is a more consumable
// API endpoint.
rollbackPageMutation,
'PageRevertMutation'
);
}
);
};
105 changes: 0 additions & 105 deletions client/src/state/history/readOnePageQuery.js

This file was deleted.

44 changes: 0 additions & 44 deletions client/src/state/history/revertToPageVersionMutation.js

This file was deleted.

41 changes: 0 additions & 41 deletions client/src/state/history/rollbackPageMutation.js

This file was deleted.

Loading

0 comments on commit cc3f8f7

Please sign in to comment.