move assets around
move assets around
This commit is contained in:
parent
50117ff78d
commit
8f8f6fcd8d
7 changed files with 11 additions and 6 deletions
|
|
@ -44,14 +44,18 @@ pub fn SendInertiaResponse(endpoint: anytype, r: zap.Request, arena: Allocator,
|
|||
arena,
|
||||
@embedFile("root.html"),
|
||||
.{
|
||||
(if (show_unbuilt_assets)
|
||||
"/src/favicon.svg"
|
||||
else
|
||||
"/favicon.svg"),
|
||||
(if (show_unbuilt_assets)
|
||||
"/src/main.ts"
|
||||
else
|
||||
"/build/main.js"),
|
||||
"/main.js"),
|
||||
(if (show_unbuilt_assets)
|
||||
"/src/style.css"
|
||||
else
|
||||
"/build/style.css"),
|
||||
"/style.css"),
|
||||
HtmlEncodeFormatter{ .input = inertia_json },
|
||||
},
|
||||
);
|
||||
|
|
|
|||
4
src/favicon.svg
Normal file
4
src/favicon.svg
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
|
||||
<rect fill="#2f365f" width="100" height="100" rx="50"/>
|
||||
<path fill="#ffffff" d="M36.929 86c-4.764 0-8.63-3.793-8.63-8.467v-5.43C22.395 70.655 18 65.398 18 59.15V34.346C18 26.981 24.096 21 31.603 21h37.794C76.904 21 83 26.98 83 34.346v24.82c0 7.366-6.096 13.346-13.603 13.346h-15.8a2 2 0 00-1.67.881c-2.614 4.203-5.902 7.854-9.769 10.813A8.473 8.473 0 0136.928 86zm-5.403-58.352c-3.868 0-7.026 3.05-7.026 6.819V59.13c0 3.754 3.142 6.819 7.026 6.819 1.836 0 3.319 1.439 3.319 3.222v8.226c0 1.205 1.048 1.955 2.014 1.955.42 0 .806-.14 1.16-.406 3.255-2.471 6.027-5.521 8.235-9.04 1.547-2.455 4.35-3.973 7.348-3.973h15.872c3.868 0 7.026-3.05 7.026-6.818V34.467c0-3.754-3.142-6.82-7.026-6.82H31.525z" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 773 B |
|
|
@ -6,7 +6,7 @@ import { Link } from "@inertiajs/vue3";
|
|||
<header class="p-3 bg-rose-800 dark:bg-rose-950">
|
||||
<div class="max-w-5xl flex gap-2 mx-auto">
|
||||
<Link href="/" class="text-white font-extrabold">
|
||||
<img src="../../favicon.svg" class="h-8 inline" />
|
||||
<img src="@/favicon.svg" class="h-8 inline" />
|
||||
<span class="px-1 relative top-0.5">OwnMedia</span>
|
||||
</Link>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg"/>
|
||||
<link rel="icon" type="image/svg+xml" href="{s}"/>
|
||||
<script type="module" src="{s}"></script>
|
||||
<link href="{s}" rel="stylesheet">
|
||||
</head>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue