migration(bs5): font-weight-* to fw-*

This commit is contained in:
axolotle 2024-03-19 01:43:29 +01:00
parent 183e281d04
commit e53c2c14d3
13 changed files with 18 additions and 18 deletions

View file

@ -98,7 +98,7 @@ export default {
const defaultAttrs = { const defaultAttrs = {
'label-cols-md': 4, 'label-cols-md': 4,
'label-cols-lg': 3, 'label-cols-lg': 3,
'label-class': ['font-weight-bold', 'py-0'], 'label-class': ['fw-bold', 'py-0'],
} }
if (!('label-cols' in attrs)) { if (!('label-cols' in attrs)) {
for (const attr in defaultAttrs) { for (const attr in defaultAttrs) {

View file

@ -1,6 +1,6 @@
<template> <template>
<BRow no-gutters class="description-row"> <BRow no-gutters class="description-row">
<BCol v-bind="cols_" class="font-weight-bold"> <BCol v-bind="cols_" class="fw-bold">
{{ label }} {{ label }}
</BCol> </BCol>

View file

@ -15,7 +15,7 @@
> >
<h5 class="m-0"> <h5 class="m-0">
<YIcon iname="history" /> <YIcon iname="history" />
<span class="d-none d-sm-inline font-weight-bold"> <span class="d-none d-sm-inline fw-bold">
{{ $t('history.title') }} {{ $t('history.title') }}
</span> </span>
</h5> </h5>

View file

@ -136,7 +136,7 @@
<!-- CHANGE PERMISSIONS LABEL --> <!-- CHANGE PERMISSIONS LABEL -->
<BFormGroup <BFormGroup
:label="$t('app_manage_label_and_tiles')" :label="$t('app_manage_label_and_tiles')"
label-class="font-weight-bold" label-class="fw-bold"
> >
<FormField <FormField
v-for="(perm, i) in app.permissions" v-for="(perm, i) in app.permissions"
@ -186,7 +186,7 @@
<BFormGroup <BFormGroup
:label="$t('app_info_access_desc')" :label="$t('app_info_access_desc')"
label-for="permissions" label-for="permissions"
label-class="font-weight-bold" label-class="fw-bold"
label-cols-lg="0" label-cols-lg="0"
> >
{{ {{
@ -209,7 +209,7 @@
:label="$t('app_info_changeurl_desc')" :label="$t('app_info_changeurl_desc')"
label-for="input-url" label-for="input-url"
:label-cols-lg="app.supports_change_url ? 0 : 0" :label-cols-lg="app.supports_change_url ? 0 : 0"
label-class="font-weight-bold" label-class="fw-bold"
v-if="app.is_webapp" v-if="app.is_webapp"
> >
<BInputGroup v-if="app.supports_change_url"> <BInputGroup v-if="app.supports_change_url">
@ -243,7 +243,7 @@
<BFormGroup <BFormGroup
:label="$t('app_info_default_desc', { domain: app.domain })" :label="$t('app_info_default_desc', { domain: app.domain })"
label-for="main-domain" label-for="main-domain"
label-class="font-weight-bold" label-class="fw-bold"
label-cols-md="4" label-cols-md="4"
v-if="app.is_webapp" v-if="app.is_webapp"
> >

View file

@ -22,7 +22,7 @@
class="d-flex justify-content-between align-items-center pe-0" class="d-flex justify-content-between align-items-center pe-0"
> >
<div> <div>
<h5 class="font-weight-bold"> <h5 class="fw-bold">
{{ label }} {{ label }}
<small class="text-secondary">{{ id }}</small> <small class="text-secondary">{{ id }}</small>
</h5> </h5>

View file

@ -44,7 +44,7 @@
class="d-flex justify-content-between align-items-center pe-0" class="d-flex justify-content-between align-items-center pe-0"
> >
<div class="me-2"> <div class="me-2">
<h5 class="font-weight-bold"> <h5 class="fw-bold">
{{ item.name }} {{ item.name }}
</h5> </h5>
<p class="m-0 text-muted"> <p class="m-0 text-muted">
@ -92,7 +92,7 @@
class="d-flex justify-content-between align-items-center pe-0" class="d-flex justify-content-between align-items-center pe-0"
> >
<div class="me-2"> <div class="me-2">
<h5 class="font-weight-bold"> <h5 class="fw-bold">
{{ item.name }} {{ item.name }}
<small class="text-secondary">{{ item.id }}</small> <small class="text-secondary">{{ item.id }}</small>
</h5> </h5>

View file

@ -71,7 +71,7 @@
class="d-flex justify-content-between align-items-center pe-0" class="d-flex justify-content-between align-items-center pe-0"
> >
<div class="me-2"> <div class="me-2">
<h5 class="font-weight-bold"> <h5 class="fw-bold">
{{ item.name }} {{ item.name }}
<small class="text-secondary" v-if="item.size"> <small class="text-secondary" v-if="item.size">
({{ humanSize(item.size) }}) ({{ humanSize(item.size) }})
@ -92,7 +92,7 @@
class="d-flex justify-content-between align-items-center pe-0" class="d-flex justify-content-between align-items-center pe-0"
> >
<div class="me-2"> <div class="me-2">
<h5 class="font-weight-bold"> <h5 class="fw-bold">
{{ item.name }} {{ item.name }}
<small class="text-secondary"> <small class="text-secondary">
{{ appName }} ({{ humanSize(item.size) }}) {{ appName }} ({{ humanSize(item.size) }})

View file

@ -28,7 +28,7 @@
class="d-flex justify-content-between align-items-center pe-0" class="d-flex justify-content-between align-items-center pe-0"
> >
<div> <div>
<h5 class="font-weight-bold"> <h5 class="fw-bold">
{{ distanceToNow(created_at) }} {{ distanceToNow(created_at) }}
<small class="text-secondary" <small class="text-secondary"
>{{ name }} ({{ humanSize(size) }})</small >{{ name }} ({{ humanSize(size) }})</small

View file

@ -8,7 +8,7 @@
class="d-flex justify-content-between align-items-center pe-0" class="d-flex justify-content-between align-items-center pe-0"
> >
<div> <div>
<h5 class="font-weight-bold"> <h5 class="fw-bold">
{{ name }} {{ name }}
<small class="text-secondary">{{ id }}</small> <small class="text-secondary">{{ id }}</small>
</h5> </h5>

View file

@ -86,7 +86,7 @@
class="me-2 mb-2" class="me-2 mb-2"
> >
<BButton <BButton
class="py-0 font-weight-bold" class="py-0 fw-bold"
variant="outline-dark" variant="outline-dark"
:to="{ name: 'app-info', params: { id: app.id } }" :to="{ name: 'app-info', params: { id: app.id } }"
> >

View file

@ -23,7 +23,7 @@
<div class="w-100 d-flex justify-content-between align-items-center"> <div class="w-100 d-flex justify-content-between align-items-center">
<h5 class="me-3"> <h5 class="me-3">
<BLink :to="data.to" class="text-body text-decoration-none"> <BLink :to="data.to" class="text-body text-decoration-none">
<span class="font-weight-bold"> <span class="fw-bold">
{{ data.name.replace(parent ? parent.data.name : null, '') }} {{ data.name.replace(parent ? parent.data.name : null, '') }}
</span> </span>
<span v-if="parent" class="text-secondary"> <span v-if="parent" class="text-secondary">

View file

@ -21,7 +21,7 @@
class="d-flex justify-content-between align-items-center pe-0" class="d-flex justify-content-between align-items-center pe-0"
> >
<div> <div>
<h5 class="font-weight-bold"> <h5 class="fw-bold">
{{ name }} {{ name }}
<small class="text-secondary">{{ description }}</small> <small class="text-secondary">{{ description }}</small>
</h5> </h5>

View file

@ -38,7 +38,7 @@
class="d-flex justify-content-between align-items-center pe-0" class="d-flex justify-content-between align-items-center pe-0"
> >
<div> <div>
<h5 class="font-weight-bold"> <h5 class="fw-bold">
{{ user.username }} {{ user.username }}
<small class="text-secondary">{{ user.fullname }}</small> <small class="text-secondary">{{ user.fullname }}</small>
</h5> </h5>