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") |
||||
packages+=("nodejs") |
||||
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 you have android, we need cordova plus more dependencies |
||||
# so we can build an android app |
||||
if test -n "${ANDROID_HOME}"; then |
||||
envs+=("-e ANDROID_HOME=${ANDROID_HOME}") |
||||
dirs+=("-v ${ANDROID_HOME}:${ANDROID_HOME}:ro") |
||||
# all this is needed for android through cordova (phonegap) only |
||||
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 |
||||
|
@ -1,56 +1,56 @@ |
||||
<!DOCTYPE HTML"> |
||||
<!DOCTYPE HTML> |
||||
<html> |
||||
<head> |
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
||||
<meta name="viewport" content="width=device-width initial-scale=1" /> |
||||
<link href="safechat.css" rel="stylesheet" type="text/css" /> |
||||
<script type="text/javascript" src="jquery.js"></script> |
||||
<script type="text/javascript" src="openpgp.js"></script> |
||||
<script type="text/javascript" src="safechat.js"></script> |
||||
<link href="jquery.cssemoticons.css" media="screen" rel="stylesheet" type="text/css" /> |
||||
<script src="jquery.cssemoticons.js" type="text/javascript"></script> |
||||
<title>Safe Chat</title> |
||||
</head> |
||||
|
||||
<body> |
||||
|
||||
<div id="header" class="header"> |
||||
<h1>Safe Chat @PACKAGE_VERSION@</h1> |
||||
<div id="togglemenu"> |
||||
<span id="username">[unknown]</span> |
||||
<img id="menuicon" onclick="togglemenu()" src="menu.svg" /> |
||||
</div> |
||||
</div> |
||||
|
||||
<ul id="menu" style="display: none"> |
||||
<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 id="groups" onclick="groups()">Edit Groups</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 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> |
||||
<script type="text/javascript"> |
||||
$(function() { // on load: without cordova, remove andoid-download |
||||
if ("@CORDOVA@" == "0") $("#android-download").hide(); |
||||
if (!window.FileReader) $("#restore").hide(); // not supported by browser |
||||
$("#groups").hide(); |
||||
}) |
||||
$("#restore").change(function(evt){restore(evt)}); |
||||
</script> |
||||
|
||||
<div id="main"> |
||||
|
||||
<p>start up engine, please wait ...</p> |
||||
|
||||
</div> |
||||
<head> |
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
||||
<meta name="viewport" content="width=device-width initial-scale=1" /> |
||||
<link href="safechat.css" rel="stylesheet" type="text/css" /> |
||||
<script type="text/javascript" src="jquery.js"></script> |
||||
<script type="text/javascript" src="openpgp.js"></script> |
||||
<script type="text/javascript" src="safechat.js"></script> |
||||
<link href="jquery.cssemoticons.css" media="screen" rel="stylesheet" type="text/css" /> |
||||
<script src="jquery.cssemoticons.js" type="text/javascript"></script> |
||||
<title>Safe Chat</title> |
||||
</head> |
||||
|
||||
<body> |
||||
|
||||
<div id="header" class="header"> |
||||
<h1>Safe Chat @PACKAGE_VERSION@</h1> |
||||
<div id="togglemenu"> |
||||
<span id="username">[unknown]</span> |
||||
<img id="menuicon" onclick="togglemenu()" src="menu.svg" /> |
||||
</div> |
||||
</div> |
||||
|
||||
<ul id="menu" style="display: none"> |
||||
<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 id="groups" onclick="groups()">Edit Groups</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 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> |
||||
<script type="text/javascript"> |
||||
$(function() { // on load: without cordova, remove andoid-download |
||||
if ("@CORDOVA@" == "0") $("#android-download").hide(); |
||||
if (!window.FileReader) $("#restore").hide(); // not supported by browser |
||||
$("#groups").hide(); |
||||
}) |
||||
$("#restore").change(function(evt){restore(evt)}); |
||||
</script> |
||||
|
||||
<div id="main"> |
||||
|
||||
<p>start up engine, please wait ...</p> |
||||
|
||||
</div> |
||||
|
||||
<div id="status"> |
||||
|
||||
<noscript>This is a secure and encryptet chat application, that runs |
||||
in your browser and does not send any credentials to the |
||||
server. Your password and your secret key is fully under your |
||||
control. That's why you must enable javascript and local storage for |
||||
this application.</noscript> |
||||
in your browser and does not send any credentials to the |
||||
server. Your password and your secret key is fully under your |
||||
control. That's why you must enable javascript and local storage for |
||||
this application.</noscript> |
||||
|
||||
</div> |
||||
|
Loading…
Reference in new issue