1
0
mirror of https://github.com/leaningtech/cheerpj-meta.git synced 2025-03-15 01:54:48 +01:00

Assets are internalized (instead of pointing to oldsite / other)

This commit is contained in:
Carlo Piovesan 2021-09-04 21:44:44 +02:00
parent a25a71710d
commit 7ae819d424
7 changed files with 13 additions and 13 deletions

View File

@ -24,7 +24,7 @@ If you are unsure how to start, try our [Tutorial](pages/Tutorial).
What is CheerpJ?
------
<p align="center"><img src="https://oldsite.leaningtech.com/cheerpj/images/cheerpj_visual_2.png" width="450"></p>
<p align="center"><img src="{{site.baseurl}}/assets/cheerpj_visual_2.png" width="450"></p>
CheerpJ is constituted of three components:
1. The CheerpJ AOT compiler, an LLVM-based Java-bytecode to JavaScript compiler. This can be used to convert Java archives (e.g. .jar) or single .class files to JavaScript. The CheerpJ AOT compiler is available for Linux, macOS and Windows.

BIN
assets/cheerpj_visual_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

BIN
assets/demo_fiddle.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 KiB

BIN
assets/demo_itext.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 KiB

BIN
assets/demo_openastex.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
assets/demo_swing.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

View File

@ -6,40 +6,40 @@ To showcase the capabilities of the CheerpJ compiler we have published several d
## OpenAstexViewer
https://cheerpjdemos.leaningtech.com/OpenAstexViewer.html
<https://cheerpjdemos.leaningtech.com/OpenAstexViewer.html>
<img src="https://www.leaningtech.com/assets/img/leaningtech/demo_openastex.png" width="400">
<img src="{{site.baseurl}}/assets/demo_openastex.png" width="400">
This demo highlights how complex Java applets with 3D rendering can efficiently and safely run in any browser using CheerpJ.
This specific applet is a visualization tool for protein structures, the source code is available here: https://github.com/openastexviewer/openastexviewer
This specific applet is a visualization tool for protein structures, the source code is available here: <https://github.com/openastexviewer/openastexviewer>
## Swing examples:
https://cheerpjdemos.leaningtech.com/SwingDemo.html
<https://cheerpjdemos.leaningtech.com/SwingDemo.html>
<img src="https://oldsite.leaningtech.com/cheerpj/images/demo_1_swing.png" width="400">
<img src="{{site.baseurl}}/assets/demo_swing.png" width="400">
A few selected Java Swing examples to demonstrate how complex Swing GUI apps can be automatically converted to HTML5/JavaScript.
Source: https://docs.oracle.com/javase/tutorial/uiswing/examples/components/index.html
Source: <https://docs.oracle.com/javase/tutorial/uiswing/examples/components/index.html>
## JavaFiddle
https://javafiddle.leaningtech.com/
<https://javafiddle.leaningtech.com/>
<img src="https://oldsite.leaningtech.com/cheerpj/images/demo_4_fiddle.png" width="400">
<img src="{{site.baseurl}}/assets/demo_fiddle.png" width="400">
A playground to compile and run Java programs directly in the browser. Both console and GUI applications are supported. The standard ```javac``` compiler is used, since ```javac``` is also written in Java the whole compiler runs in the browser, together with the compiled application.
Source: https://javafiddle.leaningtech.com/index.html (Inspect the page using the devtools)
Source: [https://javafiddle.leaningtech.com/index.html] (Inspect the page using the devtools)
## iText Demo
https://cheerpjdemos.leaningtech.com/iTextDemo.html
<https://cheerpjdemos.leaningtech.com/iTextDemo.html>
<img src="https://oldsite.leaningtech.com/cheerpj/images/demo_5_itext.png" width="400">
<img src="{{site.baseurl}}/assets/demo_itext.png" width="400">
Edit PDFs fully client side using the industry standard [iText](https://itextpdf.com/en) library converted to JavaScript. This demo demonstrates how CheerpJ APIs can be used to instance Java objects and call methods directly from JavaScript.
Source: https://cheerpjdemos.leaningtech.com/itextCheerpJDemo.js
Source: <https://cheerpjdemos.leaningtech.com/itextCheerpJDemo.js>