-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unit test and move it to Unittest
Add back Context Add disposable class Fix export issue #799
- Loading branch information
Vincent Bourdon
committed
Feb 14, 2022
1 parent
9f6c58e
commit 29b6c41
Showing
21 changed files
with
2,187 additions
and
119 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,6 +101,6 @@ xunit.xml | |
**/.nyc_output/* | ||
**/.scannerwork/* | ||
|
||
/export/* | ||
**/export/ | ||
|
||
*.vsix |
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,292 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
|
||
<title>Reveal JS presentation</title> | ||
|
||
<meta name="description" content="A framework for easily creating beautiful presentations using HTML"> | ||
<meta name="author" content="Hakim El Hattab"> | ||
|
||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> | ||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
<link rel="stylesheet" href="libs/reveal.js/4.1.3/reset.css"> | ||
<link rel="stylesheet" href="libs/reveal.js/4.1.3/reveal.css"> | ||
|
||
|
||
|
||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> | ||
|
||
<!-- highlight Theme --> | ||
|
||
<link rel="stylesheet" href="libs/highlight.js/11.3.1/styles/monokai.min.css"> | ||
|
||
|
||
|
||
<link rel="stylesheet" href="libs/reveal.js/4.1.3/plugin/chalkboard/style.css"> | ||
|
||
|
||
|
||
<link rel="stylesheet" href="libs/reveal.js/4.1.3/plugin/customcontrols/style.css"> | ||
|
||
<link rel="stylesheet" href="libs/styles/tasklist.css"> | ||
|
||
|
||
|
||
<!-- Revealjs Theme --> | ||
|
||
<link rel="stylesheet" href="libs/reveal.js/4.1.3/theme/black.css" id="theme"> | ||
|
||
|
||
|
||
|
||
<!-- Revealjs Theme --> | ||
|
||
|
||
|
||
</head> | ||
|
||
<body> | ||
|
||
|
||
|
||
<div class="reveal"> | ||
|
||
<!-- Any section element inside of this container is displayed as a slide --> | ||
<div class="slides"> | ||
|
||
|
||
|
||
</div> | ||
|
||
|
||
</div> | ||
|
||
|
||
<script src="libs/reveal.js/4.1.3/reveal.js"></script> | ||
<script src="libs/reveal.js/4.1.3/plugin/zoom/zoom.js"></script> | ||
<script src="libs/reveal.js/4.1.3/plugin/notes/notes.js"></script> | ||
<script src="libs/reveal.js/4.1.3/plugin/search/search.js"></script> | ||
<script src="libs/reveal.js/4.1.3/plugin/markdown/markdown.js"></script> | ||
<script src="libs/reveal.js/4.1.3/plugin/highlight/highlight.js"></script> | ||
<script src="libs/reveal.js/4.1.3/plugin/menu/menu.js"></script> | ||
<script src="libs/reveal.js/4.1.3/plugin/math/math.js"></script> | ||
|
||
<script src="libs/reveal.js/4.1.3/plugin/fullscreen/plugin.js"></script> | ||
|
||
<script src="libs/reveal.js/4.1.3/plugin/animate/plugin.js"></script> | ||
<script src="libs/reveal.js/4.1.3/plugin/animate/svg.min.js"></script> | ||
|
||
<!-- <script src="libs/reveal.js/4.1.3/plugin/anything/plugin.js"></script> --> | ||
|
||
<!-- <script src="libs/reveal.js/4.1.3/plugin/audio-slideshow/plugin.js"></script> --> | ||
<!-- <script src="libs/reveal.js/4.1.3/plugin/audio-slideshow/recorder.js"></script>--> | ||
<!-- <script src="libs/reveal.js/4.1.3/plugin/audio-slideshow/RecordRTC.js"></script>--> | ||
|
||
<script src="libs/reveal.js/4.1.3/plugin/chalkboard/plugin.js"></script> | ||
<script src="libs/reveal.js/4.1.3/plugin/customcontrols/plugin.js"></script> | ||
<script src="libs/reveal.js/4.1.3/plugin/embed-tweet/plugin.js"></script> | ||
|
||
<script src="libs/reveal.js/4.1.3/plugin/chart/chart.min.js"></script> | ||
<script src="libs/reveal.js/4.1.3/plugin/chart/plugin.js"></script> | ||
|
||
<script> | ||
|
||
const printPlugins = [ | ||
RevealNotes, | ||
RevealHighlight, | ||
RevealMath, | ||
RevealAnimate, | ||
RevealChalkboard, | ||
RevealEmbedTweet, | ||
RevealChart, | ||
]; | ||
|
||
const plugins = [...printPlugins, | ||
RevealZoom, | ||
RevealSearch, | ||
RevealMarkdown, | ||
RevealMenu, | ||
RevealFullscreen, | ||
//RevealAnything, | ||
//RevealAudioSlideshow, | ||
//RevealAudioRecorder, | ||
RevealCustomControls, | ||
// poll | ||
// question | ||
// seminar | ||
] | ||
|
||
|
||
// Also available as an ES module, see: | ||
// https://revealjs.com/initialization/ | ||
Reveal.initialize({ | ||
controls: true, | ||
controlsTutorial: true, | ||
controlsLayout: 'bottom-right', | ||
controlsBackArrows: 'faded', | ||
progress: true, | ||
slideNumber: false, | ||
//#showSlideNumber "all" "print" "speaker" | ||
hash: true,//# hash: false, | ||
//# respondToHashChanges: true, | ||
//# history: false, | ||
keyboard: true, | ||
//#keyboardCondition: null, | ||
overview: true, | ||
center: true, | ||
touch: true, | ||
loop: false, | ||
rtl: false, | ||
//#navigationMode: 'default', linear grid | ||
shuffle: false, | ||
fragments: true, | ||
fragmentInURL: false, | ||
embedded: false, | ||
help: true, | ||
//#pause: true | ||
showNotes: false, | ||
autoPlayMedia: false, // TODO fix this to a nullable value | ||
//#preloadIframes: null. true false | ||
//#autoAnimate: true | ||
//#autoAnimateMatcher: null, | ||
//#autoAnimateEasing: 'ease', | ||
//autoAnimateDuration: 1.0, | ||
//#autoAnimateUnmatched: true | ||
//#autoAnimateStyles: [] | ||
autoSlide: 0, // TODO fix this to a falseable value | ||
autoSlideStoppable: true, | ||
autoSlideMethod: '0', | ||
defaultTiming: 120, | ||
mouseWheel: false, | ||
//#previewLinks: false | ||
//#postMessage: true, // TODO : this can cause issues with the vscode api ??? | ||
//#postMessageEvents: false, | ||
//#focusBodyOnPageVisibilityChange: true, | ||
transition: 'default', | ||
transitionSpeed: 'default', | ||
backgroundTransition: 'default', | ||
//#pdfMaxPagesPerSlide: Number.POSITIVE_INFINITY, | ||
//#pdfSeparateFragments: true, | ||
//#pdfPageHeightOffset: -1, | ||
viewDistance: 3, | ||
//#mobileViewDistance: 2, | ||
display: 'block', | ||
//#hideInactiveCursor: true, | ||
//#hideCursorTime: 5000 | ||
|
||
// Parallax Background | ||
parallaxBackgroundImage: '', | ||
parallaxBackgroundSize: '', | ||
parallaxBackgroundHorizontal: 0, | ||
parallaxBackgroundVertical: 0, | ||
|
||
//Presentation Size | ||
width: 960, | ||
height: 700, | ||
margin: 0.04, | ||
minScale: 0.2, | ||
maxScale: 2, | ||
disableLayout: false, | ||
|
||
audio: { | ||
prefix: 'audio/', // audio files are stored in the "audio" folder | ||
suffix: '.ogg', // audio files have the ".ogg" ending | ||
textToSpeechURL: null, // the URL to the text to speech converter | ||
defaultNotes: false, // use slide notes as default for the text to speech converter | ||
defaultText: false, // use slide text as default for the text to speech converter | ||
advance: 0, // advance to next slide after given time in milliseconds after audio has played, use negative value to not advance | ||
autoplay: false, // automatically start slideshow | ||
defaultDuration: 5, // default duration in seconds if no audio is available | ||
defaultAudios: true, // try to play audios with names such as audio/1.2.ogg | ||
playerOpacity: 0.05, // opacity value of audio player if unfocused | ||
playerStyle: 'position: fixed; bottom: 4px; left: 25%; width: 50%; height:75px; z-index: 33;', // style used for container of audio controls | ||
startAtFragment: false, // when moving to a slide, start at the current fragment or at the start of the slide | ||
}, | ||
|
||
chalkboard: { // font-awesome.min.css must be available | ||
//src: "chalkboard/chalkboard.json", | ||
storage: "chalkboard-demo", | ||
}, | ||
|
||
customcontrols: { | ||
controls: [ | ||
{ | ||
id: 'toggle-overview', | ||
title: 'Toggle overview (O)', | ||
icon: '<i class="fa fa-th"></i>', | ||
action: 'Reveal.toggleOverview();' | ||
} | ||
, | ||
{ icon: '<i class="fa fa-pen-square"></i>', | ||
title: 'Toggle chalkboard (B)', | ||
action: 'RevealChalkboard.toggleChalkboard();' | ||
}, | ||
{ icon: '<i class="fa fa-pen"></i>', | ||
title: 'Toggle notes canvas (C)', | ||
action: 'RevealChalkboard.toggleNotesCanvas();' | ||
} | ||
] | ||
}, | ||
chart: { | ||
defaults: { | ||
color: 'lightgray', // color of labels | ||
scale: { | ||
beginAtZero: true, | ||
ticks: { stepSize: 1 }, | ||
grid: { color: "lightgray" } , // color of grid lines | ||
}, | ||
}, | ||
line: { borderColor: [ "rgba(20,220,220,.8)" , "rgba(220,120,120,.8)", "rgba(20,120,220,.8)" ], "borderDash": [ [5,10], [0,0] ] }, | ||
bar: { backgroundColor: [ "rgba(20,220,220,.8)" , "rgba(220,120,120,.8)", "rgba(20,120,220,.8)" ]}, | ||
pie: { backgroundColor: [ ["rgba(0,0,0,.8)" , "rgba(220,20,20,.8)", "rgba(20,220,20,.8)", "rgba(220,220,20,.8)", "rgba(20,20,220,.8)"] ]}, | ||
radar: { borderColor: [ "rgba(20,220,220,.8)" , "rgba(220,120,120,.8)", "rgba(20,120,220,.8)" ]}, | ||
}, | ||
math: { | ||
mathjax: 'https://cdn.jsdelivr.net/gh/mathjax/mathjax@2.7.8/MathJax.js', | ||
config: 'TeX-AMS_HTML-full', | ||
// pass other options into `MathJax.Hub.Config()` | ||
TeX: { Macros: { RR: "{\\bf R}" } } | ||
}, | ||
// Learn about plugins: https://revealjs.com/plugins/ | ||
plugins: (window.location.search.match(/print-pdf/gi) ? printPlugins : plugins ) | ||
}); | ||
|
||
|
||
|
||
// Change chalkboard theme : | ||
function changeTheme(input) { | ||
var config = {}; | ||
config.theme = input.value; | ||
Reveal.getPlugin("RevealChalkboard").configure(config); | ||
input.blur(); | ||
} | ||
|
||
// // Handle the message inside the webview | ||
// window.addEventListener('message', event => { | ||
|
||
// const message = event.data; // The JSON data our extension sent | ||
|
||
// switch (message.command) { | ||
// case 'refactor': | ||
// Reveal.toggleHelp(); | ||
// } | ||
// }); | ||
|
||
if (window.location.search.match(/print-pdf-now/gi)) { | ||
setTimeout(() => { | ||
window.print(); | ||
}, 2500); | ||
|
||
} | ||
|
||
|
||
</script> | ||
|
||
</body> | ||
|
||
</html> |
Oops, something went wrong.