Skip to content

Commit 1646a9f

Browse files
authored
chore: test comp (#429)
1 parent 137d396 commit 1646a9f

2 files changed

Lines changed: 33 additions & 6 deletions

File tree

services/agora/src/components/embeddedBrowser/EmbeddedBrowserWarningDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function retryAndroidRedirect() {
200200
margin: 0;
201201
font-size: 1.5rem;
202202
font-weight: var(--font-weight-bold);
203-
color: $color-text-strong;
203+
color: $primary;
204204
text-align: center;
205205
line-height: 1.3;
206206
}

services/agora/src/pages/dev/test-components/EmbeddedBrowserWarningTest.vue

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,35 @@
1313

1414
<div class="button-container">
1515
<PrimeButton
16-
:label="t('openWarningButton')"
17-
icon="pi pi-exclamation-triangle"
16+
label="Test: X Browser"
17+
icon="pi pi-twitter"
1818
class="test-button"
19-
@click="openWarning"
19+
@click="openWarning('X', 'twitter')"
20+
/>
21+
<PrimeButton
22+
label="Test: Telegram"
23+
icon="pi pi-telegram"
24+
class="test-button"
25+
@click="openWarning('Telegram', 'telegram')"
26+
/>
27+
<PrimeButton
28+
label="Test: Instagram"
29+
icon="pi pi-instagram"
30+
class="test-button"
31+
@click="openWarning('Instagram', 'instagram')"
32+
/>
33+
<PrimeButton
34+
label="Test: Facebook"
35+
icon="pi pi-facebook"
36+
class="test-button"
37+
@click="openWarning('Facebook', 'facebook')"
38+
/>
39+
<PrimeButton
40+
label="Test: Generic (no app name)"
41+
icon="pi pi-question-circle"
42+
class="test-button"
43+
severity="secondary"
44+
@click="openWarning(undefined, undefined)"
2045
/>
2146
</div>
2247
</template>
@@ -37,8 +62,8 @@ const { t } = useComponentI18n<EmbeddedBrowserWarningTestTranslations>(
3762
3863
const warningStore = useEmbeddedBrowserWarningStore();
3964
40-
const openWarning = () => {
41-
warningStore.openWarning("Telegram", "telegram");
65+
const openWarning = (appName: string | undefined, appKey: string | undefined) => {
66+
warningStore.openWarning(appName, appKey);
4267
};
4368
</script>
4469

@@ -68,6 +93,8 @@ const openWarning = () => {
6893
6994
.button-container {
7095
display: flex;
96+
flex-wrap: wrap;
97+
gap: 0.75rem;
7198
justify-content: center;
7299
}
73100
</style>

0 commit comments

Comments
 (0)