- Expand app information section.
authorChristian Weiske <cweiske@cweiske.de>
Wed, 15 Jul 2015 17:27:11 +0000 (19:27 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 15 Jul 2015 17:27:11 +0000 (19:27 +0200)
- Register app menu item more efficiently[1]
- Add SVG app icon to make it show up in the app management page

[1] https://owncloud.org/blog/owncloud-8-1-brings-massively-improved-api-for-developers/

appinfo/app.php
appinfo/info.xml
img/app.svg [new file with mode: 0644]
img/tomboy-grey.png [deleted file]

index 704b2c7..d78a9bb 100755 (executable)
@@ -1,12 +1,10 @@
 <?php
 <?php
-//OCP\App::registerAdmin( 'apptemplate', 'settings' );
-
-OCP\App::addNavigationEntry(
+\OC::$server->getNavigationManager()->add(
     array( 
         'id' => 'grauphel',
         'order' => 2342,
         'href' => \OCP\Util::linkToRoute('grauphel.gui.index'),
     array( 
         'id' => 'grauphel',
         'order' => 2342,
         'href' => \OCP\Util::linkToRoute('grauphel.gui.index'),
-        'icon' => OCP\Util::imagePath('grauphel', 'tomboy-grey.png'),
+        'icon' => \OCP\Util::imagePath('grauphel', 'app.svg'),
         'name' => 'Tomboy notes'
     )
 );
         'name' => 'Tomboy notes'
     )
 );
index 3f2c2c4..41cf119 100755 (executable)
@@ -1,10 +1,29 @@
 <?xml version="1.0"?>
 <info>
 <?xml version="1.0"?>
 <info>
-       <id>grauphel</id>
-       <name>Grauphel: Tomboy note server</name>
-       <description>Tomboy REST API server to sync notes between devices</description>
-       <version>0.5.1</version>
-       <licence>AGPL3 or later</licence>
-       <author>Christian Weiske</author>
-       <requiremin>7</requiremin>
+ <id>grauphel</id>
+ <name>Grauphel: Tomboy note server</name>
+ <description>
+  Tomboy REST API server to sync notes between devices.
+
+  Tomboy, Conboy and Tomdroid clients are supported.
+ </description>
+ <version>0.5.1</version>
+ <licence>AGPL3 or later</licence>
+ <author>Christian Weiske</author>
+
+ <requiremin>7</requiremin>
+ <namespace>Grauphel</namespace>
+ <dependencies>
+  <lib>OAuth</lib>
+ </dependencies>
+
+ <documentation>
+  <admin>http://www.bogo/grauphel.htm#installation</admin>
+ </documentation>
+ <website>http://cweiske.de/grauphel.htm</website>
+ <repository type="git">FIXME http://git.cweiske.de/grauphel.git</repository>
+ <bugs>https://github.com/cweiske/grauphel/issues</bugs>
+
+ <category>productivity</category>
+ <ocsid>166654</ocsid>
 </info>
 </info>
diff --git a/img/app.svg b/img/app.svg
new file mode 100644 (file)
index 0000000..ab87655
--- /dev/null
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" id="svg11300" height="48px" width="48px" version="1.1"><defs id="defs3"><radialGradient id="radialGradient6423-415" cx="39.907" gradientUnits="userSpaceOnUse" cy="31.781" r="5.2591" gradientTransform="matrix(1 0 0 .36134 0 22.297)"><stop id="stop3088" offset="0"/><stop id="stop3090" stop-opacity="0" offset="1"/></radialGradient><linearGradient id="linearGradient5615-604" y2="67.031" gradientUnits="userSpaceOnUse" y1="14.087" x2="26.13" x1="26.213"><stop id="stop3094" stop-color="#fff" offset="0"/><stop id="stop3096" stop-color="#fff" stop-opacity="0" offset="1"/></linearGradient><radialGradient id="radialGradient6413-280" cx="43.875" gradientUnits="userSpaceOnUse" cy="35.901" r="20.219" gradientTransform="matrix(10.883 -6.4548e-8 0 11.397 -433.6 -381.38)"><stop id="stop3100" stop-color="#fff" offset="0"/><stop id="stop3102" stop-color="#fff" stop-opacity="0" offset="1"/></radialGradient><linearGradient id="linearGradient2554-974" y2="22.251" gradientUnits="userSpaceOnUse" y1="17.376" gradientTransform="translate(-5.6693)" x2="50.988" x1="48.906"><stop id="stop3106" stop-color="#e8e8e8" offset="0"/><stop id="stop3108" stop-color="#8e8e8e" offset=".5"/><stop id="stop3110" stop-color="#373737" offset="1"/></linearGradient><linearGradient id="linearGradient2556-442" y2="22.625" gradientUnits="userSpaceOnUse" y1="19.812" gradientTransform="translate(-5.6693)" x2="47.688" x1="46"><stop id="stop3114" stop-color="#c1c1c1" offset="0"/><stop id="stop3116" stop-color="#acacac" offset="1"/></linearGradient><radialGradient id="radialGradient2558-809" gradientUnits="userSpaceOnUse" cx="29.053" cy="27.641" r="3.2409" gradientTransform="matrix(2.9236 0 0 2.0297 -61.555 -27.884)"><stop id="stop3120" stop-color="#cfcfcf" offset="0"/><stop id="stop3122" stop-color="#cfcfcf" stop-opacity="0" offset="1"/></radialGradient><linearGradient id="linearGradient2560-459" y2="30.703" gradientUnits="userSpaceOnUse" y1="31.047" gradientTransform="translate(-5.8255 .125)" x2="25.515" x1="25.719"><stop id="stop3126" offset="0"/><stop id="stop3128" stop-color="#c9c9c9" offset="1"/></linearGradient><radialGradient id="radialGradient6405-213" gradientUnits="userSpaceOnUse" cx="45.15" cy="35.915" r="21.627" gradientTransform="matrix(1.6697 0 1.7025e-8 1.2205 -30.238 -11.799)"><stop id="stop3132" stop-color="#bebebe" offset="0"/><stop id="stop3134" stop-color="#767676" offset="1"/></radialGradient><radialGradient id="radialGradient2552-738" gradientUnits="userSpaceOnUse" cx="23.562" cy="40.438" r="19.562" gradientTransform="matrix(1 0 0 .34824 0 26.355)"><stop id="stop3138" offset="0"/><stop id="stop3140" stop-opacity="0" offset="1"/></radialGradient></defs><metadata id="metadata4"><rdf:RDF><cc:Work rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/><dc:creator><cc:Agent><dc:title>Jakub Steiner</dc:title></cc:Agent></dc:creator><dc:source>http://jimmac.musichall.cz</dc:source><cc:license rdf:resource="http://creativecommons.org/licenses/GPL/2.0/"/><dc:title/></cc:Work><cc:License rdf:about="http://creativecommons.org/licenses/GPL/2.0/"><cc:permits rdf:resource="http://web.resource.org/cc/Reproduction"/><cc:permits rdf:resource="http://web.resource.org/cc/Distribution"/><cc:requires rdf:resource="http://web.resource.org/cc/Notice"/><cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/><cc:requires rdf:resource="http://web.resource.org/cc/ShareAlike"/><cc:requires rdf:resource="http://web.resource.org/cc/SourceCode"/></cc:License></rdf:RDF></metadata><g id="layer1"><g id="g1197" fill-rule="evenodd" transform="matrix(.21132 0 0 .20976 -.32677 3.5235)" stroke-width="3pt"><path id="path1196" opacity=".047872" d="m32.707 164.36c-10.388 0-18.75 8.36-18.75 18.75s8.362 18.75 18.75 18.75h172.5c10.38 0 18.75-8.36 18.75-18.75s-8.37-18.75-18.75-18.75h-172.5z"/><path id="path1195" opacity=".047872" d="m32.707 165.61c-9.695 0-17.5 7.81-17.5 17.5 0 9.7 7.805 17.5 17.5 17.5h172.5c9.69 0 17.5-7.8 17.5-17.5 0-9.69-7.81-17.5-17.5-17.5h-172.5z"/><path id="path1194" opacity=".047872" d="m32.707 166.86c-9.003 0-16.25 7.25-16.25 16.25s7.247 16.25 16.25 16.25h172.5c9 0 16.25-7.25 16.25-16.25s-7.25-16.25-16.25-16.25h-172.5z"/><path id="path1193" opacity=".047872" d="m32.707 168.11c-8.31 0-15 6.69-15 15s6.69 15 15 15h172.5c8.31 0 15-6.69 15-15s-6.69-15-15-15h-172.5z"/><path id="path1192" opacity=".047872" d="m32.708 169.36c-7.618 0-13.75 6.13-13.75 13.75s6.132 13.75 13.75 13.75h172.5c7.61 0 13.75-6.13 13.75-13.75s-6.14-13.75-13.75-13.75h-172.5z"/><path id="path1191" opacity=".047872" d="m32.707 170.61c-6.925 0-12.5 5.58-12.5 12.5 0 6.93 5.575 12.5 12.5 12.5h172.5c6.92 0 12.5-5.57 12.5-12.5 0-6.92-5.58-12.5-12.5-12.5h-172.5z"/><path id="path1190" opacity=".047872" d="m32.707 171.86c-6.233 0-11.25 5.02-11.25 11.25s5.017 11.25 11.25 11.25h172.5c6.23 0 11.25-5.02 11.25-11.25s-5.02-11.25-11.25-11.25h-172.5z"/><path id="path1189" opacity=".047872" d="m32.707 173.11c-5.54 0-10 4.46-10 10s4.46 10 10 10h172.5c5.54 0 10-4.46 10-10s-4.46-10-10-10h-172.5z"/></g><path id="rect1975" style="color:black" d="m10.301 14.596l28.65 0.354c0.762 0 1.244 0.576 1.376 1.193l4.402 19.816 0.012 6.347c0 0.662-0.614 1.194-1.377 1.194h-37.476c-0.7629 0-1.3768-0.532-1.3768-1.194l-0.0112-6.167 4.425-20.349c0.3093-0.662 0.6139-1.194 1.376-1.194z" fill-rule="evenodd" stroke="#626262" fill="#767676"/><rect id="rect2851" opacity=".37079" style="color:black" fill-rule="evenodd" rx=".67938" ry=".67938" height="7.0715" width="39.048" y="35.958" x="5.1146" fill="#7a7a7a"/><path id="path2853" opacity=".16292" style="color:black" d="m5.0643 36.532s0.1509-0.53 0.7041-0.574h37.565c0.754 0 0.805 0.751 0.805 0.751s0.023-1.619-1.284-1.619h-36.412c-1.0059 0.088-1.3777 0.78-1.3777 1.442z" fill-rule="evenodd" fill="#fff"/><path id="path4730" opacity=".48315" style="color:black" d="m10.312 15.594c-0.151 0-0.099-0.027-0.156 0.031-0.051 0.052-0.156 0.275-0.281 0.531-0.0146 0.03-0.0162 0.031-0.0312 0.063l-4.3438 19.906v0.063 6.124c0 0.045 0.0724 0.188 0.375 0.188h37.5c0.303 0 0.375-0.143 0.375-0.188 0 0-0.03-6.068-0.031-6.25-0.001-0.001 0-0.091 0-0.093-0.094-0.421-4.375-19.594-4.375-19.594-0.057-0.263-0.17-0.437-0.406-0.437l-28.626-0.344z" stroke="url(#linearGradient5615-604)" fill="none"/><path id="path6415" opacity=".46629" style="color:black" d="m44.194 35.681c-0.379-1.255-0.884-3.801-0.884-3.801l-8.927 3.182c5.745 0 8.574-0.265 9.811 0.619z" fill-rule="evenodd" fill="url(#radialGradient6423-415)"/><path id="path2524" d="m8.7832 16.427l-4.1348 18.029s21.472 0.125 29.276 0.125c7.981 0 11.155-2.969 11.155-2.969s-1.007-0.453-2.325-4.966l-2.404-10.501c-0.463-1.186-0.856-1.663-1.756-1.656h-27.782c-1.7448 0.032-1.7359 0.836-2.0288 1.938z" fill-rule="evenodd" stroke="#626262" stroke-width="1px" fill="url(#radialGradient6405-213)"/><path id="path6403" opacity=".46629" d="m10.812 15.5c-0.64 0.018-0.708 0.1-0.75 0.156-0.043 0.059-0.1496 0.42-0.312 1.032l-3.8438 16.781c1.6945 0.01 20.571 0.125 28.032 0.125 3.866 0 6.517-0.715 8.187-1.406 1.054-0.437 1.113-0.578 1.437-0.813-0.49-0.79-1.105-2.123-1.781-4.437v-0.063s-2.306-10.042-2.375-10.344c-0.214-0.548-0.382-0.851-0.468-0.937-0.087-0.087-0.072-0.096-0.344-0.094h-27.75-0.032z" stroke="url(#radialGradient6413-280)" stroke-width="1px" fill="none"/><path id="path6359" opacity=".26404" style="color:black" d="m5.0643 38.532s0.1509-0.53 0.7041-0.574h37.565c0.754 0 0.805 0.751 0.805 0.751s0.023-1.619-1.284-1.619h-36.412c-1.0059 0.088-1.3777 0.78-1.3777 1.442z" fill-rule="evenodd" fill="#fff"/><path id="path6361" opacity=".26404" style="color:black" d="m5.0643 40.532s0.1509-0.53 0.7041-0.574h37.565c0.754 0 0.805 0.751 0.805 0.751s0.023-1.619-1.284-1.619h-36.412c-1.0059 0.088-1.3777 0.78-1.3777 1.442z" fill-rule="evenodd" fill="#fff"/><path id="path6363" opacity=".26404" style="color:black" d="m5.0643 42.532s0.1509-0.53 0.7041-0.574h37.565c0.754 0 0.805 0.751 0.805 0.751s0.023-1.619-1.284-1.619h-36.412c-1.0059 0.088-1.3777 0.78-1.3777 1.442z" fill-rule="evenodd" fill="#fff"/><path id="path3008" opacity=".2" style="color:black" d="m43.125 40.438a19.562 6.8125 0 1 1 -39.125 0 19.562 6.8125 0 1 1 39.125 0z" fill-rule="evenodd" transform="matrix(.61661 0 0 .29358 11.488 14.628)" fill="url(#radialGradient2552-738)"/><g id="g1574" fill-rule="evenodd" transform="matrix(1.0337 -.27698 .27698 1.0337 14.818 -29.048)"><path id="path2960" stroke="#343434" stroke-width=".93444" fill="#767676" style="color:black" transform="translate(-29.755 19)" d="m17.341 32.5l5.625-5.625 20.094-9.75c3.25-1.25 5.187 3.375 2.312 5l-20.031 9.375-8 1z"/><path id="path2964" style="color:black" d="m38.331 20s1.437 0.094 2 1.344c0.579 1.288 0 2.656 0 2.656l5.031-2.469s1.452-0.881 0.656-2.843c-0.785-1.936-2.687-1.157-2.687-1.157l-5 2.469z" transform="translate(-29.755 19)" fill="url(#linearGradient2554-974)"/><path id="path2962" style="color:black" transform="translate(-29.755 19)" fill="url(#linearGradient2556-442)" d="m38.331 20s1.437 0.094 2 1.344c0.579 1.288 0 2.656 0 2.656l2-1s0.827-1.319 0.218-2.688c-0.625-1.406-2.218-1.312-2.218-1.312l-2 1z"/><path id="path2982" style="color:black" transform="translate(-29.755 19)" fill="url(#radialGradient2558-809)" d="m18.768 31.781l4.5-4.5c1.5 0.813 2.281 2.157 1.875 3.719l-6.375 0.781z"/><path id="path2992" style="color:black" transform="translate(-29.755 19)" fill="url(#linearGradient2560-459)" d="m20.112 30.375l-1.625 1.594 2.344-0.313c0.218-0.718-0.188-1.062-0.719-1.281z"/><path id="path3002" style="color:black" fill-opacity=".36364" transform="translate(-29.755 19)" fill="#fff" d="m23.268 27.25l1.563 1.25 15.387-7.319c-0.444-0.856-1.242-1.084-1.903-1.162l-15.047 7.231z"/><path id="path3004" style="color:black" fill-opacity=".36364" transform="translate(-29.755 19)" d="m25.143 31.062l0.188-0.75 15.231-7.129s-0.11 0.614-0.216 0.749l-15.203 7.13z"/></g></g></svg>
diff --git a/img/tomboy-grey.png b/img/tomboy-grey.png
deleted file mode 100644 (file)
index 069a757..0000000
Binary files a/img/tomboy-grey.png and /dev/null differ