2017-12-28 20:22:50 -05:00
|
|
|
<div *ngIf="isLoading">
|
|
|
|
<my-spinner></my-spinner>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="!isLoading">
|
|
|
|
<my-ibox title="go-neb configurations">
|
|
|
|
<div class="my-ibox-content">
|
|
|
|
<p><a href="https://github.com/matrix-org/go-neb" target="_blank">go-neb</a> is a multi-purpose bot that can
|
|
|
|
provide various services, such as reaction GIFs and Github notifications. There are two options for
|
|
|
|
go-neb support in Dimension: using matrix.org's or self-hosting it. Each go-neb instance can have
|
|
|
|
multiple services associated with it (ie: one go-neb here can do everything).</p>
|
|
|
|
|
|
|
|
<table class="table table-striped table-condensed table-bordered">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
2018-03-23 22:15:51 -04:00
|
|
|
<th>Enabled Bots</th>
|
2017-12-28 20:22:50 -05:00
|
|
|
<th class="text-center" style="width: 120px;">Actions</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr *ngIf="!configurations || configurations.length === 0">
|
2018-04-01 00:10:28 -04:00
|
|
|
<td colspan="3"><i>No go-neb configurations.</i></td>
|
2017-12-28 20:22:50 -05:00
|
|
|
</tr>
|
|
|
|
<tr *ngFor="let neb of configurations trackById">
|
2018-01-31 18:30:08 -05:00
|
|
|
<td>
|
|
|
|
{{ neb.upstreamId ? "matrix.org's go-neb" : "Self-hosted go-neb" }}
|
|
|
|
<span class="text-muted" style="display: inline-block;" *ngIf="!neb.upstreamId">({{ neb.adminUrl }})</span>
|
|
|
|
</td>
|
2018-03-23 22:15:51 -04:00
|
|
|
<td>
|
|
|
|
{{ getEnabledBotsString(neb) }}
|
|
|
|
</td>
|
2017-12-28 20:22:50 -05:00
|
|
|
<td class="text-center">
|
|
|
|
<span class="appsvcConfigButton" (click)="showAppserviceConfig(neb)"
|
|
|
|
*ngIf="!neb.upstreamId">
|
|
|
|
<i class="far fa-file"></i>
|
|
|
|
</span>
|
|
|
|
<span class="editButton" [routerLink]="[neb.id, 'edit']" title="edit">
|
|
|
|
<i class="fa fa-pencil-alt"></i>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<button type="button" class="btn btn-success btn-sm" (click)="addModularHostedNeb()" *ngIf="!hasModularNeb">
|
|
|
|
<i class="fa fa-plus"></i> Add matrix.org's go-neb
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-success btn-sm" (click)="addSelfHostedNeb()">
|
|
|
|
<i class="fa fa-plus"></i> Add self-hosted go-neb
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</my-ibox>
|
|
|
|
</div>
|