Compare commits

...

2 Commits

7 changed files with 35 additions and 8 deletions

View File

@@ -2,9 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>testpage</title>
<title>Matiss Jurevics</title>
</head>
<body>
<div id="root"></div>

4
public/favicon.svg Normal file
View File

@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<rect width="100" height="100" rx="20" fill="#000000"/>
<text x="50" y="70" font-family="Arial, sans-serif" font-weight="900" font-size="60" text-anchor="middle" fill="#ffffff">MJ</text>
</svg>

After

Width:  |  Height:  |  Size: 261 B

View File

@@ -27,6 +27,7 @@ const GlobeMesh = () => {
// Generate Borders Texture using D3
useEffect(() => {
let texture = null;
const generateTexture = async () => {
try {
// Fetch World Topology (small 110m res)
@@ -55,7 +56,7 @@ const GlobeMesh = () => {
context.stroke();
// Create Texture
const texture = new THREE.CanvasTexture(canvas);
texture = new THREE.CanvasTexture(canvas);
texture.needsUpdate = true;
setBordersTexture(texture);
} catch (err) {
@@ -64,6 +65,10 @@ const GlobeMesh = () => {
};
generateTexture();
return () => {
if (texture) texture.dispose();
};
}, []);
// Ireland Coordinates

View File

@@ -37,6 +37,7 @@ const ActivityHeatmap = () => {
}
} catch (e) {
console.warn("Gitea API error:", e);
console.error('Failed to fetch Gitea heatmap. URL:', '/api/gitea/api/v1/users/Matiss/heatmap');
}
// 3. Process & Merge

View File

@@ -61,6 +61,7 @@ const GitHistory = () => {
return commitsArrays.flat();
} catch (err) {
console.warn('Gitea history error:', err);
console.error('Failed to fetch Gitea history. Check if the proxy is correctly configured and the target URL is reachable.');
return [];
}
};

View File

@@ -53,8 +53,12 @@ const InfoTabs = () => {
{/* Content Area */}
<div>
{activeTab === 'location' && <WhereAmI />}
{activeTab === 'git' && <GitSection />}
<div style={{ display: activeTab === 'location' ? 'block' : 'none' }}>
<WhereAmI />
</div>
<div style={{ display: activeTab === 'git' ? 'block' : 'none' }}>
<GitSection />
</div>
</div>
</div>
);

View File

@@ -9,7 +9,19 @@ export default defineConfig({
'/api/gitea': {
target: 'https://git.mati.ss',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/gitea/, '')
secure: false,
rewrite: (path) => path.replace(/^\/api\/gitea/, ''),
configure: (proxy, _options) => {
proxy.on('error', (err, _req, _res) => {
console.log('proxy error', err);
});
proxy.on('proxyReq', (proxyReq, req, _res) => {
console.log('Sending Request to the Target:', req.method, req.url);
});
proxy.on('proxyRes', (proxyRes, req, _res) => {
console.log('Received Response from the Target:', proxyRes.statusCode, req.url);
});
},
}
}
}