Skip to content

Commit ba359aa

Browse files
committed
fix paths
1 parent 98e8f49 commit ba359aa

File tree

9 files changed

+23
-23
lines changed

9 files changed

+23
-23
lines changed

dist/data/sections.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@
33
{
44
"id": "home",
55
"categoryId": "profile",
6-
"jsonPath": "/data/sections/home.json",
6+
"jsonPath": "./data/sections/home.json",
77
"faIcon": "fa-regular fa-address-card"
88
},
99
{
1010
"id": "experience",
1111
"categoryId": "background",
12-
"jsonPath": "/data/sections/experience.json",
12+
"jsonPath": "./data/sections/experience.json",
1313
"faIcon": "pi pi-briefcase"
1414
},
1515
{
1616
"id": "skills",
1717
"categoryId": "profile",
18-
"jsonPath": "/data/sections/skills.json",
18+
"jsonPath": "./data/sections/skills.json",
1919
"faIcon": "pi pi-wrench"
2020
},
2121
{
2222
"id": "education",
2323
"categoryId": "background",
24-
"jsonPath": "/data/sections/education.json",
24+
"jsonPath": "./data/sections/education.json",
2525
"faIcon": "pi pi-graduation-cap"
2626
},
2727
{
2828
"id": "contact",
2929
"categoryId": "contact",
30-
"jsonPath": "/data/sections/contact.json",
30+
"jsonPath": "./data/sections/contact.json",
3131
"faIcon": "fa-regular fa-envelope"
3232
}
3333
]

dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/personal-website/images/svg/logo.svg" />
5+
<link rel="icon" type="image/svg+xml" href="../images/svg/logo.svg" />
66
<title>Matteo Marsala :: Software Engineer</title>
77

88
<!-- Meta: Configurations -->

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/images/svg/logo.svg" />
5+
<link rel="icon" type="image/svg+xml" href="../images/svg/logo.svg" />
66
<title>Matteo Marsala :: Software Engineer</title>
77

88
<!-- Meta: Configurations -->

npm/npm-resume-clear.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,25 +105,25 @@ const presetSections = [
105105
{
106106
id: "about",
107107
categoryId: "home",
108-
jsonPath: "/data/sections/cover.json",
108+
jsonPath: "./data/sections/cover.json",
109109
faIcon: "fa-solid fa-address-card"
110110
},
111111
{
112112
id: "skills",
113113
categoryId: "showcase",
114-
jsonPath: "/data/sections/skills.json",
114+
jsonPath: "./data/sections/skills.json",
115115
faIcon: "fa-solid fa-tools"
116116
},
117117
{
118118
id: "experience",
119119
categoryId: "background",
120-
jsonPath: "/data/sections/experience.json",
120+
jsonPath: "./data/sections/experience.json",
121121
faIcon: "fa-solid fa-briefcase"
122122
},
123123
{
124124
id: "contact",
125125
categoryId: "more",
126-
jsonPath: "/data/sections/contact.json",
126+
jsonPath: "./data/sections/contact.json",
127127
faIcon: "fa-solid fa-pen-to-square"
128128
}
129129
]

public/data/sections.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@
33
{
44
"id": "home",
55
"categoryId": "profile",
6-
"jsonPath": "/data/sections/home.json",
6+
"jsonPath": "./data/sections/home.json",
77
"faIcon": "fa-regular fa-address-card"
88
},
99
{
1010
"id": "experience",
1111
"categoryId": "background",
12-
"jsonPath": "/data/sections/experience.json",
12+
"jsonPath": "./data/sections/experience.json",
1313
"faIcon": "pi pi-briefcase"
1414
},
1515
{
1616
"id": "skills",
1717
"categoryId": "profile",
18-
"jsonPath": "/data/sections/skills.json",
18+
"jsonPath": "./data/sections/skills.json",
1919
"faIcon": "pi pi-wrench"
2020
},
2121
{
2222
"id": "education",
2323
"categoryId": "background",
24-
"jsonPath": "/data/sections/education.json",
24+
"jsonPath": "./data/sections/education.json",
2525
"faIcon": "pi pi-graduation-cap"
2626
},
2727
{
2828
"id": "contact",
2929
"categoryId": "contact",
30-
"jsonPath": "/data/sections/contact.json",
30+
"jsonPath": "./data/sections/contact.json",
3131
"faIcon": "fa-regular fa-envelope"
3232
}
3333
]

src/components/widgets/Logo.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function Logo({ className = "", style = {}, size, setDidLoad }) {
1313
return (
1414
<div className={`logo-wrapper ${sizeClass} ${className}`}
1515
style={style}>
16-
<img src={utils.file.resolvePath(`/images/svg/logo.svg`)}
16+
<img src={utils.file.resolvePath(`../images/svg/logo.svg`)}
1717
onLoad={() => { setDidLoad && setDidLoad(true) }}
1818
alt={`logo`}/>
1919
</div>

src/main.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const AppEssentialsWrapper = ({children}) => {
5757
if (window.location.pathname !== utils.file.BASE_URL)
5858
window.history.pushState({}, '', utils.file.BASE_URL)
5959

60-
utils.file.loadJSON("/data/settings.json").then(response => {
60+
utils.file.loadJSON("./data/settings.json").then(response => {
6161
_applyDeveloperSettings(response)
6262
setSettings(response)
6363
})

src/providers/DataProvider.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ function DataProvider({ children, settings }) {
6363
}, [status === DataProviderStatus.STATUS_LOADED])
6464

6565
const _loadData = async () => {
66-
const jStrings = await utils.file.loadJSON("/data/strings.json")
67-
const jProfile = await utils.file.loadJSON("/data/profile.json")
68-
const jCategories = await utils.file.loadJSON("/data/categories.json")
69-
const jSections = await utils.file.loadJSON("/data/sections.json")
66+
const jStrings = await utils.file.loadJSON("./data/strings.json")
67+
const jProfile = await utils.file.loadJSON("./data/profile.json")
68+
const jCategories = await utils.file.loadJSON("./data/categories.json")
69+
const jSections = await utils.file.loadJSON("./data/sections.json")
7070

7171
const categories = jCategories.categories
7272
const sections = jSections.sections

vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import react from '@vitejs/plugin-react'
33

44
// https://vitejs.dev/config/
55
export default defineConfig({
6-
base: '/personal-website/',
6+
base: '/',
77
plugins: [react()],
88
build: {
99
rollupOptions: {

0 commit comments

Comments
 (0)