Bugzilla – Attachment 152540 Details for
Bug 33169
Improve vue breadcrumbs and left-hand menu
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33169: Add support for FA styles
Bug-33169-Add-support-for-FA-styles.patch (text/plain), 6.28 KB, created by
Tomás Cohen Arazi (tcohen)
on 2023-06-21 19:25:15 UTC
(
hide
)
Description:
Bug 33169: Add support for FA styles
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2023-06-21 19:25:15 UTC
Size:
6.28 KB
patch
obsolete
>From f7ae5ae065f6854b08bb402a690ab31a42772cf0 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 21 Jun 2023 16:05:26 -0300 >Subject: [PATCH] Bug 33169: Add support for FA styles > >Font awesome now provides a different approach to icon styles so you can >specify things like: > >``` ><i class="fa fa-camera-retro"></i> >``` > >but also > >``` ><i class="fa-solid fa-camera-retro"></i> >``` > >The original implementation had a hardcoded `fa` and having an extra >parameter for the *style* seemed overkill, as we would need to handle >even a list of styles like on this example: > >``` ><i class="fa-sharp fa-solid fa-camera-retro"></i> >``` > >So I chose to just explicitly require the full FA icon class and pass it >thru. With no manipulation on the Vue side. > >This patch does that, and adjusts the 'style' for some icons, as >introduced by the FA v6 patchset. > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > .../prog/js/vue/components/NavigationItem.vue | 8 ++++---- > .../intranet-tmpl/prog/js/vue/routes/erm.js | 18 +++++++++--------- > 2 files changed, 13 insertions(+), 13 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/NavigationItem.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/NavigationItem.vue >index 5f6e6353184..baa20e5e643 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/NavigationItem.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/NavigationItem.vue >@@ -7,7 +7,7 @@ > :class="{ disabled: item.disabled }" > > > <template v-if="item.icon"> >- <i :class="`fa ${item.icon}`"></i> >+ <i :class="`${item.icon}`"></i> > </template> > <span v-if="item.title">{{ $__(item.title) }}</span> > </router-link> >@@ -17,7 +17,7 @@ > :class="{ disabled: item.disabled }" > > > <template v-if="item.icon"> >- <i :class="`fa ${item.icon}`"></i> >+ <i :class="`${item.icon}`"></i> > </template> > <span v-if="item.title">{{ $__(item.title) }}</span> > </router-link> >@@ -27,13 +27,13 @@ > :class="{ disabled: item.disabled }" > > > <template v-if="item.icon"> >- <i :class="`fa ${item.icon}`"></i> >+ <i :class="`${item.icon}`"></i> > </template> > <span v-if="item.title">{{ $__(item.title) }}</span> > </a> > <span v-else :class="{ disabled: item.disabled }"> > <template v-if="item.icon"> >- <i :class="`fa ${item.icon}`"></i> >+ <i :class="`${item.icon}`"></i> > </template> > <span class="item-last" v-if="item.title">{{ > $__(item.title) >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/routes/erm.js b/koha-tmpl/intranet-tmpl/prog/js/vue/routes/erm.js >index 92b8ab010e2..67154222e7e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/routes/erm.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/routes/erm.js >@@ -48,7 +48,7 @@ export const routes = [ > { > path: "/cgi-bin/koha/erm/agreements", > title: $__('Agreements'), >- icon: 'fa-check-circle-o', >+ icon: 'fa fa-check-circle', > is_end_node: true, > children: [ > { >@@ -79,7 +79,7 @@ export const routes = [ > { > path: "/cgi-bin/koha/erm/licenses", > title: $__('Licenses'), >- icon: "fa-gavel", >+ icon: "fa fa-gavel", > is_end_node: true, > children: [ > { >@@ -110,19 +110,19 @@ export const routes = [ > { > path: "/cgi-bin/koha/erm/eholdings", > title: $__('eHoldings'), >- icon: 'fa-crosshairs', >+ icon: 'fa fa-crosshairs', > disabled: true, > children: [ > { > path: "local", > title: $__('Local'), >- icon: "fa-map-marker", >+ icon: "fa-solid fa-location-dot", > disabled: true, > children: [ > { > path: "packages", > title: $__('Packages'), >- icon: "fa-archive", >+ icon: "fa fa-archive", > is_end_node: true, > children: [ > { >@@ -153,7 +153,7 @@ export const routes = [ > { > path: "titles", > title: $__('Titles'), >- icon: "fa-sort-alpha-asc", >+ icon: "fa-solid fa-arrow-down-a-z", > is_end_node: true, > children: [ > { >@@ -198,13 +198,13 @@ export const routes = [ > { > path: "ebsco", > title: $__('EBSCO'), >- icon: 'fa-globe', >+ icon: 'fa fa-globe', > disabled: true, > children: [ > { > path: "packages", > title: $__('Packages'), >- icon: "fa-archive", >+ icon: "fa fa-archive", > is_end_node: true, > children: [ > { >@@ -223,7 +223,7 @@ export const routes = [ > { > path: "titles", > title: $__('Titles'), >- icon: "fa-sort-alpha-asc", >+ icon: "fa-solid fa-arrow-down-a-z", > is_end_node: true, > children: [ > { >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33169
:
147962
|
148044
|
148081
|
148097
|
149710
|
149744
|
151530
|
151797
|
152068
|
152539
| 152540 |
152541
|
153889
|
153890
|
157785
|
157806
|
157807