From a256272b430cfe3a5c85d83f238fe46db05793cf Mon Sep 17 00:00:00 2001 From: Stanislas Polu Date: Wed, 3 Dec 2014 16:39:11 -0800 Subject: [PATCH 01/12] Update brightray --- vendor/brightray | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/brightray b/vendor/brightray index ddfebd0..7b6e79b 160000 --- a/vendor/brightray +++ b/vendor/brightray @@ -1 +1 @@ -Subproject commit ddfebd06326a956145dfde6ed5f863396953da6d +Subproject commit 7b6e79b706a5334cf19286c93c539b3e3c3028d5 From 2a9ba03f48f19dd08948bcab41f5892887d1be90 Mon Sep 17 00:00:00 2001 From: Stanislas Polu Date: Wed, 3 Dec 2014 16:41:25 -0800 Subject: [PATCH 02/12] Updated depot_tools --- vendor/depot_tools | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/depot_tools b/vendor/depot_tools index 8b4900e..0c806a7 160000 --- a/vendor/depot_tools +++ b/vendor/depot_tools @@ -1 +1 @@ -Subproject commit 8b4900e77f4eed3446eb54a4af5ffbb243940d07 +Subproject commit 0c806a71c5d02df483587f6aea70cc20f0173ec4 From 9790996e89f43e43310a230417409db08665082a Mon Sep 17 00:00:00 2001 From: Saurabh Rawat Date: Sat, 13 Dec 2014 20:55:18 +0530 Subject: [PATCH 03/12] Add scala bindings info to readme --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index d085f22..556b4a8 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ npm install -g \ - [NodeJS](#nodejs) - [Go](#go) - [Python](#python) + - [Scala](#scala) - [API Reference](#api-reference) - [Architecture](#architecture) - [Community](#community) @@ -112,6 +113,37 @@ loop.run_forever() - **pythrust** [breach/pythrust](https://github.com/breach/pythrust/) +### Scala + +##### Getting Started + +Include scala-thrust jar on your classpath. (Add to lib in your project.) + +```Scala +import scala.concurrent.ExecutionContext.Implicits.global +import com.github.eklavya.thrust._ + +object Main extends App { + Window.create("http://google.com").foreach { w => + w.show + w.maximize + w.openDevtools + w.focus(true) + w.onBlur(() => println("we were blurred")) + w.onFocus(() => println("we were focused")) + Menu.create("MyMenu").foreach { m => + val i = MenuItem("Item1", _ => println("Item1 was clicked")) + m.addItem(i) + m.popup(w) + } + } +} +``` + +##### Library + +- **scala-thrust** [eklavya/scala-thrust](https://github.com/eklavya/scala-thrust/) + *** ## API Reference From 5385b1b189a7a91ea92cd1571f6b5acd355bc79b Mon Sep 17 00:00:00 2001 From: Mal Graty Date: Sat, 21 Feb 2015 21:11:15 +0000 Subject: [PATCH 04/12] Prevent webview with height: 100% from overflowing Without this, the object element is displayed `inline` which in chromium means that it slight exceeds it's bounds. Forcing a block display solves the issue. --- src/renderer/extensions/resources/web_view.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/extensions/resources/web_view.js b/src/renderer/extensions/resources/web_view.js index ab10ba3..cee9aa0 100644 --- a/src/renderer/extensions/resources/web_view.js +++ b/src/renderer/extensions/resources/web_view.js @@ -844,6 +844,7 @@ function registerBrowserPluginElement() { this.setAttribute('type', 'application/browser-plugin'); this.setAttribute('id', 'browser-plugin-' + getNextId()); // The node fills in the container. + this.style.display = 'block'; this.style.width = '100%'; this.style.height = '100%'; }; From 25fac91be12d7ba7164e6b29dbe04468e80aaa0b Mon Sep 17 00:00:00 2001 From: solicode Date: Fri, 20 Mar 2015 19:53:58 +0900 Subject: [PATCH 05/12] Added Clojure language binding information to README.md --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 556b4a8..03088c3 100644 --- a/README.md +++ b/README.md @@ -144,6 +144,33 @@ object Main extends App { - **scala-thrust** [eklavya/scala-thrust](https://github.com/eklavya/scala-thrust/) +### Clojure + +##### Getting Started + +- [Installation](https://github.com/solicode/clj-thrust#installation) +- [Sample Project](https://github.com/solicode/clj-thrust#sample-project) + +```clojure +(ns my-app.core + (:require [clj-thrust.core :refer [create-process destroy-process]] + [clj-thrust.window :as w])) + +(let [process (create-process) ; `create-process` also takes path to Thrust directory + window (w/create-window process + :root-url "http://localhost:8080" ; URL to your web app + :size {:width 400 :height 300})] + (w/listen-closed window + (fn [e] + (destroy-process process))) ; Optionally call `(System/exit 0)` here. + (w/show window) + (w/focus window true)) +``` + +##### Library + +- **clj-thrust** [solicode/clj-thrust](https://github.com/solicode/clj-thrust) + *** ## API Reference From 615403d2174527259006241060943561523a832a Mon Sep 17 00:00:00 2001 From: solicode Date: Fri, 20 Mar 2015 20:13:20 +0900 Subject: [PATCH 06/12] Also add Clojure to table of contents in README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 03088c3..4a6b598 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ npm install -g \ - [Go](#go) - [Python](#python) - [Scala](#scala) + - [Clojure](#clojure) - [API Reference](#api-reference) - [Architecture](#architecture) - [Community](#community) From 477b8ea6a471a48a889fd80935981a0727dea3fa Mon Sep 17 00:00:00 2001 From: Doug Hoyte Date: Mon, 30 Mar 2015 17:00:21 -0400 Subject: [PATCH 07/12] Add perl binding information to README.md --- README.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/README.md b/README.md index 4a6b598..46591ba 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ npm install -g \ - [Python](#python) - [Scala](#scala) - [Clojure](#clojure) + - [Perl](#perl) - [API Reference](#api-reference) - [Architecture](#architecture) - [Community](#community) @@ -172,6 +173,44 @@ object Main extends App { - **clj-thrust** [solicode/clj-thrust](https://github.com/solicode/clj-thrust) +### Perl + +##### Getting Started + +Install with `cpanm Thrust [--sudo]` + +Simple command line test: + +``` +perl -MThrust -e 'Thrust->window->show->maximize->open_devtools->run' +``` + +Basic program + +```Perl +use Thrust; + +my $t = Thrust->new; + +my $w = $t->window( + root_url => 'data:text/html,Hello World!', + title => 'My App', + size => { width => 800, height => 600 }, + ); + +$w->on(closed => sub { exit }); + +$w->show; + +$t->run; ## enter event loop +``` + +##### Library + +- [metacpan](https://metacpan.org/pod/Thrust) +- [github](https://github.com/hoytech/Thrust) + + *** ## API Reference From 6257897a5865daca66510b3cd49255c60d0146cf Mon Sep 17 00:00:00 2001 From: Michael Khaimov Date: Thu, 21 Apr 2016 17:51:13 +0300 Subject: [PATCH 08/12] Actualization of Golang example in README.md --- README.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 46591ba..c1fbbd1 100644 --- a/README.md +++ b/README.md @@ -71,23 +71,31 @@ require('node-thrust')(function(err, api) { First download with `go get -u github.com/miketheprogrammer/go-thrust/` ```Go +``` package main import ( - "github.com/miketheprogrammer/go-thrust/dispatcher" - "github.com/miketheprogrammer/go-thrust/spawn" - "github.com/miketheprogrammer/go-thrust/window" + "github.com/miketheprogrammer/go-thrust/lib/dispatcher" + "github.com/miketheprogrammer/go-thrust/lib/spawn" + "github.com/miketheprogrammer/go-thrust/lib/bindings/window" + "github.com/miketheprogrammer/go-thrust/lib/commands" ) func main() { spawn.Run() - thrustWindow := window.NewWindow("http://breach.cc/", nil) + size := commands.SizeHW{} + opts := window.Options{ + RootUrl: "http://breach.cc", + Size: size, + Title: "Demo window", + HasFrame: true, + } + thrustWindow := window.NewWindow(opts) thrustWindow.Show() thrustWindow.Maximize() thrustWindow.Focus() dispatcher.RunLoop() } -``` ##### Library From c9d262c681e3b97ea001c060a1d99af5e43ce533 Mon Sep 17 00:00:00 2001 From: Michael Hernandez Date: Wed, 25 Oct 2017 18:01:03 -0400 Subject: [PATCH 09/12] Remove Adware/Malware Expired Link --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index c1fbbd1..d3bc880 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,6 @@ Thrust is based on Chromium's Content Module and is supported on Linux, MacOSX a ![Cross-Platform Screenshots](http://i.imgur.com/7K98jyW.png) *Screenshot of Thrust Getting Started example running on each major platform.* -Thrust will be powering the next versions of [Breach](http://breach.cc) - To better understand what Thrust can do, check out **[JankyBrowser](https://gist.github.com/morganrallen/f07f59802884bcdcad4a)** by @morganrallen, the cross-platform browser that fits in a gist: ``` @@ -56,7 +54,7 @@ First install with `npm install node-thrust` ```Javascript require('node-thrust')(function(err, api) { - api.window({ root_url: 'https://breach.cc' }).show(); + api.window({ root_url: 'https://google.com' }).show(); }); ``` From c8a119fed2a2b02c620b1e801101fcfc877cbad0 Mon Sep 17 00:00:00 2001 From: Michael Hernandez Date: Wed, 25 Oct 2017 18:03:05 -0400 Subject: [PATCH 10/12] Security pt.2 --- README.md | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index d3bc880..7bb60d0 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,6 @@ All these Getting Started example work as is on each major platform (MacOSX, Windows, Linux) ### NodeJS - ##### Getting Started First install with `npm install node-thrust` @@ -83,7 +82,7 @@ func main() { spawn.Run() size := commands.SizeHW{} opts := window.Options{ - RootUrl: "http://breach.cc", + RootUrl: "http://google.com", Size: size, Title: "Demo window", HasFrame: true, @@ -112,7 +111,7 @@ loop = asyncio.get_event_loop() api = pythrust.API(loop) asyncio.async(api.spawn()) -asyncio.async(api.window({ 'root_url': 'http://breach.cc' }).show()) +asyncio.async(api.window({ 'root_url': 'http://google.com' }).show()) loop.run_forever() ``` @@ -260,15 +259,8 @@ are availble in the [docs/](https://github.com/breach/thrust/tree/master/docs) - List of people relying on Thrust: [List of Thrust Users](https://github.com/breach/thrust/wiki/List-of-Thrust-Users) -##### Thrust7.5k Contest - -- 7.5k max Browser implementation based on Thrust. *Coming soon*. Ping -dev@breach.cc if interested! (Credits to @morganrallen for the awesome idea) - ##### Getting Involved - -- Mailing list: [breach-dev@googlegroups.com](https://groups.google.com/d/forum/breach-dev) -- IRC Channel: #breach on Freenode +No longer maintained actively. *** ## Features & Roadmap From 51af964621d4a28f0e88d7431deaca008a1448d3 Mon Sep 17 00:00:00 2001 From: Michael Hernandez Date: Thu, 25 Oct 2018 00:53:38 -0400 Subject: [PATCH 11/12] Deprecation notice --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 7bb60d0..f23cc4b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +#### DEPRECATED - This package is no longer supporter or maintained. + + + ![Logo Thrust](http://i.imgur.com/IviZAGZ.png) **Chromium-based cross-platform / cross-language application framework** From 128210dffe10d6a0f5119c9fdfdded98f604feec Mon Sep 17 00:00:00 2001 From: Stanislas Polu Date: Tue, 9 Jan 2024 15:17:23 +0100 Subject: [PATCH 12/12] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index f23cc4b..d9fc51d 100644 --- a/README.md +++ b/README.md @@ -305,4 +305,3 @@ Build both the `Release` and `Debug` targets with the following commands: Note that `bootstrap.py` may take some time as it checks out `brightray` and downloads `libchromiumcontent` for your platform. -