parent
af88fdd4fd
commit
b3ea67b7d8
12 changed files with 234 additions and 85 deletions
@ -1 +1 @@ |
|||||||
/usr/share/automake-1.14/COPYING |
/usr/share/automake-1.15/COPYING |
@ -1 +1 @@ |
|||||||
/usr/share/automake-1.14/INSTALL |
/usr/share/automake-1.15/INSTALL |
@ -1,11 +1,22 @@ |
|||||||
packages+=("wheezy:::curl:::npm") |
# if you have android, we need cordova plus more dependencies |
||||||
packages+=("nodejs") |
# so we can build an android app |
||||||
repos+=("Ubuntu:::universe") |
|
||||||
repos+=("wheezy:::'deb http://ftp.is.debian.org/debian wheezy-backports main'") |
|
||||||
commands+=("wheezy:::update-alternatives --install /usr/bin/node nodejs /usr/bin/nodejs 100") |
|
||||||
commands+=("wheezy:::curl https://www.npmjs.com/install.sh | sh") |
|
||||||
commands+=("npm install -g cordova") |
|
||||||
if test -n "${ANDROID_HOME}"; then |
if test -n "${ANDROID_HOME}"; then |
||||||
envs+=("-e ANDROID_HOME=${ANDROID_HOME}") |
# all this is needed for android through cordova (phonegap) only |
||||||
dirs+=("-v ${ANDROID_HOME}:${ANDROID_HOME}:ro") |
packages+=("wheezy:::curl:::npm") |
||||||
|
packages+=("git nodejs default-jdk libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z1") |
||||||
|
repos+=("Ubuntu-precise:::'deb http://archive.ubuntu.com precise universe'") |
||||||
|
repos+=("Debian|Ubuntu-precise::::::universe") |
||||||
|
repos+=("wheezy:::'deb http://ftp.is.debian.org/debian wheezy-backports main'") |
||||||
|
commands+=("update-alternatives --install /usr/bin/node nodejs /usr/bin/nodejs 100") |
||||||
|
commands+=("wheezy:::curl https://www.npmjs.com/install.sh | sh") |
||||||
|
commands+=("npm install -g cordova") |
||||||
|
commands+=("chown $(id -u) ${HOME}") |
||||||
|
commands+=("chown -R $(id -u) ${HOME}/.npm") |
||||||
|
commands+=("useradd -d ${HOME} -u $(id -u) $(id -un)") |
||||||
|
envs+=("-e ANDROID_HOME=${ANDROID_HOME}") |
||||||
|
envs+=("-e HOME=${HOME}") |
||||||
|
envs+=("-e TERM=xterm") |
||||||
|
dirs+=("-v ${ANDROID_HOME}:${ANDROID_HOME}:ro") |
||||||
|
dirs+=("-v ${HOME}/.gnupg:${HOME}/.gnupg:ro") |
||||||
|
dirs+=("-v ${HOME}/.android:${HOME}/.android:ro") |
||||||
fi |
fi |
||||||
|
@ -1,56 +1,56 @@ |
|||||||
<!DOCTYPE HTML"> |
<!DOCTYPE HTML> |
||||||
<html> |
<html> |
||||||
<head> |
<head> |
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
||||||
<meta name="viewport" content="width=device-width initial-scale=1" /> |
<meta name="viewport" content="width=device-width initial-scale=1" /> |
||||||
<link href="safechat.css" rel="stylesheet" type="text/css" /> |
<link href="safechat.css" rel="stylesheet" type="text/css" /> |
||||||
<script type="text/javascript" src="jquery.js"></script> |
<script type="text/javascript" src="jquery.js"></script> |
||||||
<script type="text/javascript" src="openpgp.js"></script> |
<script type="text/javascript" src="openpgp.js"></script> |
||||||
<script type="text/javascript" src="safechat.js"></script> |
<script type="text/javascript" src="safechat.js"></script> |
||||||
<link href="jquery.cssemoticons.css" media="screen" rel="stylesheet" type="text/css" /> |
<link href="jquery.cssemoticons.css" media="screen" rel="stylesheet" type="text/css" /> |
||||||
<script src="jquery.cssemoticons.js" type="text/javascript"></script> |
<script src="jquery.cssemoticons.js" type="text/javascript"></script> |
||||||
<title>Safe Chat</title> |
<title>Safe Chat</title> |
||||||
</head> |
</head> |
||||||
|
|
||||||
<body> |
<body> |
||||||
|
|
||||||
<div id="header" class="header"> |
<div id="header" class="header"> |
||||||
<h1>Safe Chat @PACKAGE_VERSION@</h1> |
<h1>Safe Chat @PACKAGE_VERSION@</h1> |
||||||
<div id="togglemenu"> |
<div id="togglemenu"> |
||||||
<span id="username">[unknown]</span> |
<span id="username">[unknown]</span> |
||||||
<img id="menuicon" onclick="togglemenu()" src="menu.svg" /> |
<img id="menuicon" onclick="togglemenu()" src="menu.svg" /> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
|
|
||||||
<ul id="menu" style="display: none"> |
<ul id="menu" style="display: none"> |
||||||
<li onclick="backup()">Download Backup</li> |
<li onclick="backup()">Download Backup</li> |
||||||
<li class="toolbutton"><label for="restore">Restore Backup</label><input autocomplete="off" type="file" accept="*.bak" id="restore" /></li> |
<li class="toolbutton"><label for="restore">Restore Backup</label><input autocomplete="off" type="file" accept="*.bak" id="restore" /></li> |
||||||
<li id="groups" onclick="groups()">Edit Groups</li> |
<li id="groups" onclick="groups()">Edit Groups</li> |
||||||
<li id="removeKey" style="display: none" onclick="removeKey()">Password Forgotten</li> |
<li id="removeKey" style="display: none" onclick="removeKey()">Password Forgotten</li> |
||||||
<li id="android-download" href="safechat.apk"><a href="safechat.apk">Download Android-App</a></li> |
<li id="android-download" href="safechat.apk"><a href="safechat.apk">Download Android-App</a></li> |
||||||
<li href="https://dev.marc.waeckerlin.org/redmine/projects/safechat/embedded/index.html" target="_blank"><a href="https://dev.marc.waeckerlin.org/redmine/projects/safechat/embedded/index.html" target="_blank">About Safe Chat</a></li> |
<li href="https://dev.marc.waeckerlin.org/redmine/projects/safechat/embedded/index.html" target="_blank"><a href="https://dev.marc.waeckerlin.org/redmine/projects/safechat/embedded/index.html" target="_blank">About Safe Chat</a></li> |
||||||
</ul> |
</ul> |
||||||
<script type="text/javascript"> |
<script type="text/javascript"> |
||||||
$(function() { // on load: without cordova, remove andoid-download |
$(function() { // on load: without cordova, remove andoid-download |
||||||
if ("@CORDOVA@" == "0") $("#android-download").hide(); |
if ("@CORDOVA@" == "0") $("#android-download").hide(); |
||||||
if (!window.FileReader) $("#restore").hide(); // not supported by browser |
if (!window.FileReader) $("#restore").hide(); // not supported by browser |
||||||
$("#groups").hide(); |
$("#groups").hide(); |
||||||
}) |
}) |
||||||
$("#restore").change(function(evt){restore(evt)}); |
$("#restore").change(function(evt){restore(evt)}); |
||||||
</script> |
</script> |
||||||
|
|
||||||
<div id="main"> |
<div id="main"> |
||||||
|
|
||||||
<p>start up engine, please wait ...</p> |
<p>start up engine, please wait ...</p> |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
|
||||||
<div id="status"> |
<div id="status"> |
||||||
|
|
||||||
<noscript>This is a secure and encryptet chat application, that runs |
<noscript>This is a secure and encryptet chat application, that runs |
||||||
in your browser and does not send any credentials to the |
in your browser and does not send any credentials to the |
||||||
server. Your password and your secret key is fully under your |
server. Your password and your secret key is fully under your |
||||||
control. That's why you must enable javascript and local storage for |
control. That's why you must enable javascript and local storage for |
||||||
this application.</noscript> |
this application.</noscript> |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
Loading…
Reference in new issue