-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add control panel views for Super Admin
Require new GraphiQL dependency
- Loading branch information
1 parent
9d9a764
commit 64f3efe
Showing
12 changed files
with
2,629 additions
and
1,617 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
return [ | ||
'author' => 'Packet Tide, LLC', | ||
'author_url' => 'https://packettide.com/', | ||
'name' => 'Coilpack', | ||
'description' => 'Supercharge ExpressionEngine with more power, features, and flexibility!', | ||
'version' => \Composer\InstalledVersions::getPrettyVersion('expressionengine/coilpack'), | ||
'namespace' => 'ExpressionEngine\Addons\Coilpack', | ||
'settings_exist' => false, | ||
'built_in' => true, | ||
]; |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php $this->extend('ee:_templates/default-nav'); ?> | ||
|
||
|
||
<?php if (config('coilpack.graphql.enabled') && config('coilpack.graphql.graphiql') !== false) : ?> | ||
<div style="height: 100%"> | ||
<iframe src="/graphiql" width="100%" style="border:none;height:85vh;"></iframe> | ||
</div> | ||
<?php else : ?> | ||
<div class="box panel"> | ||
<div class="panel-heading"> | ||
<h2>GraphQL</h2> | ||
</div> | ||
<div class="panel-body"> | ||
<p><strong>GraphQL support is currently disabled.</strong></p> | ||
<p>Learn how to enable and use GraphQL through <a href="https://expressionengine.github.io/coilpack-docs/docs/graphql/" target="_blank">the Coilpack Documentation</a>.</p> | ||
</div> | ||
</div> | ||
<?php endif; ?> |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php $this->extend('ee:_templates/default-nav'); ?> | ||
|
||
<div class="box panel"> | ||
<div class="panel-heading"> | ||
<h2>Version Information</h2> | ||
</div> | ||
<?php | ||
$table = ee('CP/Table', ['autosort' => true]); | ||
$table->setColumns(['name', 'version']); | ||
$table->setData(array_map(function ($name) use ($versions) { | ||
return [$name, ltrim($versions[$name], 'v')]; | ||
}, array_keys($versions))); | ||
$this->embed('ee:_shared/table', $table->viewData(ee('CP/URL', 'coilpack/overview'))); | ||
?> | ||
<div class="panel-footer"> | ||
<a href="https://expressionengine.github.io/coilpack-docs/" target="_blank">Learn more about Coilpack</a> | ||
</div> | ||
</div> |
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
Oops, something went wrong.