Procházet zdrojové kódy

Updated navlinks relative url

Tim Jones před 1 měsícem
rodič
revize
ccb5b0683b

+ 4 - 4
.github/workflows/publish-demo.yml

@@ -33,13 +33,13 @@ jobs:
       - name: Publish Blazor WASM
         run: dotnet publish ./RackPeek.Web.Viewer/RackPeek.Web.Viewer.csproj -c Release -o publish
 
-      - name: Fix base href for GitHub Pages
+      # patch base href FIRST
+      - name: Fix base href for Pages
         run: |
           sed -i 's|<base href="/" />|<base href="/RackPeek/" />|g' publish/wwwroot/index.html
 
-
-      # Optional but recommended for GitHub Pages routing
-      - name: Add SPA fallback
+      # THEN copy to 404.html
+      - name: SPA fallback
         run: cp publish/wwwroot/index.html publish/wwwroot/404.html
 
       - name: Upload Pages artifact

+ 18 - 0
.run/RackPeek.Web.Viewer_ https.run.xml

@@ -0,0 +1,18 @@
+<component name="ProjectRunConfigurationManager">
+  <configuration default="false" name="RackPeek.Web.Viewer: https" type="LaunchSettings" factoryName=".NET Launch Settings Profile">
+    <option name="LAUNCH_PROFILE_PROJECT_FILE_PATH" value="$PROJECT_DIR$/RackPeek.Web.Viewer/RackPeek.Web.Viewer.csproj" />
+    <option name="LAUNCH_PROFILE_TFM" value="net10.0" />
+    <option name="LAUNCH_PROFILE_NAME" value="https" />
+    <option name="USE_EXTERNAL_CONSOLE" value="0" />
+    <option name="USE_MONO" value="0" />
+    <option name="RUNTIME_ARGUMENTS" value="" />
+    <option name="GENERATE_APPLICATIONHOST_CONFIG" value="1" />
+    <option name="SHOW_IIS_EXPRESS_OUTPUT" value="0" />
+    <option name="SEND_DEBUG_REQUEST" value="1" />
+    <option name="ADDITIONAL_IIS_EXPRESS_ARGUMENTS" value="" />
+    <option name="RUNTIME_TYPE" value="coreclr" />
+    <method v="2">
+      <option name="Build" />
+    </method>
+  </configuration>
+</component>

+ 6 - 6
Shared.Rcl/Layout/MainLayout.razor

@@ -4,7 +4,7 @@
 
     <!-- Header / Branding -->
     <header class="flex items-center justify-between p-4 border-b border-zinc-800 bg-zinc-900">
-        <NavLink href="/" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
+        <NavLink href="" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
             <div class="text-xl font-bold text-emerald-400 tracking-wider">
                 rackpeek
             </div>
@@ -13,19 +13,19 @@
 
         <!-- Navigation -->
         <nav class="space-x-6 text-sm">
-            <NavLink href="/"
+            <NavLink href=""
                      Match="NavLinkMatch.All"
-                     class="hover:text-emerald-400"
+                     class="hover:texRt-emerald-400"
                      activeClass="text-emerald-400 font-semibold">
                 Home
             </NavLink>
-            <NavLink href="/hardware/tree" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
+            <NavLink href="hardware/tree" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
                 Hardware
             </NavLink>
-            <NavLink href="/systems/list" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
+            <NavLink href="systems/list" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
                 Systems
             </NavLink>
-            <NavLink href="/services/list" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
+            <NavLink href="services/list" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
                 Services
             </NavLink>
         </nav>