From 3cd47f6587a2a158bbda030943671cb5aeccb29f Mon Sep 17 00:00:00 2001 From: Jim Barnes Date: Wed, 18 Feb 2026 12:11:39 -0500 Subject: [PATCH 1/5] Removed font-awesome react library and manually enqueued the kit in the index file --- index.html | 2 ++ package-lock.json | 27 --------------------------- package.json | 1 - src/components/LocationResults.tsx | 9 +++------ 4 files changed, 5 insertions(+), 34 deletions(-) diff --git a/index.html b/index.html index 9011181..3a15d35 100644 --- a/index.html +++ b/index.html @@ -6,6 +6,8 @@ UCF Search + +
diff --git a/package-lock.json b/package-lock.json index b502406..1f15e03 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,6 @@ "version": "1.0.0", "dependencies": { "@awesome.me/kit-850d323291": "^1.0.4", - "@fortawesome/react-fontawesome": "^3.1.1", "react": "^19.1.1", "react-dom": "^19.1.1", "react-router-dom": "^7.9.4", @@ -937,32 +936,6 @@ "node": ">=6" } }, - "node_modules/@fortawesome/fontawesome-svg-core": { - "version": "7.1.0", - "resolved": "https://npm.fontawesome.com/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-7.1.0.tgz", - "integrity": "sha512-fNxRUk1KhjSbnbuBxlWSnBLKLBNun52ZBTcs22H/xEEzM6Ap81ZFTQ4bZBxVQGQgVY0xugKGoRcCbaKjLQ3XZA==", - "license": "MIT", - "peer": true, - "dependencies": { - "@fortawesome/fontawesome-common-types": "7.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/@fortawesome/react-fontawesome": { - "version": "3.1.1", - "resolved": "https://npm.fontawesome.com/@fortawesome/react-fontawesome/-/react-fontawesome-3.1.1.tgz", - "integrity": "sha512-EDllr9hpodc21odmUywHS1alXNiCd4E8sp5GJ5s7wYINz8vSmMiNWpALTiuYODb865YyQ/NlyiN4mbXp7HCNqg==", - "license": "MIT", - "engines": { - "node": ">=20" - }, - "peerDependencies": { - "@fortawesome/fontawesome-svg-core": "~6 || ~7", - "react": "^18.0.0 || ^19.0.0" - } - }, "node_modules/@humanfs/core": { "version": "0.19.1", "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", diff --git a/package.json b/package.json index 37ed2da..ef34039 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ }, "dependencies": { "@awesome.me/kit-850d323291": "^1.0.4", - "@fortawesome/react-fontawesome": "^3.1.1", "react": "^19.1.1", "react-dom": "^19.1.1", "react-router-dom": "^7.9.4", diff --git a/src/components/LocationResults.tsx b/src/components/LocationResults.tsx index c5ae3d3..a6afdd1 100644 --- a/src/components/LocationResults.tsx +++ b/src/components/LocationResults.tsx @@ -3,9 +3,6 @@ import './LocationResults.scss' import { SearchQueryContext } from '../SearchContext'; import type { LocationResultSet } from '../types/LocationTypes'; -import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; -import { byPrefixAndName } from '@awesome.me/kit-850d323291/icons'; - const MAP_SEARCH_URL = import.meta.env.VITE_MAP_SEARCH_URL; function LocationResults() { @@ -48,17 +45,17 @@ function LocationResults() { return (

- Locations + Locations

{loc.name}

- More Information + More Information - Directions + Directions
From fc7d40ed448fe5166ce02561c443df45e229b06a Mon Sep 17 00:00:00 2001 From: Jim Barnes Date: Wed, 18 Feb 2026 12:48:16 -0500 Subject: [PATCH 2/5] Cache css and js assets for one year --- staticwebapp.config.json | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 staticwebapp.config.json diff --git a/staticwebapp.config.json b/staticwebapp.config.json new file mode 100644 index 0000000..82c5a36 --- /dev/null +++ b/staticwebapp.config.json @@ -0,0 +1,10 @@ +{ + "routes": [ + { + "route": "/assets/*.{css,js}", + "headers": { + "Cache-Control": "public, max-age=31536000, immutable" + } + } + ] +} From d7a9229deeaef1360266f69da0206913d3f7a33c Mon Sep 17 00:00:00 2001 From: Jim Barnes Date: Wed, 18 Feb 2026 13:10:13 -0500 Subject: [PATCH 3/5] Removed unnecessary comment. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- index.html | 1 - 1 file changed, 1 deletion(-) diff --git a/index.html b/index.html index 3a15d35..c9fd1f1 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,6 @@ UCF Search - From 34a21c41a10a1a655491f2f4e1f75fa1de5d3146 Mon Sep 17 00:00:00 2001 From: Jim Barnes Date: Wed, 18 Feb 2026 13:11:40 -0500 Subject: [PATCH 4/5] Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- package.json | 2 +- staticwebapp.config.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ef34039..102b292 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "preview": "vite preview" }, "dependencies": { - "@awesome.me/kit-850d323291": "^1.0.4", + "react": "^19.1.1", "react-dom": "^19.1.1", "react-router-dom": "^7.9.4", diff --git a/staticwebapp.config.json b/staticwebapp.config.json index 82c5a36..f619b4c 100644 --- a/staticwebapp.config.json +++ b/staticwebapp.config.json @@ -1,7 +1,7 @@ { "routes": [ { - "route": "/assets/*.{css,js}", + "route": "/assets/*.{css,js,woff,woff2,ttf,eot,svg,png,jpg,jpeg,gif,webp,ico}", "headers": { "Cache-Control": "public, max-age=31536000, immutable" } From ef7c756da0137c4703f76ca86bc13acbf87944b3 Mon Sep 17 00:00:00 2001 From: Jim Barnes Date: Wed, 18 Feb 2026 13:13:01 -0500 Subject: [PATCH 5/5] Added noopener and noreferrer to the location result links --- src/components/LocationResults.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/LocationResults.tsx b/src/components/LocationResults.tsx index a6afdd1..917af65 100644 --- a/src/components/LocationResults.tsx +++ b/src/components/LocationResults.tsx @@ -51,10 +51,10 @@ function LocationResults() {

{loc.name}