Skip to content

Commit

Permalink
2040 move arcade to subdomain (#7)
Browse files Browse the repository at this point in the history
* Removed gateway routing for static resources

* uncommented base href on index.html

* updated arcade api base path to match what the api gateway uses
  • Loading branch information
patstevens4 authored Oct 3, 2023
1 parent 96f0c5c commit 76151d0
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Raft-README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
### Info on Raft's modifications to ArcadeDb for the the SOCOM DF usecase.

#### Access ArcadeDb on DF helm deployments at:
- Studio: ~/api/v1/arcadedb/studio/#
- Studio: /
- API: ~/api/v1/arcadedb

#### Demo data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public void startService() {

routes.addPrefixPath("/ws", new WebSocketConnectionHandler(this, webSocketEventBus));

routes.addPrefixPath("/api/v1",//
routes.addPrefixPath("/api/v1/arcadedb",//
basicRoutes//
.post("/begin/{database}", new PostBeginHandler(this))//
.post("/close/{database}", new PostCloseDatabaseHandler(this))// DEPRECATED
Expand Down
6 changes: 3 additions & 3 deletions server/src/main/resources/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" />

<!-- Set base path for static resources, otherwise they try to resolve to /api/v1/___ and 404 -->
<base href="/api/v1/arcadedb/studio/" />
<base href="/" />

<!--====== Title ======-->
<title>ArcadeDB - The Next Generation Multi-Model DBMS</title>
Expand Down Expand Up @@ -77,7 +77,7 @@

<div class="row">
<div class="col-12 text-center">
<img src="/api/v1/arcadedb/studio/images/arcadedb-logo-small.png" />
<img src="/images/arcadedb-logo-small.png" />
<br /><br />
</div>
</div>
Expand All @@ -101,7 +101,7 @@
style="height: 85px; padding: 5px"
>
<img
src="/api/v1/arcadedb/studio/images/arcadedb-logo-mini.png"
src="/images/arcadedb-logo-mini.png"
style="width: 100%"
/>
</li>
Expand Down
2 changes: 1 addition & 1 deletion server/src/main/resources/static/js/studio-database.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async function logout() {
localStorage.removeItem(REFRESH_TOKEN);
localStorage.removeItem(ACCESS_TOKEN_EXPIRES);
// redirect to login page
window.location.href = `${basePath}/studio`;
window.location.href = `${basePath}`;
}

function createInactivityTimer() {
Expand Down
2 changes: 1 addition & 1 deletion server/src/main/resources/static/popup-login.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h5 class="modal-title" id="loginPopupLabel">Login to the server</h5>
</div>

<button onclick="login()" class="btn btn-lg btn-primary btn-block" type="submit"> Sign in
<img id="loginSpinner" class="ui-loading" src="/api/v1/arcadedb/studio/images/color-spin-small.svg" style="display: none;">
<img id="loginSpinner" class="ui-loading" src="/images/color-spin-small.svg" style="display: none;">
</button>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion server/src/main/resources/static/query.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<textarea id="inputCommand" name="inputCommand"></textarea>
<button class="btn btn-primary" onclick="executeCommand()" style="z-index: 100; position: absolute; top: 10px; right: 20px;">
<i class="fa fa-play"></i>
<img id="executeSpinner" class="ui-loading" src="/api/v1/arcadedb/studio/images/color-spin-small.svg" style="display: none;">
<img id="executeSpinner" class="ui-loading" src="/images/color-spin-small.svg" style="display: none;">
</button>
</div>

Expand Down

0 comments on commit 76151d0

Please sign in to comment.