Browse Source

Un peu de nettoyage, passage en v1 pour SPIP 4+, et icone

master
Cerdic 4 months ago
parent
commit
b76fcb866e
  1. BIN
      images/tb-128.png
  2. BIN
      images/tb-16.png
  3. BIN
      images/tb-24.png
  4. BIN
      images/tb-256.png
  5. BIN
      images/tb-32.png
  6. BIN
      images/tb-48.png
  7. BIN
      images/tb-64.png
  8. BIN
      images/tb-file-16.png
  9. BIN
      images/tb-folder-16.png
  10. 11
      paquet.xml
  11. 28
      plugin.xml
  12. 30
      prive/exec/testbuilder.html
  13. 4
      prive/style_prive_plugin_tb.html
  14. BIN
      prive/themes/spip/images/tb-16.png
  15. 48
      prive/themes/spip/images/tb-file-xx.svg
  16. 45
      prive/themes/spip/images/tb-folder-xx.svg
  17. 22
      prive/themes/spip/images/tb-xx.svg
  18. 22
      tb.svg

BIN
images/tb-128.png

Before

Width: 128  |  Height: 128  |  Size: 19 KiB

BIN
images/tb-16.png

Before

Width: 16  |  Height: 16  |  Size: 1.2 KiB

BIN
images/tb-24.png

Before

Width: 24  |  Height: 24  |  Size: 1.7 KiB

BIN
images/tb-256.png

Before

Width: 256  |  Height: 256  |  Size: 62 KiB

BIN
images/tb-32.png

Before

Width: 32  |  Height: 32  |  Size: 2.5 KiB

BIN
images/tb-48.png

Before

Width: 48  |  Height: 48  |  Size: 4.5 KiB

BIN
images/tb-64.png

Before

Width: 64  |  Height: 64  |  Size: 6.7 KiB

BIN
images/tb-file-16.png

Before

Width: 16  |  Height: 16  |  Size: 626 B

BIN
images/tb-folder-16.png

Before

Width: 16  |  Height: 16  |  Size: 407 B

11
paquet.xml

@ -1,10 +1,10 @@
<paquet
prefix="tb"
categorie="outil"
version="0.3.10"
version="1.0.0"
etat="test"
compatibilite="[2.0.10;3.3.*]"
logo="images/tb-32.png"
compatibilite="[4.0.0-alpha;4.0.*]"
logo="tb.svg"
documentation="https://contrib.spip.net/TestBuilder"
>
@ -13,8 +13,5 @@
<auteur lien="http://www.yterium.com">Cedric</auteur>
<menu nom="tb" titre="tb:testbuilder" parent="menu_developpement" icone="images/tb-16.png" action="testbuilder" />
<spip compatibilite="[3.0.0;3.0.*]">
<menu nom="tb" titre="tb:testbuilder" parent="bando_administration" icone="images/tb-16.png" action="testbuilder" />
</spip>
<menu nom="tb" titre="tb:testbuilder" parent="menu_developpement" icone="images/tb-16.svg" action="testbuilder" />
</paquet>

28
plugin.xml

@ -1,28 +0,0 @@
<plugin>
<nom>Test Builder</nom>
<slogan>Construire des tests syst&#233;matiques</slogan>
<auteur>[Cedric->http://www.yterium.com]</auteur>
<version>0.3.10</version>
<icon>images/tb-32.png</icon>
<etat>test</etat>
<description>
Un plugin pour aider les d&#233;veloppeurs de plugin &#224; &#233;crire plus vite leurs tests. Et les encourager &#224; en &#233;crire plus souvent !
Ce plugin est un outil de d&#233;veloppement. Il a tout son int&#233;r&#234;t install&#233; sur votre machine de d&#233;veloppement, mais il est tr&#232;s vivement d&#233;conseill&#233; de l'installer sur un serveur en ligne car il manipule les scripts PHP dans l'arborescence de votre site et permet de lancer l'ex&#233;cution de code PHP arbitraire.
</description>
<lien>https://contrib.spip.net/TestBuilder</lien> <!-- URI de documentation -->
<prefix>tb</prefix>
<necessite id="SPIP" version="[2.0.10;3.1.*]" />
<categorie>outil</categorie>
<bouton id="tb" parent="configuration">
<icone>images/tb-24.png</icone>
<titre>tb:testbuilder</titre>
<url>testbuilder</url>
</bouton>
<bouton id="tb2" parent="bando_administration">
<icone>images/tb-24.png</icone>
<titre>tb:testbuilder</titre>
<url>testbuilder</url>
</bouton>
<necessite id='spip_bonux' version='[1.9.0;]' />
</plugin>

30
prive/exec/testbuilder.html

@ -18,23 +18,27 @@
</div>
<!--#navigation-->
<h1 class="grostitre">Test Builder</h1>
<a href="#URL_ECRIRE{testbuilder,file=#ENV{file}}">[(#ENV{file}|basename)]</a>
<div class="cadre cadre-info"><div class="cadre_padding">
<:tb:texte_explication|propre:></div></div>
[(#BOITE_OUVRIR{[(#CHEMIN_IMAGE{tb-24.svg}|balise_img{'',cadre-icone}|concat{<:tb:testbuilder:>})],'simple','titrem'})]
<p>
<a href="#URL_ECRIRE{testbuilder,file=#ENV{file}}">[(#ENV{file}|basename)]</a>
</p>
<:tb:texte_explication|propre:>
#BOITE_FERMER
<!--/#navigation-->
</BOUCLE_func>
<B_funcs>
[(#REM) Un fichier est indique]
<!--#navigation-->
<h1 class="grostitre"><:tb:testbuilder:></h1>
<a href="#URL_ECRIRE{testbuilder,dir=#ENV{file}|dirname}">[(#ENV{file}|dirname)]</a>
<div class="cadre cadre-info"><div class="cadre_padding">
<:tb:texte_choisir_fonction|propre:>
</div></div>
[(#BOITE_OUVRIR{[(#CHEMIN_IMAGE{tb-24.svg}|balise_img{'',cadre-icone}|concat{<:tb:testbuilder:>})],'simple','titrem'})]
<p>
<a href="#URL_ECRIRE{testbuilder,dir=#ENV{file}|dirname}">[(#ENV{file}|dirname)]</a>
</p>
<:tb:texte_choisir_fonction|propre:>
#BOITE_FERMER
<!--/#navigation-->
<h2>#ENV{file}</h2>
<h1 class="grostitre">#ENV{file}</h1>
<table class="spip">
<thead>
<tr>
@ -71,11 +75,9 @@
</ul>
</B_files>
<!--#navigation-->
<h1><:tb:testbuilder:></h1>
<div class="cadre cadre-info"><div class="cadre_padding">
[(#CHEMIN{images/tb-128.png}|balise_img)]
[(#BOITE_OUVRIR{[(#CHEMIN_IMAGE{tb-24.svg}|balise_img{'',cadre-icone}|concat{<:tb:testbuilder:>})],'simple','titrem'})]
<:tb:texte_presentation|propre:>
</div></div>
#BOITE_FERMER
<!--/#navigation-->
<//B_funcs>
<//B_func>

4
prive/style_prive_plugin_tb.html

@ -20,8 +20,8 @@
#SET{left,#ENV{ltr}|choixsiegal{left,left,right}}
#SET{right,#ENV{ltr}|choixsiegal{left,right,left}}
.testbuilder .liste-items.filesphp .item {padding-#GET{left}:20px;background:url(#CHEMIN{images/tb-file-16.png}) no-repeat center #GET{left};}
.testbuilder .liste-items.dirs .item {padding-#GET{left}:20px;background:url(#CHEMIN{images/tb-folder-16.png}) no-repeat center #GET{left};}
.testbuilder .liste-items.filesphp .item {padding-#GET{left}:20px;background:url(#CHEMIN_IMAGE{tb-file-xx.svg}) no-repeat center #GET{left};background-size:16px;}
.testbuilder .liste-items.dirs .item {padding-#GET{left}:20px;background:url(#CHEMIN_IMAGE{tb-folder-xx.svg}) no-repeat center #GET{left};;background-size:16px;}
.formulaire_editer_test_unit .editer_resultat {background: #eee;padding-top:10px;}
.testbuilder ol.liste-items.essais {list-style-type: decimal;margin-#GET{left}:30px;}

BIN
prive/themes/spip/images/tb-16.png

Before

Width: 16  |  Height: 16  |  Size: 1.0 KiB

48
prive/themes/spip/images/tb-file-xx.svg

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<g>
<g>
<g>
<path d="M459.36,100.64l-96-96C360.341,1.645,356.253-0.024,352,0H96c-26.51,0-48,21.49-48,48v416c0,26.51,21.49,48,48,48h320
c26.51,0,48-21.49,48-48V112C464.025,107.747,462.355,103.66,459.36,100.64z M432,464c0,8.837-7.163,16-16,16H96
c-8.837,0-16-7.163-16-16V48c0-8.837,7.163-16,16-16h240v64c0,17.673,14.327,32,32,32h64V464z"/>
<rect x="368" y="384" width="32" height="32"/>
<rect x="112" y="224" width="288" height="32"/>
<rect x="112" y="304" width="288" height="32"/>
<rect x="112" y="384" width="224" height="32"/>
</g>
</g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
</svg>

45
prive/themes/spip/images/tb-folder-xx.svg

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 512.001 512.001" style="enable-background:new 0 0 512.001 512.001;" xml:space="preserve">
<g>
<g>
<path d="M448.916,118.259h-162.05c-6.578,0-13.003-2.701-17.44-7.292l-50.563-53.264c-12.154-12.115-28.783-18.443-45.625-18.346
H63.084C28.301,39.356,0,67.657,0,102.439v307.123c0,34.783,28.301,63.084,63.084,63.084h386.064h0.058
c34.764-0.154,62.949-28.59,62.794-63.277V181.342C512,146.559,483.699,118.259,448.916,118.259z M473.417,409.447
c0.058,13.504-10.88,24.558-24.307,24.616H63.084c-13.504,0-24.5-10.996-24.5-24.5V102.439c0-13.504,10.996-24.5,24.5-24.52
H173.74c0.212,0,0.424,0,0.637,0c6.443,0,12.694,2.566,16.899,6.733l50.293,53.013c11.806,12.192,28.32,19.176,45.297,19.176
h162.05c13.504,0,24.5,10.996,24.5,24.5V409.447z"/>
</g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
</svg>

22
prive/themes/spip/images/tb-xx.svg

@ -0,0 +1,22 @@
<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" width="64" height="64">
<rect fill="#c6c5ca" height="6" rx="2" width="14" x="47" y="21"/>
<circle cx="59" cy="5" fill="#ffde47" r="2"/>
<circle cx="59" cy="15" fill="#ffde47" r="2"/>
<path d="M54 61a4 4 0 01-4-4V27h8v30a4 4 0 01-4 4z" fill="#1d83d4"/>
<circle cx="47" cy="11" fill="#ffde47" r="3"/>
<path d="M41 61a5 5 0 01-4.5-3 4.9 4.9 0 01-.5-2c0-2 1-4 3-4v-7h4v7c2 0 3 2 3 4a4.9 4.9 0 01-.5 2 5 5 0 01-4.5 3z" fill="#E895B7"/>
<circle cx="33" cy="19" fill="#ffde47" r="2"/>
<path d="M28 61a5 5 0 01-4.5-3l-.2-.4A5 5 0 0123 56c0-2 1-4 3-4v-7h4v7c2 0 3 2 3 4a4.9 4.9 0 01-.5 2 5 5 0 01-4.5 3z" fill="#E895B7"/>
<g fill="#ffde47">
<circle cx="31" cy="5" r="2"/>
<circle cx="26" cy="13" r="3"/>
<path d="M20.8 58.2a2 2 0 01-1.9 2.8H5.1a2 2 0 01-1.9-2.8L9 45v-8h6v8z"/>
</g>
<path d="M18 35a2 2 0 01-2 2H8a2 2 0 01-2-2 2 2 0 012-2h8a2 2 0 012 2z" fill="#c6c5ca"/>
<circle cx="17" cy="6" fill="#ffde47" r="3"/>
<circle cx="14" cy="17" fill="#ffde47" r="2"/>
<circle cx="6" cy="10" fill="#ffde47" r="3"/>
<path d="M21.7 57.8l-5.7-13V38a3 3 0 000-6H8a3 3 0 000 6v6.8l-5.7 13A3 3 0 005.1 62h13.8a3 3 0 002.8-4.2zM7 35a1 1 0 011-1h8a1 1 0 010 2H8a1 1 0 01-1-1zm12.8 24.6a1 1 0 01-.9.4H5.1a1 1 0 01-.9-.5 1 1 0 010-.9l5.7-13.2a1.1 1.1 0 00.1-.4v-7h4v7a1.1 1.1 0 000 .4L20 58.6a1 1 0 01-.1 1zM44 51.1V46h2v-2H36v2h2v5.1c-1.8.5-3 2.4-3 4.9a5.8 5.8 0 00.5 2.4.9.9 0 00.1.2 6 6 0 0010.8 0 .7.7 0 000-.2A5.8 5.8 0 0047 56c0-2.5-1.2-4.4-3-4.9zm.6 6.5a4 4 0 01-7.2 0A4 4 0 0137 56c0-1.1.4-3 2-3a1 1 0 001-1v-6h2v6a1 1 0 001 1c1.6 0 2 1.9 2 3a4 4 0 01-.4 1.6zM31 51.1V46h2v-2H23v2h2v5.1c-1.8.5-3 2.4-3 4.9a5.8 5.8 0 00.5 2.4.9.9 0 00.1.2 6 6 0 0010.8 0 .7.7 0 000-.2A5.8 5.8 0 0034 56c0-2.5-1.2-4.4-3-4.9zm.6 6.5a4 4 0 01-7.2 0A4 4 0 0124 56c0-1.1.4-3 2-3a1 1 0 001-1v-6h2v6a1 1 0 001 1c1.6 0 2 1.9 2 3a4 4 0 01-.4 1.6zM59 20H49a3 3 0 00-3 3v2a3 3 0 003 3v29a5 5 0 0010 0V28a3 3 0 003-3v-2a3 3 0 00-3-3zm-2 37a3 3 0 01-6 0V28h6zm3-32a1 1 0 01-1 1H49a1 1 0 01-1-1v-2a1 1 0 011-1h10a1 1 0 011 1zM42 42v-4a1 1 0 00-1-1H28a1 1 0 00-1 1v4h2v-3h11v3zM13 26h17v9h2V25a1 1 0 00-1-1H12a1 1 0 00-1 1v5h2z"/>
<path d="M40 4h13v14h2V3a1 1 0 00-1-1H39a1 1 0 00-1 1v32h2zM6 14a4 4 0 10-4-4 4 4 0 004 4zm0-6a2 2 0 11-2 2 2 2 0 012-2zM14 20a3 3 0 10-3-3 3 3 0 003 3zm0-4a1 1 0 11-1 1 1 1 0 011-1zM17 10a4 4 0 10-4-4 4 4 0 004 4zm0-6a2 2 0 11-2 2 2 2 0 012-2zM30 19a3 3 0 103-3 3 3 0 00-3 3zm4 0a1 1 0 11-1-1 1 1 0 011 1zM31 8a3 3 0 10-3-3 3 3 0 003 3zm0-4a1 1 0 11-1 1 1 1 0 011-1zM59 12a3 3 0 103 3 3 3 0 00-3-3zm0 4a1 1 0 111-1 1 1 0 01-1 1zM59 8a3 3 0 10-3-3 3 3 0 003 3zm0-4a1 1 0 11-1 1 1 1 0 011-1zM26 17a4 4 0 10-4-4 4 4 0 004 4zm0-6a2 2 0 11-2 2 2 2 0 012-2z"/>
<path d="M43 11a4 4 0 104-4 4 4 0 00-4 4zm6 0a2 2 0 11-2-2 2 2 0 012 2z"/>
</svg>

22
tb.svg

@ -0,0 +1,22 @@
<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" width="64" height="64">
<rect fill="#c6c5ca" height="6" rx="2" width="14" x="47" y="21"/>
<circle cx="59" cy="5" fill="#ffde47" r="2"/>
<circle cx="59" cy="15" fill="#ffde47" r="2"/>
<path d="M54 61a4 4 0 01-4-4V27h8v30a4 4 0 01-4 4z" fill="#1d83d4"/>
<circle cx="47" cy="11" fill="#ffde47" r="3"/>
<path d="M41 61a5 5 0 01-4.5-3 4.9 4.9 0 01-.5-2c0-2 1-4 3-4v-7h4v7c2 0 3 2 3 4a4.9 4.9 0 01-.5 2 5 5 0 01-4.5 3z" fill="#E895B7"/>
<circle cx="33" cy="19" fill="#ffde47" r="2"/>
<path d="M28 61a5 5 0 01-4.5-3l-.2-.4A5 5 0 0123 56c0-2 1-4 3-4v-7h4v7c2 0 3 2 3 4a4.9 4.9 0 01-.5 2 5 5 0 01-4.5 3z" fill="#E895B7"/>
<g fill="#ffde47">
<circle cx="31" cy="5" r="2"/>
<circle cx="26" cy="13" r="3"/>
<path d="M20.8 58.2a2 2 0 01-1.9 2.8H5.1a2 2 0 01-1.9-2.8L9 45v-8h6v8z"/>
</g>
<path d="M18 35a2 2 0 01-2 2H8a2 2 0 01-2-2 2 2 0 012-2h8a2 2 0 012 2z" fill="#c6c5ca"/>
<circle cx="17" cy="6" fill="#ffde47" r="3"/>
<circle cx="14" cy="17" fill="#ffde47" r="2"/>
<circle cx="6" cy="10" fill="#ffde47" r="3"/>
<path d="M21.7 57.8l-5.7-13V38a3 3 0 000-6H8a3 3 0 000 6v6.8l-5.7 13A3 3 0 005.1 62h13.8a3 3 0 002.8-4.2zM7 35a1 1 0 011-1h8a1 1 0 010 2H8a1 1 0 01-1-1zm12.8 24.6a1 1 0 01-.9.4H5.1a1 1 0 01-.9-.5 1 1 0 010-.9l5.7-13.2a1.1 1.1 0 00.1-.4v-7h4v7a1.1 1.1 0 000 .4L20 58.6a1 1 0 01-.1 1zM44 51.1V46h2v-2H36v2h2v5.1c-1.8.5-3 2.4-3 4.9a5.8 5.8 0 00.5 2.4.9.9 0 00.1.2 6 6 0 0010.8 0 .7.7 0 000-.2A5.8 5.8 0 0047 56c0-2.5-1.2-4.4-3-4.9zm.6 6.5a4 4 0 01-7.2 0A4 4 0 0137 56c0-1.1.4-3 2-3a1 1 0 001-1v-6h2v6a1 1 0 001 1c1.6 0 2 1.9 2 3a4 4 0 01-.4 1.6zM31 51.1V46h2v-2H23v2h2v5.1c-1.8.5-3 2.4-3 4.9a5.8 5.8 0 00.5 2.4.9.9 0 00.1.2 6 6 0 0010.8 0 .7.7 0 000-.2A5.8 5.8 0 0034 56c0-2.5-1.2-4.4-3-4.9zm.6 6.5a4 4 0 01-7.2 0A4 4 0 0124 56c0-1.1.4-3 2-3a1 1 0 001-1v-6h2v6a1 1 0 001 1c1.6 0 2 1.9 2 3a4 4 0 01-.4 1.6zM59 20H49a3 3 0 00-3 3v2a3 3 0 003 3v29a5 5 0 0010 0V28a3 3 0 003-3v-2a3 3 0 00-3-3zm-2 37a3 3 0 01-6 0V28h6zm3-32a1 1 0 01-1 1H49a1 1 0 01-1-1v-2a1 1 0 011-1h10a1 1 0 011 1zM42 42v-4a1 1 0 00-1-1H28a1 1 0 00-1 1v4h2v-3h11v3zM13 26h17v9h2V25a1 1 0 00-1-1H12a1 1 0 00-1 1v5h2z"/>
<path d="M40 4h13v14h2V3a1 1 0 00-1-1H39a1 1 0 00-1 1v32h2zM6 14a4 4 0 10-4-4 4 4 0 004 4zm0-6a2 2 0 11-2 2 2 2 0 012-2zM14 20a3 3 0 10-3-3 3 3 0 003 3zm0-4a1 1 0 11-1 1 1 1 0 011-1zM17 10a4 4 0 10-4-4 4 4 0 004 4zm0-6a2 2 0 11-2 2 2 2 0 012-2zM30 19a3 3 0 103-3 3 3 0 00-3 3zm4 0a1 1 0 11-1-1 1 1 0 011 1zM31 8a3 3 0 10-3-3 3 3 0 003 3zm0-4a1 1 0 11-1 1 1 1 0 011-1zM59 12a3 3 0 103 3 3 3 0 00-3-3zm0 4a1 1 0 111-1 1 1 0 01-1 1zM59 8a3 3 0 10-3-3 3 3 0 003 3zm0-4a1 1 0 11-1 1 1 1 0 011-1zM26 17a4 4 0 10-4-4 4 4 0 004 4zm0-6a2 2 0 11-2 2 2 2 0 012-2z"/>
<path d="M43 11a4 4 0 104-4 4 4 0 00-4 4zm6 0a2 2 0 11-2-2 2 2 0 012 2z"/>
</svg>
Loading…
Cancel
Save