Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapt to latest lazy loading of Monaco editor
- Trigger Monaco loading as early as possible but do not await - Replace temporary Monaco promise - Add loading spinner to standalone variant Co-authored-by: Olaf Lessenich <olessenich@eclipsesource.com>
- Loading branch information
1 parent
1b87961
commit ac8b42d
Showing
9 changed files
with
145 additions
and
89 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
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 |
---|---|---|
@@ -1,18 +1,76 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<meta name="description" content="Inscription Editor for Axon Ivy Process Elements" /> | ||
<title>Process Editor</title> | ||
</head> | ||
|
||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="sprotty" class="main-widget"></div> | ||
<div id="inscription"></div> | ||
<script type="module" src="/src/index.ts"></script> | ||
</body> | ||
</html> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<meta name="description" content="Inscription Editor for Axon Ivy Process Elements" /> | ||
<title>Process Editor</title> | ||
<style> | ||
#root { | ||
height: 100%; | ||
} | ||
|
||
/* from https://cssloaders.github.io/, licensed under MIT */ | ||
.loader { | ||
width: 48px; | ||
height: 48px; | ||
border-radius: 50%; | ||
position: relative; | ||
top: 50%; | ||
left: 50%; | ||
animation: rotate 1s linear infinite; | ||
} | ||
|
||
.loader::before { | ||
content: ''; | ||
box-sizing: border-box; | ||
position: absolute; | ||
inset: 0px; | ||
border-radius: 50%; | ||
border: 5px solid #a5a5a5; | ||
animation: prixClipFix 2s linear infinite; | ||
} | ||
|
||
@keyframes rotate { | ||
100% { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
|
||
@keyframes prixClipFix { | ||
0% { | ||
clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0); | ||
} | ||
|
||
25% { | ||
clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0); | ||
} | ||
|
||
50% { | ||
clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%); | ||
} | ||
|
||
75% { | ||
clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%); | ||
} | ||
|
||
100% { | ||
clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0); | ||
} | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="sprotty" class="main-widget"> | ||
<div class="loader"></div> | ||
</div> | ||
<div id="inscription"></div> | ||
<script type="module" src="/src/index.ts"></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
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
Oops, something went wrong.