Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate the assets of data store and source to Polypheny-DB #93

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/app/services/catalog.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,5 +402,7 @@ export class CatalogService {
return Array.from(this.entities().values()).filter(e => e.namespaceId === namespaceId && e.name === entityName)[0];
}


getHttpUrl() {
return this.httpUrl;
}
}
14 changes: 7 additions & 7 deletions src/app/views/adapters/adapters.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ <h2>Adapters</h2>
<tbody>
<tr *ngFor="let adapter of availableAdapters()">
<td class="center">
<ng-container *ngIf="getLogo(adapter.adapterName).startsWith('assets/')">
<img [src]="getLogo(adapter.adapterName)" alt="">
<ng-container *ngIf="adapter.adapterLogo.startsWith('assets/')">
<img [src]="getLogo(adapter.adapterLogo)" alt="">
</ng-container>
<ng-container *ngIf="!getLogo(adapter.adapterName).startsWith('assets/')">
<i [class]="getLogo(adapter.adapterName)"></i>
<ng-container *ngIf="!adapter.adapterLogo.startsWith('assets/')">
<i [class]="adapter.adapterLogo"></i>
</ng-container>
</td>
<td><strong>{{ adapter.adapterName }}</strong></td>
Expand All @@ -54,10 +54,10 @@ <h2>Adapters</h2>
<c-badge *ngIf="adapter.mode === DeployMode.EMBEDDED" color="info">Embedded</c-badge>
</c-card-header>
<c-card-body>
<img *ngIf="getLogo(adapter.adapterName).startsWith('assets/')" [src]="getLogo(adapter.adapterName)"
<img *ngIf="adapter.adapterLogo.startsWith('assets/')" [src]="getLogo(adapter.adapterLogo)"
alt="" class="logo">
<i *ngIf="!getLogo(adapter.adapterName).startsWith('assets/')"
[class]="'logo ' + getLogo(adapter.adapterName)"></i>
<i *ngIf="!adapter.adapterLogo.startsWith('assets/')"
[class]="'logo ' + adapter.adapterLogo"></i>
<span class="mb-2">Adapter: {{ adapter.adapterName }}</span>

<span *ngIf="adapter.dataReadOnly"><span class="fa fa-eye"></span> read-only</span>
Expand Down
37 changes: 2 additions & 35 deletions src/app/views/adapters/adapters.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -484,41 +484,8 @@ export class AdaptersComponent implements OnInit, OnDestroy {
}
}

getLogo(adapterName: string) {
const path = 'assets/dbms-logos/';
switch (adapterName.toLowerCase()) {
case 'csv':
return path + 'csv.png';
case 'hsqldb':
return path + 'hsqldb.png';
case 'postgresql':
return path + 'postgres.svg';
case 'monetdb':
return path + 'monetdb.png';
case 'cassandra':
return path + 'cassandra.png';
case 'cottontail':
case 'cottontail-db':
return path + 'cottontaildb.png';
case 'file':
return 'fa fa-file-image-o';
case 'mysql':
return path + 'mysql.png';
case 'qfs':
return 'fa fa-folder-open-o';
case 'mongodb':
return path + 'mongodb.png';
case 'ethereum':
return path + 'ethereum.png';
case 'neo4j':
return path + 'neo4j.png';
case 'excel':
return path + 'xls.png';
case 'googlesheets':
return path + 'google.png';
default:
return 'fa fa-database';
}
getLogo(adapterLogo: string) {
return `${this._catalog.getHttpUrl()}/public/${adapterLogo}`;
}

private validateControl(form: UntypedFormControl, key: string) {
Expand Down
Binary file removed src/assets/dbms-logos/cassandra.png
Binary file not shown.
Binary file removed src/assets/dbms-logos/cottontaildb.png
Binary file not shown.
Binary file removed src/assets/dbms-logos/csv.png
Binary file not shown.
Binary file removed src/assets/dbms-logos/ethereum.png
Binary file not shown.
Binary file removed src/assets/dbms-logos/google.png
Binary file not shown.
Binary file removed src/assets/dbms-logos/hsqldb.png
Binary file not shown.
Binary file removed src/assets/dbms-logos/monetdb.png
Binary file not shown.
Binary file removed src/assets/dbms-logos/mongodb.png
Binary file not shown.
Binary file removed src/assets/dbms-logos/mysql.png
Binary file not shown.
Binary file removed src/assets/dbms-logos/neo4j.png
Binary file not shown.
29 changes: 0 additions & 29 deletions src/assets/dbms-logos/postgres.svg

This file was deleted.

Binary file removed src/assets/dbms-logos/xls.png
Binary file not shown.