Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code refactor and optimisation for latest symfony versions #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
# Symfony2 Profiler shortcut
# Symfony Profiler shortcut


![Alt text](/ScreenShot/promo_1400.png "Symfony2 Profiler shortcut")

Give access to Symfoy2 Profiler if any Response from a server is made with the "X-Debug-Token". Very useful for REST & AJAX Development/testing
Give access to Symfony Profiler if any Response from a server is made with the "X-Debug-Token". Very useful for REST & AJAX Development/testing


# In details
This is an extension that help developer and/or tester to see relevant information on Symfony2 based applications.
This is an extension that help developer and/or tester to see relevant information on Symfony based applications.
When you enable debug mode, you probably noticed a toolBar at the bottom. Very useful, clicking on it lead the the Profiler.
The profiler make easy to access logs and many information about the current request.

This extension is here to allow you to access easily to the Profiler event if the debug toolbar is disabled or not shown.
If you already made REST application with Symfony2 framework, you know that the Debug tool bar only show up if you render a real webPage.
If you already made REST application with Symfony framework, you know that the Debug tool bar only show up if you render a real webPage.
If you render JSON or XML, you just have the result and to go to the Profiler is a long way.

Actually, if you look at the Response headers, you'll notice a "X-Debug-Token:0b274e"; This is the key to go to the debugger.
Expand All @@ -24,12 +21,12 @@ This extension can help you to open the profiler of AJAX/XHR request made on you
![Alt text](/ScreenShot/XHR.png "Multiple XHR calls")

# OFFICIAL LINK
https://chrome.google.com/webstore/detail/symfony2-debuger/denlhphadllhcolhlbbbjmhkgbknmmon
https://chrome.google.com/webstore/detail/Symfony-debuger/denlhphadllhcolhlbbbjmhkgbknmmon


## Licencing
This webapp/extension and all original files contained are under [Creative Commons Attribution License (BY-NC-SA)](http://creativecommons.org/licenses/by-nc-sa/3.0/)

Thanks for VisualPharm for some icons : http://www.visualpharm.com/ [Icon link](http://icons8.com/icons/#!/416/bug)

Thanks for Symfony2 and SensioLabs for SF icon : http://symfony.com/logo
Thanks for Symfony and SensioLabs for SF icon: http://symfony.com/logo
Binary file removed ScreenShot/REST.tif
Binary file not shown.
Binary file removed ScreenShot/promo_1400.png
Binary file not shown.
Binary file removed ScreenShot/promo_1400.tif
Binary file not shown.
Binary file not shown.
11 changes: 5 additions & 6 deletions sf2Debugger/_locales/en/messages.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"appName": {
"message": "Symfony2 Profiler shortcut",
"description": "Easily open profiler from any symfony2 request that have the correct header"
"message": "Symfony Profiler shortcut",
"description": "Easily open profiler from any symfony request that have the correct header"
},
"appDesc": {
"message": "Symfony2 Profiler shortcut",
"description": "Easily open debug toolBar and profiler from any symfony2 request that have the correct headerf \n Give access to Symfoy2 Profiler if any Response from a server is made with the \"X-Debug-Token\". Very useful for REST & AJAX Development/testing \n \n \n # In details \n This is an extension that help developer and/or tester to see relevant information on Symfony2 based applications. \n When you enable debug mode, you probably noticed a toolBar at the bottom. Very useful, clicking on it lead the the Profiler. \n The profiler make easy to access logs and many information about the current request. \n \n This extension is here to allow you to access easily to the fofiler event if the debug toolbar is disabled or not shown. \n If you already made REST application with Symfony2 framework, you know that the Debug tool bar only show up if you render a real webPage. \n If you render JSON or XML, you just have the result and to go to the Profiler is a long way."
"message": "Symfony Profiler shortcut",
"description": "Easily open debug toolBar and profiler from any Symfony request that have the correct headerf \n Give access to Symfoy2 Profiler if any Response from a server is made with the \"X-Debug-Token\". Very useful for REST & AJAX Development/testing \n \n \n # In details \n This is an extension that help developer and/or tester to see relevant information on Symfony based applications. \n When you enable debug mode, you probably noticed a toolBar at the bottom. Very useful, clicking on it lead the the Profiler. \n The profiler make easy to access logs and many information about the current request. \n \n This extension is here to allow you to access easily to the fofiler event if the debug toolbar is disabled or not shown. \n If you already made REST application with Symfony framework, you know that the Debug tool bar only show up if you render a real webPage. \n If you render JSON or XML, you just have the result and to go to the Profiler is a long way."
},
"tokenDetected": {
"message": "Token Detected",
Expand Down Expand Up @@ -77,5 +77,4 @@
"option_form_help_memory": {
"message" : " List all remembered choice made in the Url chooser.<br> Format : domainName|url (<i>The url must contain only the token placeholder</i>)<br><br>This field sync in cloud and shared between all your chrome instance."
}

}
}
8 changes: 4 additions & 4 deletions sf2Debugger/_locales/fr/messages.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"appName": {
"message": "Symfony2 Profiler",
"message": "Symfony Profiler",
"description": "Donne accès directement depuis la bare d'adresse au Syfony2Profiler"
},
"appDesc": {
"message": "Accès rapide au profiler de Symfony2 , et permet l'accès au profiling des requêtes AJAX et sans body",
"description": "Vous permet d'accéder rapidement et facilement au Profiler de Symfony2 meme si la debugTool bar ne s'affiche pas. Le token present dans le header est utilisé directement. \n C'est souvent utile lors du development d'API REST ou de site web avec des requêtes AJAX/XHR"
"message": "Accès rapide au profiler de Symfony, et permet l'accès au profiling des requêtes AJAX et sans body",
"description": "Vous permet d'accéder rapidement et facilement au Profiler de Symfony meme si la debugTool bar ne s'affiche pas. Le token present dans le header est utilisé directement. \n C'est souvent utile lors du development d'API REST ou de site web avec des requêtes AJAX/XHR"
},
"tokenDetected": {
"message": "Token détécté",
Expand Down Expand Up @@ -77,4 +77,4 @@
"option_form_help_memory": {
"message" : "Liste des choix mémorisés dans le selecteur d'URL<br> Format : domainName|URL (<i>L'URL doit contenir seulement le placeholder du token (*token*)</i>)<br><br> Cette liste est sycnhronisée dans le cloud et est partagée par toutes vos instances de Chrome"
}
}
}
Binary file removed sf2Debugger/css/Charts-Mind-map-icon.png
Binary file not shown.
23 changes: 4 additions & 19 deletions sf2Debugger/css/tokenSelection.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ body {
}

html{

padding:0;
}

Expand All @@ -33,17 +32,12 @@ html{
.tokenListItem {
list-style: none;
margin: 0;
padding: 0;
padding-top: 3px;
padding-bottom:4px;
padding-left: 3px;
padding: 3px 0 4px 3px;
border-radius: 2px;
}

.tokenListItem:hover {
background-color: rgba(161, 227, 4, 0.5);
/*transition: 0.1s ease-in-out;*/
/*background-color: #a1e304;*/
}

.tokenUrl {
Expand Down Expand Up @@ -133,13 +127,11 @@ html{
}

.icon {

display: inline-block;
height: 16px;
width: 16px;
background-repeat: no-repeat;
background-position: center center;
/*border-radius: 2px;*/
line-height: 16px;
background-size: 100% 100%;
}
Expand All @@ -148,7 +140,6 @@ html{
cursor: pointer;
background-color: rgba(161, 227, 4, 0.2);
transition: 0.1s ease-in-out;

}

.icon.icon_config {
Expand Down Expand Up @@ -202,10 +193,7 @@ html{
background-color: rgba(0, 255, 0, 0.2);
border: 2px solid transparent;
border-radius: 5px;
padding-left: 2px;
padding-right: 2px;
padding-top: 1px;
padding-bottom: 1px;
padding: 1px 2px;
font-size: 70%;
display: block;
height: 10px;
Expand Down Expand Up @@ -239,10 +227,7 @@ html{
padding:0;
}
.pure-button a{
padding-left:5px;
padding-right:2px;
padding-top:2px;
padding-bottom:3px;
padding: 2px 2px 3px 5px;
color: white;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
text-decoration: none;
Expand All @@ -255,4 +240,4 @@ html{
}
.pure-button a:last-of-type{
padding-left:2px;
}
}
Loading