-
-
Notifications
You must be signed in to change notification settings - Fork 144
v3 #685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
users should learn how to write derivations or simply use the v1 workflow with the home-manager module
infer gtk version from code, no longer require the --gtk4 flag
The latest ETA is around August If you want to try it out # install dependencies: meson ninja golang gtk4 gtk4-layler-shell
git clone --branch v3 --recursive-submodules https://github.com/Aylur/ags.git
cd ags
meson setup --prefix $HOME/.local build # or `--prefix /usr` for system wide install
meson install -C build or using nix nix shell github:aylur/ags?branch=v3#agsFull |
thank you @Aylur. I'll try the new version and if possible i could help for documentation if you need. |
I made an Arch PKGBUILD that will use the latest commit of this branch in case anyone wants it: |
Also, here's a patch for the diff --git a/lib/src/state.ts b/lib/src/state.ts
index d2ba279..a78510d 100644
--- a/lib/src/state.ts
+++ b/lib/src/state.ts
@@ -111,6 +111,13 @@ export class Watch<T> extends State<T> {
constructor(init: T)
+ constructor(
+ init: T,
+ exec: Exec,
+ transform?: Transform<T>,
+ onError?: ErrHandler<T>
+ )
+
constructor(init: T, exec?: Exec, transform?: Transform<T>, onError?: ErrHandler<T>) {
super(init)
if (typeof exec === "string") {
|
There are two main goals with this:
What this means for you is a few things:
astalify
wrappers, JSX expressions handle everythingjsx
function can be used directlyonSignal
->$signal
onNotifyProperty
->$$property
setup
->$
cssClasses
->class
(in gtk4, its just an alias, cssClasses can still be used)className
->class
(gtk3)Variable
API is gone and replaced byState
Poll
Watch
For
component which takes care of list rendering (idea taken from Solidjs)With
component but its a lot more performantchildren
property can be typechecked with TypeScriptFor the cli a few QOL changes
--gtk4
flag is no longer required, gtk version is inferred from codeags.lib.bundle
, since it is very easy to write a derivationTODO: