Formating .htm removed
This commit is contained in:
parent
52ecda573b
commit
064e8a8054
@ -1 +1,2 @@
|
|||||||
|
<div id="mount"></div>
|
||||||
<script type="text/javascript" src="/plugins/germanairlinesva/graphql/assets/js/graphiql.js"></script>
|
<script type="text/javascript" src="/plugins/germanairlinesva/graphql/assets/js/graphiql.js"></script>
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
title = "CMS" ==
|
==
|
||||||
<?php
|
<?php
|
||||||
use Cms\Classes\Theme;
|
use Cms\Classes\Theme;
|
||||||
use Cms\Classes\Content;
|
use Cms\Classes\Content;
|
||||||
@ -11,6 +11,21 @@ function resolveCmsContent($root, $args) {
|
|||||||
return Content::loadCached($theme, $args['name']);
|
return Content::loadCached($theme, $args['name']);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
== # Content extend type Query { cmsContent(name: String!): CmsContent! } type CmsContent { fileName: String! content:
|
==
|
||||||
String markup: String parsedMarkup: String } # CMS-wide types # Backend\Models\User type BackendUser { id: ID! }
|
# Content
|
||||||
#System\Models\File type SystemFile { id: ID path: String title: String description: String }
|
extend type Query {
|
||||||
|
cmsContent(name: String!): CmsContent!
|
||||||
|
}
|
||||||
|
|
||||||
|
type CmsContent {
|
||||||
|
fileName: String!
|
||||||
|
content: String
|
||||||
|
markup: String
|
||||||
|
parsedMarkup: String
|
||||||
|
}
|
||||||
|
|
||||||
|
# CMS-wide types
|
||||||
|
# Backend\Models\User
|
||||||
|
type BackendUser { id: ID! }
|
||||||
|
#System\Models\File
|
||||||
|
type SystemFile { id: ID path: String title: String description: String }
|
||||||
|
|||||||
@ -1,8 +1,27 @@
|
|||||||
title = "Fleet" == == # Content extend type Query { aircraft: [Aircraft] @all(model:
|
==
|
||||||
"GermanAirlinesVa\\Fleet\\Models\\Aircraft") aircraftType: [AircraftType] @all(model:
|
==
|
||||||
"GermanAirlinesVa\\Fleet\\Models\\AircraftType") } extend type Subscription { aircraftAdded: Aircraft
|
# Content
|
||||||
@subscription(class: "GermanAirlinesVa\\Fleet\\Classes\\AircraftAdded") } extend type Mutation { addAircraft(
|
extend type Query {
|
||||||
aircraft_type_id: ID!, home_airport_id: ID!, name: String!, registration: String! ): Aircraft @create(model:
|
aircraft: [Aircraft] @all(model: "GermanAirlinesVa\\Fleet\\Models\\Aircraft")
|
||||||
"GermanAirlinesVa\\Fleet\\Models\\Aircraft") @broadcast(subscription: "aircraftAdded") } type Aircraft { id: ID!
|
aircraftType: [AircraftType] @all(model: "GermanAirlinesVa\\Fleet\\Models\\AircraftType")
|
||||||
aircraft_type_id: ID! home_airport_id: ID! name: String! registration: String! } type AircraftType { type: String!
|
}
|
||||||
aircrafts: [Aircraft] @hasMany }
|
extend type Subscription {
|
||||||
|
aircraftAdded: Aircraft @subscription(class: "GermanAirlinesVa\\Fleet\\Classes\\AircraftAdded")
|
||||||
|
}
|
||||||
|
extend type Mutation {
|
||||||
|
addAircraft(aircraft_type_id: ID!, home_airport_id: ID!, name: String!, registration: String! ): Aircraft
|
||||||
|
@create(model:"GermanAirlinesVa\\Fleet\\Models\\Aircraft")
|
||||||
|
@broadcast(subscription: "aircraftAdded")
|
||||||
|
}
|
||||||
|
|
||||||
|
type Aircraft {
|
||||||
|
id: ID!
|
||||||
|
aircraft_type_id: ID!
|
||||||
|
home_airport_id: ID!
|
||||||
|
name: String!
|
||||||
|
registration: String!
|
||||||
|
}
|
||||||
|
type AircraftType {
|
||||||
|
type: String!
|
||||||
|
aircrafts: [Aircraft] @hasMany
|
||||||
|
}
|
||||||
|
|||||||
@ -11,6 +11,6 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preinstall": "git config core.hooksPath .hooks",
|
"preinstall": "git config core.hooksPath .hooks",
|
||||||
"format": "prettier --write './**/*.{php,html,htm,yaml}'"
|
"format": "prettier --write './**/*.{php,html,yaml}'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user