Skip to content
This repository has been archived by the owner on Jul 22, 2021. It is now read-only.

Add graphql editor #3

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ graphql/*.graphql

graphql/schema.graphql.valid

node_modules/
node_modules/
formwidgets/graphqlschemaeditor/assets/
!formwidgets/graphqlschemaeditor/assets/.gitkeep
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "thefehr/lighthouse",
"license": "MIT",
"type": "october-plugin",
"description": "",
"require": {
Expand Down
3 changes: 2 additions & 1 deletion formwidgets/GraphQLSchemaEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ public function prepareVars()
$this->vars['name'] = $this->formField->getName();
$this->vars['value'] = $this->getLoadValue();
$this->vars['model'] = $this->model;
$this->vars['webpackAssetsUrl'] = asset('/plugins/thefehr/lighthouse/formwidgets/graphqlschemaeditor/assets/');
$this->vars['webpackUrl'] = asset('/plugins/thefehr/lighthouse/formwidgets/graphqlschemaeditor/assets/graphqlschemaeditor.js');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line exceeds 120 characters; contains 135 characters

}

/**
* @inheritDoc
*/
public function loadAssets()
{
$this->addJs('packloader.js', 'TheFehr.Lighthouse');
$this->addCss('https://code.cdn.mozilla.net/fonts/fira.css');
}

Expand Down
Empty file.
15 changes: 0 additions & 15 deletions formwidgets/graphqlschemaeditor/assets/0.graphqlschemaeditor.js

This file was deleted.

This file was deleted.

Loading