Skip to content

Commit 89ca4b4

Browse files
Bugfix/mr to master (#781) (#782)
* feat: CORE-4429 open pdf in new tab * CORE-4429 babel config * update dependencies * [CORE-4431] docs-membership (#773) * [bugfix] Update lock * [bugfix] Add babel/runtime * [bugfix] Config babel/runtime * [bugfix] Config babel/runtime * [bugfix] Config babel/runtime --------- Co-authored-by: Eka <[email protected]>
1 parent 6535513 commit 89ca4b4

File tree

6 files changed

+1974
-1725
lines changed

6 files changed

+1974
-1725
lines changed

babel.config.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,24 @@ module.exports = (api) => {
66
'@babel/preset-env',
77
{
88
useBuiltIns: 'usage',
9-
corejs: 3,
9+
corejs: '3',
1010
},
1111
],
1212
'@babel/react',
1313
]
1414
const plugins = [
15+
'@babel/plugin-proposal-export-default-from',
1516
[
1617
'@babel/plugin-proposal-decorators',
1718
{
1819
legacy: true,
1920
},
2021
],
2122
'@babel/plugin-proposal-class-properties',
23+
'@babel/plugin-syntax-dynamic-import',
24+
'@babel/plugin-proposal-optional-chaining',
2225
'@babel/plugin-proposal-nullish-coalescing-operator',
26+
'@babel/plugin-transform-runtime',
2327
]
2428

2529
return {

components/hero/index.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { Section } from '../content'
55
import styles from './hero.module.scss'
66
import stylesHistory from '../../templates/history/history.module.scss'
77

8+
// eslint-disable-next-line import/no-cycle
89
import { AnniversaryLogo as Logo } from 'components'
910

1011
const HeroSection = ({

components/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const patchStats = (text, statistics) => {
3232

3333
export const patchNumberComma = (text, statistics) => {
3434
const context = {}
35-
// eslint-disable-next-line no-restricted-syntax,max-len
35+
// eslint-disable-next-line no-restricted-syntax
3636
for (const [key, value] of Object.entries(statistics)) {
3737
context[key] =
3838
typeof value === 'number'

netlify-cms.config.yml

+42
Original file line numberDiff line numberDiff line change
@@ -1132,3 +1132,45 @@ collections:
11321132
widget: markdown
11331133
required: false
11341134
label: Fields description
1135+
1136+
- name: docs-membership
1137+
1138+
media_folder: '/images/docs-membership'
1139+
1140+
create: false
1141+
delete: false
1142+
1143+
label: 📘 Documentation membership
1144+
label_singular: section
1145+
description: >
1146+
Documentation membership page for Dashboard and About
1147+
files:
1148+
- name: meta
1149+
label: ℹ️ Metadata (title, description, headline)
1150+
file: docs-membership/meta.yml
1151+
fields:
1152+
- name: title
1153+
widget: string
1154+
label: Title
1155+
hint: >
1156+
Displayed in the browser as a tab name and in Google, when
1157+
the page appears in the search results.
1158+
- name: tagline
1159+
widget: text
1160+
label: Description
1161+
hint: >
1162+
Description of the page, not visible on the page but will be shown
1163+
in search engines when the page appers in results. Important
1164+
to have good performance in search engines.
1165+
- name: header
1166+
label: Header(title,description,image)
1167+
file: docs-membership/header.yml
1168+
fields:
1169+
- name: title
1170+
widget: string
1171+
hint: >
1172+
The title of the page. Displayed on the page below header.
1173+
- name: id
1174+
widget: string
1175+
label: id
1176+
hint: id of the block. Must match anchor link url

0 commit comments

Comments
 (0)