Skip to content

Commit 621c7af

Browse files
committed
⚑ πŸ”¨ 🎨 Adelie UI for XCL 2022-05-07
#7 #6 #5 #4 #3
1 parent 8abde47 commit 621c7af

File tree

12 files changed

+457
-555
lines changed

12 files changed

+457
-555
lines changed

β€ŽCHANGELOG.md

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,31 @@ Adelie Debug XCL
1010

1111
Refer please to [Adelie Debug XCL Commits ](https://github.com/xoopscube/adelie-debug-xcl)
1212

13+
## [2.3] 2022-05-07
14+
15+
βœ”οΈ View Control minimize, maximize, close
16+
βœ”οΈ Vie Title target AdelieDebug credits
17+
βœ”οΈ Replace modal with CSS
18+
βœ”οΈ Add License with link to repo
19+
βœ”οΈ Offset parent to div panel top #7
20+
βœ”οΈ Open Details and Scroll to Error Id #6
21+
βœ”οΈ Remove close and open details #5
22+
βœ”οΈ Panel scrolling over Body #4
23+
βœ”οΈ #3 replace Exception with Throwable
1324

1425
## [2.3] 2022-04-27
1526

1627

17-
βœ”οΈ Merge @gigamaster bugfix for XCL23
18-
βœ”οΈ Merge @nao-pon update PHP7
19-
βœ”οΈ Fix Template syntax
20-
βœ”οΈ Removed jQuery
21-
βœ”οΈ Add fallback to CDN
22-
βœ”οΈ Move script to /JS
23-
βœ”οΈ Add Tab for Kint
24-
βœ”οΈ Add maximize and minimize
25-
βœ”οΈ Add Firefox scrollbar
26-
βœ”οΈ Add WebKit scrollbar
27-
βœ”οΈ Add dialog for Credits
28-
βœ”οΈ Add total errors to button
29-
28+
βœ”οΈ Merge @gigamaster bugfix for XCL23
29+
βœ”οΈ Merge @nao-pon update PHP7
30+
βœ”οΈ Fix Template syntax
31+
βœ”οΈ Removed jQuery
32+
βœ”οΈ Add fallback to CDN
33+
βœ”οΈ Move script to /JS
34+
βœ”οΈ Add Tab for Kint
35+
βœ”οΈ Add maximize and minimize
36+
βœ”οΈ Add Firefox scrollbar
37+
βœ”οΈ Add WebKit scrollbar
38+
βœ”οΈ Add dialog for Credits
39+
βœ”οΈ Add total errors to button
40+

β€ŽREADME.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
## ///// β€” Adelie Debug :: Debugging tool
66

77
![alt text](https://repository-images.githubusercontent.com/485308409/7da19feb-cc5b-43ae-bf66-6d8d24c9a2b7)
8-
8+
99

1010
---
1111

1212
PRELOAD | Adelie Debug
1313
------------ | -------------
1414
Description | Adelie Debug is a powerful development tool for XCL modules, preloads and themes developers
1515
Render Engine | Smarty v2
16-
Version | 2022
16+
Version | 2022-05-07
1717
Author | Update by @nao-pon Naoki Sawada (PHP7), @gigamaster Nuno Luciano (XCL7)
1818
Author | Original by Suin (suin.io)
1919
Copyright | 2011-2022 Authors
@@ -38,14 +38,14 @@ License | GPL
3838

3939
#### 1. Easy-to-read debug screen
4040

41-
* Timeline display: All PHP and SQL logs are aggregated in one timeline.
41+
* Timeline display: All PHP and SQL logs are aggregated in one timeline.
4242
A device that makes it easier to understand the context of processing.
4343
* Highlight errors: SQL and PHP errors are highlighted so they are visual.
4444

4545

4646
### 2. Useful debug functions
4747

48-
* adump (mixed [, mixed, ...]): Enclose var_dump () in a pre tag to make it easier to see,
48+
* adump (mixed [, mixed, ...]): Enclose var_dump () in a pre tag to make it easier to see,
4949
and even show where the function is written.
5050
* atrace (): Traces the processing path. It's obvious where the function is called.
5151
* awhich (object or class_name_string): Shows what line in which file a class or function is defined.
@@ -54,25 +54,25 @@ License | GPL
5454

5555
### 3. Being a tool for XOOPS Cube Legacy
5656

57-
* You no longer need to add exit () after var_dump () or write <{stdout}> for the theme.
57+
* You no longer need to add exit () after var_dump () or write <{stdout}> for the theme.
5858
This is because AdelieDebug automatically bypasses the XOOPS ob_buffer.
59-
* There is no such thing as var_dump () on the XML output screen that makes Ajax testing unsuccessful.
59+
* There is no such thing as var_dump () on the XML output screen that makes Ajax testing unsuccessful.
6060
AdelieDebug automatically turns off debug output on AJAX requests and in contexts other than HTML output.
6161

6262
### 4. Must be a tool used in practice
6363

6464
* It's the tool developers use when developing modules at work.
6565

66-
For more detailed introductions (Japanese) :
67-
[XOOPS Cube & TOKYO Pen's powerful debugging tool AdelieDebug | @suin ] (https://suin.io/530).
66+
For more detailed introductions (Japanese) :
67+
[XOOPS Cube & TOKYO Pen's powerful debugging tool AdelieDebug | @suin ] (https://suin.io/530).
6868
[XOOPS で AdelieDebugεˆ©η”¨δΈ­γ―γƒͺγƒ€γ‚€γƒ¬γ‚―γƒˆεœζ­’γ•γ›γ‚‹ | @RyujiAMANO ] (http://suin.asia/2012/01/06/xoops-adelie-debug).
6969

7070

7171
## Basic usage
7272

7373
### install
7474

75-
Just put the preload file **AdelieDebug.class.php** in the folder /html/preload/
75+
Just put the preload file **AdelieDebug.class.php** in the folder /html/preload/
7676

7777

7878
### How to install with wget:
@@ -90,16 +90,16 @@ When you no longer need it, just remove the file **AdelieDebug.class.php** from
9090

9191
### ADELIE_DEBUG_ERROR_REPORTING
9292

93-
You can adjust the error reporting level of AdelieDebug by setting
94-
the constant `ADELIE_DEBUG_ERROR_REPORTING` in ` mainfile.php`
95-
If this constant is not set, it will be `error_reporting (-1)`
96-
That is, it notifies you of all errors.
93+
You can adjust the error reporting level of AdelieDebug by setting
94+
the constant `ADELIE_DEBUG_ERROR_REPORTING` in ` mainfile.php`
95+
If this constant is not set, it will be `error_reporting (-1)`
96+
That is, it notifies you of all errors.
9797

98-
This setting should not be used.
99-
However, deprecation warnings and non-critical errors in legacy code of XOOPS2 modules
100-
doesn't make it easier to see more serious errors in PHP7 and later.
98+
This setting should not be used.
99+
However, deprecation warnings and non-critical errors in legacy code of XOOPS2 modules
100+
doesn't make it easier to see more serious errors in PHP7 and later.
101101
You should adjust `ADELIE_DEBUG_ERROR_REPORTING` only if
102-
it has a significant impact on efficiency in PHP7 development environment.
102+
it has a significant impact on efficiency in PHP7 development environment.
103103

104104

105105
```
@@ -125,38 +125,38 @@ And everything should run just fine.
125125

126126
### Build
127127

128-
You can build it by running this on the command line :
128+
You can build it by running this on the command line :
129129
```
130130
# php compile.php
131131
```
132-
The latest version of yuicompressor is placed in ~ /bin/yuicompressor-2.4.8.jar
133-
In case of issues with path, change the config to build with 2.4.7.jar
132+
The latest version of yuicompressor is placed in ~ /bin/yuicompressor-2.4.8.jar
133+
In case of issues with path, change the config to build with 2.4.7.jar
134134

135135
## Tips
136136

137137
### Use adump () with Smarty
138138

139-
You can also dump the contents of a variable in a template :
139+
You can also dump the contents of a variable in a template :
140140
```<{$ variable | @adump}>```
141141

142142
### xContainer and xdesktop
143-
Depending on your app stack version, Virtual Machine or BootDocker,
144-
both are running a customized debian distribution. Click "Open Shell"
143+
Depending on your app stack version, Virtual Machine or BootDocker,
144+
both are running a customized debian distribution. Click "Open Shell"
145145
and install the required update of Java :
146146

147147
```
148148
# apt-get update
149-
```
149+
```
150150
Then install Java :
151151
```
152152
# apt-get install default-jre
153-
```
153+
```
154154

155-
? **Successfully updated**
156-
You will be prompt with a message of packages automatically installed
157-
and those who are no longer required.
158-
Use 'apt-get autoremove' to remove them.
159-
You will be prompt with a message :
155+
? **Successfully updated**
156+
You will be prompt with a message of packages automatically installed
157+
and those who are no longer required.
158+
Use 'apt-get autoremove' to remove them.
159+
You will be prompt with a message :
160160
Do you want to continue? [Y/n]
161161
In the interactive prompts, press **Y** and enter.
162162

@@ -166,6 +166,6 @@ if you get an error message, try this :
166166
```
167167
# export LD_LIBRARY_PATH=/usr/lib/
168168
# apt-get install openjdk-7-jre-headless
169-
```
170-
169+
```
170+
171171
Have Fun ^_^/

β€Žbuild/AdelieDebug.class.php

Lines changed: 75 additions & 97 deletions
Large diffs are not rendered by default.

β€Žbuild/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"build":1651047448,"datetime":"2022-04-27 08:17:28"}
1+
{"build":1651952986,"datetime":"2022-05-07 19:49:46"}

β€Žsource/AdelieDebug/Core/IniParser.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ public static function parseFile($filename, $processSection = true, $mode = null
1515
{
1616
$arguments = array($filename, true);
1717

18-
if ( version_compare(PHP_VERSION, '5.3', '<') and $mode !== null )
19-
{
20-
$arguments[] = $mode; // PHP5.3δ»₯上
21-
}
22-
2318
return call_user_func_array('parse_ini_file', $arguments);
2419
}
2520
}

β€Žsource/AdelieDebug/Debug/ErrorHandler.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,9 @@ protected function _backtrace($ignore = 1)
122122

123123
protected function _setUpErrorTypes()
124124
{
125-
$this->errorTypes[E_DEPRECATED] = 'DEPRECATED';
126-
$this->errorTypes[E_USER_DEPRECATED] = 'USER_DEPRECATED';
125+
$this->errorTypes[E_RECOVERABLE_ERROR] = 'RECOVERABLE ERROR';
126+
$this->errorTypes[E_DEPRECATED] = 'DEPRECATED';
127+
$this->errorTypes[E_USER_DEPRECATED] = 'USER_DEPRECATED';
127128
}
128129

129130
protected function _getFormatedError(array $error, $format = "{type}: {message} in {file} on line {line}")

β€Žsource/AdelieDebug/Debug/ExceptionHandler.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ public function catchException(BaseException $exception)
3838

3939
class AdelieDebug_Debug_ExceptionHandler extends AdelieDebug_Debug_ExceptionHandler_Abstract
4040
{
41-
public function catchException(Exception $exception)
41+
// #3 @gigamaster replaced Exception with Throwable
42+
public function catchException(\Throwable $exception)
43+
4244
{
4345
$this->logger->addPhpError(strval($exception));
4446
}

β€Žsource/AdelieDebug/Debug/Function.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,7 @@ function awhich($variable)
3434
function asynop($object, $highlight = true)
3535
{
3636
// @gigamaster make call dynamic
37+
// AdelieDebug_Debug_Synopsys::synopsys($object, $highlight, 2);
3738
(new AdelieDebug_Debug_Synopsys)->synopsys($object, $highlight, 2);
39+
3840
}

0 commit comments

Comments
Β (0)