fix: add ipallowlist in dashboard

This commit is contained in:
Baptiste Mayelle 2024-02-19 16:50:05 +01:00 committed by GitHub
parent 8b759ab797
commit 453e21c7c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -689,6 +689,54 @@
</div>
</q-card-section>
<!-- EXTRA FIELDS FROM MIDDLEWARES - [ipAllowList] - sourceRange -->
<q-card-section v-if="middleware.ipAllowList">
<div class="row items-start no-wrap">
<div class="col">
<div class="text-subtitle2">Source Range</div>
<q-chip
v-for="(range, key) in exData(middleware).sourceRange" :key="key"
dense
class="app-chip app-chip-green">
{{ range }}
</q-chip>
</div>
</div>
</q-card-section>
<!-- EXTRA FIELDS FROM MIDDLEWARES - [ipAllowList] - ipStrategy -->
<q-card-section v-if="middleware.ipAllowList">
<div class="row items-start">
<div class="col-12">
<div class="text-subtitle2">IP Strategy</div>
</div>
<div v-if="exData(middleware).ipStrategy && exData(middleware).ipStrategy.depth" class="col-12">
<q-chip
dense
class="app-chip app-chip-accent">Depth :</q-chip>
<q-chip
dense
class="app-chip app-chip-green">
{{ exData(middleware).ipStrategy.depth }}
</q-chip>
</div>
<div v-if="exData(middleware).ipStrategy && exData(middleware).ipStrategy.excludedIPs" class="col-12">
<div class="flex">
<q-chip
dense
class="app-chip app-chip-accent">
Excluded IPs:
</q-chip>
<q-chip
v-for="(excludedIPs, key) in exData(middleware).ipStrategy.excludedIPs" :key="key"
dense
class="app-chip app-chip-green">
{{ excludedIPs }}
</q-chip>
</div>
</div>
</div>
</q-card-section>
<!-- EXTRA FIELDS FROM MIDDLEWARES - [ipWhiteList] - sourceRange -->
<q-card-section v-if="middleware.ipWhiteList">
<div class="row items-start no-wrap">