-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NEW LinkFieldController to handle FormSchema
- Loading branch information
1 parent
f0a3b25
commit 82b03bd
Showing
41 changed files
with
1,397 additions
and
1,513 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -5,5 +5,4 @@ | |
|
||
// Avoid creating global variables | ||
call_user_func(function () { | ||
|
||
}); |
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,23 +1,6 @@ | ||
--- | ||
Name: linkfield | ||
--- | ||
|
||
SilverStripe\Admin\LeftAndMain: | ||
extensions: | ||
- SilverStripe\LinkField\Extensions\LeftAndMain | ||
|
||
SilverStripe\Admin\ModalController: | ||
extensions: | ||
- SilverStripe\LinkField\Extensions\ModalController | ||
|
||
SilverStripe\Forms\TreeDropdownField: | ||
extensions: | ||
- SilverStripe\LinkField\Extensions\AjaxField | ||
|
||
SilverStripe\CMS\Forms\AnchorSelectorField: | ||
extensions: | ||
- SilverStripe\LinkField\Extensions\AjaxField | ||
|
||
SilverStripe\LinkField\Form\FormFactory: | ||
extensions: | ||
- SilverStripe\LinkField\Extensions\FormFactoryExtension | ||
- SilverStripe\LinkField\Extensions\LeftAndMainExtension |
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,7 +1,6 @@ | ||
--- | ||
Name: linkfield-types | ||
--- | ||
|
||
SilverStripe\LinkField\Type\Registry: | ||
types: | ||
cms: | ||
|
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,6 +1,3 @@ | ||
'readLinkDescription(dataStr: String!)': | ||
type: LinkDescription | ||
resolver: ['SilverStripe\LinkField\GraphQL\LinkDescriptionResolver', 'resolve'] | ||
'readLinkTypes(keys: [ID])': | ||
type: '[LinkType]' | ||
resolver: ['SilverStripe\LinkField\GraphQL\LinkTypeResolver', 'resolve'] |
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,11 +1,5 @@ | ||
LinkDescription: | ||
description: Given some Link data, computes the matching description | ||
fields: | ||
description: String | ||
|
||
LinkType: | ||
description: Describe a Type of Link that can be managed by a LinkField | ||
fields: | ||
key: ID | ||
handlerName: String! | ||
title: String! |
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.
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,14 +1,9 @@ | ||
/* global document */ | ||
/* eslint-disable */ | ||
import Config from 'lib/Config'; | ||
import registerReducers from './registerReducers'; | ||
import registerComponents from './registerComponents'; | ||
import registerQueries from './registerQueries'; | ||
|
||
document.addEventListener('DOMContentLoaded', () => { | ||
registerComponents(); | ||
|
||
registerQueries(); | ||
|
||
registerReducers(); | ||
}); |
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
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,8 @@ | ||
/* eslint-disable */ | ||
import Injector from 'lib/Injector'; | ||
import readLinkTypes from 'state/linkTypes/readLinkTypes'; | ||
import readLinkDescription from 'state/linkDescription/readLinkDescription'; | ||
|
||
const registerQueries = () => { | ||
Injector.query.register('readLinkTypes', readLinkTypes); | ||
Injector.query.register('readLinkDescription', readLinkDescription); | ||
}; | ||
export default registerQueries; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.