This repository has been archived by the owner on Jul 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
88 additions
and
165 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
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,5 +1,6 @@ | ||
{ | ||
"name": "thefehr/lighthouse", | ||
"license": "MIT", | ||
"type": "october-plugin", | ||
"description": "", | ||
"require": { | ||
|
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
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
31 changes: 28 additions & 3 deletions
31
formwidgets/graphqlschemaeditor/partials/_graphqlschemaeditor.htm
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,8 +1,33 @@ | ||
<h2>My graphql schema editor</h2> | ||
<div id="graphqleditor" style="height: 70vh"></div> | ||
<input type="text" id="<?= $this->getId('input') ?>" hidden="hidden" value="<?= $value ?>"> | ||
<textarea style="height: 100%; width: 100%; display: block" | ||
name="<?= $name ?>" | ||
id="<?= $this->getId('input') ?>"><?= $value ?></textarea> | ||
<script> | ||
var graphqlEditorValueId = "<?= $this->getId('input') ?>"; | ||
var myRuntimePublicPath = "<?= $webpackAssetsUrl ?>" | ||
var lighthouseLibrary = ` | ||
directive @all( | ||
""" | ||
Specify the class name of the model to use. | ||
This is only needed when the default model detection does not work. | ||
""" | ||
model: String | ||
""" | ||
Apply scopes to the underlying query. | ||
""" | ||
scopes: [String!] | ||
) on FIELD_DEFINITION | ||
`; | ||
</script> | ||
<script src="<?= $webpackUrl ?>"></script> | ||
<script src="<?= $webpackUrl ?>"></script> | ||
<style> | ||
#graphqleditor > * { | ||
height: 100%; | ||
width: 100%; | ||
margin: 0; | ||
overflow: hidden; | ||
|
||
box-sizing: border-box; | ||
} | ||
</style> |
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 was deleted.
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