website: upgrades dependencies (#12670)

* upgrades deps and gets it building

* remove unneeded css file

* fix: hide intended elements in print (#12710)

* upgrade deps to latest

Co-authored-by: Zachary Shilton <4624598+zchsh@users.noreply.github.com>
This commit is contained in:
Bryce Kalow
2021-10-07 10:23:19 -05:00
committed by GitHub
parent 7bd2be52c8
commit 0b833db0f4
11 changed files with 24331 additions and 6336 deletions

1
website/.nvmrc Normal file
View File

@@ -0,0 +1 @@
v14

View File

@@ -7,6 +7,7 @@ export default function ProductSubnav() {
return (
<Subnav
className="g-product-subnav"
hideGithubStars={true}
titleLink={{
text: 'vault',

View File

@@ -1,15 +0,0 @@
@import '~@hashicorp/react-subnav/style.css';
/* limit the inner width of the navigation to match the site layout */
.g-subnav {
& .g-subnav-inner {
@media (width < 1288px) {
padding: 0 32px;
}
@media (width >= 1288px) {
padding: 0 calc(50% - 1288px / 2 + 32px);
}
}
}

1
website/global.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
/// <reference types="@hashicorp/platform-types" />

View File

@@ -1,3 +1,5 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="@hashicorp/platform-types" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.

View File

@@ -2,7 +2,7 @@ const withHashicorp = require('@hashicorp/platform-nextjs-plugin')
const redirects = require('./redirects.next')
module.exports = withHashicorp({
transpileModules: ['@hashicorp/versioned-docs'],
nextOptimizedImages: true,
})({
svgo: { plugins: [{ removeViewBox: false }] },
rewrites: () => [

30118
website/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -4,46 +4,46 @@
"version": "1.0.0",
"author": "HashiCorp",
"dependencies": {
"@hashicorp/mktg-global-styles": "4.0.0",
"@hashicorp/mktg-global-styles": "^4.0.0",
"@hashicorp/mktg-logos": "^1.2.0",
"@hashicorp/platform-code-highlighting": "^0.1.1",
"@hashicorp/platform-code-highlighting": "^0.1.2",
"@hashicorp/platform-markdown-utils": "^0.1.3",
"@hashicorp/platform-runtime-error-monitoring": "^0.1.0",
"@hashicorp/platform-util": "^0.1.0",
"@hashicorp/react-alert-banner": "6.2.0",
"@hashicorp/react-button": "^5.2.1",
"@hashicorp/react-case-study-slider": "^6.1.2",
"@hashicorp/react-code-block": "^4.1.4",
"@hashicorp/react-consent-manager": "6.0.0",
"@hashicorp/react-content": "8.0.1",
"@hashicorp/react-docs-page": "14.0.1",
"@hashicorp/react-featured-slider": "^4.1.2",
"@hashicorp/react-hashi-stack-menu": "^2.0.6",
"@hashicorp/react-head": "^3.1.1",
"@hashicorp/react-hero": "7.3.3",
"@hashicorp/react-image": "^4.0.2",
"@hashicorp/react-inline-svg": "^6.0.2",
"@hashicorp/react-logo-grid": "^4.1.2",
"@hashicorp/react-markdown-page": "1.4.2",
"@hashicorp/react-product-downloads-page": "2.4.0",
"@hashicorp/react-section-header": "^5.0.3",
"@hashicorp/react-subnav": "^8.4.0",
"@hashicorp/react-tabs": "^6.0.1",
"@hashicorp/react-text-split": "^3.2.2",
"@hashicorp/react-text-splits": "^3.2.5",
"@hashicorp/react-use-cases": "^4.0.1",
"@hashicorp/react-vertical-text-block-list": "^6.0.3",
"next": "10.2.2",
"@hashicorp/react-alert-banner": "^7.0.1",
"@hashicorp/react-button": "^6.0.1",
"@hashicorp/react-case-study-slider": "^7.0.1",
"@hashicorp/react-code-block": "^4.1.5",
"@hashicorp/react-consent-manager": "^7.0.1",
"@hashicorp/react-content": "^8.0.2",
"@hashicorp/react-docs-page": "^14.4.0",
"@hashicorp/react-featured-slider": "^5.0.1",
"@hashicorp/react-hashi-stack-menu": "^2.0.7",
"@hashicorp/react-head": "^3.1.2",
"@hashicorp/react-hero": "^8.0.2",
"@hashicorp/react-image": "^4.0.3",
"@hashicorp/react-inline-svg": "^6.0.3",
"@hashicorp/react-logo-grid": "^5.0.1",
"@hashicorp/react-markdown-page": "^1.4.3",
"@hashicorp/react-product-downloads-page": "^2.5.2",
"@hashicorp/react-section-header": "^5.0.4",
"@hashicorp/react-subnav": "^9.0.1",
"@hashicorp/react-tabs": "^7.0.1",
"@hashicorp/react-text-split": "^4.0.0",
"@hashicorp/react-text-splits": "^3.2.7",
"@hashicorp/react-use-cases": "^5.0.0",
"@hashicorp/react-vertical-text-block-list": "^7.0.0",
"next": "^11.1.2",
"next-mdx-remote": "3.0.2",
"next-remote-watch": "1.0.0",
"react": "16.14.0",
"react-dom": "16.14.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"tippy.js": "4.0.0"
},
"devDependencies": {
"@hashicorp/platform-cli": "^0.2.0",
"@hashicorp/platform-nextjs-plugin": "^0.1.0",
"@hashicorp/platform-types": "^0.1.0",
"@hashicorp/platform-cli": "^1.2.0",
"@hashicorp/platform-nextjs-plugin": "^1.0.1",
"@hashicorp/platform-types": "^0.1.1",
"@types/react": "^17.0.11",
"dart-linkcheck": "^2.0.15",
"husky": "^4.3.8",
@@ -67,5 +67,8 @@
"lint": "next-hashicorp lint",
"start": "next-remote-watch './content/**/*.mdx'",
"static": "npm run build && npm run export && cp _redirects out/."
},
"engines": {
"npm": ">=7.0.0"
}
}

View File

@@ -65,7 +65,7 @@ export default function App({ Component, pageProps }) {
<ProductSubnav />
<Component {...pageProps} />
<Footer openConsentManager={openConsentManager} />
<ConsentManager />
<ConsentManager className="g-consent-manager" />
</ErrorBoundary>
)
}

View File

@@ -1,9 +1,10 @@
/* Print Styles - Hide Elements */
@media print {
iframe,
.g-mega-nav,
#__next > header,
.g-product-subnav,
.g-footer,
.g-consent-manager,
[aria-hidden='true'],
[id='sidebar'],
[id='edit-this-page'],
@@ -237,4 +238,3 @@
}
}
}

View File

@@ -5,24 +5,8 @@
--highlight-color: var(--brand-link);
}
@import '~@hashicorp/react-consent-manager/style.css';
@import '~@hashicorp/react-toggle/style.css';
@import '~@hashicorp/react-alert-banner/style.css';
@import '~@hashicorp/react-button/styles/index.css';
@import '~@hashicorp/react-featured-slider/style.css';
@import '~@hashicorp/react-hero/style.css';
@import '~@hashicorp/react-logo-grid/style.css';
@import '~@hashicorp/react-search/style.css';
@import '~@hashicorp/react-tabs/style.css';
@import '~@hashicorp/react-text-split/style.css';
@import '~@hashicorp/react-use-cases/style.css';
@import '~@hashicorp/react-vertical-text-block-list/style.css';
/* Global Components - Transpiled */
/* Local Components */
@import '../components/footer/style.css';
@import '../components/subnav/style.css';
@import '../components/use-case-cta-section/style.css';
/* Pages */