Skip to content

Commit

Permalink
Merge pull request #1820 from gramian/studio
Browse files Browse the repository at this point in the history
Add version number to Studio sidebar
  • Loading branch information
mergify[bot] authored Nov 6, 2024
2 parents a953c52 + 13a1213 commit e85ab6a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion studio/src/main/resources/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
<div class="row">
<div class="col-1">
<ul class="nav nav-tabs flex-column" id="tabs" style="height: 100%; background-color: white">
<li class="nav-item text-center" style="height: 85px; padding: 5px"><img src="images/arcadedb-logo-mini.png" style="width: 100%" /></li>
<li class="nav-item text-center" style="padding: 5px 0px"><img src="images/arcadedb-logo-mini.png" style="width: 100%" /></li>
<li class="nav-item text-center" id="version" style="padding: 5px 0px"></li>
<li class="nav-item">
<a data-toggle="tab" href="#tab-query" class="vertical-tab nav-link active show" id="tab-query-sel">
<h3>
Expand Down
8 changes: 8 additions & 0 deletions studio/src/main/resources/static/js/studio-database.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ function updateDatabases(callback) {
},
})
.done(function (data) {
let version = data.version;
let pos = data.version.indexOf("(build");
if (pos > -1) {
version = version.substring(0, pos);
}

$("#version").html(version);

let databases = "";
for (let i in data.result) {
let dbName = data.result[i];
Expand Down
2 changes: 1 addition & 1 deletion studio/src/main/resources/static/resources.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h4><i class="fa fa-info-circle"></i>&nbsp;Useful Resources</h4>
<p><a class="link" href="https://docs.arcadedb.com#Open-Cypher">Cypher</a></p>
</li>
<li>
<p><a class="link" href="https://docs.arcadedb.com#Gremlin-API">Apache Gremlin (Apache Tinkerpop v3.4.x)</a></p>
<p><a class="link" href="https://docs.arcadedb.com#Gremlin-API">Apache Gremlin (Apache Tinkerpop v3.7.x)</a></p>
</li>
<li>
<p><a class="link" href="https://docs.arcadedb.com#MongoDB-API">MongoDB Query Language</a></p>
Expand Down

0 comments on commit e85ab6a

Please sign in to comment.