Navigation Menu

Skip to content

Commit

Permalink
1.修改UUID为v4
Browse files Browse the repository at this point in the history
2.修改首页文案
  • Loading branch information
kchown committed Feb 22, 2018
1 parent 550a149 commit 77fcab2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion config.js
Expand Up @@ -12,7 +12,7 @@ module.exports = {
// 1小时内单个IP可获取最多临时链接数
rate_limit: 500,
// 是否显示首页中的作死文本 eg.「☭赵」
isZhao: true,
isZhao: false,
// 用于匹配GUID的正则
reg_guid: /[?a-zA-Z0-9]{8}-[?a-zA-Z0-9]{4}-[?a-zA-Z0-9]{4}-[?a-zA-Z0-9]{4}-[?a-zA-Z0-9]{12}$/,
}
Binary file modified dump.rdb
Binary file not shown.
4 changes: 2 additions & 2 deletions lib/tools.js
@@ -1,5 +1,5 @@
var redis = require("redis");
var uuidv1 = require('uuid/v1');
var uuidv4 = require('uuid/v4');

/**
* Redis存档的Hash消息管理工具
Expand Down Expand Up @@ -45,7 +45,7 @@ module.exports = function(conf)
* @return {[type]} [description]
*/
this.getUniID = (callback) => {
var guid = uuidv1();
var guid = uuidv4();
this.exists(guid, (exists) => {
// 如果存在则递归重新获取,直到获取到不重复的GUID并返回
exists ? this.getUniID(callback) : callback(guid);
Expand Down
2 changes: 1 addition & 1 deletion public/stylesheets/style.css
@@ -1,4 +1,4 @@
body {padding-top: 78px; font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; }
body {padding-top: 73px; font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; }

.getbtn {margin-top: 16px; margin-bottom: 10px; padding: 8px 35px; }

Expand Down
11 changes: 6 additions & 5 deletions views/index.pug
Expand Up @@ -4,8 +4,9 @@ block content
<div id='app'>
<div class="row">
<div class='col-md-10 col-xs-12 col-sm-12'>
<p> 在下面的框框里输入一些内容,然后点一下「去产生」按钮
| <br>你就会得到一个长的网址,将这个网址发给你的朋友,他只能看一次
<p> <p class='lead'>无需注册的阅后即焚</p>在下面的框框里输入一些内容
| <br>然后点一下「去产生」按钮,你就会得到一个长的网址
| <br>将这个网址发给你的朋友,他只能看一次
| 内容就会 <b>永远消失</b>! </p>
<textarea v-model='text' rows='6' class='form-control'></textarea>
<button v-on:click='getTempURL' class="btn btn-primary getbtn">去产生</button>
Expand All @@ -18,14 +19,14 @@ block content
</transition>
hr
<p>
| Naiveboom - 让Naive的事情不再发生
| <h6>Naiveboom - 让Naive的事情不再发生</h6>
| 这是一个简单的项目,可以一定程度保证你的安全。 <br>
| 举例:你有个链接或者一段文字需要发送给某人但是通过QQ、WeChat这类
| 举例:你有个链接或者一段文字需要发送给某人<br>但是通过QQ、WeChat这类
if (isZhao)
| 含<span id='zhao' v-on:mouseenter='showtg=true'>赵☭</span>量极高
else
| 被中国严密监管
| <br>的服务去发送,有的时候会非常不安全,甚至会被查水表。<br>
| 的服务去发送,有的时候会非常不安全,甚至会被查水表。<br>
| <br>现在可以透过这样的一个方案得以解决<br>
| 你将私密的链接或者文字粘贴到我们这个页面<br>
| 产生一个一次性链接<br>
Expand Down

0 comments on commit 77fcab2

Please sign in to comment.