Skip to content

Commit

Permalink
Add next path
Browse files Browse the repository at this point in the history
  • Loading branch information
daviesgeek committed Aug 27, 2024
1 parent d6f0cac commit ef51522
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 27 deletions.
1 change: 1 addition & 0 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="/next" />
<title>MeshInfo</title>
</head>
<body>
Expand Down
16 changes: 8 additions & 8 deletions frontend/src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const Layout = ({ children }: { children: React.ReactNode }) => {
<div className="mb-1">
<Link to="chat" relative="path">
<img
src="/images/icons/chat.svg"
src="/next/images/icons/chat.svg"
width="20"
height="20"
className="inline-block"
Expand All @@ -50,7 +50,7 @@ export const Layout = ({ children }: { children: React.ReactNode }) => {
{/* TODO <div className="mb-1">
<Link to="graph" relative="path">
<img
src="/images/icons/map.svg"
src="/next/images/icons/map.svg"
width="20"
height="20"
className="inline-block"
Expand All @@ -63,7 +63,7 @@ export const Layout = ({ children }: { children: React.ReactNode }) => {
<div className="mb-1">
<Link to="map">
<img
src="/images/icons/map.svg"
src="/next/images/icons/map.svg"
width="20"
height="20"
className="inline-block"
Expand All @@ -76,7 +76,7 @@ export const Layout = ({ children }: { children: React.ReactNode }) => {
<div className="mb-1">
<Link to="nodes">
<img
src="/images/icons/node.svg"
src="/next/images/icons/node.svg"
width="20"
height="20"
className="inline-block"
Expand All @@ -89,7 +89,7 @@ export const Layout = ({ children }: { children: React.ReactNode }) => {
<div className="mb-1">
<Link to="neighbors" relative="path">
<img
src="/images/icons/neighbors.svg"
src="/next/images/icons/neighbors.svg"
width="20"
height="20"
className="inline-block"
Expand All @@ -102,7 +102,7 @@ export const Layout = ({ children }: { children: React.ReactNode }) => {
<div className="mb-1">
<Link to="stats" relative="path">
<img
src="/images/icons/stats.svg"
src="/next/images/icons/stats.svg"
width="20"
height="20"
className="inline-block"
Expand All @@ -115,7 +115,7 @@ export const Layout = ({ children }: { children: React.ReactNode }) => {
<div className="mb-1">
<Link to="telemetry" relative="path">
<img
src="/images/icons/telemetry.svg"
src="/next/images/icons/telemetry.svg"
width="20"
height="20"
className="inline-block"
Expand All @@ -128,7 +128,7 @@ export const Layout = ({ children }: { children: React.ReactNode }) => {
<div className="mb-1">
<Link to="traceroutes">
<img
src="/images/icons/route2.svg"
src="/next/images/icons/route2.svg"
width="20"
height="20"
className="inline-block"
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/pages/Node.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const Node = () => {
{node.telemetry.air_util_tx && (
<span className="mr-4 align-middle" title="Air Util TX">
<img
src="/images/icons/up.svg"
src="/next/images/icons/up.svg"
alt="Air Util TX"
className="w-4 h-4 inline-block align-middle"
/>
Expand All @@ -53,7 +53,7 @@ export const Node = () => {
{node.telemetry.channel_utilization && (
<span className="mr-4 align-middle" title="Channel Util">
<img
src="/images/icons/down.svg"
src="/next/images/icons/down.svg"
alt="Channel Util"
className="w-4 h-4 inline-block align-middle"
/>
Expand All @@ -63,7 +63,7 @@ export const Node = () => {
{node.telemetry.battery_level && (
<span className="mr-4 align-middle" title="Battery Level">
<img
src="/images/icons/battery.svg"
src="/next/images/icons/battery.svg"
alt="Battery"
className="w-4 h-4 inline-block align-middle"
/>
Expand All @@ -73,7 +73,7 @@ export const Node = () => {
{node.telemetry.temperature && (
<span className="mr-4 align-middle" title="Temperature">
<img
src="/images/icons/temperature.svg"
src="/next/images/icons/temperature.svg"
alt="Temperature"
className="w-4 h-4 inline-block align-middle"
/>
Expand All @@ -83,7 +83,7 @@ export const Node = () => {
{node.telemetry.humidity && (
<span className="mr-4 align-middle" title="Humidity">
<img
src="/images/icons/humidity.svg"
src="/next/images/icons/humidity.svg"
alt="Humidity"
className="w-4 h-4 inline-block align-middle"
/>
Expand All @@ -93,7 +93,7 @@ export const Node = () => {
{node.telemetry.voltage && (
<span className="mr-4 align-middle" title="Voltage">
<img
src="/images/icons/voltage.svg"
src="/next/images/icons/voltage.svg"
alt="Voltage"
className="w-4 h-4 inline-block align-middle"
/>
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/pages/Nodes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,31 +87,31 @@ export const Nodes = () => {
</th>
<th className="hidden 2xl:table-cell border border-gray-500 bg-gray-400">
<img
src="/images/icons/battery.svg"
src="/next/images/icons/battery.svg"
className="w-4 h-4 inline-block"
alt="Battery"
title="Battery"
/>
</th>
<th className="hidden 2xl:table-cell border border-gray-500 bg-gray-400">
<img
src="/images/icons/voltage.svg"
src="/next/images/icons/voltage.svg"
className="w-4 h-4 inline-block"
alt="Voltage"
title="Voltage"
/>
</th>
<th className="hidden 2xl:table-cell border border-gray-500 bg-gray-400">
<img
src="/images/icons/up.svg"
src="/next/images/icons/up.svg"
alt="Air Util TX"
className="w-4 h-4 inline-block"
title="Air Util TX"
/>
</th>
<th className="hidden 2xl:table-cell border border-gray-500 bg-gray-400">
<img
src="/images/icons/down.svg"
src="/next/images/icons/down.svg"
className="w-4 h-4 inline-block"
alt="Channel Util"
title="Channel Util"
Expand Down
18 changes: 9 additions & 9 deletions frontend/src/pages/Telemetry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const Telemetry = () => {
align="center"
>
<img
src="/images/icons/up.svg"
src="/next/images/icons/up.svg"
alt="Air Util TX"
className="w-4 h-4 inline-block"
title="Air Util TX"
Expand All @@ -46,7 +46,7 @@ export const Telemetry = () => {
align="center"
>
<img
src="/images/icons/down.svg"
src="/next/images/icons/down.svg"
className="w-4 h-4 inline-block"
alt="Channel Util"
title="Channel Util"
Expand All @@ -57,7 +57,7 @@ export const Telemetry = () => {
align="center"
>
<img
src="/images/icons/battery.svg"
src="/next/images/icons/battery.svg"
className="w-6 h-6 inline-block"
alt="Battery"
title="Battery"
Expand All @@ -74,7 +74,7 @@ export const Telemetry = () => {
align="center"
>
<img
src="/images/icons/voltage.svg"
src="/next/images/icons/voltage.svg"
className="w-4 h-4 inline-block"
alt="Voltage"
title="Voltage"
Expand All @@ -85,7 +85,7 @@ export const Telemetry = () => {
align="center"
>
<img
src="/images/icons/current.svg"
src="/next/images/icons/current.svg"
className="w-5 h-5 inline-block"
alt="Current"
title="Current"
Expand All @@ -96,7 +96,7 @@ export const Telemetry = () => {
align="center"
>
<img
src="/images/icons/pressure.svg"
src="/next/images/icons/pressure.svg"
className="w-4 h-4 inline-block"
alt="Barometric Pressure"
title="Barometric Pressure"
Expand All @@ -107,7 +107,7 @@ export const Telemetry = () => {
align="center"
>
<img
src="/images/icons/relative-humidity.svg"
src="/next/images/icons/relative-humidity.svg"
className="w-4 h-4 inline-block"
alt="Relative Humidity"
title="Relative Humidity"
Expand All @@ -118,7 +118,7 @@ export const Telemetry = () => {
align="center"
>
<img
src="/images/icons/temperature.svg"
src="/next/images/icons/temperature.svg"
className="w-4 h-4 inline-block"
alt="Temperature"
title="Temperature"
Expand All @@ -129,7 +129,7 @@ export const Telemetry = () => {
align="center"
>
<img
src="/images/icons/resistance.svg"
src="/next/images/icons/resistance.svg"
className="w-5 h-5 inline-block"
alt="Gas Resistance"
title="Gas Resistance"
Expand Down
1 change: 1 addition & 0 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
base: "next",
server: {
proxy: {
"/api": {
Expand Down

0 comments on commit ef51522

Please sign in to comment.