Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
-布谷鸟-
nosqlclient
提交
7d7169b3
N
nosqlclient
项目概览
-布谷鸟-
/
nosqlclient
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
nosqlclient
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7d7169b3
编写于
3月 09, 2016
作者:
S
Sercan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
in progress #30
http://docs.meteor.com/#/full/email
上级
3638b5e0
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
91 addition
and
1 deletion
+91
-1
.meteor/packages
.meteor/packages
+2
-1
.meteor/versions
.meteor/versions
+1
-0
client/views/layouts/top_navbar/top_navbar.html
client/views/layouts/top_navbar/top_navbar.html
+5
-0
client/views/pages/feedback/feedback.html
client/views/pages/feedback/feedback.html
+49
-0
client/views/pages/feedback/feedback.js
client/views/pages/feedback/feedback.js
+15
-0
lib/routers/feedback.js
lib/routers/feedback.js
+4
-0
server/internal/internal_methods.js
server/internal/internal_methods.js
+15
-0
未找到文件。
.meteor/packages
浏览文件 @
7d7169b3
...
@@ -28,4 +28,5 @@ momentjs:moment
...
@@ -28,4 +28,5 @@ momentjs:moment
arch:ace-editor
arch:ace-editor
aldeed:collection2
aldeed:collection2
ephemer:reactive-datatables-modified
ephemer:reactive-datatables-modified
#arboleya:electrify # need for desktop packaging only.
#arboleya:electrify # need for desktop packaging only.
\ No newline at end of file
email
.meteor/versions
浏览文件 @
7d7169b3
...
@@ -27,6 +27,7 @@ diff-sequence@1.0.1
...
@@ -27,6 +27,7 @@ diff-sequence@1.0.1
ecmascript@0.1.6
ecmascript@0.1.6
ecmascript-runtime@0.2.6
ecmascript-runtime@0.2.6
ejson@1.0.7
ejson@1.0.7
email@1.0.8
ephemer:reactive-datatables-modified@1.1.0
ephemer:reactive-datatables-modified@1.1.0
es5-shim@4.1.14
es5-shim@4.1.14
fastclick@1.0.7
fastclick@1.0.7
...
...
client/views/layouts/top_navbar/top_navbar.html
浏览文件 @
7d7169b3
...
@@ -12,6 +12,11 @@
...
@@ -12,6 +12,11 @@
</form>
</form>
</div>
</div>
<ul
class=
"nav navbar-top-links navbar-right"
>
<ul
class=
"nav navbar-top-links navbar-right"
>
<li>
<a
href=
"{{pathFor route="
feedback
"}}"
>
<i
class=
"fa fa-feed"
></i>
Leave Feedback
</a>
</li>
<li>
<li>
<a
href=
"{{pathFor route="
settings
"}}"
>
<a
href=
"{{pathFor route="
settings
"}}"
>
<i
class=
"fa fa-archive"
></i>
Settings
<i
class=
"fa fa-archive"
></i>
Settings
...
...
client/views/pages/feedback/feedback.html
0 → 100644
浏览文件 @
7d7169b3
<template
name=
"feedback"
>
{{> pageHeading title="Leave Feedback" }}
<div
class=
"wrapper wrapper-content animated fadeIn"
>
<div
class=
"row"
>
<div
class=
"col-lg-12"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-title"
>
<h5>
Feedback
<small
class=
"m-l-sm"
>
Your opinions are important !
</small>
</h5>
</div>
<div
class=
"ibox-content"
>
<form
class=
"form-horizontal"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-2 control-label"
>
Email
</label>
<div
class=
"col-lg-10"
>
<input
id=
"inputMail"
min=
"0"
required=
"true"
type=
"email"
placeholder=
"Your email (will inform you asap)"
class=
"form-control"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-lg-2 control-label"
>
Your message
</label>
<div
class=
"col-lg-10"
>
<textarea
id=
"inputMessage"
class=
"form-control"
placeholder=
"Your message"
rows=
"5"
></textarea>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"col-lg-12"
>
<button
id=
"btnLeaveFeedback"
class=
"btn btn-block btn-outline btn-primary ladda-button"
type=
"button"
data-style=
"contract"
>
<strong>
Send
</strong></button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</template>
\ No newline at end of file
client/views/pages/feedback/feedback.js
0 → 100644
浏览文件 @
7d7169b3
/**
* Created by RSercan on 9.3.2016.
*/
Template
.
feedback
.
events
({
'
click #btnLeaveFeedback
'
:
function
(
e
)
{
e
.
preventDefault
();
var
laddaButton
=
$
(
'
#btnLeaveFeedback
'
).
ladda
();
laddaButton
.
ladda
(
'
start
'
);
Meteor
.
call
(
'
updateSettings
'
,
Template
.
settings
.
getSettingsFromForm
());
toastr
.
success
(
'
Successfuly saved !
'
);
Ladda
.
stopAll
();
}
});
\ No newline at end of file
lib/routers/feedback.js
0 → 100644
浏览文件 @
7d7169b3
/**
* Created by RSercan on 19.1.2016.
*/
Router
.
route
(
'
/feedback
'
);
\ No newline at end of file
server/internal/internal_methods.js
浏览文件 @
7d7169b3
...
@@ -2,6 +2,21 @@
...
@@ -2,6 +2,21 @@
* Created by RSercan on 26.12.2015.
* Created by RSercan on 26.12.2015.
*/
*/
Meteor
.
methods
({
Meteor
.
methods
({
'
sendEmail
'
:
function
(
from
,
text
)
{
check
([
from
,
text
],
[
String
]);
// Let other method calls from the same client start running,
// without waiting for the email sending to complete.
this
.
unblock
();
Email
.
send
({
to
:
'
ozdemirsercan27@gmail.com
'
,
from
:
from
,
subject
:
'
Mongoclient.com Feedback
'
,
text
:
text
});
},
'
saveQueryHistory
'
:
function
(
history
)
{
'
saveQueryHistory
'
:
function
(
history
)
{
var
queryHistoryCount
=
QueryHistory
.
find
().
count
({
var
queryHistoryCount
=
QueryHistory
.
find
().
count
({
connectionId
:
history
.
connectionId
,
connectionId
:
history
.
connectionId
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录