From: Brendan Hansen Date: Sat, 30 Mar 2024 04:57:09 +0000 (-0500) Subject: minor cleanup X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=fcdd3d505f4c49002a5ffe189511ff24bc059475;p=onyxlang.io.git minor cleanup --- diff --git a/src/resources.onyx b/src/resources.onyx index bb5302a..5a168af 100644 --- a/src/resources.onyx +++ b/src/resources.onyx @@ -2,7 +2,6 @@ use core.alloc use core.string use core.encoding.json use core.os -use core.slice use core { tprintf } @@ -27,12 +26,12 @@ load_library_list :: () { os.get_contents("www/packages/core_packages.json") |> json.decode_into(&core_packages); - slice.sort(core_packages, (a, b) => string.compare(a.name, b.name)); + Slice.sort(core_packages, (a, b) => string.compare(a.name, b.name)); os.get_contents("www/packages/third_party_packages.json") |> json.decode_into(&third_party_packages); - slice.sort(third_party_packages, (a, b) => string.compare(a.name, b.name)); + Slice.sort(third_party_packages, (a, b) => string.compare(a.name, b.name)); } load_examples :: () -> ? [] Example { diff --git a/www/news-articles/index.json b/www/news-articles/index.json index db0f069..6d30892 100644 --- a/www/news-articles/index.json +++ b/www/news-articles/index.json @@ -3,7 +3,7 @@ "name": "Beta Release 0.1.10", "path": "release-0.1.10", "date": "31st March 2024", - "description": "TODO" + "description": "This release brings standard library uniformity, minor syntax changes, and JavaScript interop! You can now easily interface with the DOM and other JS APIs from directly within Onyx." }, { "name": "Beta Release 0.1.9", diff --git a/www/news-articles/release-0.1.10.html b/www/news-articles/release-0.1.10.html index 66b8b1c..604d17c 100644 --- a/www/news-articles/release-0.1.10.html +++ b/www/news-articles/release-0.1.10.html @@ -45,7 +45,7 @@ main :: () { button := document->call("createElement", "button"); button->set("innerHTML", "Click me!"); - button->call("addEventListener", js.func((this, args) => { + button->call("addEventListener", "click", js.func((this, args) => { js.Global->call("alert", "Hello from Onyx!"); return js.Undefined;