@salesforcedevs/dw-components 0.54.0 → 0.54.7-alpha
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/lwc.config.json +10 -1
- package/package.json +9 -4
- package/src/modules/dw/blogsGrid/blogsGrid.css +80 -0
- package/src/modules/dw/blogsGrid/blogsGrid.html +57 -0
- package/src/modules/dw/blogsGrid/blogsGrid.ts +28 -0
- package/src/modules/dw/cardBlogPostProvider/cardBlogPostProvider.ts +2 -2
- package/src/modules/dw/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.ts +2 -2
- package/src/modules/dw/codeSamplesGrid/codeSamplesGrid.css +171 -0
- package/src/modules/dw/codeSamplesGrid/codeSamplesGrid.html +133 -0
- package/src/modules/dw/codeSamplesGrid/codeSamplesGrid.ts +429 -0
- package/src/modules/dw/contentArchive/contentArchive.css +1 -1
- package/src/modules/dw/contentArchive/contentArchive.ts +2 -2
- package/src/modules/dw/deSignupForm/deSignupForm.css +70 -0
- package/src/modules/dw/deSignupForm/deSignupForm.html +99 -0
- package/src/modules/dw/deSignupForm/deSignupForm.ts +268 -0
- package/src/modules/dw/deSignupForm/submitForm.ts +90 -0
- package/src/modules/dw/docsGrid/docsGrid.css +86 -0
- package/src/modules/dw/docsGrid/docsGrid.html +84 -0
- package/src/modules/dw/docsGrid/docsGrid.ts +539 -0
- package/src/modules/dw/eventsList/eventsList.css +109 -0
- package/src/modules/dw/eventsList/eventsList.html +91 -0
- package/src/modules/dw/eventsList/eventsList.ts +180 -0
- package/src/modules/dw/instrumentation/instrumentation.ts +1 -1
- package/src/modules/dw/newsletterForm/newsletterForm.css +2 -2
- package/src/modules/dw/newsletterForm/newsletterForm.html +1 -1
- package/src/modules/dw/newsletterForm/newsletterForm.ts +3 -3
- package/src/modules/dw/podcastSubscription/podcastSubscription.css +2 -2
- package/src/modules/dw/podcastsGrid/podcastsGrid.css +5 -0
- package/src/modules/dw/podcastsGrid/podcastsGrid.html +29 -0
- package/src/modules/dw/podcastsGrid/podcastsGrid.ts +9 -0
- package/src/modules/dw/podcastsPromo/podcastsPromo.css +32 -0
- package/src/modules/dw/podcastsPromo/podcastsPromo.html +30 -0
- package/src/modules/dw/podcastsPromo/podcastsPromo.ts +3 -0
- package/src/modules/dw/rcgTable/altData.ts +78 -0
- package/src/modules/dw/rcgTable/getTableData.ts +10 -0
- package/src/modules/dw/rcgTable/rcgTable.css +39 -0
- package/src/modules/dw/rcgTable/rcgTable.html +31 -0
- package/src/modules/dw/rcgTable/rcgTable.ts +34 -0
- package/src/modules/dw/searchResults/searchResults.css +1 -1
- package/src/modules/dw/slackCta/slackCta.css +2 -2
- package/src/modules/dw/slackSuccess/slackSuccess.css +65 -0
- package/src/modules/dw/slackSuccess/slackSuccess.html +32 -0
- package/src/modules/dw/slackSuccess/slackSuccess.ts +32 -0
- package/src/modules/dwBaseElements/postsGrid/postsGrid.ts +76 -0
- package/src/modules/dwHelpers/postsGrid/postsGrid.css +9 -0
- package/LICENSE +0 -12
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="events-container">
|
|
3
|
+
<dx-section class="events-action-bar">
|
|
4
|
+
<div class="records-container">
|
|
5
|
+
<span>Showing { shownEventsTotal } of { events.length }</span>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="filters-container">
|
|
8
|
+
<dx-popover width="max-content">
|
|
9
|
+
<dx-button
|
|
10
|
+
class="filter-button"
|
|
11
|
+
variant="tertiary"
|
|
12
|
+
icon-symbol="chevrondown"
|
|
13
|
+
slot="control"
|
|
14
|
+
>
|
|
15
|
+
Date
|
|
16
|
+
</dx-button>
|
|
17
|
+
<template if:true={showFilters}>
|
|
18
|
+
<dx-checkbox-group
|
|
19
|
+
legend="Date"
|
|
20
|
+
slot="content"
|
|
21
|
+
class="date-filter"
|
|
22
|
+
value={selectedMonths}
|
|
23
|
+
options={monthsList}
|
|
24
|
+
onchange={handleDateFilterChange}
|
|
25
|
+
></dx-checkbox-group>
|
|
26
|
+
</template>
|
|
27
|
+
</dx-popover>
|
|
28
|
+
<dx-popover width="max-content">
|
|
29
|
+
<dx-button
|
|
30
|
+
class="filter-button"
|
|
31
|
+
variant="tertiary"
|
|
32
|
+
icon-symbol="chevrondown"
|
|
33
|
+
slot="control"
|
|
34
|
+
>
|
|
35
|
+
Event Type
|
|
36
|
+
</dx-button>
|
|
37
|
+
<template if:true={showFilters}>
|
|
38
|
+
<dx-checkbox-group
|
|
39
|
+
legend="Event Type"
|
|
40
|
+
slot="content"
|
|
41
|
+
class="date-filter"
|
|
42
|
+
value={selectedEventTypes}
|
|
43
|
+
options={eventTypeList}
|
|
44
|
+
onchange={handleEventTypeFilterChange}
|
|
45
|
+
></dx-checkbox-group>
|
|
46
|
+
</template>
|
|
47
|
+
</dx-popover>
|
|
48
|
+
</div>
|
|
49
|
+
</dx-section>
|
|
50
|
+
<dx-section
|
|
51
|
+
class="events-list upcoming-events"
|
|
52
|
+
title="Upcoming Events"
|
|
53
|
+
if:true={upcomingEvents.length}
|
|
54
|
+
>
|
|
55
|
+
<dx-card-event
|
|
56
|
+
for:each={upcomingEvents}
|
|
57
|
+
for:item="item"
|
|
58
|
+
key={item.id}
|
|
59
|
+
href={item.urlStub}
|
|
60
|
+
title={item.name}
|
|
61
|
+
end-datetime={item.endDate}
|
|
62
|
+
start-datetime={item.startDate}
|
|
63
|
+
short-description={item.shortDescription}
|
|
64
|
+
type={item.type}
|
|
65
|
+
target="_blank"
|
|
66
|
+
featured="true"
|
|
67
|
+
></dx-card-event>
|
|
68
|
+
</dx-section>
|
|
69
|
+
<dx-section class="events-list past-events" title="Past Events" if:true={pastEvents.length}>
|
|
70
|
+
<dx-card-event
|
|
71
|
+
for:each={pastEvents}
|
|
72
|
+
for:item="item"
|
|
73
|
+
key={item.id}
|
|
74
|
+
href={item.urlStub}
|
|
75
|
+
title={item.name}
|
|
76
|
+
end-datetime={item.endDate}
|
|
77
|
+
start-datetime={item.startDate}
|
|
78
|
+
short-description={item.shortDescription}
|
|
79
|
+
type={item.type}
|
|
80
|
+
target="_blank"
|
|
81
|
+
featured="true"
|
|
82
|
+
></dx-card-event>
|
|
83
|
+
</dx-section>
|
|
84
|
+
<div class="events-empty" if:true={showEmptyState}>
|
|
85
|
+
<dx-empty-state
|
|
86
|
+
title="Beep boop. That did not compute."
|
|
87
|
+
subtitle={emptyStateSubtitle}
|
|
88
|
+
></dx-empty-state>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
</template>
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { api, LightningElement } from "lwc";
|
|
2
|
+
import { toJson } from "dxUtils/normalizers";
|
|
3
|
+
import qs from "query-string";
|
|
4
|
+
import uniqBy from "lodash.uniqby";
|
|
5
|
+
import orderBy from "lodash.orderby";
|
|
6
|
+
|
|
7
|
+
const MONTH_NAMES = [
|
|
8
|
+
"January",
|
|
9
|
+
"February",
|
|
10
|
+
"March",
|
|
11
|
+
"April",
|
|
12
|
+
"May",
|
|
13
|
+
"June",
|
|
14
|
+
"July",
|
|
15
|
+
"August",
|
|
16
|
+
"September",
|
|
17
|
+
"October",
|
|
18
|
+
"November",
|
|
19
|
+
"December"
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
export default abstract class EventsList extends LightningElement {
|
|
23
|
+
private _events: any[] = [];
|
|
24
|
+
private monthsList: any[] = [];
|
|
25
|
+
private eventTypeList: any[] = [];
|
|
26
|
+
private selectedMonths: string[] = [];
|
|
27
|
+
private selectedEventTypes: string[] = [];
|
|
28
|
+
private showFilters = false;
|
|
29
|
+
|
|
30
|
+
private get _filteredEvents() {
|
|
31
|
+
return this._events.filter((event) => {
|
|
32
|
+
const date = new Date(event.startDate);
|
|
33
|
+
const eventDate = `${MONTH_NAMES[date.getUTCMonth()]}`;
|
|
34
|
+
return (
|
|
35
|
+
this.selectedMonths.includes(eventDate) &&
|
|
36
|
+
this.selectedEventTypes.includes(event.type)
|
|
37
|
+
);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@api
|
|
42
|
+
get events() {
|
|
43
|
+
return this._events;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
set events(value) {
|
|
47
|
+
const tempDate = new Date();
|
|
48
|
+
tempDate.setMonth(tempDate.getMonth() - 2);
|
|
49
|
+
const twoMonthsAgo = tempDate.toISOString();
|
|
50
|
+
// Show past two months of events and all upcoming events
|
|
51
|
+
const events = toJson(value).filter(
|
|
52
|
+
(event) => event.startDate > twoMonthsAgo
|
|
53
|
+
);
|
|
54
|
+
this._events = events;
|
|
55
|
+
this.createFilters();
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
get upcomingEvents() {
|
|
59
|
+
const today = new Date().toISOString();
|
|
60
|
+
return this._filteredEvents.filter((event) => event.startDate > today);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
get pastEvents() {
|
|
64
|
+
const today = new Date().toISOString();
|
|
65
|
+
return orderBy(
|
|
66
|
+
this._filteredEvents.filter((event) => event.startDate < today),
|
|
67
|
+
["startDate"],
|
|
68
|
+
["desc"]
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
get shownEventsTotal() {
|
|
73
|
+
return this._filteredEvents.length;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
get showEmptyState() {
|
|
77
|
+
return !this.upcomingEvents.length && !this.pastEvents.length;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
connectedCallback(): void {
|
|
81
|
+
const { months = "", types = "" } = qs.parse(window.location.search);
|
|
82
|
+
this.selectedMonths =
|
|
83
|
+
months === "" ? this.selectedMonths : months.split(",");
|
|
84
|
+
this.selectedEventTypes =
|
|
85
|
+
types === "" ? this.selectedEventTypes : types.split(",");
|
|
86
|
+
window.addEventListener("popstate", this.handleURLStateChange);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
disconnectedCallback(): void {
|
|
90
|
+
window.removeEventListener("popstate", this.handleURLStateChange);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
createMonthsList() {
|
|
94
|
+
return this._events.map((event) => {
|
|
95
|
+
const date = new Date(event.startDate);
|
|
96
|
+
return {
|
|
97
|
+
rawDate: date,
|
|
98
|
+
value: `${MONTH_NAMES[date.getUTCMonth()]}`,
|
|
99
|
+
label: `${
|
|
100
|
+
MONTH_NAMES[date.getUTCMonth()]
|
|
101
|
+
} ${date.getUTCFullYear()}`
|
|
102
|
+
};
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
createEventTypeList() {
|
|
107
|
+
return this._events.map((event) => ({
|
|
108
|
+
value: event.type,
|
|
109
|
+
label: event.type
|
|
110
|
+
}));
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
createFilters() {
|
|
114
|
+
this.monthsList = orderBy(
|
|
115
|
+
uniqBy(this.createMonthsList(), "value"),
|
|
116
|
+
["rawDate"],
|
|
117
|
+
["desc"]
|
|
118
|
+
);
|
|
119
|
+
this.selectedMonths = this.monthsList.map((month) => month.value);
|
|
120
|
+
|
|
121
|
+
this.eventTypeList = uniqBy(this.createEventTypeList(), "value");
|
|
122
|
+
this.selectedEventTypes = this.eventTypeList.map(
|
|
123
|
+
(eventType) => eventType.value
|
|
124
|
+
);
|
|
125
|
+
|
|
126
|
+
this.showFilters = true;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
handleDateFilterChange(e) {
|
|
130
|
+
this.selectedMonths = e.detail.value;
|
|
131
|
+
this.setSearchParams();
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
handleEventTypeFilterChange(e) {
|
|
135
|
+
this.selectedEventTypes = e.detail.value;
|
|
136
|
+
this.setSearchParams();
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
handleURLStateChange = () => {
|
|
140
|
+
const { months = "", types = "" } = qs.parse(window.location.search);
|
|
141
|
+
this.selectedMonths =
|
|
142
|
+
months === ""
|
|
143
|
+
? this.monthsList.map((month) => month.value)
|
|
144
|
+
: months.split(",");
|
|
145
|
+
this.selectedEventTypes =
|
|
146
|
+
types === ""
|
|
147
|
+
? this.eventTypeList.map((type) => type.value)
|
|
148
|
+
: types.split(",");
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
setSearchParams() {
|
|
152
|
+
const months = this.normalizeParamList(
|
|
153
|
+
this.selectedMonths,
|
|
154
|
+
this.monthsList
|
|
155
|
+
);
|
|
156
|
+
const types = this.normalizeParamList(
|
|
157
|
+
this.selectedEventTypes,
|
|
158
|
+
this.eventTypeList
|
|
159
|
+
);
|
|
160
|
+
const params = { months, types };
|
|
161
|
+
|
|
162
|
+
for (const key in params) {
|
|
163
|
+
if (!params[key] || params[key] === "") {
|
|
164
|
+
delete params[key];
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
let searchParams = qs.stringify(params, { encode: false });
|
|
169
|
+
searchParams = searchParams === "" ? "" : `?${searchParams}`;
|
|
170
|
+
|
|
171
|
+
const newurl = `${window.location.protocol}//${window.location.host}${window.location.pathname}${searchParams}`;
|
|
172
|
+
window.history.pushState({ path: newurl }, "", newurl);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
normalizeParamList(selectedList, totalList) {
|
|
176
|
+
return selectedList.length === totalList.length
|
|
177
|
+
? ""
|
|
178
|
+
: selectedList.join(",");
|
|
179
|
+
}
|
|
180
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LightningElement, api } from "lwc";
|
|
2
|
-
import { track } from "
|
|
2
|
+
import { track } from "dxUtils/analytics";
|
|
3
3
|
import { CountryOptions, CheckboxTextSet } from "typings/custom";
|
|
4
4
|
|
|
5
5
|
const ANALYTICS_INFO = {
|
|
@@ -177,8 +177,8 @@ export default class Form extends LightningElement {
|
|
|
177
177
|
|
|
178
178
|
handleConsent(countrySelectElement: any) {
|
|
179
179
|
if (this.checkboxTextSet) {
|
|
180
|
-
const countryOptions = countrySelectElement.
|
|
181
|
-
(
|
|
180
|
+
const countryOptions = countrySelectElement.options.find(
|
|
181
|
+
(option) => option.value === countrySelectElement.value
|
|
182
182
|
);
|
|
183
183
|
|
|
184
184
|
this.setLegalAndMarketingData(countryOptions);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="container">
|
|
3
|
+
<dx-grid columns={columns}>
|
|
4
|
+
<template for:each={postList} for:item="podcast">
|
|
5
|
+
<dx-card-podcast-episode
|
|
6
|
+
body={podcast.body}
|
|
7
|
+
datetime={podcast.datetime}
|
|
8
|
+
href={podcast.href}
|
|
9
|
+
key={podcast.id}
|
|
10
|
+
length={podcast.length}
|
|
11
|
+
title={podcast.title}
|
|
12
|
+
></dx-card-podcast-episode>
|
|
13
|
+
</template>
|
|
14
|
+
</dx-grid>
|
|
15
|
+
<dx-hr
|
|
16
|
+
if:true={hasMorePosts}
|
|
17
|
+
onclick={onClick}
|
|
18
|
+
variant="load-more"
|
|
19
|
+
text="LOAD MORE"
|
|
20
|
+
></dx-hr>
|
|
21
|
+
<dx-hr
|
|
22
|
+
if:true={showArchives}
|
|
23
|
+
onclick={onClick}
|
|
24
|
+
variant="link"
|
|
25
|
+
href='/content-archive?c__filter=%5B"Podcasts"%5D'
|
|
26
|
+
text="VIEW ARCHIVES"
|
|
27
|
+
></dx-hr>
|
|
28
|
+
</div>
|
|
29
|
+
</template>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { normalizeEpisode } from "dxUtils/normalizers";
|
|
2
|
+
import { NormalizedPost, WordpressPost } from "typings/custom";
|
|
3
|
+
import { PostsGrid } from "dwBaseElements/postsGrid";
|
|
4
|
+
|
|
5
|
+
export default class PodcastsGrid extends PostsGrid {
|
|
6
|
+
normalizePost(post: WordpressPost): NormalizedPost {
|
|
7
|
+
return normalizeEpisode(post);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* PODCAST INFO SECTION */
|
|
2
|
+
|
|
3
|
+
.info-container {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.info-container > * {
|
|
9
|
+
width: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.info-link {
|
|
13
|
+
margin-bottom: var(--dx-g-spacing-lg);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.info-link img {
|
|
17
|
+
/* following should be replaced with DX helpers/card.css class */
|
|
18
|
+
border-radius: 16px;
|
|
19
|
+
box-shadow: var(--dx-g-box-shadow-sm);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
dx-hr {
|
|
23
|
+
--dx-c-hr-padding-horizontal: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* TABLET */
|
|
27
|
+
|
|
28
|
+
@media screen and (max-width: 1024px) {
|
|
29
|
+
.info-container {
|
|
30
|
+
margin-bottom: var(--dx-g-spacing-lg);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<dx-section title="Developer Podcast" part="section">
|
|
3
|
+
<slot name="section"></slot>
|
|
4
|
+
<dx-grid columns="one">
|
|
5
|
+
<dx-grid columns="two-slim-left">
|
|
6
|
+
<div class="info-container">
|
|
7
|
+
<a href="/podcast" class="info-link">
|
|
8
|
+
<img
|
|
9
|
+
src="/assets/images/dsc-home-podcast-art.svg"
|
|
10
|
+
loading="lazy"
|
|
11
|
+
alt="Developer Podcast"
|
|
12
|
+
style="width: 100%"
|
|
13
|
+
/>
|
|
14
|
+
</a>
|
|
15
|
+
<span class="dx-text-body-2">
|
|
16
|
+
Tune in to the Developer Podcast to hear short and insightful stories for
|
|
17
|
+
developers, from developers. Join Joshua Birk, Developer Evangelist and
|
|
18
|
+
Godfather of Trailhead, as he hosts developer trailblazers from around the
|
|
19
|
+
world as they share their stories of learning, building, and integrating
|
|
20
|
+
with Salesforce.
|
|
21
|
+
</span>
|
|
22
|
+
</div>
|
|
23
|
+
<dx-grid columns="one">
|
|
24
|
+
<slot></slot>
|
|
25
|
+
</dx-grid>
|
|
26
|
+
</dx-grid>
|
|
27
|
+
<dx-hr part="hr" variant="link" href="/podcast" text="More Episodes"></dx-hr>
|
|
28
|
+
</dx-grid>
|
|
29
|
+
</dx-section>
|
|
30
|
+
</template>
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
COLUMNS: [
|
|
3
|
+
{
|
|
4
|
+
label: "Package Type",
|
|
5
|
+
fieldName: "type",
|
|
6
|
+
type: "richText",
|
|
7
|
+
wrapText: true,
|
|
8
|
+
initialWidth: 220,
|
|
9
|
+
hideDefaultActions: true
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
label: "Version",
|
|
13
|
+
fieldName: "version",
|
|
14
|
+
type: "richText",
|
|
15
|
+
wrapText: true,
|
|
16
|
+
initialWidth: 110,
|
|
17
|
+
hideDefaultActions: true,
|
|
18
|
+
cellAttributes: {
|
|
19
|
+
alignment: "left"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: "Description",
|
|
24
|
+
fieldName: "description",
|
|
25
|
+
type: "richText",
|
|
26
|
+
wrapText: true,
|
|
27
|
+
columnWidthsMode: "auto",
|
|
28
|
+
hideDefaultActions: true,
|
|
29
|
+
typeAttributes: {
|
|
30
|
+
tooltip: {
|
|
31
|
+
fieldName: "description"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
label: "Link",
|
|
37
|
+
fieldName: "link",
|
|
38
|
+
type: "url",
|
|
39
|
+
wrapText: true,
|
|
40
|
+
initialWidth: 110,
|
|
41
|
+
hideDefaultActions: true,
|
|
42
|
+
typeAttributes: {
|
|
43
|
+
label: "Download",
|
|
44
|
+
target: "_self"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
DATA: [
|
|
49
|
+
{
|
|
50
|
+
id: "1",
|
|
51
|
+
type: "Mobility Packages Checksum",
|
|
52
|
+
version: "234_all",
|
|
53
|
+
description: "RCG Mobility Packages SHA256 Checksums",
|
|
54
|
+
link: "/mobility_packages_checksum.sha256"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: "2",
|
|
58
|
+
type: "Modeler Installer",
|
|
59
|
+
version: "234.00010.0.0",
|
|
60
|
+
description: "Initial RCG Mobility Modeler Installer v234 release",
|
|
61
|
+
link: "/Modeler/modeler-build-000010-2021-09-29T15-34/CGCloudModelerSetup.v234.10.0.zip"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: "3",
|
|
65
|
+
type: "Modeler Update Package",
|
|
66
|
+
version: "234.00010.0.0",
|
|
67
|
+
description: "Initial RCG Mobility Modeler MUP v234 release",
|
|
68
|
+
link: "/Modeler/modeler-build-000010-2021-09-29T15-34/MUP.v234.10.0.zip"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
id: "4",
|
|
72
|
+
type: "Framework Update Package",
|
|
73
|
+
version: "234.0003.00",
|
|
74
|
+
description: "Initial RCG Mobility Modeler FUP v234 release",
|
|
75
|
+
link: "/FUP/FUP-234.0003.00/FUP.234.0003.00.zip"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@import "dxHelpers/table";
|
|
2
|
+
|
|
3
|
+
table {
|
|
4
|
+
margin-top: 60px;
|
|
5
|
+
margin-bottom: 90px;
|
|
6
|
+
overflow-x: unset;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
thead {
|
|
10
|
+
font-weight: bold;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
caption {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
td {
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.center {
|
|
22
|
+
text-align: center;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.quarter-width {
|
|
26
|
+
width: 25%;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@media screen and (max-width: 820px) {
|
|
30
|
+
td {
|
|
31
|
+
white-space: normal;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@media screen and (max-width: 480px) {
|
|
36
|
+
table {
|
|
37
|
+
overflow-x: scroll;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<table>
|
|
3
|
+
<caption>RCG Table</caption>
|
|
4
|
+
<thead id="table-head">
|
|
5
|
+
<tr>
|
|
6
|
+
<template for:each={columnData} for:item="column">
|
|
7
|
+
<th key={column.label}>{column.label}</th>
|
|
8
|
+
</template>
|
|
9
|
+
</tr>
|
|
10
|
+
</thead>
|
|
11
|
+
<tbody id="table-body">
|
|
12
|
+
<template for:each={rowData} for:item="row">
|
|
13
|
+
<tr key={row.id}>
|
|
14
|
+
<td>{row.type}</td>
|
|
15
|
+
<td>{row.version}</td>
|
|
16
|
+
<td>{row.description}</td>
|
|
17
|
+
<td class="quarter-width">
|
|
18
|
+
<dx-button
|
|
19
|
+
variant="inline"
|
|
20
|
+
href={row.link}
|
|
21
|
+
download="true"
|
|
22
|
+
icon-symbol="download"
|
|
23
|
+
>
|
|
24
|
+
Download
|
|
25
|
+
</dx-button>
|
|
26
|
+
</td>
|
|
27
|
+
</tr>
|
|
28
|
+
</template>
|
|
29
|
+
</tbody>
|
|
30
|
+
</table>
|
|
31
|
+
</template>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { LightningElement } from "lwc";
|
|
2
|
+
import { getTableData, RCG_URL } from "./getTableData";
|
|
3
|
+
import altData from "./altData";
|
|
4
|
+
|
|
5
|
+
export default class PodcastsPromo extends LightningElement {
|
|
6
|
+
private columnData = null;
|
|
7
|
+
private rowData = null;
|
|
8
|
+
private rcgUrl = RCG_URL;
|
|
9
|
+
|
|
10
|
+
connectedCallback() {
|
|
11
|
+
this.renderTableData();
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
prependLinksWithUrl(data) {
|
|
15
|
+
return data.map((el) => {
|
|
16
|
+
return {
|
|
17
|
+
...el,
|
|
18
|
+
link: `${RCG_URL}${el.link}`
|
|
19
|
+
};
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
async renderTableData() {
|
|
24
|
+
try {
|
|
25
|
+
const data = await getTableData();
|
|
26
|
+
this.columnData = data.COLUMNS;
|
|
27
|
+
this.rowData = this.prependLinksWithUrl(data.DATA);
|
|
28
|
+
} catch (err) {
|
|
29
|
+
console.log(`${err} Defaulting to alternative table data instead.`);
|
|
30
|
+
this.columnData = altData.COLUMNS;
|
|
31
|
+
this.rowData = this.prependLinksWithUrl(altData.DATA);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|