-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Add new example Advanced Applicaton Playground
- Allow to pass an url to import to the locale loader - Integrate views service into new advanced example - Move all code example files out of src into resources
- Loading branch information
Showing
26 changed files
with
396 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<title>Advanced Application Playground</title> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<!-- <meta http-equiv="Content-Security-Policy" content="connect-src 'self' http://localhost:* https://localhost:* http://127.0.0.1:* https://127.0.0.1:*;" /> | ||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' http://localhost:* https://localhost:* http://127.0.0.1:* https://127.0.0.1:*;" /> --> | ||
<link rel="stylesheet" href="./resources/advanced/style.css"> | ||
</head> | ||
|
||
<body> | ||
<h2>Advanced Application Playground</h2> | ||
<script type="module"> | ||
import { initLocaleLoader } from 'monaco-editor-wrapper/vscode/locale'; | ||
const url = new URL('./src/advanced/launcher.ts', import.meta.url); | ||
await initLocaleLoader(url.href); | ||
</script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { sayFoo } from './tester.js'; | ||
|
||
function sayHello(): string { | ||
console.log(sayFoo()); | ||
return 'Hello'; | ||
}; | ||
|
||
sayHello(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
:root { | ||
font-family: Inter, Avenir, Helvetica, Arial, sans-serif; | ||
font-size: 16px; | ||
line-height: 24px; | ||
font-weight: 400; | ||
|
||
font-synthesis: none; | ||
text-rendering: optimizeLegibility; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
-webkit-text-size-adjust: 100%; | ||
} | ||
|
||
body { | ||
background-color: var(--vscode-editorWidget-background); | ||
color: var(--vscode-editorWidget-foreground); | ||
margin: 0; | ||
} | ||
|
||
#editors { | ||
position: relative; | ||
min-width: 0; | ||
height: 45vh; | ||
border: 1px solid var(--vscode-editorWidget-border); | ||
} | ||
|
||
#panel { | ||
display: flex; | ||
flex: 1; | ||
border: 1px solid var(--vscode-editorWidget-border); | ||
min-height: 0; | ||
} | ||
|
||
.standalone-editor { | ||
width: 100%; | ||
height: 55vh; | ||
} | ||
|
||
#titleBar { | ||
position: relative; | ||
flex: none; | ||
} | ||
|
||
#banner { | ||
flex: none; | ||
} | ||
|
||
#workbench-container { | ||
height: 90vh; | ||
display: flex; | ||
flex-direction: column | ||
} | ||
|
||
#workbench-top { | ||
display: flex; | ||
gap: 20px; | ||
flex: 2; | ||
min-height: 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const sayFoo = () => { | ||
return 'Foo'; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<div id="workbench-container"> | ||
<div id="titleBar"></div> | ||
<div id="banner"></div> | ||
<div id="workbench-top"> | ||
<div style="display: flex; flex: none; border: 1px solid var(--vscode-editorWidget-border)"> | ||
<div id="activityBar"></div> | ||
<div id="sidebar" style="width: 400px"></div> | ||
<div id="auxiliaryBar-left" style="max-width: 300px"></div> | ||
</div> | ||
<div style="flex: 1; min-width: 0"> | ||
<div id="editors"></div> | ||
</div> | ||
<div style="display: flex; flex: none; border: 1px solid var(--vscode-editorWidget-border);"> | ||
<div id="sidebar-right" style="max-width: 500px"></div> | ||
<div id="activityBar-right"></div> | ||
<div id="auxiliaryBar" style="max-width: 300px"></div> | ||
</div> | ||
</div> | ||
<!-- <div id="panel"></div> --> | ||
<div id="statusBar"></div> | ||
</div> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* -------------------------------------------------------------------------------------------- | ||
* Copyright (c) 2024 TypeFox and others. | ||
* Licensed under the MIT License. See LICENSE in the package root for license information. | ||
* ------------------------------------------------------------------------------------------ */ | ||
|
||
import { runAdvancedApplicationPlayground } from './main.js'; | ||
|
||
runAdvancedApplicationPlayground(); |
Oops, something went wrong.