Commit c9558412 authored by Bastien Le Querrec's avatar Bastien Le Querrec
Browse files

rename project to Silence

parent 27d307b1
FROM node:latest
RUN apt-get install git && mkdir -p /opt/app && cd /opt/app && git clone https://github.com/SMSSecure/smssecure.org . && npm install
RUN apt-get install git && mkdir -p /opt/app && cd /opt/app && git clone https://github.com/SilenceIM/silence.im . && npm install
WORKDIR /opt/app
CMD cd /opt/app && TIMEOUT=2000 PORT=80 npm start
......
Website of the SMSSecure project.
Website of the Silence project.
## Installation
......@@ -24,8 +24,8 @@ You need Node.js and npm.
To run this app into a Docker container, build the image and run it:
```
docker build -t "smssecure.org:latest" .
docker run --restart=always -d --publish 127.0.0.1:8080:80 smssecure.org:latest
docker build -t "silence.im:latest" .
docker run --restart=always -d --publish 127.0.0.1:8080:80 silence.im:latest
```
Then, visit http://localhost:8080/.
......
......@@ -23,7 +23,7 @@ app.set('view engine', 'ejs');
updateCache = function(cb){
async.parallel({
details: function(callback){
request('https://api.github.com/repos/SMSSecure/SMSSecure', {timeout: parseInt(process.env.TIMEOUT) || 2000, headers: {'User-Agent': 'SMSSecure Website'}}, function (err, res) {
request('https://api.github.com/repos/SilenceIM/Silence', {timeout: parseInt(process.env.TIMEOUT) || 2000, headers: {'User-Agent': 'SMSSecure Website'}}, function (err, res) {
if (err || typeof res == 'undefined' || typeof res.statusCode == 'undefined' || res.statusCode != 200) return callback(true);
fs.writeFile('./cache-details.json', res.body, function (err) {
if (err) return callback("Cannot write cache-details.json");
......@@ -32,7 +32,7 @@ updateCache = function(cb){
});
},
commits: function(callback){
request('https://api.github.com/repos/SMSSecure/SMSSecure/commits', {timeout: parseInt(process.env.TIMEOUT) || 2000, headers: {'User-Agent': 'SMSSecure Website'}}, function (err, res) {
request('https://api.github.com/repos/SilenceIM/Silence/commits', {timeout: parseInt(process.env.TIMEOUT) || 2000, headers: {'User-Agent': 'SMSSecure Website'}}, function (err, res) {
if (err || typeof res == 'undefined' || typeof res.statusCode == 'undefined' || res.statusCode != 200) return callback(true);
fs.writeFile('./cache-commits.json', res.body, function (err) {
if (err) return callback("Cannot write cache-commits.json");
......@@ -99,7 +99,7 @@ app.get('/', function (req, res) {
commit.message = json.commits[0].commit.message.split('\n')[0];
commit.date = moment(json.commits[0].commit.author.date).fromNow();
commit.author = json.commits[0].author.login;
commit.link = 'https://github.com/SMSSecure/SMSSecure/commit/'+json.commits[0].sha;
commit.link = 'https://github.com/SilenceIM/Silence/commit/'+json.commits[0].sha;
}
return res.render('index', {req: req, res: res, commit: commit, github: json.details});
});
......
{
"LANG": "en",
"SLOGAN": "SMS encryption made easy",
"DESCRIPTION": "Protect your communication in transit and on your phone. SMSSecure is a full replacement for the default text messaging application: all messages are encrypted locally and messages to other SMSSecure users are encrypted over the air.",
"SLOGAN": "SMS/MMS encryption made easy",
"DESCRIPTION": "Protect your communication in transit and on your phone. Silence (formerly SMSSecure) is a full replacement for the default text messaging application: all messages are encrypted locally and messages to other Silence users are encrypted over the air.",
"CATCH_PHRASE": "Need some privacy?",
"SUBTITLE": "SMSSecure encrypts your text messages over the air and on your phone.",
"SUBTITLE": "Silence encrypts your text messages over the air and on your phone.",
"FORK_US": "Fork us on GitHub!",
"GET_THE_APP": "Get the app",
"GET_SOURCE_CODE": "Get source code",
"SOURCE_CODE_TEXT": "The source for SMSSecure is open, so that anyone can easily verify it works as advertised. It is licensed GPLv3 and will always be free.",
"SOURCE_CODE_TEXT": "The source for Silence is open, so that anyone can easily verify it works as advertised. It is licensed GPLv3 and will always be free.",
"GITHUB": "View source code on GitHub »",
"LAST_COMMIT": "Last commit: \"%s\", by %s (%s).",
"EASY": "Easy",
"EASY_TEXT": "SMSSecure works like any other SMS application. There's nothing to sign up for and no new service your friends need to join.",
"EASY_TEXT": "Silence works like any other SMS application. There's nothing to sign up for and no new service your friends need to join.",
"RELIABLE": "Reliable",
"RELIABLE_TEXT": "SMSSecure communicates using encrypted SMS messages. No servers or internet connection required.",
"RELIABLE_TEXT": "Silence communicates using encrypted SMS messages. No servers or internet connection required.",
"PRIVATE": "Private",
"PRIVATE_TEXT": "SMSSecure uses the TextSecure encryption protocol to provide privacy for every message, every time.",
"PRIVATE_TEXT": "Silence uses the TextSecure encryption protocol to provide privacy for every message, every time.",
"SAFE": "Safe",
"SAFE_TEXT": "All messages are encrypted locally, so if your phone is lost or stolen, your messages are protected.",
"OSS": "Open Source",
"OSS_TEXT": "SMSSecure is Free and Open Source, enabling anyone to verify its security by auditing the code.",
"OSS_TEXT": "Silence is Free and Open Source, enabling anyone to verify its security by auditing the code.",
"COMMUNITY": "Join the community!",
"COMMUNITY_TEXT": "Have a question? Want to help out? Join our IRC channel: %s#SMSSecure on Freenode%s or %sfollow @SMSSecure_ on Twitter%s.",
"COMMUNITY_TEXT": "Have a question? Want to help out? Join our IRC channel: %s#Silence on Freenode%s or %sfollow @Silence_ on Twitter%s.",
"GITHUB_BADGE_WATCH": "Watch",
"GITHUB_BADGE_WATCH_LABEL": "Watch SMSSecure on GitHub",
"GITHUB_BADGE_WATCH_LABEL": "Watch Silence on GitHub",
"GITHUB_BADGE_WATCH_COUNT_LABEL": "# watchers on GitHub",
"GITHUB_BADGE_STAR": "Star",
"GITHUB_BADGE_STAR_LABEL": "Star SMSSecure on GitHub",
"GITHUB_BADGE_STAR_LABEL": "Star Silence on GitHub",
"GITHUB_BADGE_STAR_COUNT_LABEL": "# stargazers on GitHub",
"GITHUB_BADGE_FORK": "Fork",
"GITHUB_BADGE_FORK_LABEL": "Fork SMSSecure on GitHub",
"GITHUB_BADGE_FORK_LABEL": "Fork Silence on GitHub",
"GITHUB_BADGE_FORK_COUNT_LABEL": "# forks on GitHub",
"GITHUB_BADGE_ISSUE": "Issues",
"GITHUB_BADGE_ISSUE_LABEL": "Issue SMSSecure on GitHub",
"GITHUB_BADGE_ISSUE_LABEL": "Issue Silence on GitHub",
"GITHUB_BADGE_ISSUE_COUNT_LABEL": "# issues on GitHub"
}
{
"name": "smssecure.org",
"name": "silence.im",
"private": true,
"version": "1.0.0",
"description": "Website of the SMSSecure project",
"description": "Website of the Silence project",
"scripts": {
"start": "bash ./start.sh"
},
"main": "app.js",
"repository": {
"type": "git",
"url": "https://github.com/SMSSecure/smssecure.org.git"
"url": "https://github.com/SilenceIM/silence.im.git"
},
"author": "Bastien Le Querrec",
"license": "AGPL-3.0",
"engines": {
"node": "0.12.x"
"node": "4.x.x"
},
"dependencies": {
"async": "^0.9.0",
......
......@@ -9,10 +9,6 @@ if [[ ! -L "$PWD/assets/js/jquery-scrollto.js" ]]; then
ln -s "$PWD/node_modules/jquery.scrollto/jquery.scrollTo.min.js" "$PWD/assets/js/jquery-scrollto.js"
fi
if [[ ! -L "$PWD/assets/js/jquery-actual.js" ]]; then
ln -s "$PWD/node_modules/actual/jquery.actual.min.js" "$PWD/assets/js/jquery-actual.js"
fi
if [[ ! -L "$PWD/assets/js/bootstrap.js" ]]; then
ln -s "$PWD/node_modules/bootstrap/dist/js/bootstrap.min.js" "$PWD/assets/js/bootstrap.js"
fi
......
<!DOCTYPE html>
<html lang="<%= res.__('LANG') %>" prefix="og: http://ogp.me/ns#">
<head>
<title>SMSSecure | <%= res.__('SLOGAN') %></title>
<title>Silence | <%= res.__('SLOGAN') %></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=no">
......@@ -9,8 +9,8 @@
<meta name="description" content="<%= res.__('DESCRIPTION') %>" />
<link rel="canonical" href="http://<%= req.headers.host %><%= req.url %>" />
<link rel="shortlink" href="http://<%= req.headers.host %><%= req.url %>" />
<meta property="og:site_name" content="<%= res.__('SMSSecure') %>" />
<meta property="og:title" content="<%= res.__('SMSSecure') %>" />
<meta property="og:site_name" content="<%= res.__('Silence') %>" />
<meta property="og:title" content="<%= res.__('Silence') %>" />
<meta property="og:description" content="<%= res.__('SLOGAN') %>" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://<%= req.headers.host %><%= req.url %>" />
......@@ -30,7 +30,7 @@
<body>
<div class="github-fork-ribbon-wrapper right">
<div class="github-fork-ribbon">
<a href="https://github.com/SMSSecure/SMSSecure"><%= res.__('FORK_US') %></a>
<a href="https://github.com/SilenceIM/Silence"><%= res.__('FORK_US') %></a>
</div>
</div>
<div id="wrapper">
......@@ -38,7 +38,7 @@
<div id="header" class="content-block">
<div class="top clearfix">
<div class="pull-left">
<h1><a class="scrollTo" href="#wrapper"><img class="logo" src="/images/logo-header.png" alt="SMSSecure" height="60" width="225"><img class="logo-mobile" src="/images/logo-mobile.png" alt="SMSSecure" height="30" width="120"></a></h1>
<h1><a class="scrollTo" href="#wrapper"><img class="logo" src="/images/logo-header.png" alt="Silence" height="60" width="225"><img class="logo-mobile" src="/images/logo-mobile.png" alt="Silence" height="30" width="120"></a></h1>
</div>
</div>
<div class="center">
......@@ -77,7 +77,7 @@
<div class="col-md-6">
<h2><%= res.__('GET_SOURCE_CODE') %></h2>
<p><%= res.__('SOURCE_CODE_TEXT') %></p>
<p><a href="https://github.com/SMSSecure/SMSSecure" class="btn btn-o btn-lg"><%= res.__('GITHUB') %></a></p>
<p><a href="https://github.com/SilenceIM/Silence" class="btn btn-o btn-lg"><%= res.__('GITHUB') %></a></p>
<div class="text-center">
<i class="fa fa-github"></i>
</div>
......@@ -144,7 +144,7 @@
<div class="content-block" id="irc">
<div class="container">
<h2><%= res.__('COMMUNITY') %></h2>
<p><%- res.__('COMMUNITY_TEXT', '<a href="https://webchat.freenode.net/?channels=SMSSecure">', '</a>', '<a href="https://twitter.com/SMSSecure_">', '</a>') %></p>
<p><%- res.__('COMMUNITY_TEXT', '<a href="https://webchat.freenode.net/?channels=Silence">', '</a>', '<a href="https://twitter.com/SilenceIM">', '</a>') %></p>
</div>
</div>
......@@ -153,38 +153,38 @@
<% if (typeof github != 'undefined'){ %>
<div class="col-md-3 col-xs-6 github-social text-center">
<span class="github-btn github-btn-large">
<a class="gh-btn" href="https://github.com/SMSSecure/SMSSecure">
<a class="gh-btn" href="https://github.com/SilenceIM/Silence">
<span class="gh-ico text-center"><i class="fa fa-eye"></i></span>
<span class="gh-text"><%= res.__('GITHUB_BADGE_WATCH') %></span>
</a>
<a class="gh-count" href="https://github.com/SMSSecure/SMSSecure"><%= github.subscribers_count %></a>
<a class="gh-count" href="https://github.com/SilenceIM/Silence"><%= github.subscribers_count %></a>
</span>
</div>
<div class="col-md-3 col-xs-6 github-social">
<span class="github-btn github-btn-large">
<a class="gh-btn" href="https://github.com/SMSSecure/SMSSecure">
<a class="gh-btn" href="https://github.com/SilenceIM/Silence">
<span class="gh-ico text-center"><i class="fa fa-star"></i></span>
<span class="gh-text"><%= res.__('GITHUB_BADGE_STAR') %></span>
</a>
<a class="gh-count" href="https://github.com/SMSSecure/SMSSecure"><%= github.stargazers_count %></a>
<a class="gh-count" href="https://github.com/SilenceIM/Silence"><%= github.stargazers_count %></a>
</span>
</div>
<div class="col-md-3 col-xs-6 github-social">
<span class="github-btn github-btn-large">
<a class="gh-btn" href="https://github.com/SMSSecure/SMSSecure/fork">
<a class="gh-btn" href="https://github.com/SilenceIM/Silence/fork">
<span class="gh-ico text-center"><i class="fa fa-code-fork"></i></span>
<span class="gh-text"><%= res.__('GITHUB_BADGE_FORK') %></span>
</a>
<a class="gh-count" href="https://github.com/SMSSecure/SMSSecure/fork"><%= github.forks %></a>
<a class="gh-count" href="https://github.com/SilenceIM/Silence/fork"><%= github.forks %></a>
</span>
</div>
<div class="col-md-3 col-xs-6 github-social">
<span class="github-btn github-btn-large">
<a class="gh-btn" href="https://github.com/SMSSecure/SMSSecure/issues">
<a class="gh-btn" href="https://github.com/SilenceIM/Silence/issues">
<span class="gh-ico text-center"><i class="fa fa-exclamation"></i></span>
<span class="gh-text"><%= res.__('GITHUB_BADGE_ISSUE') %></span>
</a>
<a class="gh-count" href="https://github.com/SMSSecure/SMSSecure/issues"><%= github.open_issues %></a>
<a class="gh-count" href="https://github.com/SilenceIM/Silence/issues"><%= github.open_issues %></a>
</span>
</div>
<% } %>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment