@social-mail/social-mail-client 1.2.91 → 1.2.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/public/channel/BlogService.js +1 -1
- package/dist/public/channel/BlogService.js.map +1 -1
- package/dist/public/channel/ChannelMessage.d.ts +1 -0
- package/dist/public/channel/ChannelMessage.d.ts.map +1 -1
- package/dist/public/channel/ChannelMessage.js +15 -10
- package/dist/public/channel/ChannelMessage.js.map +1 -1
- package/dist/public/channel/ChannelMessageList.js +9 -3
- package/dist/public/channel/ChannelMessageList.js.map +1 -1
- package/dist/public/channel/ChannelView.d.ts.map +1 -1
- package/dist/public/channel/ChannelView.js +10 -3
- package/dist/public/channel/ChannelView.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.js +35 -17
- package/dist/public/channel/ChannelView.pack.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.min.js +12 -5
- package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/public/channel/BlogService.ts +1 -1
- package/src/public/channel/ChannelMessage.tsx +16 -2
- package/src/public/channel/ChannelMessageList.tsx +3 -3
- package/src/public/channel/ChannelView.tsx +10 -3
|
@@ -17,15 +17,29 @@ export default class ChannelMessage extends AtomControl {
|
|
|
17
17
|
@InjectProperty
|
|
18
18
|
blogService: BlogService;
|
|
19
19
|
|
|
20
|
+
constructor(app, e = document.createElement("section")) {
|
|
21
|
+
super(app, e);
|
|
22
|
+
this.runAfterInit(() => this.app.runAsync(() => this.init()));
|
|
23
|
+
}
|
|
24
|
+
|
|
20
25
|
async init() {
|
|
21
|
-
|
|
26
|
+
|
|
27
|
+
const channel = await this.blogService.getChannel(void 0, channelID, void 0);
|
|
28
|
+
|
|
29
|
+
const email = await this.blogService.getEmail(emailID);
|
|
22
30
|
|
|
23
31
|
this.renderer = <section data-element="blog-item">
|
|
32
|
+
<header>
|
|
33
|
+
<div styler-display="flex" styler-gap="size-default">
|
|
34
|
+
<span text={channel.emailAddress.name}/>
|
|
35
|
+
<a href={`mailto:subscribe-${channel.emailAddress.emailAddress}?subject=subscribe`}><button>Follow</button></a>
|
|
36
|
+
</div>
|
|
37
|
+
</header>
|
|
24
38
|
<h4 data-element="title">
|
|
25
39
|
<label text={email.subject}/>
|
|
26
40
|
</h4>
|
|
27
41
|
<h6 data-element="date" text={DateFormats.relative.short(email.dateSent)}/>
|
|
28
|
-
<
|
|
42
|
+
<h5 text={email.senderName}/>
|
|
29
43
|
<section
|
|
30
44
|
data-element="content">
|
|
31
45
|
<section { ... renderMail({ email })}/>
|
|
@@ -60,11 +60,11 @@ export default class ChannelView extends AtomControl {
|
|
|
60
60
|
this.element.className = channelViewStyle;
|
|
61
61
|
this.renderer = <section>
|
|
62
62
|
<header>
|
|
63
|
-
<div>
|
|
63
|
+
<div styler-display="flex" styler-gap="size-default">
|
|
64
64
|
<span text={this.channel.emailAddress.name}/>
|
|
65
65
|
<a href={`mailto:subscribe-${this.channel.emailAddress.emailAddress}?subject=subscribe`}><button>Follow</button></a>
|
|
66
66
|
</div>
|
|
67
|
-
<div>
|
|
67
|
+
<div styler-display="flex" styler-gap="size-default">
|
|
68
68
|
<input
|
|
69
69
|
placeholder="Search..."
|
|
70
70
|
value={Bind.twoWaysImmediate(() => this.search)}/>
|
|
@@ -89,7 +89,7 @@ export default class ChannelView extends AtomControl {
|
|
|
89
89
|
<a href={UrlService.toBlogUrl(channelID, email.emailID, email.subject)} text={email.subject}></a>
|
|
90
90
|
</h4>
|
|
91
91
|
<h6 data-element="date" text={DateFormats.relative.short(email.dateSent)}/>
|
|
92
|
-
<
|
|
92
|
+
<h5 text={email.senderName}/>
|
|
93
93
|
<section
|
|
94
94
|
data-element="content">
|
|
95
95
|
<LimitedText height={200}>
|
|
@@ -16,7 +16,7 @@ import styled from "@web-atoms/core/dist/style/styled";
|
|
|
16
16
|
border: solid 1px lightgray;
|
|
17
17
|
border-radius: 10px;
|
|
18
18
|
display: grid;
|
|
19
|
-
grid-template-columns: 1fr auto;
|
|
19
|
+
grid-template-columns: 1fr auto auto;
|
|
20
20
|
grid-template-rows: auto 1fr;
|
|
21
21
|
|
|
22
22
|
background-color: gray;
|
|
@@ -37,19 +37,26 @@ import styled from "@web-atoms/core/dist/style/styled";
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
& >
|
|
40
|
+
& > h5 {
|
|
41
41
|
grid-row: 1;
|
|
42
42
|
grid-column: 2;
|
|
43
43
|
margin-block-start: 0;
|
|
44
44
|
margin-block-end: 0;
|
|
45
45
|
padding: 10px;
|
|
46
46
|
}
|
|
47
|
+
& > h6 {
|
|
48
|
+
grid-row: 1;
|
|
49
|
+
grid-column: 3;
|
|
50
|
+
margin-block-start: 0;
|
|
51
|
+
margin-block-end: 0;
|
|
52
|
+
padding: 10px;
|
|
53
|
+
}
|
|
47
54
|
& > section {
|
|
48
55
|
padding: 10px;
|
|
49
56
|
border-bottom-left-radius: 10px;
|
|
50
57
|
border-bottom-right-radius: 10px;
|
|
51
58
|
grid-row: 2;
|
|
52
|
-
grid-column: 1 / span
|
|
59
|
+
grid-column: 1 / span 3;
|
|
53
60
|
background-color: canvas;
|
|
54
61
|
}
|
|
55
62
|
}
|