Skip to content

Commit 0ee28e3

Browse files
authored
Merge branch 'master' into 6021-add-schedule-plugin-test-docs
2 parents 26303fd + d177f37 commit 0ee28e3

File tree

99 files changed

+1579
-1881
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+1579
-1881
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ node_modules
1515
!telegraf-build/templates
1616
!telegraf-build/scripts
1717
!telegraf-build/README.md
18+
/cypress/downloads
1819
/cypress/screenshots/*
1920
/cypress/videos/*
2021
test-results.xml

assets/js/release-toc.js

Lines changed: 37 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55
* release notes pages.
66
*/
77

8-
// Use jQuery filter to get an array of all the *release* h2 elements
9-
const releases = $('h2').filter(
10-
(_i, el) => !el.id.match(/checkpoint-releases/)
8+
// Get all h2 elements that are not checkpoint-releases
9+
const releases = Array.from(document.querySelectorAll('h2')).filter(
10+
el => !el.id.match(/checkpoint-releases/)
1111
);
1212

1313
// Extract data about each release from the array of releases
14-
releaseData = releases.map((_i, el) => ({
14+
const releaseData = releases.map(el => ({
1515
name: el.textContent,
1616
id: el.id,
1717
class: el.getAttribute('class'),
1818
date: el.getAttribute('date')
1919
}));
2020

2121
// Use release data to generate a list item for each release
22-
getReleaseItem = (releaseData) => {
23-
var li = document.createElement("li");
22+
function getReleaseItem(releaseData) {
23+
const li = document.createElement("li");
2424
if (releaseData.class !== null) {
2525
li.className = releaseData.class;
2626
}
@@ -29,30 +29,41 @@ getReleaseItem = (releaseData) => {
2929
return li;
3030
}
3131

32-
// Use jQuery each to build the release table of contents
33-
releaseData.each((_i, release) => {
34-
$('#release-toc ul')[0].appendChild(getReleaseItem(release));
32+
// Build the release table of contents
33+
const releaseTocUl = document.querySelector('#release-toc ul');
34+
releaseData.forEach(release => {
35+
releaseTocUl.appendChild(getReleaseItem(release));
3536
});
3637

3738
/*
3839
* This script is used to expand the release notes table of contents by the
3940
* number specified in the `show` attribute of `ul.release-list`.
4041
* Once all the release items are visible, the "Show More" button is hidden.
4142
*/
42-
$('#release-toc .show-more').click(function () {
43-
const itemHeight = 1.885; // Item height in rem
44-
const releaseNum = releaseData.length;
45-
const maxHeight = releaseNum * itemHeight;
46-
const releaseIncrement = Number($('#release-list')[0].getAttribute('show'));
47-
const currentHeight = Number(
48-
$('#release-list')[0].style.height.match(/\d+\.?\d+/)[0]
49-
);
50-
const potentialHeight = currentHeight + releaseIncrement * itemHeight;
51-
const newHeight = potentialHeight > maxHeight ? maxHeight : potentialHeight;
52-
53-
$('#release-list')[0].style.height = `${newHeight}rem`;
54-
55-
if (newHeight >= maxHeight) {
56-
$('#release-toc .show-more').fadeOut(100);
57-
}
58-
});
43+
const showMoreBtn = document.querySelector('#release-toc .show-more');
44+
if (showMoreBtn) {
45+
showMoreBtn.addEventListener('click', function () {
46+
const itemHeight = 1.885; // Item height in rem
47+
const releaseNum = releaseData.length;
48+
const maxHeight = releaseNum * itemHeight;
49+
const releaseList = document.getElementById('release-list');
50+
const releaseIncrement = Number(releaseList.getAttribute('show'));
51+
const currentHeightMatch = releaseList.style.height.match(/\d+\.?\d+/);
52+
const currentHeight = currentHeightMatch
53+
? Number(currentHeightMatch[0])
54+
: 0;
55+
const potentialHeight = currentHeight + releaseIncrement * itemHeight;
56+
const newHeight = potentialHeight > maxHeight ? maxHeight : potentialHeight;
57+
58+
releaseList.style.height = `${newHeight}rem`;
59+
60+
if (newHeight >= maxHeight) {
61+
// Simple fade out
62+
showMoreBtn.style.transition = 'opacity 0.1s';
63+
showMoreBtn.style.opacity = 0;
64+
setTimeout(() => {
65+
showMoreBtn.style.display = 'none';
66+
}, 100);
67+
}
68+
});
69+
}

assets/styles/layouts/_homepage.scss

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
.product {
106106
padding: 0 1rem;
107107
display: flex;
108-
flex: 1 1 50%;
108+
flex: 1 1 33%;
109109
flex-direction: column;
110110
justify-content: space-between;
111111
max-width: 33%;
@@ -118,11 +118,10 @@
118118
line-height: 1.5rem;
119119
color: rgba($article-text, .7);
120120
}
121-
}
122121

123-
&.new {
124-
.product-info h3::after {
125-
content: "New";
122+
h3[state] {
123+
&::after {
124+
content: attr(state);
126125
margin-left: .5rem;
127126
font-size: 1rem;
128127
padding: .25em .5em .25em .4em;
@@ -132,6 +131,8 @@
132131
font-style: italic;
133132
vertical-align: middle;
134133
}
134+
135+
}
135136
}
136137

137138
ul.product-links {
@@ -227,13 +228,38 @@
227228
background: $article-bg;
228229
}
229230

231+
.categories {
232+
display: flex;
233+
flex-direction: row;
234+
flex-wrap: wrap;
235+
// margin: 0 -1rem;
236+
width: calc(100% + 2rem);
237+
238+
.category {
239+
&.full-width {
240+
width: 100%;
241+
}
242+
&.two-thirds {
243+
width: 66.66%;
244+
.product { max-width: 50%; }
245+
}
246+
&.one-third {
247+
width: 33.33%;
248+
.product {
249+
max-width: 100%;
250+
}
251+
}
252+
}
253+
}
254+
230255
.category-head{
231256
margin: 1rem 0 2rem;
232257
&::after {
233258
content: "";
234259
display: block;
235260
border-top: 1px solid $article-hr;
236261
margin-top: -1.15rem;
262+
width: calc(100% - 2rem);
237263
}
238264
}
239265
}
@@ -441,6 +467,16 @@
441467
ul {margin-bottom: 0;}
442468
}
443469
}
470+
.categories .category {
471+
&.two-thirds {
472+
width: 100%;
473+
.product { max-width: 100%; }
474+
}
475+
&.one-third {
476+
width: 100%;
477+
.product { max-width: 100%; }
478+
}
479+
}
444480
}
445481
#telegraf {
446482
flex-direction: column;

assets/styles/layouts/article/_blocks.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,5 @@ blockquote {
9696
"blocks/tip",
9797
"blocks/important",
9898
"blocks/warning",
99-
"blocks/caution";
99+
"blocks/caution",
100+
"blocks/beta";
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
.block.beta {
2+
@include gradient($grad-burningDusk);
3+
padding: 4px;
4+
border: none;
5+
border-radius: 25px !important;
6+
7+
.beta-content {
8+
background: $article-bg;
9+
border-radius: 21px;
10+
padding: calc(1.65rem - 4px) calc(2rem - 4px) calc(.1rem + 4px) calc(2rem - 4px);
11+
12+
h4 {
13+
color: $article-heading;
14+
}
15+
16+
p {margin-bottom: 1rem;}
17+
18+
.expand-wrapper {
19+
border: none;
20+
margin: .5rem 0 1.5rem;
21+
}
22+
.expand {
23+
border: none;
24+
padding: 0;
25+
26+
.expand-content p {
27+
margin-left: 2rem;
28+
}
29+
30+
ul {
31+
32+
margin-top: -1rem;
33+
34+
&.feedback-channels {
35+
36+
padding: 0;
37+
margin: -1rem 0 1.5rem 2rem;
38+
list-style: none;
39+
40+
a {
41+
color: $article-heading;
42+
font-weight: $medium;
43+
position: relative;
44+
45+
&.discord:before {
46+
content: url('/svgs/discord.svg');
47+
display: inline-block;
48+
height: 1.1rem;
49+
width: 1.25rem;
50+
vertical-align: top;
51+
margin: 2px .65rem 0 0;
52+
}
53+
54+
&.community:before {
55+
content: "\e900";
56+
color: $article-heading;
57+
margin: 0 .65rem 0 0;
58+
font-size: 1.2rem;
59+
font-family: 'icomoon-v2';
60+
vertical-align: middle;
61+
}
62+
63+
&.slack:before {
64+
content: url('/svgs/slack.svg');
65+
display: inline-block;
66+
height: 1.1rem;
67+
width: 1.1rem;
68+
vertical-align: text-top;
69+
margin-right: .65rem;
70+
}
71+
72+
&.reddit:before {
73+
content: url('/svgs/reddit.svg');
74+
display: inline-block;
75+
height: 1.1rem;
76+
width: 1.2rem;
77+
vertical-align: top;
78+
margin: 2px .65rem 0 0;
79+
}
80+
81+
&::after {
82+
content: "\e90a";
83+
font-family: 'icomoon-v4';
84+
font-weight: bold;
85+
font-size: 1.3rem;
86+
display: inline-block;
87+
position: absolute;
88+
@include gradient($grad-burningDusk);
89+
background-clip: text;
90+
-webkit-text-fill-color: transparent;
91+
right: 0;
92+
transform: translateX(.25rem);
93+
opacity: 0;
94+
transition: transform .2s, opacity .2s;
95+
}
96+
97+
&:hover {
98+
&::after {transform: translateX(1.5rem); opacity: 1;}
99+
}
100+
}
101+
}
102+
}
103+
}
104+
}
105+
}

content/enterprise_influxdb/v1/concepts/schema_and_data_layout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ We recommend the following design guidelines for most use cases:
2222

2323
Your queries should guide what data you store in [tags](/enterprise_influxdb/v1/concepts/glossary/#tag) and what you store in [fields](/enterprise_influxdb/v1/concepts/glossary/#field) :
2424

25-
- Store commonly queried and grouping ([`group()`](/flux/v0.x/stdlib/universe/group) or [`GROUP BY`](/enterprise_influxdb/v1/query_language/explore-data/#group-by-tags)) metadata in tags.
25+
- Store commonly queried and grouping ([`group()`](/flux/v0/stdlib/universe/group) or [`GROUP BY`](/enterprise_influxdb/v1/query_language/explore-data/#group-by-tags)) metadata in tags.
2626
- Store data in fields if each data point contains a different value.
2727
- Store numeric values as fields ([tag values](/enterprise_influxdb/v1/concepts/glossary/#tag-value) only support string values).
2828

content/flux/v0/release-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ representative of the Flux SPEC.
433433
details.
434434
- Add tagging support to Flux tests.
435435
- Add new function [`experimental.catch()`](/flux/v0/stdlib/experimental/catch/).
436-
- Add new function [`testing.shouldError()`](/flux/v0.x/stdlib/testing/shoulderror/).
436+
- Add new function [`testing.shouldError()`](/flux/v0/stdlib/testing/shoulderror/).
437437

438438
### Bug fixes
439439

content/influxdb/cloud/account-management/data-usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ menu:
1212
parent: Account management
1313
name: View data usage
1414
related:
15-
- /flux/v0.x/stdlib/experimental/usage/from/
16-
- /flux/v0.x/stdlib/experimental/usage/limits/
15+
- /flux/v0/stdlib/experimental/usage/from/
16+
- /flux/v0/stdlib/experimental/usage/limits/
1717
alt_links:
1818
cloud-serverless: /influxdb3/cloud-serverless/admin/billing/data-usage/
1919
---

content/influxdb/cloud/account-management/limits.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ menu:
99
parent: Account management
1010
name: Adjustable quotas and limits
1111
related:
12-
- /flux/v0.x/stdlib/experimental/usage/from/
13-
- /flux/v0.x/stdlib/experimental/usage/limits/
12+
- /flux/v0/stdlib/experimental/usage/from/
13+
- /flux/v0/stdlib/experimental/usage/limits/
1414
- /influxdb/cloud/write-data/best-practices/resolve-high-cardinality/
1515
alt_links:
1616
cloud-serverless: /influxdb3/cloud-serverless/admin/billing/limits/
@@ -97,7 +97,7 @@ Combine delete predicate expressions (if possible) into a single request. Influx
9797

9898
The {{< product-name >}} UI displays a notification message when service quotas or limits are exceeded. The error messages correspond with the relevant [API error responses](#api-error-responses).
9999

100-
Errors can also be viewed in the [Usage page](/influxdb/cloud/account-management/data-usage/) under **Limit Events**, e.g. `event_type_limited_query`, `event_type_limited_write`,`event_type_limited_cardinality`, or `event_type_limited_delete_rate`.
100+
Errors can also be viewed in the [Usage page](/influxdb/cloud/account-management/data-usage/) under **Limit Events**, for example: `event_type_limited_query`, `event_type_limited_write`,`event_type_limited_cardinality`, or `event_type_limited_delete_rate`.
101101

102102
## API error responses
103103

content/influxdb/cloud/admin/organizations/migrate-org.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ To replicate the state of an organization:
4040
### Write data with Flux
4141
Perform a query to return all specified data.
4242
Write results directly to a bucket in the new organization with the Flux
43-
[`to()` function](/flux/v0.x/stdlib/influxdata/influxdb/to/).
43+
[`to()` function](/flux/v0/stdlib/influxdata/influxdb/to/).
4444

4545
{{% note %}}
4646
If writes are prevented by rate limiting,

0 commit comments

Comments
 (0)