Skip to content

Commit

Permalink
Fix links to index page (local and ghp)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisalmen committed Oct 29, 2024
1 parent 2f5ee23 commit a2766ce
Show file tree
Hide file tree
Showing 23 changed files with 222 additions and 43 deletions.
2 changes: 1 addition & 1 deletion packages/examples/appPlayground.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<body>
<div class="exampleHeadelineDiv">
<b class="exampleHeadeline">Application Playground</b> - [<a href="/index.html">Back to Index</a>]
<b class="exampleHeadeline">Application Playground</b> - [<a href="../../index.html">Back to Index</a>]
<br>
<b>Heads up:</b> This is a prototype and still evolving.
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/bare.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<body>
<div class="exampleHeadelineDiv">
<b class="exampleHeadeline">JSON Language Client & Language Server (Web Socket)</b> - [<a href="/index.html">Back to Index</a>]
<b class="exampleHeadeline">JSON Language Client & Language Server (Web Socket)</b> - [<a href="../../index.html">Back to Index</a>]
</div>
<div id="monaco-editor-root" style="width:800px;height:600px;border:1px solid grey"></div>
<script type="module">
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<body>
<div class="exampleHeadelineDiv">
<b class="exampleHeadeline">Language Client Pure Browser Example</b> - [<a href="/index.html">Back to Index</a>]
<b class="exampleHeadeline">Language Client Pure Browser Example</b> - [<a href="../../index.html">Back to Index</a>]
</div>
<div id="monaco-editor-root" style="width:800px;height:600px;border:1px solid grey"></div>
<script type="module">
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/clangd.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<body>
<div class="exampleHeadelineDiv">
<b class="exampleHeadeline">Cpp Language Client & Clangd Language Server (Worker/Wasm)</b> - [<a href="/index.html">Back to Index</a>]
<b class="exampleHeadeline">Cpp Language Client & Clangd Language Server (Worker/Wasm)</b> - [<a href="../../index.html">Back to Index</a>]
<br>
<b>Heads up:</b> This is a prototype and still evolving.<br>
The clangd language server worker has been derived from: <a href="https://github.com/guyutongxue/clangd-in-browser">clangd-in-browser</a><br>
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/eclipse.jdt.ls.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<body>
<div class="exampleHeadelineDiv">
<b class="exampleHeadeline">Java Language Client & Language Server (Web Socket)</b> - [<a href="/index.html">Back to Index</a>]
<b class="exampleHeadeline">Java Language Client & Language Server (Web Socket)</b> - [<a href="../../index.html">Back to Index</a>]
<br>
<button type="button" id="button-start">Start</button>
<button type="button" id="button-dispose">Dispose</button>
Expand Down
21 changes: 21 additions & 0 deletions packages/examples/ghp_appPlayground.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">

<head>
<title>Application Playground</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="./resources/appPlayground/style.css">
</head>

<body>
<div class="exampleHeadelineDiv">
<b class="exampleHeadeline">Application Playground</b> - [<a href="./index.html">Back to Index</a>]
<br>
<b>Heads up:</b> This is a prototype and still evolving.
</div>
<script type="module" rel="modulepreload" src="./src/appPlayground/launcher"></script>
</body>

</html>
22 changes: 22 additions & 0 deletions packages/examples/ghp_browser.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>

<head>
<title>Language Client Pure Browser Example</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css">
</head>

<body>
<div class="exampleHeadelineDiv">
<b class="exampleHeadeline">Language Client Pure Browser Example</b> - [<a href="./index.html">Back to Index</a>]
</div>
<div id="monaco-editor-root" style="width:800px;height:600px;border:1px solid grey"></div>
<script type="module">
import { runBrowserEditor } from "./src/browser/main.ts";

runBrowserEditor();
</script>
</body>
</html>
30 changes: 30 additions & 0 deletions packages/examples/ghp_clangd.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>

<head>
<title>Cpp Language Client & Clangd Language Server (Worker/Wasm)</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="./mini-coi.js" scope="./"></script>
<link rel="stylesheet" href="style.css">
</head>

<body>
<div class="exampleHeadelineDiv">
<b class="exampleHeadeline">Cpp Language Client & Clangd Language Server (Worker/Wasm)</b> - [<a href="./index.html">Back to Index</a>]
<br>
<b>Heads up:</b> This is a prototype and still evolving.<br>
The clangd language server worker has been derived from: <a href="https://github.com/guyutongxue/clangd-in-browser">clangd-in-browser</a><br>
<button type="button" id="button-start">Start</button> </div>
<div id="monaco-editor-root" style="width:800px;height:600px;border:1px solid grey"></div>
<label for="openFiles">Select open file:</label>
<select name="openFiles" id="openFiles">
</select>
<script type="module">
import { runClangdWrapper } from "./src/clangd/client/main.ts";

runClangdWrapper();
</script>
</body>

</html>
27 changes: 27 additions & 0 deletions packages/examples/ghp_langium.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">

<head>
<title>Langium Grammar DSL Language Client & Language Server (Worker)</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css">
</head>

<body>
<div class="exampleHeadelineDiv">
<b class="exampleHeadeline">Langium Grammar DSL Language Client & Language Server (Worker)</b> - [<a href="./index.html">Back to Index</a>]
<br>
<button type="button" id="button-start-classic">Start Classic</button>
<button type="button" id="button-start-extended">Start Extended</button>
<button type="button" id="button-dispose">Dispose</button>
</div>
<div id="monaco-editor-root" style="height: 80vh; border: 1px solid grey"></div>
<script type="module">
import { runLangiumDslWrapper } from './src/langium/langium-dsl/wrapperLangium.ts';

runLangiumDslWrapper();
</script>;
</body>

</html>
27 changes: 27 additions & 0 deletions packages/examples/ghp_react_statemachine.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>React: Langium Statemachine Language Client & Language Server (Worker)</title>
<link rel="stylesheet" href="style.css">
</head>

<body>
<div class="exampleHeadelineDiv">
<b class="exampleHeadeline">React: Langium Statemachine Language Client & Language Server (Worker)</b> - [<a href="./index.html">Back to Index</a>]
<br>
<button type="button" id="button-start">Start</button>
<label>Enable Strict mode:</label><input type="checkbox" id="checkbox-strictmode" />
<button type="button" id="button-dispose">Dispose</button>
</div>
<div id="monaco-editor-root"></div>
<script type="module">
import { runStatemachineReact } from './src/langium/statemachine/main-react.tsx';

runStatemachineReact();
</script>
</body>

</html>
23 changes: 23 additions & 0 deletions packages/examples/ghp_statemachine.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Langium Statemachine Client & Language Server (Worker)</title>
<link rel="stylesheet" href="style.css">
</head>

<body>
<div class="exampleHeadelineDiv">
<b class="exampleHeadeline">Langium Statemachine Client & Language Server (Worker)</b> - [<a href="./index.html">Back to Index</a>]
<br>
<button type="button" id="button-start">Start</button>
<button type="button" id="button-dispose">Dispose</button>
</div>
<div id="monaco-editor-root" style="height: 40vh;"></div>
<div id="monaco-editor-root2" style="height: 40vh;"></div>
<script type="module" rel="modulepreload" src="./src/langium/statemachine/launcher"></script>
</body>

</html>
29 changes: 29 additions & 0 deletions packages/examples/ghp_tsExtHost.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TypeScript Extension Host Worker</title>
<link rel="stylesheet" href="style.css">
</head>

<body>
<div class="exampleHeadelineDiv">
<b class="exampleHeadeline">TypeScript Extension Host Worker</b> - [<a href="./index.html">Back to Index</a>]
<br>
<button type="button" id="button-start">Start</button>
<button type="button" id="button-swap-code">Swap Code</button>
<button type="button" id="button-diff">Show Diff</button>
<button type="button" id="button-dispose">Dispose</button>
</div>

<div id="monaco-editor-root" style="height: 80vh;"></div>
<script type="module">
import { runTsWrapper } from './src/ts/wrapperTs.ts';

runTsWrapper();
</script>
</body>

</html>
2 changes: 1 addition & 1 deletion packages/examples/groovy.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<body>
<div class="exampleHeadelineDiv">
<b class="exampleHeadeline">Groovy Language Client & Language Server (Web Socket)</b> - [<a href="/index.html">Back to Index</a>]
<b class="exampleHeadeline">Groovy Language Client & Language Server (Web Socket)</b> - [<a href="../../index.html">Back to Index</a>]
<br>
<button type="button" id="button-start">Start</button>
<button type="button" id="button-dispose">Dispose</button>
Expand Down
42 changes: 21 additions & 21 deletions packages/examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,45 +18,45 @@ <h2>Monaco Editor Wrapper</h2>

<h3>Langium</h3>

<a href="./langium.html">Langium Grammar DSL Language Client & Language Server (Worker)</a>
<a href="./ghp_langium.html">Langium Grammar DSL Language Client & Language Server (Worker)</a>
<br>
<a href="./statemachine.html">Langium Statemachine Client & Language Server (Worker)</a>
<a href="./ghp_statemachine.html">Langium Statemachine Client & Language Server (Worker)</a>
<br>
Localizations:
<a href="./statemachine.html?locale=cs">cs</a> -
<a href="./statemachine.html?locale=de">de</a> -
<a href="./statemachine.html?locale=es">es</a> -
<a href="./statemachine.html?locale=fr">fr</a> -
<a href="./statemachine.html?locale=it">it</a> -
<a href="./statemachine.html?locale=ja">ja</a> -
<a href="./statemachine.html?locale=ko">ko</a> -
<a href="./statemachine.html?locale=pl">pl</a> -
<a href="./statemachine.html?locale=pt-br">pt-br</a> -
<a href="./statemachine.html?locale=qps-ploc">qps-ploc</a> -
<a href="./statemachine.html?locale=ru">ru</a> -
<a href="./statemachine.html?locale=tr">tr</a> -
<a href="./statemachine.html?locale=zh-hans">zh-hans</a> -
<a href="./statemachine.html?locale=zh-hant">zh-hant</a>
<a href="./ghp_statemachine.html?locale=cs">cs</a> -
<a href="./ghp_statemachine.html?locale=de">de</a> -
<a href="./ghp_statemachine.html?locale=es">es</a> -
<a href="./ghp_statemachine.html?locale=fr">fr</a> -
<a href="./ghp_statemachine.html?locale=it">it</a> -
<a href="./ghp_statemachine.html?locale=ja">ja</a> -
<a href="./ghp_statemachine.html?locale=ko">ko</a> -
<a href="./ghp_statemachine.html?locale=pl">pl</a> -
<a href="./ghp_statemachine.html?locale=pt-br">pt-br</a> -
<a href="./ghp_statemachine.html?locale=qps-ploc">qps-ploc</a> -
<a href="./ghp_statemachine.html?locale=ru">ru</a> -
<a href="./ghp_statemachine.html?locale=tr">tr</a> -
<a href="./ghp_statemachine.html?locale=zh-hans">zh-hans</a> -
<a href="./ghp_statemachine.html?locale=zh-hant">zh-hant</a>
<br>

<h3>Cpp / Clangd</h3>
<a href="./clangd.html">Cpp Language Client & Clangd Language Server (Worker/Wasm)</a>
<a href="./ghp_clangd.html">Cpp Language Client & Clangd Language Server (Worker/Wasm)</a>
<br>

<h3>Application Playground</h3>
<a href="./appPlayground.html">Application Playground</a>
<a href="./ghp_appPlayground.html">Application Playground</a>
<br>

<h3>JSON</h3>
<a href="./browser.html">Language Client Pure Browser Example</a>
<a href="./ghp_browser.html">Language Client Pure Browser Example</a>
<br>

<h3>TypeScript</h3>
<a href="./tsExtHost.html">TypeScript Extension Host Worker</a>
<a href="./ghp_tsExtHost.html">TypeScript Extension Host Worker</a>
<br>

<h2>Monaco Editor React</h2>
<a href="./react_statemachine.html">React: Langium Statemachine Language Client & Language Server (Worker)</a>
<a href="./ghp_react_statemachine.html">React: Langium Statemachine Language Client & Language Server (Worker)</a>
<br>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/json.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<body>
<div class="exampleHeadelineDiv">
<b class="exampleHeadeline">JSON Language Client & Language Server (Web Socket)</b> - [<a href="/index.html">Back to Index</a>]
<b class="exampleHeadeline">JSON Language Client & Language Server (Web Socket)</b> - [<a href="../../index.html">Back to Index</a>]
<br>
<button type="button" id="button-start">Start</button>
<button type="button" id="button-dispose">Dispose</button>
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/langium.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<body>
<div class="exampleHeadelineDiv">
<b class="exampleHeadeline">Langium Grammar DSL Language Client & Language Server (Worker)</b> - [<a href="/index.html">Back to Index</a>]
<b class="exampleHeadeline">Langium Grammar DSL Language Client & Language Server (Worker)</b> - [<a href="../../index.html">Back to Index</a>]
<br>
<button type="button" id="button-start-classic">Start Classic</button>
<button type="button" id="button-start-extended">Start Extended</button>
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/python.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<body>
<div class="exampleHeadelineDiv">
<b class="exampleHeadeline">Python Language Client & Pyright Language Server (Web Socket)</b> - [<a href="/index.html">Back to Index</a>]
<b class="exampleHeadeline">Python Language Client & Pyright Language Server (Web Socket)</b> - [<a href="../../index.html">Back to Index</a>]
<br>
<button type="button" id="button-start">Start</button>
<button type="button" id="button-dispose">Dispose</button>
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/react_python.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<body>
<div class="exampleHeadelineDiv">
<b class="exampleHeadeline">React: Python Language Client & Language Server (Web Socket)</b> - [<a href="/index.html">Back to Index</a>]
<b class="exampleHeadeline">React: Python Language Client & Language Server (Web Socket)</b> - [<a href="../../index.html">Back to Index</a>]
<br>
<button type="button" id="button-start">Start</button>
<label>Enable Strict mode:</label><input type="checkbox" id="checkbox-strictmode" />
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/react_statemachine.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<body>
<div class="exampleHeadelineDiv">
<b class="exampleHeadeline">React: Langium Statemachine Language Client & Language Server (Worker)</b> - [<a href="/index.html">Back to Index</a>]
<b class="exampleHeadeline">React: Langium Statemachine Language Client & Language Server (Worker)</b> - [<a href="../../index.html">Back to Index</a>]
<br>
<button type="button" id="button-start">Start</button>
<label>Enable Strict mode:</label><input type="checkbox" id="checkbox-strictmode" />
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/statemachine.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<body>
<div class="exampleHeadelineDiv">
<b class="exampleHeadeline">Langium Statemachine Client & Language Server (Worker)</b> - [<a href="/index.html">Back to Index</a>]
<b class="exampleHeadeline">Langium Statemachine Client & Language Server (Worker)</b> - [<a href="../../index.html">Back to Index</a>]
<br>
<button type="button" id="button-start">Start</button>
<button type="button" id="button-dispose">Dispose</button>
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/tsExtHost.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<body>
<div class="exampleHeadelineDiv">
<b class="exampleHeadeline">TypeScript Extension Host Worker</b> - [<a href="/index.html">Back to Index</a>]
<b class="exampleHeadeline">TypeScript Extension Host Worker</b> - [<a href="../../index.html">Back to Index</a>]
<br>
<button type="button" id="button-start">Start</button>
<button type="button" id="button-swap-code">Swap Code</button>
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/two_langauge_clients.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<body>
<div class="exampleHeadelineDiv">
<b class="exampleHeadeline">Json & Python Languageclients & Language Server (Web Socket)</b> - [<a href="/index.html">Back to Index</a>]
<b class="exampleHeadeline">Json & Python Languageclients & Language Server (Web Socket)</b> - [<a href="../../index.html">Back to Index</a>]
<br>
<button type="button" id="button-start">Start</button>
<button type="button" id="button-dispose">Dispose</button>
Expand Down
Loading

0 comments on commit a2766ce

Please sign in to comment.