mirror of
https://github.com/RetroShare/RSNewWebUI.git
synced 2026-09-14 11:05:47 +05:00
added spam
This commit is contained in:
parent
a9d7f597f7
commit
fd08694c88
@ -13,6 +13,7 @@ const Messages = {
|
||||
trash: [],
|
||||
starred: [],
|
||||
system: [],
|
||||
spam: [],
|
||||
load() {
|
||||
rs.rsJsonApiRequest('/rsMsgs/getMessageSummaries', {}, (data) => {
|
||||
Messages.all = data.msgList;
|
||||
@ -37,6 +38,9 @@ const Messages = {
|
||||
Messages.system = Messages.all.filter(
|
||||
(msg) => (msg.msgflags & util.RS_MSG_SYSTEM)
|
||||
);
|
||||
Messages.spam = Messages.all.filter(
|
||||
(msg) => (msg.msgflags & util.RS_MSG_SPAM)
|
||||
);
|
||||
});
|
||||
},
|
||||
};
|
||||
@ -51,6 +55,7 @@ const sections = {
|
||||
const sectionsquickview = {
|
||||
starred: require('mail/mail_starred'),
|
||||
system: require('mail/mail_system'),
|
||||
spam: require('mail/mail_spam'),
|
||||
};
|
||||
const tagselect = {
|
||||
showval: 'Tags',
|
||||
|
||||
27
webui-src/app/mail/mail_spam.js
Normal file
27
webui-src/app/mail/mail_spam.js
Normal file
@ -0,0 +1,27 @@
|
||||
const m = require('mithril');
|
||||
const util = require('mail/mail_util');
|
||||
|
||||
const Layout = () => {
|
||||
return {
|
||||
view: (v) => [
|
||||
m('.widget', [
|
||||
m('h3', 'Spam'),
|
||||
m('hr'),
|
||||
m(
|
||||
util.Table,
|
||||
m(
|
||||
'tbody',
|
||||
v.attrs.list.map((msg) =>
|
||||
m(util.MessageSummary, {
|
||||
details: msg,
|
||||
category: 'spam',
|
||||
})
|
||||
)
|
||||
)
|
||||
),
|
||||
]),
|
||||
],
|
||||
};
|
||||
};
|
||||
|
||||
module.exports = Layout;
|
||||
@ -11,7 +11,7 @@ const RS_MSG_TRASH = 0x000020;
|
||||
const RS_MSG_NEW = 0x10;
|
||||
const RS_MSG_UNREAD_BY_USER = 0x40;
|
||||
const RS_MSG_STAR = 0x200;
|
||||
|
||||
const RS_MSG_SPAM = 0x040000;
|
||||
const RS_MSG_USER_REQUEST = 0x000400;
|
||||
const RS_MSG_FRIEND_RECOMMENDATION = 0x000800;
|
||||
const RS_MSG_PUBLISH_KEY = 0x020000;
|
||||
@ -221,5 +221,6 @@ module.exports = {
|
||||
RS_MSG_UNREAD_BY_USER,
|
||||
RS_MSG_STAR,
|
||||
RS_MSG_TRASH,
|
||||
RS_MSG_SYSTEM
|
||||
RS_MSG_SYSTEM,
|
||||
RS_MSG_SPAM
|
||||
};
|
||||
|
||||
@ -444,7 +444,7 @@ a.tab-menu-item {
|
||||
/* Content adjacent to sidebar */
|
||||
.node-panel {
|
||||
position: relative;
|
||||
bottom: 100px;
|
||||
bottom: 140px;
|
||||
margin-left: 200px;
|
||||
animation: fadein 0.5s;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user