Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Krause, Benjamin
email_proxy
Commits
de0bb236
Commit
de0bb236
authored
Aug 19, 2020
by
Benjamin Krause
Browse files
Mail body changed to json format
parent
a1e9c3f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
web/src/index.ts
View file @
de0bb236
...
@@ -79,7 +79,7 @@ async function fillChat() {
...
@@ -79,7 +79,7 @@ async function fillChat() {
const
text
=
document
.
createElement
(
"
li
"
);
const
text
=
document
.
createElement
(
"
li
"
);
const
date
=
new
Date
(
element
.
date
);
const
date
=
new
Date
(
element
.
date
);
const
dateString
=
`
${
date
.
getDate
()}
.
${
date
.
getMonth
()}
.
${
date
.
getFullYear
()}
${
date
.
getHours
()}
:
${
date
.
getMinutes
()}
`
const
dateString
=
`
${
date
.
getDate
()}
.
${
date
.
getMonth
()}
.
${
date
.
getFullYear
()}
${
date
.
getHours
()}
:
${
date
.
getMinutes
()}
`
text
.
innerText
=
`
${
element
.
mail_from
}
-
${
dateString
}
-
${
element
.
body
}
`
;
text
.
innerText
=
`
${
element
.
mail_from
}
-
${
dateString
}
-
${
JSON
.
parse
(
element
.
body
).
message
}
`
;
parent
.
appendChild
(
text
);
parent
.
appendChild
(
text
);
});
});
}
}
...
@@ -128,7 +128,9 @@ function init() {
...
@@ -128,7 +128,9 @@ function init() {
password
:
""
,
password
:
""
,
},
},
subject
:
"
Test
"
,
subject
:
"
Test
"
,
message
:
(
document
.
querySelector
(
"
#text
"
)
as
HTMLInputElement
).
value
,
message
:
JSON
.
stringify
({
message
:
(
document
.
querySelector
(
"
#text
"
)
as
HTMLInputElement
).
value
},
null
,
"
\t
"
),
};
};
work
(
obj
);
work
(
obj
);
});
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment