mirror of https://gitee.com/bigwinds/arangodb
Frontend: The aardvark now supports thumbnails
This commit is contained in:
parent
a8f8df00f9
commit
c3855a3eab
|
@ -5,7 +5,7 @@
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
<i class="icon-edit" alt="Properties" title="Change foxx properties"></i>
|
<i class="icon-edit" alt="Properties" title="Change foxx properties"></i>
|
||||||
</div>
|
</div>
|
||||||
<img src="img/icon_arango.png" alt="icon" class="foxxIcon"/>
|
<img src="../aardvark/foxxes/thumbnail/<%=attributes.app %>" alt="icon" class="foxxIcon"/>
|
||||||
<p class="foxxDescription">
|
<p class="foxxDescription">
|
||||||
<!--Description: <%=attributes.description %><br /> -->
|
<!--Description: <%=attributes.description %><br /> -->
|
||||||
<strong>Mount-Point:</strong> <%=attributes.mount %><br />
|
<strong>Mount-Point:</strong> <%=attributes.mount %><br />
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<small>
|
<small>
|
||||||
<div class="plain">
|
<div class="plain">
|
||||||
<h5 class="applicationName"><%= attributes.name %></h5>
|
<h5 class="applicationName"><%= attributes.name %></h5>
|
||||||
<img src="img/icon_arango.png" alt="icon" class="foxxIcon"/>
|
<img src="../aardvark/foxxes/thumbnail/<%=attributes.app %>" alt="icon" class="foxxIcon"/>
|
||||||
<p class="foxxDescription">
|
<p class="foxxDescription">
|
||||||
<!--Description: <%=attributes.description %><br />-->
|
<!--Description: <%=attributes.description %><br />-->
|
||||||
<strong>Path:</strong> <%=attributes.path %><br />
|
<strong>Path:</strong> <%=attributes.path %><br />
|
||||||
|
|
|
@ -79,6 +79,11 @@
|
||||||
.summary("Update a foxx.")
|
.summary("Update a foxx.")
|
||||||
.notes("Used to either activate/deactivate a foxx, or change the mount point.");
|
.notes("Used to either activate/deactivate a foxx, or change the mount point.");
|
||||||
|
|
||||||
|
app.get("/foxxes/thumbnail/:app", function (req, res) {
|
||||||
|
res.transformations = [ "base64decode" ];
|
||||||
|
res.body = repositories.foxxes.thumbnail(req.params("app"));
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
app.get('/foxxes', function (req, res) {
|
app.get('/foxxes', function (req, res) {
|
||||||
res.json(repositories.foxxes.viewAll());
|
res.json(repositories.foxxes.viewAll());
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue