Skip to content

Commit a90a677

Browse files
authored
Add Mixpanel + migrate to pnpm + update dependencies (incl. React 18 and Next 13) (#300)
1 parent ef15c3f commit a90a677

19 files changed

+808
-967
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
ALGOLIA_API_KEY=9a358df50b02a5b66efeecbc0a2cab3d
22
ALGOLIA_APP_ID=WQ5FYJCL00
3-
NPM_TOKEN=
3+
SITE_URL=https://thegraph.com/docs

.env.example

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/workflows/ci-cd-production.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
access_token: ${{ github.token }}
2121

2222
- name: Checkout the repo
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v3
2424

2525
- name: Login to GitHub Container Registry
2626
uses: docker/login-action@v1
@@ -45,7 +45,7 @@ jobs:
4545
needs: build
4646
steps:
4747
- name: Checkout the repo
48-
uses: actions/checkout@v2
48+
uses: actions/checkout@v3
4949

5050
- name: Authenticate to GCP
5151
uses: google-github-actions/auth@v1

.github/workflows/ci-cd-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
access_token: ${{ github.token }}
1717

1818
- name: Checkout the repo
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
2020

2121
- name: Build Docker image
2222
uses: docker/build-push-action@v2

.github/workflows/ci-cd-staging.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
access_token: ${{ github.token }}
2222

2323
- name: Checkout the repo
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v3
2525

2626
- name: Login to GitHub Container Registry
2727
uses: docker/login-action@v1
@@ -46,7 +46,7 @@ jobs:
4646
needs: build
4747
steps:
4848
- name: Checkout the repo
49-
uses: actions/checkout@v2
49+
uses: actions/checkout@v3
5050

5151
- name: Authenticate to GCP
5252
uses: google-github-actions/auth@v1

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
enable-pre-post-scripts=true
12
engine-strict=true

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
18.14

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.yalc
22
.next
33
/out/
4+
pnpm-lock.yaml

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:16.13.1-alpine3.14 as builder
1+
FROM node:18-alpine as builder
22

33
RUN apk add --no-cache git
44
RUN npm install -g pnpm

components/Code.tsx

Lines changed: 1 addition & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -6,103 +6,7 @@ import { BorderRadius, FontFamily, Spacing } from '@edgeandnode/components'
66
export type CodeBlockProps = HTMLAttributes<HTMLPreElement>
77
export type CodeInlineProps = HTMLAttributes<HTMLElement>
88

9-
// import theme from 'prism-react-renderer/themes/duotoneDark'
10-
// TODO: Replace the following theme definition with the above import when this PR is merged and available in a release: https://github.com/FormidableLabs/prism-react-renderer/pull/134
11-
const theme: PrismTheme = {
12-
plain: {
13-
backgroundColor: '#2a2734',
14-
color: '#9a86fd',
15-
},
16-
styles: [
17-
{
18-
types: ['comment', 'prolog', 'doctype', 'cdata', 'punctuation'],
19-
style: {
20-
color: '#6c6783',
21-
},
22-
},
23-
{
24-
types: ['namespace'],
25-
style: {
26-
opacity: 0.7,
27-
},
28-
},
29-
{
30-
types: ['tag', 'operator', 'number'],
31-
style: {
32-
color: '#e09142',
33-
},
34-
},
35-
{
36-
types: ['property', 'function'],
37-
style: {
38-
color: '#9a86fd',
39-
},
40-
},
41-
{
42-
types: ['tag-id', 'selector', 'atrule-id'],
43-
style: {
44-
color: '#eeebff',
45-
},
46-
},
47-
{
48-
types: ['attr-name'],
49-
style: {
50-
color: '#c4b9fe',
51-
},
52-
},
53-
{
54-
types: [
55-
'boolean',
56-
'string',
57-
'entity',
58-
'url',
59-
'attr-value',
60-
'keyword',
61-
'control',
62-
'directive',
63-
'unit',
64-
'statement',
65-
'regex',
66-
'atrule',
67-
'placeholder',
68-
'variable',
69-
],
70-
style: {
71-
color: '#ffcc99',
72-
},
73-
},
74-
{
75-
types: ['deleted'],
76-
style: {
77-
textDecorationLine: 'line-through',
78-
},
79-
},
80-
{
81-
types: ['inserted'],
82-
style: {
83-
textDecorationLine: 'underline',
84-
},
85-
},
86-
{
87-
types: ['italic'],
88-
style: {
89-
fontStyle: 'italic',
90-
},
91-
},
92-
{
93-
types: ['important', 'bold'],
94-
style: {
95-
fontWeight: 'bold',
96-
},
97-
},
98-
{
99-
types: ['important'],
100-
style: {
101-
color: '#c4b9fe',
102-
},
103-
},
104-
],
105-
}
9+
import theme from 'prism-react-renderer/themes/duotoneDark'
10610

10711
export const CodeBlock = ({ children, ...props }: CodeBlockProps) => {
10812
const data = (

0 commit comments

Comments
 (0)