Initial commit — jibo-cli v3.0.7 with bundled node_modules
9
simulator/app.js
Normal file
1
simulator/assets/css/client.css
Normal file
4
simulator/assets/css/font-awesome.min.css
vendored
Normal file
BIN
simulator/assets/fonts/FontAwesome.otf
Normal file
BIN
simulator/assets/fonts/fontawesome-webfont.eot
Normal file
2671
simulator/assets/fonts/fontawesome-webfont.svg
Normal file
|
After Width: | Height: | Size: 434 KiB |
BIN
simulator/assets/fonts/fontawesome-webfont.ttf
Normal file
BIN
simulator/assets/fonts/fontawesome-webfont.woff
Normal file
BIN
simulator/assets/fonts/fontawesome-webfont.woff2
Normal file
BIN
simulator/assets/images/alarm.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
simulator/assets/images/battery.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
simulator/assets/images/close.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
simulator/assets/images/loader.gif
Executable file
|
After Width: | Height: | Size: 95 KiB |
BIN
simulator/assets/images/message.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
simulator/assets/images/twitter.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
18
simulator/background-service.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head lang="en">
|
||||
<meta charset="utf-8">
|
||||
<title>Background Service</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
|
||||
// Listen for the simulator to send the entry point source file of the background
|
||||
// process
|
||||
const {ipcRenderer} = require('electron');
|
||||
ipcRenderer.on('backgroundMain', function(event, src) {
|
||||
require(src);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
9
simulator/client.js
Normal file
45
simulator/index.html
Normal file
@@ -0,0 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head lang="en">
|
||||
<meta charset="utf-8">
|
||||
<title>Jibo Simulator</title>
|
||||
<link rel="stylesheet" type="text/css" href="assets/css/client.css" />
|
||||
<link rel="stylesheet" type="text/css" href="assets/css/font-awesome.min.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<div id="toolbar" class="tools"></div>
|
||||
<div id="container">
|
||||
<div id="visualizer"></div>
|
||||
<div id="face" class="loading">
|
||||
<div id="faceContent">
|
||||
<div id="loader"></div>
|
||||
<div id="notifications"></div>
|
||||
<!--
|
||||
The partition attribute is important so that devtools and other browser settings are remembered. See:
|
||||
http://electron.atom.io/docs/api/web-view-tag/#partition
|
||||
-->
|
||||
<webview id="skill"
|
||||
partition="persist:jibo-skill"
|
||||
style="position: absolute; display: inline-flex; width: 1280px; height: 720px;"
|
||||
autoresize="on"
|
||||
nodeintegration
|
||||
width="1280"
|
||||
height="720"
|
||||
minwidth="1280"
|
||||
maxwidth="1280"
|
||||
minheight="720"
|
||||
maxheight="720"
|
||||
>
|
||||
</webview>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="sidebar"></div>
|
||||
<script> require('./client'); </script>
|
||||
|
||||
<!--
|
||||
The partition attribute is important so that devtools and other browser settings are remembered. See:
|
||||
http://electron.atom.io/docs/api/web-view-tag/#partition
|
||||
-->
|
||||
</body>
|
||||
</html>
|
||||
6
simulator/package.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "jibo-simulator",
|
||||
"version": "0.5.0",
|
||||
"description": "",
|
||||
"main": "app.js"
|
||||
}
|
||||
24
simulator/single-instance-dialog.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head lang="en">
|
||||
<meta charset="utf-8">
|
||||
<title>Jibo Simulator</title>
|
||||
<link rel="stylesheet" type="text/css" href="assets/css/client.css" />
|
||||
<link rel="stylesheet" type="text/css" href="assets/css/font-awesome.min.css"/>
|
||||
<style>
|
||||
body{
|
||||
background-color: #404040;
|
||||
}
|
||||
h1{
|
||||
font-size: 16px;
|
||||
color: #efefef;
|
||||
padding: 30px;
|
||||
text-align: center;
|
||||
padding-top: 62px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>The Simulator is already running. Please close the open instance of the Simulator before launching a new one.</h1>
|
||||
</body>
|
||||
</html>
|
||||