Skip to content

Commit 9c322c9

Browse files
committed
links to the monitoring section in home page, fix formatting issues
1 parent 05736a3 commit 9c322c9

File tree

4 files changed

+32
-38
lines changed

4 files changed

+32
-38
lines changed

gui/src/components/footer/Footer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import ExactproLogo from './ExactproLogo.vue'
1919

2020
<span class="text-xs text-balance max-w-sm">
2121
This is a solution prototype developed exclusively for the purposes of the Swift Hackathon 2025 and the
22-
corresponding demo. Copyright © 2009 - 2025 Exactpro. All Rights Reserved.
22+
corresponding demo. Copyright © 2009 - 2025 Exactpro. All rights reserved.
2323
</span>
2424
</div>
2525
<FooterLinks class="py-2" />

gui/src/pages/RootNav.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,9 @@ useHead({
9797
<h2>Additional Monitoring Solutions</h2>
9898
<ul>
9999
<li>
100-
<strong>Infrastructure Monitoring:</strong>
101100
<ul>
102-
<li>Kafka: <em>linkTBD</em></li>
103-
<li>Block Explorer: <em>linkTBD</em></li>
101+
<li><RouterLink to="/kafka/">Kafka - Swift Messages</RouterLink></li>
102+
<li><RouterLink to="/explorer/">Blockchain Explorer</RouterLink></li>
104103
</ul>
105104
</li>
106105
</ul>

gui/src/services/backend/api.ts

Lines changed: 28 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
import { ofetch, FetchError } from 'ofetch'
22
import { joinURL } from 'ufo'
33
import { z } from 'zod'
4-
import type {
5-
getTransactions,
6-
getTransactionDetails,
7-
getClientTransactions,
8-
getClientData,
9-
} from '../mock-backend/api'
4+
import type { getTransactions, getTransactionDetails, getClientTransactions, getClientData } from '../mock-backend/api'
105
import { useToasts } from '../../composables/useToasts'
116
import type { BankName } from '../../../config'
127
import type { Client, Account as FrontendAccount, Transaction } from '../mock-backend/types'
@@ -29,7 +24,7 @@ import config from '../../../config'
2924
import * as hardcoded from '../hardcoded'
3025

3126
function bankBaseRoute(bank: BankName): string {
32-
// return `http://localhost:8083/${bank.toLowerCase().replace(/ /g, '-')}/api`
27+
// return `http://localhost:8083/${bank.toLowerCase().replace(/ /g, '-')}/api`
3328
return `/${bank.toLowerCase().replace(/ /g, '-')}/api`
3429
}
3530

@@ -147,24 +142,26 @@ export async function getClientTransfers(
147142
}
148143

149144
function mapTransfers(transfers: any[]): Transfer[] {
150-
return transfers.map(transfer => {return {
151-
transferId: transfer.transferId,
152-
clientId: transfer.clientId,
153-
status: transfer.status,
154-
messageId: "SHOULD BE REMOVED FROM GUI",
155-
transferTimestamp: transfer.transferTimestamp,
156-
endToEndId: transfer.endToEndId,
157-
currency: transfer.currencyCode,
158-
amount: transfer.amount,
159-
settlementDate: transfer.settlementDate,
160-
debtorFullName: transfer.debtorFullName,
161-
debtorIban: transfer.debtorIban,
162-
debtorBic: transfer.debtorBic,
163-
creditorFullName: transfer.creditorFullName,
164-
creditorIban: transfer.creditorIban,
165-
creditorBic: transfer.creditorBic,
166-
remittanceInfo: transfer.remittanceInfo,
167-
}});
145+
return transfers.map((transfer) => {
146+
return {
147+
transferId: transfer.transferId,
148+
clientId: transfer.clientId,
149+
status: transfer.status,
150+
messageId: 'SHOULD BE REMOVED FROM GUI',
151+
transferTimestamp: transfer.transferTimestamp,
152+
endToEndId: transfer.endToEndId,
153+
currency: transfer.currencyCode,
154+
amount: transfer.amount,
155+
settlementDate: transfer.settlementDate,
156+
debtorFullName: transfer.debtorFullName,
157+
debtorIban: transfer.debtorIban,
158+
debtorBic: transfer.debtorBic,
159+
creditorFullName: transfer.creditorFullName,
160+
creditorIban: transfer.creditorIban,
161+
creditorBic: transfer.creditorBic,
162+
remittanceInfo: transfer.remittanceInfo
163+
}
164+
})
168165
}
169166

170167
export async function makeTransfer(
@@ -200,12 +197,12 @@ async function getAvailableCurrencies(bank: BankName): Promise<string[]> {
200197

201198
async function getExchangeValues(bank: BankName): Promise<Record<string, number>> {
202199
try {
203-
// const response = await ofetch<Record<string, number>>(joinURL(bankBaseRoute(bank), 'helpers', 'exchangeValues'), {
204-
// method: 'GET'
205-
// })
206-
const response = { 'EUR': 0.88, 'USDC': 1 }
200+
// const response = await ofetch<Record<string, number>>(joinURL(bankBaseRoute(bank), 'helpers', 'exchangeValues'), {
201+
// method: 'GET'
202+
// })
203+
const response = { EUR: 0.88, USDC: 1 }
207204
return z.record(z.string(), z.number()).parse(response)
208-
} catch (error) {
205+
} catch (error) {
209206
handleError(`fetching exchange values for ${bank}`, error)
210207
return {}
211208
}
@@ -217,7 +214,7 @@ async function getIbans(bank: BankName): Promise<string[]> {
217214
const response = await ofetch<string[]>(joinURL(bankBaseRoute(contraBank), 'bank', 'iban'), {
218215
method: 'GET'
219216
})
220-
// const response = ["GB33BUKB20201555555555"];
217+
// const response = ["GB33BUKB20201555555555"];
221218
return z.string().array().parse(response)
222219
} catch (error) {
223220
handleError(`fetching IBANs for ${bank}`, error)

gui/src/services/mock-backend/api.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ export function getTransactionFormData(senderBank: BankName) {
6060
}
6161
}
6262

63-
export function newTransaction(
64-
transaction: Omit<Transaction, 'uetr' | 'createdAt' | 'updatedAt' | 'status'>
65-
): void {
63+
export function newTransaction(transaction: Omit<Transaction, 'uetr' | 'createdAt' | 'updatedAt' | 'status'>): void {
6664
const newTransaction: Transaction = {
6765
...transaction,
6866
uetr: faker.string.uuid(),

0 commit comments

Comments
 (0)