Compare commits
4 Commits
a5598130db
...
9b153dacd8
| Author | SHA1 | Date | |
|---|---|---|---|
| 9b153dacd8 | |||
| fdf7e89afe | |||
| 7baa903f7a | |||
| 3e0ba5f209 |
@@ -2,4 +2,4 @@
|
||||
|
||||
## GraphQLKeys
|
||||
|
||||
- **TODO** BelongsTo Member (External DB)
|
||||
- BelongsTo Member (External DB, creation in Social Plugin)
|
||||
|
||||
@@ -32920,7 +32920,7 @@ var _validUrl = __webpack_require__(429);
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
||||
|
||||
var options = { method: 'post', headers: { 'Content-Type': 'application/json' } };
|
||||
var endpoint = 'http://localhost/graphql/'; // Initial
|
||||
var endpoint = 'http://' + window.location.host + '/graphql/'; // Initial
|
||||
|
||||
var defaultQuery = '\n# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that starts\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n# {\n# field(arg: "value") {\n# subField\n# }\n# }\n#\n# Keyboard shortcuts:\n#\n# Run Query: Ctrl-Enter (or press the play button above)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #\n# Default endpoint is an instance of https://www.graph.cool/\n# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #\n\nquery {\n countries {\n name\n }\n}\n';
|
||||
|
||||
|
||||
@@ -8,6 +8,8 @@ class GraphqlKey extends Controller
|
||||
|
||||
public $listConfig = 'config_list.yaml';
|
||||
|
||||
public $requiredPermissions = ['germanairlinesva.graphql.master'];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
@@ -9,6 +9,8 @@ class Playground extends Controller
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public $requiredPermissions = ['germanairlinesva.graphql.master'];
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->pageTitle = 'germanairlinesva.graphql::lang.menu.playground';
|
||||
|
||||
@@ -25,4 +25,8 @@ class GraphqlKey extends Model
|
||||
'member_id' => 'required',
|
||||
'key' => 'required',
|
||||
];
|
||||
|
||||
public $belongsTo = [
|
||||
'member' => 'GermanAirlinesVa\Social\Models\Member',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -2,9 +2,11 @@ columns:
|
||||
id:
|
||||
label: id
|
||||
type: number
|
||||
member_id:
|
||||
label: member_id
|
||||
type: number
|
||||
member:
|
||||
label: member
|
||||
type: text
|
||||
relation: member
|
||||
valueFrom: name
|
||||
valid_from:
|
||||
label: valid_from
|
||||
type: datetime
|
||||
|
||||
+2
-2
@@ -5,7 +5,7 @@ plugin:
|
||||
icon: oc-icon-database
|
||||
homepage: ''
|
||||
permissions:
|
||||
schemas:
|
||||
germanairlinesva.graphql.master:
|
||||
tab: 'germanairlinesva.graphql::lang.permission.tab.schemas'
|
||||
label: 'germanairlinesva.graphql::lang.permission.label.schemas'
|
||||
navigation:
|
||||
@@ -14,7 +14,7 @@ navigation:
|
||||
url: /
|
||||
icon: icon-database
|
||||
permissions:
|
||||
- schemas
|
||||
- germanairlinesva.graphql.master
|
||||
sideMenu:
|
||||
side-menu-item:
|
||||
label: 'germanairlinesva.graphql::lang.menu.playground'
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
# Relations
|
||||
|
||||
## GraphQLKeys
|
||||
|
||||
- **TODO** BelongsTo Member (External DB)
|
||||
@@ -41,9 +41,9 @@ p-defer@^1.0.0:
|
||||
resolved "https://registry.yarnpkg.com/p-defer/-/p-defer-1.0.0.tgz#9f6eb182f6c9aa8cd743004a7d4f96b196b0fb0c"
|
||||
integrity sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=
|
||||
|
||||
"php-parser@git+https://github.com/glayzzle/php-parser.git#e61e26102144f267ecf5e09020865a9baa6ca2f1":
|
||||
"php-parser@https://github.com/glayzzle/php-parser#e61e26102144f267ecf5e09020865a9baa6ca2f1":
|
||||
version "3.0.2"
|
||||
resolved "git+https://github.com/glayzzle/php-parser.git#e61e26102144f267ecf5e09020865a9baa6ca2f1"
|
||||
resolved "https://github.com/glayzzle/php-parser#e61e26102144f267ecf5e09020865a9baa6ca2f1"
|
||||
|
||||
prettier@^2.3.2:
|
||||
version "2.3.2"
|
||||
|
||||
Reference in New Issue
Block a user