Skip to content

Commit 57c8f29

Browse files
authored
Merge pull request #753 from acelaya-forks/feature/fa-7
Update to FownAwesome 7
2 parents c2c8a8d + f36961c commit 57c8f29

File tree

20 files changed

+169
-250
lines changed

20 files changed

+169
-250
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org).
66

7-
## [Unreleased]
7+
## [0.16.0] - 2025-07-28
88
### Added
99
* *Nothing*
1010

1111
### Changed
12-
* *Nothing*
12+
* Update to FontAwesome 7
1313

1414
### Deprecated
1515
* *Nothing*

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/playwright:v1.53.1-noble
1+
FROM mcr.microsoft.com/playwright:v1.54.1-noble
22

33
ENV NODE_VERSION 22.15
44
ENV TINI_VERSION v0.19.0

package-lock.json

Lines changed: 64 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040
"dev:sub-route": "vite serve --host 0.0.0.0 --port 3003 --base=\"/sub/route\""
4141
},
4242
"peerDependencies": {
43-
"@fortawesome/fontawesome-svg-core": "^6.7.2",
44-
"@fortawesome/free-brands-svg-icons": "^6.7.2",
45-
"@fortawesome/free-regular-svg-icons": "^6.7.2",
46-
"@fortawesome/free-solid-svg-icons": "^6.7.2",
47-
"@fortawesome/react-fontawesome": "^0.2.2",
43+
"@fortawesome/fontawesome-svg-core": "^7.0.0",
44+
"@fortawesome/free-brands-svg-icons": "^7.0.0",
45+
"@fortawesome/free-regular-svg-icons": "^7.0.0",
46+
"@fortawesome/free-solid-svg-icons": "^7.0.0",
47+
"@fortawesome/react-fontawesome": "^0.2.3",
4848
"@reduxjs/toolkit": "^2.5.0",
49-
"@shlinkio/shlink-frontend-kit": "^1.0.1",
49+
"@shlinkio/shlink-frontend-kit": "^1.1.0",
5050
"@shlinkio/shlink-js-sdk": "^2.0.0",
5151
"react": "^19.1",
5252
"react-dom": "^19.1",

src/common/AsideMenu.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,23 +56,23 @@ export const AsideMenu: FC<AsideMenuProps> = ({ routePrefix, showOnMobile = fals
5656
>
5757
<nav className="flex flex-col h-full">
5858
<AsideMenuItem to={buildPath('/overview')}>
59-
<FontAwesomeIcon fixedWidth icon={overviewIcon} />
59+
<FontAwesomeIcon icon={overviewIcon} />
6060
Overview
6161
</AsideMenuItem>
6262
<AsideMenuItem to={buildPath('/list-short-urls/1')} active={pathname.match('/list-short-urls') !== null}>
63-
<FontAwesomeIcon fixedWidth icon={listIcon} />
63+
<FontAwesomeIcon icon={listIcon} />
6464
List short URLs
6565
</AsideMenuItem>
6666
<AsideMenuItem to={buildPath('/create-short-url')}>
67-
<FontAwesomeIcon fixedWidth icon={createIcon} flip="horizontal" />
67+
<FontAwesomeIcon icon={createIcon} flip="horizontal" />
6868
Create short URL
6969
</AsideMenuItem>
7070
<AsideMenuItem to={buildPath('/manage-tags')}>
71-
<FontAwesomeIcon fixedWidth icon={tagsIcon} />
71+
<FontAwesomeIcon icon={tagsIcon} />
7272
Manage tags
7373
</AsideMenuItem>
7474
<AsideMenuItem to={buildPath('/manage-domains')}>
75-
<FontAwesomeIcon fixedWidth icon={domainsIcon} />
75+
<FontAwesomeIcon icon={domainsIcon} />
7676
Manage domains
7777
</AsideMenuItem>
7878
</nav>

src/domains/DomainRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const DefaultDomain: FC = () => {
2828
<>
2929
<FontAwesomeIcon
3030
{...anchor}
31-
fixedWidth
31+
3232
icon={defaultDomainIcon}
3333
className="text-lm-brand dark:text-dm-brand"
3434
data-testid="default-domain-icon"

src/domains/helpers/DomainDropdown.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const DomainDropdown: FC<DomainDropdownProps> = ({ domain, editDomainRedi
3333
className="gap-1.5"
3434
to={`${routesPrefix}/domain/${domain.domain}${domain.isDefault ? `_${DEFAULT_DOMAIN}` : ''}/visits`}
3535
>
36-
<FontAwesomeIcon icon={pieChartIcon} fixedWidth /> Visit stats
36+
<FontAwesomeIcon icon={pieChartIcon} /> Visit stats
3737
</RowDropdown.Item>
3838
<RowDropdown.Item
3939
className="gap-1.5"
@@ -43,21 +43,21 @@ export const DomainDropdown: FC<DomainDropdownProps> = ({ domain, editDomainRedi
4343
query: domain.domain,
4444
})}
4545
>
46-
<FontAwesomeIcon icon={lineChartIcon} fixedWidth /> Compare visits
46+
<FontAwesomeIcon icon={lineChartIcon} /> Compare visits
4747
</RowDropdown.Item>
4848

4949
{canFilterShortUrlsByDomain && (
5050
<RowDropdown.Item
5151
className="gap-1.5"
5252
to={`${routesPrefix}/list-short-urls/1?domain=${domain.isDefault ? DEFAULT_DOMAIN : domain.domain}`}
5353
>
54-
<FontAwesomeIcon icon={listIcon} fixedWidth /> Short URLs
54+
<FontAwesomeIcon icon={listIcon} /> Short URLs
5555
</RowDropdown.Item>
5656
)}
5757

5858
<RowDropdown.Separator />
5959
<RowDropdown.Item onClick={openModal} className="gap-1.5">
60-
<FontAwesomeIcon icon={editIcon} fixedWidth /> Edit redirects
60+
<FontAwesomeIcon icon={editIcon} /> Edit redirects
6161
</RowDropdown.Item>
6262
</RowDropdown>
6363

src/domains/helpers/DomainStatusIcon.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ export const DomainStatusIcon: FC<DomainStatusIconProps> = ({ status }) => {
1818
const { anchor, tooltip } = useTooltip();
1919

2020
if (status === 'validating') {
21-
return <FontAwesomeIcon fixedWidth icon={loadingStatusIcon} spin />;
21+
return <FontAwesomeIcon icon={loadingStatusIcon} spin />;
2222
}
2323

2424
return (
2525
<span {...anchor}>
2626
<FontAwesomeIcon
27-
fixedWidth
27+
2828
icon={status === 'valid' ? checkIcon : invalidIcon}
2929
className={clsx({ 'text-danger': status !== 'valid' })}
3030
/>

src/short-urls/helpers/QrCodeModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export const QrCodeModal: FC<QrCodeModalProps> = (
141141
<QrFormatDropdown format={format} onChange={(format) => setQrOption({ format })} />
142142
<div className="flex items-center gap-2">
143143
<Button onClick={copy} aria-label="Copy data URI" title="Copy data URI" className="h-full">
144-
<FontAwesomeIcon icon={copied ? faCheck : faClone} fixedWidth />
144+
<FontAwesomeIcon icon={copied ? faCheck : faClone} />
145145
</Button>
146146
<Button solid onClick={downloadQrCode} className="grow">
147147
Download <FontAwesomeIcon icon={downloadIcon} />

0 commit comments

Comments
 (0)