plihelix / wails-template-sveltekit Goto Github PK
View Code? Open in Web Editor NEWWails.io template using SvelteKit - trades SSR for golang within the app
Home Page: https://github.com/plihelix/wails-sveltekit
Wails.io template using SvelteKit - trades SSR for golang within the app
Home Page: https://github.com/plihelix/wails-sveltekit
Even running the template as provided, my system cannot seem to render the css or font embedding. I just get the default fonts.
wails init -n wails4 -t https://github.com/plihelix/wails-template-sveltekit
cd wails4
wails dev
I get the app launching. But the fonts are not rendering. Could this be a missing plug-in or configuration missing? I've tried a bunch of things with no luck...
Calling golang functions in subpages such as localhost:34115/foo
produces following error:
But if we are to goto /foo
from the homepage (/
) using an anchor tag as <a href="/foo">Goto foo</a>
the function call works as expected but as soon as we refresh the page, it breaks again.
$ wails init -n subpage_golang_call -t https://github.com/plihelix/wails-template-sveltekit
$ cd subpage_golang_call/
$ mkdir frontend/src/routes/foo
$ cp frontend/src/routes/{+page.svelte,foo}
$ wails dev
Now browse http://localhost:34115/foo
, enter a name and click on Greet
:
$ echo "<a href='/foo'>Goto /foo</a>" >> frontend/src/routes/+page.svelte
Browse the home page, scroll to bottom and click on Goto /foo
Scroll to bottom, enter a name and click on Greet
:
This works as expected. But if we refresh the page and again enter a name and click on Greet
:
$ wails doctor
Wails CLI v2.3.1
Scanning system - Please wait (this may take a long time)...Done.
# System
OS | Arch Linux
Version | Unknown
ID | arch
Go Version | go1.19.5
Platform | linux
Architecture | amd64
# Wails
Version | v2.3.1
Package Manager | pacman
# Dependencies
Dependency | Package Name | Status | Version
*docker | docker | Installed | 1:20.10.23-1
gcc | gcc | Installed | 12.2.1-1
libgtk-3 | gtk3 | Installed | 1:3.24.36-1
libwebkit | webkit2gtk | Installed | 2.38.3-1
npm | npm | Installed | 8.19.2-1
pkg-config | pkgconf | Installed | 1.8.0-1
* - Optional Dependency
# Diagnosis
Your system is ready for Wails development!
I have tried this only on linux.
sveltekit is great. I want to use it with wails too. thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.