Use new etherpad domain

This commit is contained in:
Travis Ralston 2019-06-29 00:51:26 -06:00
parent 8e077c7f72
commit 293097f6fb
5 changed files with 6 additions and 5 deletions

View File

@ -30,7 +30,7 @@ export default {
isEnabled: true,
isPublic: true,
description: "Collaborate on documents with members of your room.",
optionsJson: '{"defaultUrl":"https://demo.riot.im/etherpad/p/$roomId_$padName"}',
optionsJson: '{"defaultUrl":"https://scalar.vector.im/etherpad/p/$roomId_$padName"}',
},
{
type: "googlecalendar",

View File

@ -7,7 +7,7 @@
Default Pad URL Template
<span class="text-muted ">$padName and $roomId will be replaced during creation to help create a unique pad URL.</span>
<input type="text" class="form-control"
placeholder="https://demo.riot.im/etherpad/p/$padName_$roomId"
placeholder="https://scalar.vector.im/etherpad/p/$padName_$roomId"
[(ngModel)]="widget.options.defaultUrl" [disabled]="isUpdating"/>
</label>
</div>

View File

@ -10,7 +10,7 @@
<label class="label-block">
Pad URL
<input type="text" class="form-control"
placeholder="https://demo.riot.im/etherpad/p/MyCoolPadName"
placeholder="https://scalar.vector.im/etherpad/p/MyCoolPadName"
[(ngModel)]="widget.dimension.newUrl" name="widget-url-{{widget.id}}"
[disabled]="isUpdating"/>
</label>

View File

@ -26,7 +26,7 @@ export class EtherpadWidgetConfigComponent extends WidgetComponent {
const padName = parsedUrl.query["padName"];
// Set the new URL so that it unpacks correctly
widget.url = `https://demo.riot.im/etherpad/p/${padName}`;
widget.url = `https://scalar.vector.im/etherpad/p/${padName}`;
}
}
}
@ -34,7 +34,7 @@ export class EtherpadWidgetConfigComponent extends WidgetComponent {
protected OnNewWidgetPrepared(widget: EditableWidget): void {
const name = this.nameService.getHumanReadableName();
let template = "https://demo.riot.im/etherpad/p/$roomId_$padName";
let template = "https://scalar.vector.im/etherpad/p/$roomId_$padName";
if (this.etherpadWidget.options && this.etherpadWidget.options.defaultUrl) {
template = this.etherpadWidget.options.defaultUrl;
}

View File

@ -10,6 +10,7 @@ const SCALAR_WIDGET_LINKS = [
"https://scalar-staging.vector.im/scalar/api/widgets/__TYPE__.html?__PNAME__=",
"https://scalar-develop.riot.im/scalar/api/widgets/__TYPE__.html?__PNAME__=",
"https://demo.riot.im/scalar/api/widgets/__TYPE__.html?__PNAME__=",
"https://scalar.vector.im/scalar/api/widgets/__TYPE__.html?__PNAME__=",
];
export const DISABLE_AUTOMATIC_WRAPPING = "";