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">
|
||||
<i class="icon-edit" alt="Properties" title="Change foxx properties"></i>
|
||||
</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">
|
||||
<!--Description: <%=attributes.description %><br /> -->
|
||||
<strong>Mount-Point:</strong> <%=attributes.mount %><br />
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<small>
|
||||
<div class="plain">
|
||||
<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">
|
||||
<!--Description: <%=attributes.description %><br />-->
|
||||
<strong>Path:</strong> <%=attributes.path %><br />
|
||||
|
|
|
@ -79,6 +79,11 @@
|
|||
.summary("Update a foxx.")
|
||||
.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) {
|
||||
res.json(repositories.foxxes.viewAll());
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue