Skip to content

Commit

Permalink
feat: demo prep
Browse files Browse the repository at this point in the history
  • Loading branch information
nexus49 committed Jul 4, 2024
1 parent ae11102 commit 9aa9514
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 15 deletions.
19 changes: 7 additions & 12 deletions frontend/src/app/account-list/account-list.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,21 @@
<thead fd-table-header>
<tr fd-table-row>
<th fd-table-cell>Name</th>
<th fd-table-cell>Display Name</th>
<!-- <th fd-table-cell>Type</th> -->
</tr>
</thead>
<tbody fd-table-body >

<tr fd-table-row *ngFor="let row of accountList;">
<td fd-table-cell>
<a fd-link href="#">{{ row.metadata.name }}</a>
</td>
<!-- <td fd-table-cell>
<p fd-table-text maxWidth="250px" [noWrap]="true">
{{ row.column2 }}
</p>
</td>
<td fd-table-cell>
<p fd-table-text maxWidth="250px">
{{ row.column3 }}
</p>
</td>
<td fd-table-cell>{{ row.date }}</td>
<td fd-table-cell><fd-icon [glyph]="row.type"></fd-icon></td> -->
{{ row.spec.displayName }}
</td>
<!-- <td fd-table-cell>
{{ row.spec.type }}
</td> -->
</tr>
</tbody>
</table>
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/app/graphql.config.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export const apiurl = 'https://api.d1.openmfp.dxp.k8s.ondemand.com/example-gateway/graphql';
// export const apiurl = 'https://api.d1.openmfp.dxp.k8s.ondemand.com/example-gateway/graphql';
export const apiurl = 'http://localhost:8000/example-gateway/graphql';
5 changes: 5 additions & 0 deletions frontend/src/app/models/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@ export interface coreOpenmfpIo {

export interface Account {
metadata: ObjectMetadata;
spec: AccountSpec
}

export interface ObjectMetadata {
name: String
}
export interface AccountSpec {
displayName: String
// type: String
}
6 changes: 5 additions & 1 deletion frontend/src/app/services/account-service.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ export const POLLING_INTERVAL = 5000;
const accountsQuery = gql `
query {
coreOpenmfpIo {
accounts(namespace: "openmfp-root") {
accounts(namespace: "demo-root") {
metadata {
name
}
spec {
displayName
# type
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "es5",
"target": "ES2022",
"module": "ES2022",
"useDefineForClassFields": false,
"lib": [
Expand Down

0 comments on commit 9aa9514

Please sign in to comment.