web: migrate to web platform- packages (#12462)
This commit is contained in:
parent
339e88dfb2
commit
9bbda1f42b
@ -1,4 +1,4 @@
|
||||
module.exports = {
|
||||
...require('@hashicorp/nextjs-scripts/.eslintrc.js'),
|
||||
...require('@hashicorp/platform-cli/config/.eslintrc'),
|
||||
ignorePatterns: ['public/'],
|
||||
}
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
module.exports = {
|
||||
...require('@hashicorp/nextjs-scripts/.stylelintrc.js'),
|
||||
...require('@hashicorp/platform-cli/config/stylelint.config'),
|
||||
}
|
||||
|
||||
@ -18,6 +18,7 @@ export default function VagrantSubnav() {
|
||||
menuItemsAlign="right"
|
||||
menuItems={subnavItems}
|
||||
constrainWidth
|
||||
matchOnBasePath
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
1
website/next-env.d.ts
vendored
1
website/next-env.d.ts
vendored
@ -1,2 +1,3 @@
|
||||
/// <reference types="next" />
|
||||
/// <reference types="next/types/global" />
|
||||
/// <reference types="@hashicorp/platform-types" />
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
const withHashicorp = require('@hashicorp/nextjs-scripts')
|
||||
const withHashicorp = require('@hashicorp/platform-nextjs-plugin')
|
||||
const redirects = require('./redirects.next')
|
||||
|
||||
console.log(`Environment: ${process.env.HASHI_ENV}`)
|
||||
|
||||
4816
website/package-lock.json
generated
4816
website/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -4,21 +4,25 @@
|
||||
"version": "1.0.0",
|
||||
"author": "HashiCorp",
|
||||
"dependencies": {
|
||||
"@hashicorp/mktg-global-styles": "^3.0.1",
|
||||
"@hashicorp/nextjs-scripts": "19.0.2",
|
||||
"@hashicorp/react-alert-banner": "^6.1.1",
|
||||
"@hashicorp/react-button": "^5.0.1",
|
||||
"@hashicorp/react-code-block": "4.1.2",
|
||||
"@hashicorp/react-docs-page": "13.2.0",
|
||||
"@hashicorp/react-hashi-stack-menu": "2.0.5",
|
||||
"@hashicorp/react-head": "3.1.0",
|
||||
"@hashicorp/react-product-downloader": "4.1.5",
|
||||
"@hashicorp/react-product-downloads-page": "2.0.2",
|
||||
"@hashicorp/react-search": "^5.0.2",
|
||||
"@hashicorp/react-section-header": "5.0.2",
|
||||
"@hashicorp/react-subnav": "^8.1.0",
|
||||
"@hashicorp/react-tabs": "6.0.1",
|
||||
"@hashicorp/react-vertical-text-block-list": "6.0.2",
|
||||
"@hashicorp/mktg-global-styles": "^3.1.0",
|
||||
"@hashicorp/platform-code-highlighting": "^0.1.1",
|
||||
"@hashicorp/platform-runtime-error-monitoring": "^0.1.0",
|
||||
"@hashicorp/platform-util": "^0.1.0",
|
||||
"@hashicorp/react-alert-banner": "^6.1.2",
|
||||
"@hashicorp/react-button": "^5.2.1",
|
||||
"@hashicorp/react-code-block": "^4.1.4",
|
||||
"@hashicorp/react-consent-manager": "^5.3.2",
|
||||
"@hashicorp/react-docs-page": "^13.5.1",
|
||||
"@hashicorp/react-hashi-stack-menu": "^2.0.6",
|
||||
"@hashicorp/react-head": "^3.1.1",
|
||||
"@hashicorp/react-inline-svg": "^6.0.2",
|
||||
"@hashicorp/react-product-downloader": "^4.1.5",
|
||||
"@hashicorp/react-product-downloads-page": "^2.3.1",
|
||||
"@hashicorp/react-search": "^5.1.1",
|
||||
"@hashicorp/react-section-header": "^5.0.3",
|
||||
"@hashicorp/react-subnav": "^8.4.0",
|
||||
"@hashicorp/react-tabs": "^6.0.1",
|
||||
"@hashicorp/react-vertical-text-block-list": "^6.0.3",
|
||||
"next": "10.1.3",
|
||||
"next-mdx-remote": "3.0.1",
|
||||
"next-remote-watch": "^1.0.0",
|
||||
@ -26,10 +30,14 @@
|
||||
"react-dom": "16.13.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@hashicorp/platform-cli": "^0.2.0",
|
||||
"@hashicorp/platform-nextjs-plugin": "^0.1.0",
|
||||
"@hashicorp/platform-types": "^0.1.0",
|
||||
"@types/react": "^17.0.3",
|
||||
"dart-linkcheck": "2.0.15",
|
||||
"husky": "4.3.6",
|
||||
"prettier": "2.2.1"
|
||||
"prettier": "2.2.1",
|
||||
"typescript": "^4.3.5"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
import './style.css'
|
||||
import '@hashicorp/nextjs-scripts/lib/nprogress/style.css'
|
||||
import '@hashicorp/platform-util/nprogress/style.css'
|
||||
|
||||
import NProgress from '@hashicorp/nextjs-scripts/lib/nprogress'
|
||||
import createConsentManager from '@hashicorp/nextjs-scripts/lib/consent-manager'
|
||||
import useAnchorLinkAnalytics from '@hashicorp/nextjs-scripts/lib/anchor-link-analytics'
|
||||
import NProgress from '@hashicorp/platform-util/nprogress'
|
||||
import createConsentManager from '@hashicorp/react-consent-manager/loader'
|
||||
import useAnchorLinkAnalytics from '@hashicorp/platform-util/anchor-link-analytics'
|
||||
import Router from 'next/router'
|
||||
import HashiHead from '@hashicorp/react-head'
|
||||
import Head from 'next/head'
|
||||
import { ErrorBoundary } from '@hashicorp/nextjs-scripts/lib/bugsnag'
|
||||
import { ErrorBoundary } from '@hashicorp/platform-runtime-error-monitoring'
|
||||
import HashiStackMenu from '@hashicorp/react-hashi-stack-menu'
|
||||
import ProductSubnav from '../components/subnav'
|
||||
import Footer from '../components/footer'
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import NotFound from './404'
|
||||
import Bugsnag from '@hashicorp/nextjs-scripts/lib/bugsnag'
|
||||
import Bugsnag from '@hashicorp/platform-runtime-error-monitoring'
|
||||
|
||||
function Error({ statusCode }) {
|
||||
return <NotFound statusCode={statusCode} />
|
||||
|
||||
@ -49,20 +49,14 @@ export default function DownloadsPage(staticProps) {
|
||||
packageManagerOverrides={[
|
||||
{
|
||||
label: 'Homebrew',
|
||||
commands: [
|
||||
`brew tap hashicorp/tap`,
|
||||
`brew install ${productSlug}`,
|
||||
],
|
||||
commands: [`brew tap hashicorp/tap`, `brew install ${productSlug}`],
|
||||
os: 'darwin',
|
||||
},
|
||||
{
|
||||
label: 'Homebrew',
|
||||
commands: [
|
||||
`brew tap hashicorp/tap`,
|
||||
`brew install ${productSlug}`,
|
||||
],
|
||||
commands: [`brew tap hashicorp/tap`, `brew install ${productSlug}`],
|
||||
os: 'linux',
|
||||
},
|
||||
},
|
||||
]}
|
||||
{...staticProps}
|
||||
/>
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
module.exports = {
|
||||
...require('@hashicorp/nextjs-scripts/prettier.config.js'),
|
||||
...require('@hashicorp/platform-cli/config/prettier.config'),
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user