-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENHANCEMENT: Extensible readFiles query (#847)
* POC for injectable asset-admin * Use new API for injectable queries * Build * Fix tests * Rebase against 1 * Make gallery item queries injecatable * Build * Update doc block type * Fix nested form error. Use div in place of form tag
- Loading branch information
Aaron Carlino
authored
Oct 17, 2018
1 parent
b6dc292
commit 902fec0
Showing
11 changed files
with
97 additions
and
60 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
import Injector from 'lib/Injector'; | ||
import { fileInterface, file, folder } from 'lib/fileFragments'; | ||
import readFilesQuery from 'state/files/readFilesQuery'; | ||
|
||
const registerQueries = () => { | ||
Injector.query.registerFragment('FileInterfaceFields', fileInterface); | ||
Injector.query.registerFragment('FileFields', file); | ||
Injector.query.registerFragment('FolderFields', folder); | ||
Injector.query.register('ReadFilesQuery', readFilesQuery); | ||
}; | ||
|
||
export default registerQueries; |
Oops, something went wrong.