Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
332e784b
Unverified
Commit
332e784b
authored
Jan 25, 2023
by
tom goriunov
Committed by
GitHub
Jan 25, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #550 from blockscout/node-v18
node v18
parents
8e7271f0
a341cc19
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
45 additions
and
40 deletions
+45
-40
linters.yml
.github/workflows/linters.yml
+1
-1
unit-tests.yml
.github/workflows/unit-tests.yml
+2
-2
.nvmrc
.nvmrc
+1
-1
Dockerfile
Dockerfile
+3
-3
package.json
package.json
+4
-4
search-results.tsx
pages/search-results.tsx
+6
-1
yarn.lock
yarn.lock
+28
-28
No files found.
.github/workflows/linters.yml
View file @
332e784b
...
@@ -13,7 +13,7 @@ jobs:
...
@@ -13,7 +13,7 @@ jobs:
-
uses
:
actions/checkout@v3
-
uses
:
actions/checkout@v3
-
uses
:
actions/setup-node@v3
-
uses
:
actions/setup-node@v3
with
:
with
:
node-version
:
1
6
node-version
:
1
8
cache
:
'
yarn'
cache
:
'
yarn'
-
name
:
Install dependencies
-
name
:
Install dependencies
run
:
yarn install --frozen-lockfile
run
:
yarn install --frozen-lockfile
...
...
.github/workflows/unit-tests.yml
View file @
332e784b
...
@@ -13,7 +13,7 @@ jobs:
...
@@ -13,7 +13,7 @@ jobs:
-
uses
:
actions/checkout@v3
-
uses
:
actions/checkout@v3
-
uses
:
actions/setup-node@v3
-
uses
:
actions/setup-node@v3
with
:
with
:
node-version
:
1
6
node-version
:
1
8
cache
:
'
yarn'
cache
:
'
yarn'
-
name
:
Install dependencies
-
name
:
Install dependencies
run
:
yarn install --frozen-lockfile
run
:
yarn install --frozen-lockfile
...
@@ -33,7 +33,7 @@ jobs:
...
@@ -33,7 +33,7 @@ jobs:
lfs
:
'
true'
lfs
:
'
true'
-
uses
:
actions/setup-node@v3
-
uses
:
actions/setup-node@v3
with
:
with
:
node-version
:
1
6
node-version
:
1
8
cache
:
'
yarn'
cache
:
'
yarn'
-
name
:
Install dependencies
-
name
:
Install dependencies
run
:
yarn install --frozen-lockfile
run
:
yarn install --frozen-lockfile
...
...
.nvmrc
View file @
332e784b
1
6
1
8
Dockerfile
View file @
332e784b
# Install dependencies only when needed
# Install dependencies only when needed
FROM
node:1
6
-alpine AS deps
FROM
node:1
8
-alpine AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN
apk add
--no-cache
libc6-compat
RUN
apk add
--no-cache
libc6-compat
WORKDIR
/app
WORKDIR
/app
...
@@ -10,7 +10,7 @@ RUN apk add git
...
@@ -10,7 +10,7 @@ RUN apk add git
RUN
yarn
--frozen-lockfile
RUN
yarn
--frozen-lockfile
# Rebuild the source code only when needed
# Rebuild the source code only when needed
FROM
node:1
6
-alpine AS builder
FROM
node:1
8
-alpine AS builder
WORKDIR
/app
WORKDIR
/app
COPY
--from=deps /app/node_modules ./node_modules
COPY
--from=deps /app/node_modules ./node_modules
COPY
. .
COPY
. .
...
@@ -33,7 +33,7 @@ ENV NEXT_PUBLIC_GIT_COMMIT_SHA=$GIT_COMMIT_SHA
...
@@ -33,7 +33,7 @@ ENV NEXT_PUBLIC_GIT_COMMIT_SHA=$GIT_COMMIT_SHA
RUN
yarn build
RUN
yarn build
# Production image, copy all the files and run next
# Production image, copy all the files and run next
FROM
node:1
6
-alpine AS runner
FROM
node:1
8
-alpine AS runner
WORKDIR
/app
WORKDIR
/app
ENV
NODE_ENV production
ENV
NODE_ENV production
...
...
package.json
View file @
332e784b
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
"private"
:
true
,
"private"
:
true
,
"homepage"
:
"
https://github.com/blockscout/frontend#readme
"
,
"homepage"
:
"
https://github.com/blockscout/frontend#readme
"
,
"engines"
:
{
"engines"
:
{
"node"
:
"1
6
"
,
"node"
:
"1
8
"
,
"npm"
:
"8"
"npm"
:
"8"
},
},
"scripts"
:
{
"scripts"
:
{
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
"
@types/dom-to-image
"
:
"
^2.6.4
"
,
"
@types/dom-to-image
"
:
"
^2.6.4
"
,
"
@types/jest
"
:
"
^29.2.0
"
,
"
@types/jest
"
:
"
^29.2.0
"
,
"
@types/js-cookie
"
:
"
^3.0.2
"
,
"
@types/js-cookie
"
:
"
^3.0.2
"
,
"
@types/node
"
:
"
1
7.0.36
"
,
"
@types/node
"
:
"
1
8.11.18
"
,
"
@types/phoenix
"
:
"
^1.5.4
"
,
"
@types/phoenix
"
:
"
^1.5.4
"
,
"
@types/qrcode
"
:
"
^1.5.0
"
,
"
@types/qrcode
"
:
"
^1.5.0
"
,
"
@types/react
"
:
"
18.0.9
"
,
"
@types/react
"
:
"
18.0.9
"
,
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
"
@types/ws
"
:
"
^8.5.3
"
,
"
@types/ws
"
:
"
^8.5.3
"
,
"
@typescript-eslint/eslint-plugin
"
:
"
^5.27.0
"
,
"
@typescript-eslint/eslint-plugin
"
:
"
^5.27.0
"
,
"
dotenv-cli
"
:
"
^6.0.0
"
,
"
dotenv-cli
"
:
"
^6.0.0
"
,
"
eslint
"
:
"
^8.
28
.0
"
,
"
eslint
"
:
"
^8.
32
.0
"
,
"
eslint-config-next
"
:
"
^12.3.0
"
,
"
eslint-config-next
"
:
"
^12.3.0
"
,
"
eslint-plugin-es5
"
:
"
^1.5.0
"
,
"
eslint-plugin-es5
"
:
"
^1.5.0
"
,
"
eslint-plugin-import-helpers
"
:
"
^1.2.1
"
,
"
eslint-plugin-import-helpers
"
:
"
^1.2.1
"
,
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
"
svgo
"
:
"
^2.8.0
"
,
"
svgo
"
:
"
^2.8.0
"
,
"
ts-jest
"
:
"
^29.0.3
"
,
"
ts-jest
"
:
"
^29.0.3
"
,
"
ts-node
"
:
"
^10.9.1
"
,
"
ts-node
"
:
"
^10.9.1
"
,
"
typescript
"
:
"
4.
7
.2
"
,
"
typescript
"
:
"
4.
8
.2
"
,
"
vite-plugin-svgr
"
:
"
^2.2.2
"
,
"
vite-plugin-svgr
"
:
"
^2.2.2
"
,
"
vite-tsconfig-paths
"
:
"
^3.5.2
"
,
"
vite-tsconfig-paths
"
:
"
^3.5.2
"
,
"
ws
"
:
"
^8.11.0
"
"
ws
"
:
"
^8.11.0
"
...
...
pages/search-results.tsx
View file @
332e784b
...
@@ -30,7 +30,12 @@ export const getServerSideProps: GetServerSideProps<Props> = async({ req, res, r
...
@@ -30,7 +30,12 @@ export const getServerSideProps: GetServerSideProps<Props> = async({ req, res, r
try
{
try
{
const
q
=
String
(
query
.
q
);
const
q
=
String
(
query
.
q
);
const
url
=
buildUrlNode
(
'
search_check_redirect
'
,
undefined
,
{
q
});
const
url
=
buildUrlNode
(
'
search_check_redirect
'
,
undefined
,
{
q
});
const
redirectsResponse
=
await
fetchFactory
(
req
)(
url
);
const
redirectsResponse
=
await
fetchFactory
(
req
)(
url
,
{
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore:next-line timeout property exist for AbortSignal since Node.js 17 - https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
// but @types/node has not updated their types yet, see issue https://github.com/DefinitelyTyped/DefinitelyTyped/issues/60868
signal
:
AbortSignal
.
timeout
(
1
_000
),
});
const
payload
=
await
redirectsResponse
.
json
()
as
SearchRedirectResult
;
const
payload
=
await
redirectsResponse
.
json
()
as
SearchRedirectResult
;
if
(
!
payload
||
typeof
payload
!==
'
object
'
||
!
payload
.
redirect
)
{
if
(
!
payload
||
typeof
payload
!==
'
object
'
||
!
payload
.
redirect
)
{
...
...
yarn.lock
View file @
332e784b
...
@@ -2006,15 +2006,15 @@
...
@@ -2006,15 +2006,15 @@
resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.15.10.tgz#78a42897c2cf8db9fd5f1811f7590393b77774c7"
resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.15.10.tgz#78a42897c2cf8db9fd5f1811f7590393b77774c7"
integrity sha512-w0Ou3Z83LOYEkwaui2M8VwIp+nLi/NA60lBLMvaJ+vXVMcsARYdEzLNE7RSm4+lSg4zq4d7fAVuzk7PNQ5JFgg==
integrity sha512-w0Ou3Z83LOYEkwaui2M8VwIp+nLi/NA60lBLMvaJ+vXVMcsARYdEzLNE7RSm4+lSg4zq4d7fAVuzk7PNQ5JFgg==
"@eslint/eslintrc@^1.
3.3
":
"@eslint/eslintrc@^1.
4.1
":
version "1.
3.3
"
version "1.
4.1
"
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.
3.3.tgz#2b044ab39fdfa75b4688184f9e573ce3c5b0ff95
"
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.
4.1.tgz#af58772019a2d271b7e2d4c23ff4ddcba3ccfb3e
"
integrity sha512-
uj3pT6Mg+3t39fvLrj8iuCIJ38zKO9FpGtJ4BBJebJhEwjoT+KLVNCcHT5QC9NGRIEi7fZ0ZR8YRb884auB4Lg
==
integrity sha512-
XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA
==
dependencies:
dependencies:
ajv "^6.12.4"
ajv "^6.12.4"
debug "^4.3.2"
debug "^4.3.2"
espree "^9.4.0"
espree "^9.4.0"
globals "^13.1
5
.0"
globals "^13.1
9
.0"
ignore "^5.2.0"
ignore "^5.2.0"
import-fresh "^3.2.1"
import-fresh "^3.2.1"
js-yaml "^4.1.0"
js-yaml "^4.1.0"
...
@@ -2363,10 +2363,10 @@
...
@@ -2363,10 +2363,10 @@
"@ethersproject/properties" "^5.7.0"
"@ethersproject/properties" "^5.7.0"
"@ethersproject/strings" "^5.7.0"
"@ethersproject/strings" "^5.7.0"
"@humanwhocodes/config-array@^0.11.
6
":
"@humanwhocodes/config-array@^0.11.
8
":
version "0.11.
7
"
version "0.11.
8
"
resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.
7.tgz#38aec044c6c828f6ed51d5d7ae3d9b9faf6dbb0f
"
resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.
8.tgz#03595ac2075a4dc0f191cc2131de14fbd7d410b9
"
integrity sha512-
kBbPWzN8oVMLb0hOUYXhmxggL/1cJE6ydvjDIGi9EnAGUyA7cLVKQg+d/Dsm+KZwx2czGHrCmMVLiyg8s5JPKw
==
integrity sha512-
UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g
==
dependencies:
dependencies:
"@humanwhocodes/object-schema" "^1.2.1"
"@humanwhocodes/object-schema" "^1.2.1"
debug "^4.1.1"
debug "^4.1.1"
...
@@ -3958,10 +3958,10 @@
...
@@ -3958,10 +3958,10 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.8.4.tgz#54be907698f40de8a45770b48486aa3cbd3adff7"
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.8.4.tgz#54be907698f40de8a45770b48486aa3cbd3adff7"
integrity sha512-WdlVphvfR/GJCLEMbNA8lJ0lhFNBj4SW3O+O5/cEGw9oYrv0al9zTwuQsq+myDUXgNx2jgBynoVgZ2MMJ6pbow==
integrity sha512-WdlVphvfR/GJCLEMbNA8lJ0lhFNBj4SW3O+O5/cEGw9oYrv0al9zTwuQsq+myDUXgNx2jgBynoVgZ2MMJ6pbow==
"@types/node@1
7.0.36
":
"@types/node@1
8.11.18
":
version "1
7.0.36
"
version "1
8.11.18
"
resolved "https://registry.yarnpkg.com/@types/node/-/node-1
7.0.36.tgz#c0d5f2fe76b47b63e0e0efc3d2049a9970d68794
"
resolved "https://registry.yarnpkg.com/@types/node/-/node-1
8.11.18.tgz#8dfb97f0da23c2293e554c5a50d61ef134d7697f
"
integrity sha512-
V3orv+ggDsWVHP99K3JlwtH20R7J4IhI1Kksgc+64q5VxgfRkQG8Ws3MFm/FZOKDYGy9feGFlZ70/HpCNe9Qa
A==
integrity sha512-
DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/J
A==
"@types/node@^12.12.54":
"@types/node@^12.12.54":
version "12.20.55"
version "12.20.55"
...
@@ -6731,13 +6731,13 @@ eslint-visitor-keys@^3.3.0:
...
@@ -6731,13 +6731,13 @@ eslint-visitor-keys@^3.3.0:
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826"
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826"
integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==
integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==
eslint@^8.
28
.0:
eslint@^8.
32
.0:
version "8.
28
.0"
version "8.
32
.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.
28.0.tgz#81a680732634677cc890134bcdd9fdfea8e63d6e
"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.
32.0.tgz#d9690056bb6f1a302bd991e7090f5b68fbaea861
"
integrity sha512-
S27Di+EVyMxcHiwDrFzk8dJYAaD+/5SoWKxL1ri/71CRHsnJnRDPNt2Kzj24+MT9FDupf4aqqyqPrvI8MvQ4V
Q==
integrity sha512-
nETVXpnthqKPFyuY2FNjz/bEd6nbosRgKbkgS/y1C7LJop96gYHWpiguLecMHQ2XCPxn77DS0P+68WzG6vkZS
Q==
dependencies:
dependencies:
"@eslint/eslintrc" "^1.
3.3
"
"@eslint/eslintrc" "^1.
4.1
"
"@humanwhocodes/config-array" "^0.11.
6
"
"@humanwhocodes/config-array" "^0.11.
8
"
"@humanwhocodes/module-importer" "^1.0.1"
"@humanwhocodes/module-importer" "^1.0.1"
"@nodelib/fs.walk" "^1.2.8"
"@nodelib/fs.walk" "^1.2.8"
ajv "^6.10.0"
ajv "^6.10.0"
...
@@ -6756,7 +6756,7 @@ eslint@^8.28.0:
...
@@ -6756,7 +6756,7 @@ eslint@^8.28.0:
file-entry-cache "^6.0.1"
file-entry-cache "^6.0.1"
find-up "^5.0.0"
find-up "^5.0.0"
glob-parent "^6.0.2"
glob-parent "^6.0.2"
globals "^13.1
5
.0"
globals "^13.1
9
.0"
grapheme-splitter "^1.0.4"
grapheme-splitter "^1.0.4"
ignore "^5.2.0"
ignore "^5.2.0"
import-fresh "^3.0.0"
import-fresh "^3.0.0"
...
@@ -7451,10 +7451,10 @@ globals@^11.1.0:
...
@@ -7451,10 +7451,10 @@ globals@^11.1.0:
resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e"
resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e"
integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==
integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==
globals@^13.1
5
.0:
globals@^13.1
9
.0:
version "13.1
7
.0"
version "13.1
9
.0"
resolved "https://registry.yarnpkg.com/globals/-/globals-13.1
7.0.tgz#902eb1e680a41da93945adbdcb5a9f361ba69bd4
"
resolved "https://registry.yarnpkg.com/globals/-/globals-13.1
9.0.tgz#7a42de8e6ad4f7242fbcca27ea5b23aca367b5c8
"
integrity sha512-
1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw
==
integrity sha512-
dkQ957uSRWHw7CFXLUtUHQI3g3aWApYhfNR2O6jn/907riyTYKVBmxYVROkBcY614FSSeSJh7Xm7SrUWCxvJMQ
==
dependencies:
dependencies:
type-fest "^0.20.2"
type-fest "^0.20.2"
...
@@ -10870,10 +10870,10 @@ typedarray-to-buffer@3.1.5:
...
@@ -10870,10 +10870,10 @@ typedarray-to-buffer@3.1.5:
dependencies:
dependencies:
is-typedarray "^1.0.0"
is-typedarray "^1.0.0"
typescript@4.
7
.2:
typescript@4.
8
.2:
version "4.
7
.2"
version "4.
8
.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.
7.2.tgz#1f9aa2ceb9af87cca227813b4310fff0b51593c4
"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.
8.2.tgz#e3b33d5ccfb5914e4eeab6699cf208adee3fd790
"
integrity sha512-
Mamb1iX2FDUpcTRzltPxgWMKy3fhg0TN378ylbktPGPK/99KbDtMQ4W1hwgsbPAsG3a0xKa1vmw4VKZQbkvz5A
==
integrity sha512-
C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw
==
uint8arrays@3.1.0:
uint8arrays@3.1.0:
version "3.1.0"
version "3.1.0"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment