tazpanel diff test.cgi @ rev 597
hardware.cgi: read pci.ids (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 04 12:46:40 2016 +0200 (2016-08-04) |
parents | 694b20d6963c |
children | 26f60e49e3d5 |
line diff
1.1 --- a/test.cgi Mon Dec 07 02:36:31 2015 +0200 1.2 +++ b/test.cgi Thu Aug 04 12:46:40 2016 +0200 1.3 @@ -17,104 +17,76 @@ 1.4 cat <<EOT 1.5 1.6 <section> 1.7 - <header><span data-img="info"></span>Buttons with font icons</header> 1.8 -<!-- 1.9 ---><button data-icon="add" >Add </button><button data-icon="admin" >Admin </button><!-- 1.10 ---><button data-icon="back" >Back </button><button data-icon="battery" >Battery </button><!-- 1.11 ---><button data-icon="brightness" >Brightness </button><button data-icon="cancel" >Cancel </button><!-- 1.12 ---><button data-icon="cd" >CD </button><button data-icon="check" >Check </button><!-- 1.13 ---><button data-icon="clock" >Clock </button><button data-icon="conf" >Conf </button><!-- 1.14 ---><button data-icon="daemons" >Daemons </button><button data-icon="delete" >Delete </button><!-- 1.15 ---><button data-icon="detect" >Detect </button><button data-icon="diff" >Diff </button><!-- 1.16 ---><button data-icon="download" >Download </button><button data-icon="edit" >Edit </button><!-- 1.17 ---><button data-icon="eth" >Eth </button><button data-icon="group" >Group </button><!-- 1.18 ---><button data-icon="grub" >GRUB </button><button data-icon="hdd" >HDD </button><!-- 1.19 ---><button data-icon="help" >Help </button><button data-icon="history" >History </button><!-- 1.20 ---><button data-icon="info" >Info </button><button data-icon="install" >Install </button><!-- 1.21 ---><button data-icon="link" >Link </button><button data-icon="list" >List </button><!-- 1.22 ---><button data-icon="locale" >Locale </button><button data-icon="lock" >Lock </button><!-- 1.23 ---><button data-icon="logs" >Logs </button><button data-icon="loopback">Loopback</button><!-- 1.24 ---><button data-icon="man" >Man </button><button data-icon="modules" >Modules </button><!-- 1.25 ---><button data-icon="off" >Off </button><button data-icon="ok" >OK </button><!-- 1.26 ---><button data-icon="on" >On </button><button data-icon="opt" >Opt </button><!-- 1.27 ---><button data-icon="proc" >Proc </button><button data-icon="refresh" >Refresh </button><!-- 1.28 ---><button data-icon="removable" >Removable </button><button data-icon="remove" >Remove </button><!-- 1.29 ---><button data-icon="repack" >Repack </button><button data-icon="report" >Report </button><!-- 1.30 ---><button data-icon="restart" >Restart </button><button data-icon="run" >Run </button><!-- 1.31 ---><button data-icon="save" >Save </button><button data-icon="scan" >Scan </button><!-- 1.32 ---><button data-icon="settings" >Settings </button><button data-icon="slitaz" >SliTaz </button><!-- 1.33 ---><button data-icon="start" >Start </button><button data-icon="stop" >Stop </button><!-- 1.34 ---><button data-icon="sync" >Sync </button><button data-icon="tags" >Tags </button><!-- 1.35 ---><button data-icon="tag" >Tag </button><button data-icon="tazx" >TazX </button><!-- 1.36 ---><button data-icon="temperature">Temperature</button><button data-icon="terminal">Terminal</button><!-- 1.37 ---><button data-icon="text" >Text </button><button data-icon="unlink" >Unlink </button><!-- 1.38 ---><button data-icon="unlock" >Unlock </button><button data-icon="upgrade" >Upgrade </button><!-- 1.39 ---><button data-icon="user" >User </button><button data-icon="view" >View </button><!-- 1.40 ---><button data-icon="web" >Web </button><button data-icon="wifi" >Wi-Fi </button><!-- 1.41 ---><button data-icon="toggle" >Toggle </button><button data-icon="chlock" >ChLock </button><!-- 1.42 ---><button data-icon="calendar" >Calendar </button><button data-icon="modem" >Modem </button><!-- 1.43 ---><button data-icon="vpn" >VPN </button><button data-icon="display" >Display </button><!-- 1.44 ---><button data-icon="cpu" >CPU </button><button data-icon="floppy" >Floppy </button><!-- 1.45 ---><button data-icon="folder" >Folder </button> 1.46 + <header><span data-img="@info@"></span>Buttons with font icons</header> 1.47 +EOT 1.48 + 1.49 +icons="@add@:add @admin@:admin @back@:back @battery@:battery @brightness@:brightness \ 1.50 +@cancel@:cancel @cd@:cd @check@:check @clock@:clock @conf@:conf @daemons@:daemons @delete@:delete \ 1.51 +@detect@:detect @diff@:diff @download@:download @edit@:edit @eth@:eth @group@:group @grub@:grub \ 1.52 +@hdd@:hdd @help@:help @history@:history @info@:info @install@:install @link@:link @list@:list \ 1.53 +@locale@:locale @lock@:lock @logs@:logs @loopback@:loopback @man@:man @modules@:modules @off@:off \ 1.54 +@ok@:ok @on@:on @opt@:opt @proc@:proc @refresh@:refresh @removable@:removable @remove@:remove \ 1.55 +@repack@:repack @report@:report @restart@:restart @run@:run @save@:save @scan@:scan \ 1.56 +@settings@:settings @slitaz@:slitaz @start@:start @stop@:stop @sync@:sync @tags@:tags @tag@:tag \ 1.57 +@tazx@:tazx @temperature@:temperature @terminal@:terminal @text@:text @unlink@:unlink \ 1.58 +@unlock@:unlock @upgrade@:upgrade @user@:user @view@:view @web@:web @wifi@:wifi @toggle@:toggle \ 1.59 +@chlock@:chlock @calendar@:calendar @modem@:modem @vpn@:vpn @display@:display @cpu@:cpu \ 1.60 +@floppy@:floppy @folder@:folder" 1.61 + 1.62 +echo "$icons" | \ 1.63 +awk 'BEGIN{RS=" "; FS=":"} { 1.64 + printf "<button data-icon=\"%s\">%s</button>", $1, $2; 1.65 +}' 1.66 + 1.67 +cat <<EOT 1.68 </section> 1.69 1.70 1.71 <section> 1.72 - <header><span data-img="link"></span>Links with font icons</header> 1.73 + <header><span data-img="@link@"></span>Links with font icons</header> 1.74 <div> 1.75 <p> 1.76 -<a data-icon="add" >Add </a> <a data-icon="admin" >Admin </a> <a data-icon="back" >Back </a> 1.77 -<a data-icon="battery" >Battery </a> <a data-icon="brightness">Brightness</a> <a data-icon="cancel" >Cancel </a> 1.78 -<a data-icon="cd" >CD </a> <a data-icon="check" >Check </a> <a data-icon="clock" >Clock </a> 1.79 -<a data-icon="conf" >Conf </a> <a data-icon="daemons" >Daemons </a> <a data-icon="delete" >Delete </a> 1.80 -<a data-icon="detect" >Detect </a> <a data-icon="diff" >Diff </a> <a data-icon="download" >Download </a> 1.81 -<a data-icon="edit" >Edit </a> <a data-icon="eth" >Eth </a> <a data-icon="group" >Group </a> 1.82 -<a data-icon="grub" >GRUB </a> <a data-icon="hdd" >HDD </a> <a data-icon="help" >Help </a> 1.83 -<a data-icon="history" >History </a> <a data-icon="info" >Info </a> <a data-icon="install" >Install </a> 1.84 -<a data-icon="link" >Link </a> <a data-icon="list" >List </a> <a data-icon="locale" >Locale </a> 1.85 -<a data-icon="lock" >Lock </a> <a data-icon="logs" >Logs </a> <a data-icon="loopback" >Loopback </a> 1.86 -<a data-icon="man" >Man </a> <a data-icon="modules" >Modules </a> <a data-icon="off" >Off </a> 1.87 -<a data-icon="ok" >OK </a> <a data-icon="on" >On </a> <a data-icon="opt" >Opt </a> 1.88 -<a data-icon="proc" >Proc </a> <a data-icon="refresh" >Refresh </a> <a data-icon="removable">Removable</a> 1.89 -<a data-icon="remove" >Remove </a> <a data-icon="repack" >Repack </a> <a data-icon="report" >Report </a> 1.90 -<a data-icon="restart" >Restart </a> <a data-icon="run" >Run </a> <a data-icon="save" >Save </a> 1.91 -<a data-icon="scan" >Scan </a> <a data-icon="settings" >Settings </a> <a data-icon="slitaz" >SliTaz </a> 1.92 -<a data-icon="start" >Start </a> <a data-icon="stop" >Stop </a> <a data-icon="sync" >Sync </a> 1.93 -<a data-icon="tags" >Tags </a> <a data-icon="tag" >Tag </a> <a data-icon="tazx" >TazX </a> 1.94 -<a data-icon="temperature">Temperature</a> <a data-icon="terminal" >Terminal </a> <a data-icon="text" >Text </a> 1.95 -<a data-icon="unlink" >Unlink </a> <a data-icon="unlock" >Unlock </a> <a data-icon="upgrade" >Upgrade </a> 1.96 -<a data-icon="user" >User </a> <a data-icon="view" >View </a> <a data-icon="web" >Web </a> 1.97 -<a data-icon="wifi" >Wi-Fi </a> <a data-icon="floppy" >Floppy </a> <a data-icon="folder" >Folder </a> 1.98 +EOT 1.99 + 1.100 +echo "$icons" | \ 1.101 +awk 'BEGIN{RS=" "; FS=":"} { 1.102 + printf "<a data-icon=\"%s\" href=\"#\">%s</a> ", $1, $2; 1.103 +}' 1.104 + 1.105 +cat <<EOT 1.106 </p> 1.107 </div> 1.108 </section> 1.109 1.110 1.111 <section> 1.112 - <header><span data-img="view"></span>Links with font icons only (small buttons)</header> 1.113 + <header><span data-img="@view@"></span>Links with font icons only (small buttons)</header> 1.114 <p> 1.115 -<a data-img="conf" href="#"></a>Conf <a data-img="help" href="#"></a>Help <a data-img="man" href="#"></a>Man 1.116 -<a data-img="off" href="#"></a>Off <a data-img="on" href="#"></a>On <a data-img="opt" href="#"></a>Opt 1.117 -<a data-img="remove" href="#"></a>Remove <a data-img="run" href="#"></a>Run <a data-img="stop" href="#"></a>Stop 1.118 -<a data-img="web" href="#"></a>Web <a data-img="slitaz" href="#"></a>SliTaz <a data-img="user" href="#"></a>User 1.119 -<a data-img="floppy" href="#"></a>Floppy <a data-img="folder" href="#"></a>Folder 1.120 +EOT 1.121 + 1.122 +echo "$icons" | \ 1.123 +awk 'BEGIN{RS=" "; FS=":"} { 1.124 + printf "<a data-img=\"%s\" href=\"#\"></a>%s ", $1, $2; 1.125 +}' 1.126 + 1.127 +cat <<EOT 1.128 </p> 1.129 </section> 1.130 1.131 1.132 <section> 1.133 - <header><span data-img="sechi"></span>Status icons</header> 1.134 + <header><span data-img="@sechi@"></span>Status icons</header> 1.135 <div> 1.136 -<span data-icon="lvl0">lvl0</span> <span data-icon="lvl1">lvl1</span> <span data-icon="lvl2">lvl2</span> 1.137 -<span data-icon="lvl3">lvl3</span> <span data-icon="lvl4">lvl4, lvl5</span> 1.138 -<span data-icon="online">online</span> <span data-icon="offline">offline</span> 1.139 -<span data-icon="sechi">sechi</span> <span data-icon="secmi">secmi</span> <span data-icon="seclo">seclo</span> 1.140 -<span data-icon="pkg">pkg</span> <span data-icon="pkgi">pkgi</span> <span data-icon="pkgib">pkgib</span> 1.141 +<span data-icon="@lvl0@">lvl0</span> <span data-icon="@lvl1@">lvl1</span> <span data-icon="@lvl2@">lvl2</span> 1.142 +<span data-icon="@lvl3@">lvl3</span> <span data-icon="@lvl4@">lvl4, lvl5</span> 1.143 +<span data-icon="@online@">online</span> <span data-icon="@offline@">offline</span> 1.144 +<span data-icon="@sechi@">sechi</span> <span data-icon="@secmi@">secmi</span> <span data-icon="@seclo@">seclo</span> 1.145 +<span data-icon="@pkg@">pkg</span> <span data-icon="@pkgi@">pkgi</span> <span data-icon="@pkgib@">pkgib</span> 1.146 </div> 1.147 <div> 1.148 -<span data-icon="msg">msg</span> <span data-icon="msgerr">msgerr</span> 1.149 -<span data-icon="msgwarn">msgwarn</span> <span data-icon="msgup">msgup</span> 1.150 -<span data-icon="msgtip">msgtip</span> 1.151 +<span data-icon="@msg@">msg</span> <span data-icon="@msgerr@">msgerr</span> 1.152 +<span data-icon="@msgwarn@">msgwarn</span> <span data-icon="@msgup@">msgup</span> 1.153 +<span data-icon="@msgtip@">msgtip</span> 1.154 </div> 1.155 </section> 1.156 1.157 @@ -144,7 +116,7 @@ 1.158 1.159 1.160 <section> 1.161 - <header><span data-img="check"></span>User input elements</header> 1.162 + <header><span data-img="@check@"></span>User input elements</header> 1.163 <div><form> 1.164 <table> 1.165 <tr><td>Text:</td> 1.166 @@ -154,7 +126,7 @@ 1.167 <td><input type="password" placeholder="Password"/></td> 1.168 </tr> 1.169 <tr><td>Button:</td> 1.170 - <td><input type="button" value="Button" data-icon="ok"/></td> 1.171 + <td><input type="button" value="Button" data-icon="@ok@"/></td> 1.172 </tr> 1.173 <tr><td>Checkbox:</td> 1.174 <td><input type="checkbox" id="chk"/><label for="chk">Check it</label></td> 1.175 @@ -175,7 +147,7 @@ 1.176 <tr><td>Reset:</td><td><input type="reset"/></td></tr> 1.177 <tr><td>Submit:</td><td><input type="submit"/></td></tr> 1.178 <tr><td>Select:</td> 1.179 - <td><select><option data-icon="user">Option 1<option>Option 2<option>Option 3</select></td> 1.180 + <td><select><option data-icon="@user@">Option 1<option>Option 2<option>Option 3</select></td> 1.181 </tr> 1.182 <tr><td colspan="2"><b>HTMLÂ 5 inputs:</b></td></tr> 1.183 <tr><td>Search:</td><td><input type="search" results="5" autosave="pkgsearch" autocomplete="on"/></td></tr>