Skip to content

Commit

Permalink
adminer kungfu
Browse files Browse the repository at this point in the history
  • Loading branch information
codingjungle committed Jul 26, 2022
1 parent 5080a83 commit aae7410
Show file tree
Hide file tree
Showing 20 changed files with 435 additions and 117 deletions.
52 changes: 26 additions & 26 deletions data/javascript.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion data/lang.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<language>
<app key="toolbox" version="50012">
<app key="toolbox" version="50013">
<word key="__app_toolbox" js="0">Dev Toolbox</word>
<word key="menutab__devtools" js="0">Dev Toolbox</word>
<word key="menutab__devtools_icon" js="0">wrench</word>
Expand Down
3 changes: 2 additions & 1 deletion data/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
"50009": "5.0.9",
"50010": "5.0.10",
"50011": "5.0.11",
"50012": "5.0.12"
"50012": "5.0.12",
"50013": "5.0.13"
}
2 changes: 1 addition & 1 deletion dev/html/global/fforms/header.phtml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ips:template parameters="$lang, $id, $class=''" />
<li class="ipsFieldRow_section {$class}" id="{$id}">
<span class="ipsType_bold">{lang="$lang"}</span>
<span class="ipsType_bold">{lang="$lang"}</span>
</li>
5 changes: 5 additions & 0 deletions extensions/toolbox/Headerdoc/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,16 @@ public function indexEnabled()
**/
public function filesSkip(&$skip)
{
$skip[] = 'adminer.php';
$skip[] = 'bootstrap.inc.php';
}

/**
* directories to skip during building of the tar
**/
public function dirSkip(&$skip)
{
$skip[] = 'AdminerDb';

}

Expand All @@ -66,6 +69,8 @@ public function dirSkip(&$skip)
public function exclude(&$skip)
{
$skip[] = 'AdminerDb';

$skip[] = 'adminer.php';
$skip[] = 'bootstrap.inc.php';
}
}
1 change: 0 additions & 1 deletion hooks/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class toolbox_hook_Application extends _HOOK_CLASS_
{
public $skip = false;


/**
* @inheritdoc
*/
Expand Down
11 changes: 7 additions & 4 deletions hooks/BuilderIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@ public function current()
$file = $this->key();
$file = \IPS\Application::getRootPath() . '/applications/' . $this->application->directory . '/' . $file;
$path = new SplFileInfo($this->key());
if (is_file($file) && (mb_strpos($file, '3rdparty') === false || mb_strpos(
$file,
'3rd_party'
) === false || mb_strpos($file, 'vendor') === false) && $path->getExtension() === 'php') {
if (
is_file($file) &&
(mb_strpos($file, '3rdparty') === false ||
mb_strpos($file, '3rd_party') === false ||
mb_strpos($file, 'vendor') === false) &&
$path->getExtension() === 'php'
) {
$temporary = tempnam(TEMP_DIRECTORY, 'IPS');
if (mb_strpos($path->getPath(), 'hooks') !== false) {
$contents = Plugin::addExceptionHandlingToHookFile($file);
Expand Down
3 changes: 1 addition & 2 deletions hooks/Hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@ public static function devTable($url, $appOrPluginId, $hookDir)
$dtProxyFolder = \IPS\Application::getRootPath() . '/dtProxy/namespace.json';

$parent = parent::devTable($url, $appOrPluginId, $hookDir);

/** @var Form $parent */
if ($parent instanceof Form && file_exists($dtProxyFolder)) {
$elements = $parent->elements;

$options = [
'placeholder' => 'Namespace',
'autocomplete' => [
Expand Down Expand Up @@ -68,4 +66,5 @@ public static function devTable($url, $appOrPluginId, $hookDir)
return $parent;
}


}
Empty file added setup/upg_50012/index.html
Empty file.
24 changes: 24 additions & 0 deletions setup/upg_50013/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"id": 50013,
"name": "5.0.13",
"steps": {
"queries": false,
"lang": false,
"theme": true,
"themeSettings": false,
"javascript": true,
"emailTemplates": false,
"hooks": false,
"acpSearchKeywords": false,
"settings": false,
"tasks": false,
"modules": false,
"widgets": false,
"whatsnew": false,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
Empty file added setup/upg_50013/index.html
Empty file.
64 changes: 64 additions & 0 deletions setup/upg_50013/javascript.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"files": {
"added": [],
"edited": [
"toolbox\/admin\/controllers\/click\/ips.ui.adminer.click.js",
"toolbox\/front\/controllers\/profiler\/ips.dtprofiler.debug.js",
"toolbox\/front\/controllers\/profiler\/ips.dtprofiler.dtprofiler.js",
"toolbox\/front\/controllers\/profiler\/ips.dtprofiler.search.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.collapsed.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.hash.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxbase.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxbitwise.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxdates.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxdiffs.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxhtml.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboximages.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxlorem.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxnumbers.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxuuid.js",
"toolbox\/global\/controllers\/proxy\/ips.ui.toolbox.proxy.js",
"toolbox\/admin\/controllers\/query\/ips.query.query.js",
"toolbox\/admin\/controllers\/click\/ips.ui.adminer.click.js",
"toolbox\/front\/controllers\/profiler\/ips.dtprofiler.debug.js",
"toolbox\/front\/controllers\/profiler\/ips.dtprofiler.dtprofiler.js",
"toolbox\/front\/controllers\/profiler\/ips.dtprofiler.search.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.collapsed.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.hash.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxbase.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxbitwise.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxdates.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxdiffs.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxhtml.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboximages.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxlorem.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxnumbers.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxuuid.js",
"toolbox\/global\/controllers\/proxy\/ips.ui.toolbox.proxy.js",
"toolbox\/admin\/controllers\/query\/ips.query.query.js",
"toolbox\/admin\/controllers\/click\/ips.ui.adminer.click.js",
"toolbox\/front\/controllers\/profiler\/ips.dtprofiler.debug.js",
"toolbox\/front\/controllers\/profiler\/ips.dtprofiler.dtprofiler.js",
"toolbox\/front\/controllers\/profiler\/ips.dtprofiler.search.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.collapsed.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.hash.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxbase.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxbitwise.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxdates.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxdiffs.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxhtml.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboximages.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxlorem.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxnumbers.js",
"toolbox\/front\/controllers\/profiler\/ips.ui.toolbox.toyboxuuid.js",
"toolbox\/global\/controllers\/proxy\/ips.ui.toolbox.proxy.js",
"toolbox\/admin\/controllers\/query\/ips.query.query.js"
],
"removed": []
},
"orders": {
"added": [],
"edited": [],
"removed": []
}
}
124 changes: 124 additions & 0 deletions setup/upg_50013/theme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{
"html": {
"added": [],
"edited": [
"front\/bar\/base",
"front\/bar\/dates",
"front\/bar\/diffs",
"front\/bar\/git",
"front\/bar\/hash",
"front\/bar\/html",
"front\/bar\/images",
"front\/bar\/lorem",
"front\/bar\/numbers",
"front\/bar\/uuid",
"front\/bt\/phpinfo",
"front\/caching\/caching",
"admin\/code\/files",
"admin\/code\/final",
"admin\/code\/lists",
"admin\/code\/results",
"admin\/code\/sql",
"front\/database\/database",
"admin\/devBar\/devBar",
"admin\/devBar\/li",
"admin\/dtdpmenu\/menu",
"front\/dtpsearch\/button",
"front\/dtpsearch\/keyvalue",
"admin\/error\/error",
"front\/generic\/anchor",
"front\/generic\/button",
"front\/generic\/genericVal",
"front\/generic\/keyvalue",
"front\/generic\/keyvalueDebug",
"front\/generic\/li",
"front\/generic\/plain",
"front\/generic\/string",
"front\/generic\/stringDebug",
"admin\/other\/phpinfo",
"front\/bar\/base",
"front\/bar\/dates",
"front\/bar\/diffs",
"front\/bar\/git",
"front\/bar\/hash",
"front\/bar\/html",
"front\/bar\/images",
"front\/bar\/lorem",
"front\/bar\/numbers",
"front\/bar\/uuid",
"front\/bt\/phpinfo",
"front\/caching\/caching",
"admin\/code\/files",
"admin\/code\/final",
"admin\/code\/lists",
"admin\/code\/results",
"admin\/code\/sql",
"front\/database\/database",
"admin\/devBar\/devBar",
"admin\/devBar\/li",
"admin\/dtdpmenu\/menu",
"front\/dtpsearch\/button",
"front\/dtpsearch\/keyvalue",
"admin\/error\/error",
"front\/generic\/anchor",
"front\/generic\/button",
"front\/generic\/genericVal",
"front\/generic\/keyvalue",
"front\/generic\/keyvalueDebug",
"front\/generic\/li",
"front\/generic\/plain",
"front\/generic\/string",
"front\/generic\/stringDebug",
"admin\/other\/phpinfo",
"front\/bar\/base",
"front\/bar\/dates",
"front\/bar\/diffs",
"front\/bar\/git",
"front\/bar\/hash",
"front\/bar\/html",
"front\/bar\/images",
"front\/bar\/lorem",
"front\/bar\/numbers",
"front\/bar\/uuid",
"front\/bt\/phpinfo",
"front\/caching\/caching",
"admin\/code\/files",
"admin\/code\/final",
"admin\/code\/lists",
"admin\/code\/results",
"admin\/code\/sql",
"front\/database\/database",
"admin\/devBar\/devBar",
"admin\/devBar\/li",
"admin\/dtdpmenu\/menu",
"front\/dtpsearch\/button",
"front\/dtpsearch\/keyvalue",
"admin\/error\/error",
"front\/generic\/anchor",
"front\/generic\/button",
"front\/generic\/genericVal",
"front\/generic\/keyvalue",
"front\/generic\/keyvalueDebug",
"front\/generic\/li",
"front\/generic\/plain",
"front\/generic\/string",
"front\/generic\/stringDebug",
"admin\/other\/phpinfo"
],
"removed": []
},
"css": {
"added": [],
"edited": [
"admin\/devbar.css",
"admin\/devbar.css",
"admin\/devbar.css"
],
"removed": []
},
"resources": {
"added": [],
"edited": [],
"removed": []
}
}
Loading

0 comments on commit aae7410

Please sign in to comment.