mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-25 15:35:12 +00:00
replaced ti-alert-triangle with ph-warning-circle
This commit is contained in:
parent
cb2734e9a6
commit
278916be58
3 changed files with 20 additions and 3 deletions
|
@ -9,7 +9,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<div :class="$style.header">
|
||||
<span :class="$style.icon">
|
||||
<i v-if="announcement.icon === 'info'" class="ph-info ph-bold ph-lg"></i>
|
||||
<i v-else-if="announcement.icon === 'warning'" class="ph-warning-circle ph-bold ph-lg" style="color: var(--warn);"></i>
|
||||
<i v-else-if="announcement.icon === 'warning'" class="ti ti-alert-triangle" style="color: var(--warn);"></i>
|
||||
<i v-else-if="announcement.icon === 'error'" class="ph-seal-warning ph-bold ph-lg" style="color: var(--error);"></i>
|
||||
<i v-else-if="announcement.icon === 'success'" class="ph-check-circle ph-bold ph-lg" style="color: var(--success);"></i>
|
||||
</span>
|
||||
|
|
|
@ -20,7 +20,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<span v-if="$i && !announcement.silence && !announcement.isRead" style="margin-right: 0.5em;">🆕</span>
|
||||
<span style="margin-right: 0.5em;">
|
||||
<i v-if="announcement.icon === 'info'" class="ph-info ph-bold ph-lg"></i>
|
||||
<i v-else-if="announcement.icon === 'warning'" class="ph-warning-circle ph-bold ph-lg" style="color: var(--warn);"></i>
|
||||
<i v-else-if="announcement.icon === 'warning'" class="ti ti-alert-triangle" style="color: var(--warn);"></i>
|
||||
<i v-else-if="announcement.icon === 'error'" class="ph-seal-warning ph-bold ph-lg" style="color: var(--error);"></i>
|
||||
<i v-else-if="announcement.icon === 'success'" class="ph-check-circle ph-bold ph-lg" style="color: var(--success);"></i>
|
||||
</span>
|
||||
|
|
|
@ -83,6 +83,24 @@ export function getConfig(): UserConfig {
|
|||
pluginVue(),
|
||||
pluginUnwindCssModuleClassName(),
|
||||
pluginJson5(),
|
||||
iconsReplace({
|
||||
values: {
|
||||
'ti ti-alert-triangle': 'ph-warning ph-bold ph-lg',
|
||||
},
|
||||
exclude: [
|
||||
'**/components/MkAnnouncementDialog.*',
|
||||
'**/pages/announcement.*',
|
||||
],
|
||||
}),
|
||||
iconsReplace({
|
||||
values: {
|
||||
'ti ti-alert-triangle': 'ph-warning-circle ph-bold ph-lg',
|
||||
},
|
||||
include: [
|
||||
'**/components/MkAnnouncementDialog.*',
|
||||
'**/pages/announcement.*',
|
||||
],
|
||||
}),
|
||||
iconsReplace({
|
||||
values: {
|
||||
'ti ti-terminal-2': 'ph-terminal-window ph-bold ph-lg',
|
||||
|
@ -118,7 +136,6 @@ export function getConfig(): UserConfig {
|
|||
'ti ti-eye-off': 'ti ti-eye-exclamation',
|
||||
'ti ti-eye-exclamation': 'ph-eye-slash ph-bold ph-lg',
|
||||
'ti ti-lock': 'ph-lock ph-bold ph-lg',
|
||||
'ti ti-alert-triangle': 'ph-warning ph-bold ph-lg',
|
||||
},
|
||||
}),
|
||||
...process.env.NODE_ENV === 'production'
|
||||
|
|
Loading…
Reference in a new issue