@salesforcedevs/dw-components 0.57.0 → 0.59.0
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/package.json +2 -2
- package/src/modules/dw/blogsGrid/blogsGrid.css +14 -5
- package/src/modules/dw/blogsGrid/blogsGrid.html +27 -12
- package/src/modules/dw/eventsList/eventsList.css +4 -0
- package/src/modules/dw/eventsList/eventsList.html +7 -0
- package/src/modules/dw/podcastsGrid/podcastsGrid.html +1 -1
- package/src/modules/dwBaseElements/postsGrid/postsGrid.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dw-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.59.0",
|
|
4
4
|
"description": "Lightning web components for https://developer.salesforce.com",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"@types/lodash.orderby": "^4.6.7",
|
|
24
24
|
"@types/lodash.uniqby": "^4.7.7"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "a3674ea38091ac2c72808281b5ff09ebab643645"
|
|
27
27
|
}
|
|
@@ -25,7 +25,6 @@ dx-section.section-reduced-padding {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.box {
|
|
28
|
-
width: 548px;
|
|
29
28
|
height: 162px;
|
|
30
29
|
}
|
|
31
30
|
}
|
|
@@ -40,8 +39,8 @@ dx-section.section-reduced-padding {
|
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
.box {
|
|
43
|
-
width: 354px;
|
|
44
42
|
height: 162px;
|
|
43
|
+
background-position: 0% 25%, 90% 75%;
|
|
45
44
|
}
|
|
46
45
|
}
|
|
47
46
|
|
|
@@ -50,7 +49,7 @@ dx-section.section-reduced-padding {
|
|
|
50
49
|
font-weight: 500;
|
|
51
50
|
letter-spacing: 0;
|
|
52
51
|
height: 48px;
|
|
53
|
-
|
|
52
|
+
padding: 10px;
|
|
54
53
|
}
|
|
55
54
|
|
|
56
55
|
.subscription-box {
|
|
@@ -63,11 +62,21 @@ dx-section.section-reduced-padding {
|
|
|
63
62
|
align-items: center;
|
|
64
63
|
display: flex;
|
|
65
64
|
flex-direction: column;
|
|
66
|
-
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.cta-container {
|
|
68
|
+
width: 100%;
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
justify-content: center;
|
|
67
72
|
}
|
|
68
73
|
|
|
69
74
|
.box {
|
|
70
|
-
background-image: url("/assets/
|
|
75
|
+
background-image: url("/assets/svg/subscribe-background-left.svg"),
|
|
76
|
+
url("/assets/svg/subscribe-background-right.svg");
|
|
77
|
+
background-position: 4% 25%, 90% 60%;
|
|
78
|
+
background-repeat: no-repeat;
|
|
79
|
+
width: 100%;
|
|
71
80
|
}
|
|
72
81
|
|
|
73
82
|
.icon {
|
|
@@ -1,22 +1,37 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<dx-hr spacing="
|
|
2
|
+
<dx-hr spacing="2xl"></dx-hr>
|
|
3
3
|
|
|
4
4
|
<dx-section class="section-padding-lg section-reduced-padding">
|
|
5
5
|
<div class="subscription-box">
|
|
6
6
|
<div class="box">
|
|
7
7
|
<div class="content">
|
|
8
8
|
<h2 class="title">
|
|
9
|
-
|
|
9
|
+
Get the latest Salesforce Developer posts exactly how you want.
|
|
10
10
|
</h2>
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
<div class="cta-container">
|
|
12
|
+
<dx-button
|
|
13
|
+
size="small"
|
|
14
|
+
variant="secondary"
|
|
15
|
+
icon-symbol="slack"
|
|
16
|
+
icon-sprite="salesforcebrand"
|
|
17
|
+
icon-position="left"
|
|
18
|
+
href="https://slack.com/oauth/v2/authorize?scope=chat%3Awrite%2Ccommands&user_scope=&redirect_uri=https%3A%2F%2Fdsc-slack-app.herokuapp.com%2Fslack%2Foauth_redirect&client_id=1814240140212.2864842743411"
|
|
19
|
+
class="button"
|
|
20
|
+
>
|
|
21
|
+
Send posts to Slack
|
|
22
|
+
</dx-button>
|
|
23
|
+
<dx-button
|
|
24
|
+
size="small"
|
|
25
|
+
variant="secondary"
|
|
26
|
+
icon-symbol="rss"
|
|
27
|
+
icon-position="left"
|
|
28
|
+
icon-sprite="general"
|
|
29
|
+
href="https://developer.salesforce.com/blogs/feed"
|
|
30
|
+
class="button"
|
|
31
|
+
>
|
|
32
|
+
Subscribe to RSS
|
|
33
|
+
</dx-button>
|
|
34
|
+
</div>
|
|
20
35
|
</div>
|
|
21
36
|
</div>
|
|
22
37
|
</div>
|
|
@@ -41,7 +56,7 @@
|
|
|
41
56
|
</template>
|
|
42
57
|
</dx-grid>
|
|
43
58
|
<dx-hr
|
|
44
|
-
if:true={
|
|
59
|
+
if:true={showLoadMore}
|
|
45
60
|
onclick={onClick}
|
|
46
61
|
variant="load-more"
|
|
47
62
|
text="SHOW MORE"
|
|
@@ -66,6 +66,13 @@
|
|
|
66
66
|
featured="true"
|
|
67
67
|
></dx-card-event>
|
|
68
68
|
</dx-section>
|
|
69
|
+
|
|
70
|
+
<dx-hr spacing="2xl"></dx-hr>
|
|
71
|
+
|
|
72
|
+
<dw-slack-cta class="slack-cta buffer">
|
|
73
|
+
Get notified of new events with the new Salesforce Developers Slack app
|
|
74
|
+
</dw-slack-cta>
|
|
75
|
+
|
|
69
76
|
<dx-section class="events-list past-events" title="Past Events" if:true={pastEvents.length}>
|
|
70
77
|
<dx-card-event
|
|
71
78
|
for:each={pastEvents}
|
|
@@ -64,6 +64,10 @@ export abstract class PostsGrid extends LightningElement {
|
|
|
64
64
|
return this._morePostsViewed;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
get showLoadMore(): boolean {
|
|
68
|
+
return this.archives && this.hasMorePosts;
|
|
69
|
+
}
|
|
70
|
+
|
|
67
71
|
get showArchives(): boolean {
|
|
68
72
|
return this._morePostsViewed && this.archives;
|
|
69
73
|
}
|