Skip to content

Commit

Permalink
rename Browsertrix Cloud -> Browsertrix
Browse files Browse the repository at this point in the history
add link to browsertrix.com, default to app.browsertrix.com for btrix URL
  • Loading branch information
ikreymer committed May 31, 2024
1 parent 3f0f2e2 commit cd25353
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 24 deletions.
27 changes: 14 additions & 13 deletions dist/embed/ui.js

Large diffs are not rendered by default.

15 changes: 9 additions & 6 deletions src/ui/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ const VERSION = __AWP_VERSION__;

const DEFAULT_GATEWAY_URL = "https://w3s.link/ipfs/";

const DEFAULT_BTRIX_URL = "https://app.browsertrix.com";


//============================================================================
class ArchiveWebApp extends ReplayWebApp
Expand Down Expand Up @@ -656,7 +658,7 @@ class ArchiveWebApp extends ReplayWebApp
<a @click=${() => this.settingsTab = "ipfs"}>IPFS</a>
</li>
<li class="${this.settingsTab === "browsertrix" ? "is-active" : ""}">
<a @click=${() => this.settingsTab = "browsertrix"}>Browsertrix Cloud</a>
<a @click=${() => this.settingsTab = "browsertrix"}>Browsertrix</a>
</li>
</ul>
</div>
Expand Down Expand Up @@ -688,14 +690,15 @@ class ArchiveWebApp extends ReplayWebApp
</fieldset>` : ""}
${this.settingsTab === "browsertrix" ? html`
<p class="is-size-6 mb-3">Configure your credentials to upload archived items to Browsertrix Cloud.</p>
<p class="is-size-6 mb-3">Configure your credentials to upload archived items to Browsertrix.</p>
<p class="is-size-7 p-4 has-background-info">Don't have a Browsertrix account? Visit <a href="https://browsertrix.com/">https://browsertrix.com/</a> for more info.</p>
<fieldset>
<div class="field has-addons">
<p class="is-expanded">
Browsertrix Cloud URL:
Browsertrix URL:
<input class="input is-small" type="url"
name="btrixUrl" id="btrixUrl" value="${this.btrixOpts && this.btrixOpts.url}"
placeholder="https://...">
name="btrixUrl" id="btrixUrl" value="${this.btrixOpts && this.btrixOpts.url || DEFAULT_BTRIX_URL}"
placeholder="${DEFAULT_BTRIX_URL}">
</p>
</div>
<div class="field has-addons">
Expand Down Expand Up @@ -891,7 +894,7 @@ class ArchiveWebApp extends ReplayWebApp
client = await BtrixClient.login(btrixOpts);
this.settingsError = "";
} catch (e) {
this.settingsError = "Unable to log in to Browsertrix Cloud. Check your credentials.";
this.settingsError = "Unable to log in to Browsertrix. Check your credentials.";
return false;
}

Expand Down
10 changes: 5 additions & 5 deletions src/ui/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class BtrixUploader extends LitElement
return html`
<wr-modal
@modal-closed="${() => this.coll = null}"
title="Upload To Browsertrix Cloud">
title="Upload To Browsertrix">
<table class="is-size-6" style="margin-left: 3.0rem">
<tr class="is-italic">
<td class="has-text-right pr-4">Collection:</td>
Expand All @@ -151,7 +151,7 @@ class BtrixUploader extends LitElement
<td class="has-text-right pr-4">Link:</td>
<td><a href="${btrixUploadUrl}" target="_blank">
<fa-icon aria-hidden="true" class="" size="0.7em" .svg="${fasExternal}"></fa-icon>
View in Browsertrix Cloud</a></td>
View in Browsertrix</a></td>
</tr>` : ""}
</table>
<div class="is-flex is-flex-direction-column">
Expand Down Expand Up @@ -200,7 +200,7 @@ class BtrixUploader extends LitElement
if (!this.isUploadNeeded) {
return html`<p class="is-italic">
<fa-icon aria-hidden="true" class="has-text-success" .svg="${fasCheck}"></fa-icon>
Archive already uploaded to Browsertrix Cloud.
Archive already uploaded to Browsertrix.
${this.renderDeleteUploaded()}
</p>
`;
Expand All @@ -216,7 +216,7 @@ class BtrixUploader extends LitElement
}

case "deleted":
return html`<p class="has-text-weight-bold has-text-primary">Upload to Browsertrix Cloud has been deleted.</p>
return html`<p class="has-text-weight-bold has-text-primary">Upload to Browsertrix has been deleted.</p>
<p>(Data is still saved locally in your browser)</p>`;

case "deleteFailed":
Expand All @@ -233,7 +233,7 @@ class BtrixUploader extends LitElement

renderDeleteUploaded() {
return html`
<span><button class="button is-small" title="Delete Upload from Browsertrix Cloud" type="button" @click="${this.onDeleteUpload}">
<span><button class="button is-small" title="Delete Upload from Browsertrix" type="button" @click="${this.onDeleteUpload}">
<fa-icon aria-hidden="true" class="has-text-danger pr-2" .svg="${fasX}"></fa-icon>
Delete
</button></span>
Expand Down

0 comments on commit cd25353

Please sign in to comment.