TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

A React Renderer for Gnome JavaScript

141 点作者 bcye7 个月前

13 条评论

freedomben7 个月前
Awesome! I&#x27;ve long felt that if most devs (especially web devs and&#x2F;or javascript people) knew about Gnome&#x27;s excellent javascript support (gjs) they would be much more likely to switch OSes and build some really neat apps. I&#x27;ve been surprised at the lack of interest&#x2F;enthusiasm. My theory is that it&#x27;s mostly an awareness problem with a handful of papercuts&#x2F;sprinkling of technology insufficiency (such as &quot;I&#x27;m a React person so I&#x27;d like to use React to build a UI), but I&#x27;d love to hear from people if that&#x27;s not the case.<p>Really cool project! Looking forward to seeing what people do with it :-)
评论 #42035057 未加载
评论 #42035300 未加载
评论 #42035401 未加载
评论 #42040282 未加载
gedy7 个月前
This looks quite nice&#x2F;simple imho, and avoids Electron:<p><pre><code> &#x2F;&#x2F; App.tsx import Gtk from &quot;gi:&#x2F;&#x2F;Gtk?version=3.0&quot;; import * as React from &quot;react&quot;; import { Box, Label, Renderer, Window } from &quot;react-gjs-renderer&quot;; Gtk.init(null); const App = () =&gt; { return ( &lt;Window quitOnClose minWidth={200} minHeight={200}&gt; &lt;Box&gt; &lt;Label&gt;Hello World&lt;&#x2F;Label&gt; &lt;&#x2F;Box&gt; &lt;&#x2F;Window&gt; ); }; const renderer = new Renderer({ appId: &quot;com.example.app&quot;, }); renderer.start(&lt;App &#x2F;&gt;);</code></pre>
评论 #42034420 未加载
carlgreene7 个月前
Somewhat kinda sorta related. I have been working in React for the past 7ish years or so. I decided to try Svelte&#x2F;Kit for my last project that I have been working on for a year and a half. I liked it, but didn’t think much of it.<p>That was until I joined a new company a few months ago that was building a NextJS app. It was amazing how overly complicated all the app code seemed to do relatively simple things. Comparing readability to my Svelte code was like me trying to read hieroglyphics.<p>React was amazing for complex web apps coming from JQuery. But there are other more modern and much simpler and ergonomic frameworks that have built on and learned from the past decade of React development.<p>Seems like the industry has a bit of Stockholm syndrome thanks to the amazing ecosystem React has…which no other front end framework comes close to IMO.
评论 #42035106 未加载
评论 #42034984 未加载
评论 #42035344 未加载
评论 #42034631 未加载
评论 #42040390 未加载
评论 #42034905 未加载
评论 #42035208 未加载
mattlondon7 个月前
I think what was more interesting to me was GnomeJS itself! I had no idea this was a thing, and it appears that they have built a few official things in Gnome using it (weather app, sound recorder app).<p>Very interesting!<p>Edit: looks like most&#x2F;all (?) of gnome&#x27;s shell is JavaScript too! <a href="https:&#x2F;&#x2F;gitlab.gnome.org&#x2F;GNOME&#x2F;gnome-shell&#x2F;-&#x2F;tree&#x2F;main&#x2F;js&#x2F;ui?ref_type=heads" rel="nofollow">https:&#x2F;&#x2F;gitlab.gnome.org&#x2F;GNOME&#x2F;gnome-shell&#x2F;-&#x2F;tree&#x2F;main&#x2F;js&#x2F;ui...</a> seems like NPM is nowhere to be seen too - brilliant.
评论 #42038473 未加载
评论 #42034961 未加载
评论 #42037089 未加载
vinnymac7 个月前
Are there any other desktop environments that support JS?
评论 #42043757 未加载
评论 #42036827 未加载
westurner7 个月前
From <a href="https:&#x2F;&#x2F;github.com&#x2F;react-gjs&#x2F;renderer#elements-of-gtk3">https:&#x2F;&#x2F;github.com&#x2F;react-gjs&#x2F;renderer#elements-of-gtk3</a> :<p>&gt; <i>List of all GTK3 Widgets provided as JSX Components by this renderer:</i>
iddan7 个月前
A few years back I wished there were such things when I tried building for Gnome.
jakjak1237 个月前
Why is it gtk3? No Gtk4?
ingen0s7 个月前
This has all of the keywords for me to be interested
评论 #42035723 未加载
shepherdjerred7 个月前
Is there anything like this for macOS&#x2F;iOS?
评论 #42036815 未加载
zazaulola7 个月前
Always hated GNOME 3 for their decision to implement a JavaScript engine into the base UI. Time goes by, now it&#x27;s time to implement React.
zb37 个月前
GNOME, the desktop environment that doesn&#x27;t let you change gamma on Wayland without using ugly hacks which are not officially supported.<p>GNOME, the DE where the &quot;system monitor&quot; app doesn&#x27;t display network traffic per process, but instead of adding the support for that, we have another app called &quot;Resources&quot; which doesn&#x27;t let you see anything you couldn&#x27;t in the system monitor.<p>Whoever prioritizes tasks there seems insane to me..
评论 #42035080 未加载
bilater7 个月前
Who uses gnome? Why would you use Gnome over other linux distros? I&#x27;m not asking as a diss I genuinely don&#x27;t know much about the different preferences ppl have for open source OS.
评论 #42034744 未加载
评论 #42034927 未加载
评论 #42041310 未加载