Skip to content

Commit

Permalink
Update Adminer to AdminerEvo and ACE editor update.
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianbj committed Mar 25, 2024
1 parent 3d9308e commit 448f8c1
Show file tree
Hide file tree
Showing 26 changed files with 990 additions and 915 deletions.
2 changes: 1 addition & 1 deletion ProcessTracyAdminer.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function adminer_object() {
}

$_GET['username'] = '';
require_once __DIR__ . '/panels/Adminer/adminer-4.8.1-mysql.php'/*NoCompile*/;
require_once __DIR__ . '/panels/Adminer/adminer-mysql.php'/*NoCompile*/;
exit;
}

Expand Down
2 changes: 1 addition & 1 deletion TracyDebugger.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static function getModuleInfo() {
'summary' => __('Tracy debugger from Nette with many PW specific custom tools.', __FILE__),
'author' => 'Adrian Jones',
'href' => 'https://processwire.com/talk/forum/58-tracy-debugger/',
'version' => '4.25.22',
'version' => '4.26.0',
'autoload' => 100000, // in PW 3.0.114+ higher numbers are loaded first - we want Tracy first
'singular' => true,
'requires' => 'ProcessWire>=2.7.2, PHP>=5.4.4',
Expand Down
874 changes: 0 additions & 874 deletions panels/Adminer/adminer-4.8.1-mysql.php

This file was deleted.

918 changes: 918 additions & 0 deletions panels/Adminer/adminer-mysql.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion panels/Adminer/css/default-blue.css
100644 → 100755

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion panels/Adminer/css/default-green.css
100644 → 100755

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion panels/Adminer/css/default-orange.css
100644 → 100755

Large diffs are not rendered by default.

43 changes: 38 additions & 5 deletions panels/Adminer/css/tweaks.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,42 @@
.adminerPwLogo {
float:left;
padding: 13px 0 0 10px;
}

html.framed .adminerPwLogo {
display: none;
}

.logout input[type=submit] {
display: none !important;
}

.adminerPwLogo {
display: inline-block;
float:left;
padding: 13px 0 0 10px;
}

#menu h1 {
border: 0;
padding: 0;
background: none !important;
}

h1 #h1 {
background: none !important;
text-indent: 10px !important;
padding-top: 10px !important;
font-size: 1.5em;
}

#version, .version {
top: -15px !important;
}

#dbs {
display: none;
}

a[href*="&sql="]::before {
content: "✎" !important;
}

.copy-to-clipboard::before {
content: "" !important;
}
Empty file modified panels/Adminer/fonts/entypo.eot
100644 → 100755
Empty file.
Empty file modified panels/Adminer/fonts/entypo.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified panels/Adminer/fonts/entypo.ttf
100644 → 100755
Empty file.
Empty file modified panels/Adminer/fonts/entypo.woff
100644 → 100755
Empty file.
Empty file modified panels/Adminer/images/favicon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified panels/Adminer/images/logo-hres.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified panels/Adminer/images/logo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified panels/Adminer/images/tileIcon-wide.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified panels/Adminer/images/tileIcon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified panels/Adminer/images/touchIcon-android.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified panels/Adminer/images/touchIcon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 23 additions & 26 deletions panels/Adminer/plugins/AdminerProcessWireLogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,37 +16,34 @@ public function __construct($pwAdminUrl, $server = false, $db = false, $name = f
}

public function head() {

?>
<link rel="stylesheet" type="text/css" href="../../../site/modules/TracyDebugger/panels/Adminer/css/tweaks.css">
<script nonce="<?=get_nonce()?>" src="../../../site/modules/TracyDebugger/panels/Adminer/scripts/adminer.js"></script>
<?php
}

function name() {
$pwLink = '';
if(!isset($_GET['iframe'])) {
$pwLink .= '
<a class="adminerPwLogo" href="'.$this->pwAdminUrl.'">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="16px" height="16.1px" viewBox="80 80.1 16 16.1" enable-background="new 80 80.1 16 16.1" xml:space="preserve">
<path fill="#E41D5F" d="M94.6,83.7c-0.5-0.7-1.3-1.6-2.1-2.1c-1.7-1.2-3.6-1.6-5.4-1.4c-1.8,0.2-3.3,0.9-4.6,2
c-1.2,1.1-1.9,2.3-2.3,3.6C80,87,80,88.1,80.1,89c0.1,0.9,0.6,2,0.6,2c0.1,0.2,0.2,0.3,0.3,0.3c0.3,0.2,0.8,0,1.2-0.4
c0,0,0-0.1,0-0.1c-0.1-0.4-0.1-0.8-0.2-1c-0.1-0.5-0.1-1.3-0.1-2.1c0-0.4,0.1-0.9,0.2-1.3c0.3-0.9,0.8-1.9,1.7-2.7
c1-0.9,2.2-1.4,3.4-1.5c0.4,0,1.2-0.1,2.1,0.1c0.2,0,1.1,0.3,2,0.9c0.7,0.5,1.2,1,1.6,1.6c0.4,0.5,0.8,1.4,0.9,2.1
c0.2,0.8,0.2,1.6,0,2.3c-0.1,0.8-0.4,1.5-0.8,2.2c-0.3,0.5-0.9,1.2-1.6,1.7c-0.6,0.5-1.4,0.8-2.1,1c-0.4,0.1-0.8,0.1-1.1,0.2
c-0.3,0-0.8,0-1.1-0.1c-0.5-0.1-0.6-0.2-0.7-0.4c0,0-0.1-0.1-0.1-0.4c0-3,0-2.2,0-3.7c0-0.4,0-0.8,0-1.2c0-0.6,0.1-1,0.5-1.4
c0.3-0.3,0.7-0.5,1.2-0.5c0.1,0,0.6,0,1.1,0.4c0.5,0.4,0.5,0.9,0.6,1.1c0.1,0.8-0.4,1.4-0.6,1.6c-0.2,0.1-0.4,0.3-0.6,0.3
C88,90,87.6,90,87.3,90c-0.1,0-0.1,0-0.1,0.1l-0.1,0.6c-0.1,0.4,0.1,0.6,0.3,0.7c0.4,0.1,0.8,0.2,1.3,0.2c0.7-0.1,1.4-0.3,2-0.9
c0.5-0.5,0.8-1.1,0.9-1.8c0.1-0.8,0-1.6-0.4-2.3c-0.4-0.8-1.1-1.4-1.9-1.7c-0.9-0.3-1.5-0.4-2.4-0.1c0,0,0,0,0,0
c-0.6,0.2-1.1,0.4-1.6,1C85,86,84.7,86.5,84.5,87c-0.2,0.5-0.2,0.9-0.2,1.5c0,0.4,0,0.8,0,1.2v2.5c0,0.8,0,0.9,0,1.3
c0,0.3,0.1,0.6,0.2,0.9c0.1,0.4,0.4,0.7,0.6,0.9c0.2,0.3,0.6,0.5,0.9,0.6c0.7,0.3,1.7,0.4,2.4,0.3c0.5,0,1-0.1,1.5-0.2
c1-0.2,2-0.7,2.8-1.3c0.9-0.6,1.7-1.5,2.1-2.3c0.6-0.9,0.9-1.9,1.1-2.9c0.2-1,0.2-2.1-0.1-3.1C95.7,85.5,95.2,84.5,94.6,83.7
L94.6,83.7z"/>
</svg>
</a>
';
}
return $pwLink."<a href='https://www.adminer.org/'".target_blank()." id='h1'>Adminer</a>";
$pwLink .= '
<a class="adminerPwLogo" href="'.$this->pwAdminUrl.'" title="Return to PW admin">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="16px" height="16.1px" viewBox="80 80.1 16 16.1" enable-background="new 80 80.1 16 16.1" xml:space="preserve">
<path fill="#E41D5F" d="M94.6,83.7c-0.5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5,87c-0.2,0.5-0.2,0.9-0.2,1.5c0,0.4,0,0.8,0,1.2v2.5c0,0.8,0,0.9,0,1.3
c0,0.3,0.1,0.6,0.2,0.9c0.1,0.4,0.4,0.7,0.6,0.9c0.2,0.3,0.6,0.5,0.9,0.6c0.7,0.3,1.7,0.4,2.4,0.3c0.5,0,1-0.1,1.5-0.2
c1-0.2,2-0.7,2.8-1.3c0.9-0.6,1.7-1.5,2.1-2.3c0.6-0.9,0.9-1.9,1.1-2.9c0.2-1,0.2-2.1-0.1-3.1C95.7,85.5,95.2,84.5,94.6,83.7
L94.6,83.7z"/>
</svg>
</a>
';
return $pwLink."<a href='https://www.adminerevo.org/'".target_blank()." id='h1'>AdminerEvo</a>";
}

function credentials() {
Expand Down Expand Up @@ -93,4 +90,4 @@ function databases($flush = true) {
return [$this->db];
}

}
}
1 change: 1 addition & 0 deletions panels/Adminer/scripts/adminer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
document.documentElement.className += (window.self == window.top ? " top" : " framed");
2 changes: 1 addition & 1 deletion scripts/ace-editor/ace.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/ace-editor/ext-inline_autocomplete.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/ace-editor/ext-language_tools.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/ace-editor/ext-prompt.js

Large diffs are not rendered by default.

Loading

0 comments on commit 448f8c1

Please sign in to comment.