generated from dave/wails-template
Clean up project
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
|
||||
<title>wails-template</title>
|
||||
<title>BIGLAMPER</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
@@ -1 +1 @@
|
||||
5458abfd786902c0b64ef3d582e98b55
|
||||
49014f28d86d4ca6427e970cf696170b
|
@@ -68,7 +68,6 @@ toast('Hello World', {
|
||||
<svelte:window on:keydown={keyDown} />
|
||||
<Toaster theme="dark" expand visibleToasts={9} />
|
||||
<template>
|
||||
<Header />
|
||||
<main class="flex-1">
|
||||
<Router />
|
||||
</main>
|
||||
|
@@ -1,11 +0,0 @@
|
||||
<script lang="ts">
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<header
|
||||
class="flex h-22 items-center justify-center bg-base-100 shadow-lg sticky top-0 z-50 border-b
|
||||
border-border/40 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60"
|
||||
>
|
||||
Biiiiiiiig header
|
||||
</header>
|
||||
</template>
|
34
frontend/src/lib/components/Lamp.svelte
Normal file
34
frontend/src/lib/components/Lamp.svelte
Normal file
@@ -0,0 +1,34 @@
|
||||
<script>
|
||||
export let brightnessChange = (brightness) => {};
|
||||
|
||||
let brightness = 50; // Default brightness level
|
||||
|
||||
function handleBrightnessChange(event) {
|
||||
brightness = event.target.value;
|
||||
brightnessChange(brightness); // Call the callback with the current brightness
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="flex flex-col items-center justify-center p-4">
|
||||
<div
|
||||
class="w-48 h-48 rounded-full overflow-hidden mb-4"
|
||||
style="background-color: #FFD700; filter: brightness({brightness}%)"
|
||||
>
|
||||
<svg
|
||||
class="w-48 h-48 fill-current text-yellow-800"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path d="M12 2L2 22h20Z" />
|
||||
</svg>
|
||||
</div>
|
||||
<input
|
||||
type="range"
|
||||
min="0"
|
||||
max="100"
|
||||
step="1"
|
||||
value={brightness}
|
||||
on:input={handleBrightnessChange}
|
||||
class="w-4/5"
|
||||
/>
|
||||
</div>
|
@@ -1,7 +1,10 @@
|
||||
<script lang="ts">
|
||||
|
||||
import Lamp from "../../components/Lamp.svelte";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
Hello, world
|
||||
<div class="flex flex-row justify-center items-center">
|
||||
<Lamp />
|
||||
<Lamp />
|
||||
</div>
|
||||
</template>
|
4
go.mod
4
go.mod
@@ -4,7 +4,7 @@ go 1.21
|
||||
|
||||
toolchain go1.23.0
|
||||
|
||||
require github.com/wailsapp/wails/v2 v2.9.1
|
||||
require github.com/wailsapp/wails/v2 v2.9.2
|
||||
|
||||
require (
|
||||
github.com/bep/debounce v1.2.1 // indirect
|
||||
@@ -27,7 +27,7 @@ require (
|
||||
github.com/tkrajina/go-reflector v0.5.6 // indirect
|
||||
github.com/valyala/bytebufferpool v1.0.0 // indirect
|
||||
github.com/valyala/fasttemplate v1.2.2 // indirect
|
||||
github.com/wailsapp/go-webview2 v1.0.10 // indirect
|
||||
github.com/wailsapp/go-webview2 v1.0.16 // indirect
|
||||
github.com/wailsapp/mimetype v1.4.1 // indirect
|
||||
golang.org/x/crypto v0.23.0 // indirect
|
||||
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 // indirect
|
||||
|
8
go.sum
8
go.sum
@@ -57,12 +57,12 @@ github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyC
|
||||
github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ=
|
||||
github.com/valyala/fasttemplate v1.2.2 h1:lxLXG0uE3Qnshl9QyaK6XJxMXlQZELvChBOCmQD0Loo=
|
||||
github.com/valyala/fasttemplate v1.2.2/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ=
|
||||
github.com/wailsapp/go-webview2 v1.0.10 h1:PP5Hug6pnQEAhfRzLCoOh2jJaPdrqeRgJKZhyYyDV/w=
|
||||
github.com/wailsapp/go-webview2 v1.0.10/go.mod h1:Uk2BePfCRzttBBjFrBmqKGJd41P6QIHeV9kTgIeOZNo=
|
||||
github.com/wailsapp/go-webview2 v1.0.16 h1:wffnvnkkLvhRex/aOrA3R7FP7rkvOqL/bir1br7BekU=
|
||||
github.com/wailsapp/go-webview2 v1.0.16/go.mod h1:Uk2BePfCRzttBBjFrBmqKGJd41P6QIHeV9kTgIeOZNo=
|
||||
github.com/wailsapp/mimetype v1.4.1 h1:pQN9ycO7uo4vsUUuPeHEYoUkLVkaRntMnHJxVwYhwHs=
|
||||
github.com/wailsapp/mimetype v1.4.1/go.mod h1:9aV5k31bBOv5z6u+QP8TltzvNGJPmNJD4XlAL3U+j3o=
|
||||
github.com/wailsapp/wails/v2 v2.9.1 h1:irsXnoQrCpeKzKTYZ2SUVlRRyeMR6I0vCO9Q1cvlEdc=
|
||||
github.com/wailsapp/wails/v2 v2.9.1/go.mod h1:7maJV2h+Egl11Ak8QZN/jlGLj2wg05bsQS+ywJPT0gI=
|
||||
github.com/wailsapp/wails/v2 v2.9.2 h1:Xb5YRTos1w5N7DTMyYegWaGukCP2fIaX9WF21kPPF2k=
|
||||
github.com/wailsapp/wails/v2 v2.9.2/go.mod h1:uehvlCwJSFcBq7rMCGfk4rxca67QQGsbg5Nm4m9UnBs=
|
||||
golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI=
|
||||
golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8=
|
||||
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 h1:k/i9J1pBpvlfR+9QsetwPyERsqu1GIbi967PQMq3Ivc=
|
||||
|
Reference in New Issue
Block a user