Skip to content

Commit 9a757b2

Browse files
authored
Merge pull request #177 from getsentry/ryan953/vite
ref: Rebuild the client with vite and updated deps
2 parents 4e3c5ed + 522420a commit 9a757b2

39 files changed

+3733
-38393
lines changed

.eslintrc.json

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

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ test: test-install
2424
test-install: echo-exports
2525
npm install --legacy-peer-deps
2626
npm install --legacy-peer-deps --prefix ./server
27-
npm install --legacy-peer-deps --prefix ./client
27+
npm install --prefix ./client
2828

2929
# Launch a local development server for working on the
3030
# React www app (points at deployed/production validation fn)

client/.gitignore

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# See https://help.github.com/ignore-files/ for more about ignoring files.
2-
31
# dependencies
42
/node_modules
53

@@ -16,6 +14,27 @@
1614
.env.test.local
1715
.env.production.local
1816

17+
# Logs
18+
logs
19+
*.log
1920
npm-debug.log*
2021
yarn-debug.log*
2122
yarn-error.log*
23+
pnpm-debug.log*
24+
lerna-debug.log*
25+
26+
node_modules
27+
dist
28+
dist-ssr
29+
*.local
30+
31+
# Editor directories and files
32+
.vscode/*
33+
!.vscode/extensions.json
34+
.idea
35+
.DS_Store
36+
*.suo
37+
*.ntvs*
38+
*.njsproj
39+
*.sln
40+
*.sw?

client/README.md

Lines changed: 35 additions & 2123 deletions
Large diffs are not rendered by default.

client/eslint.config.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import js from '@eslint/js'
2+
import globals from 'globals'
3+
import reactHooks from 'eslint-plugin-react-hooks'
4+
import reactRefresh from 'eslint-plugin-react-refresh'
5+
import tseslint from 'typescript-eslint'
6+
7+
export default tseslint.config(
8+
{ ignores: ['dist'] },
9+
{
10+
extends: [js.configs.recommended, ...tseslint.configs.recommended],
11+
files: ['**/*.{ts,tsx}'],
12+
languageOptions: {
13+
ecmaVersion: 2020,
14+
globals: globals.browser,
15+
},
16+
plugins: {
17+
'react-hooks': reactHooks,
18+
'react-refresh': reactRefresh,
19+
},
20+
rules: {
21+
...reactHooks.configs.recommended.rules,
22+
'react-refresh/only-export-components': [
23+
'warn',
24+
{ allowConstantExport: true },
25+
],
26+
},
27+
},
28+
)

client/index.html

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/check.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<meta name="theme-color" content="#000000">
8+
9+
<link rel="manifest" href="/manifest.json">
10+
<link rel="shortcut icon" href="/favicon.ico">
11+
<title>Source Map Validator</title>
12+
13+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
14+
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
15+
</head>
16+
<body>
17+
<a href="https://github.com/getsentry/sourcemaps.io" class="github-corner" aria-label="View source on Github">
18+
<svg width="80" height="80" viewBox="0 0 250 250"
19+
style="fill:#337ab7; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true">
20+
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
21+
<path
22+
d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
23+
fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
24+
<path
25+
d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
26+
fill="currentColor" class="octo-body"></path>
27+
</svg>
28+
</a>
29+
<style>
30+
.github-corner:hover .octo-arm {
31+
animation: octocat-wave 560ms ease-in-out
32+
}
33+
34+
@keyframes octocat-wave {
35+
36+
0%,
37+
100% {
38+
transform: rotate(0)
39+
}
40+
41+
20%,
42+
60% {
43+
transform: rotate(-25deg)
44+
}
45+
46+
40%,
47+
80% {
48+
transform: rotate(10deg)
49+
}
50+
}
51+
52+
@media (max-width:500px) {
53+
.github-corner:hover .octo-arm {
54+
animation: none
55+
}
56+
57+
.github-corner .octo-arm {
58+
animation: octocat-wave 560ms ease-in-out
59+
}
60+
}
61+
</style>
62+
<div class="jumbotron">
63+
<div class="container">
64+
<h1><a href="/">Source Map Validator</a></h1>
65+
<p>Source Maps are hard. Make sure you did it right.</p>
66+
</div>
67+
</div>
68+
<div class="container">
69+
<div id="root"></div>
70+
<hr />
71+
<div>
72+
Source Map Validator brought to you by
73+
<a href="https://sentry.io">Sentry</a> • 
74+
Version <a class="text-secondary"
75+
href="https://github.com/getsentry/sourcemaps.io/commit/%REACT_APP_GIT_SHA%">%REACT_APP_GIT_SHA%</a>
76+
77+
</div>
78+
</div>
79+
80+
<noscript>
81+
You need to enable JavaScript to run this app.
82+
</noscript>
83+
<script type="module" src="/src/main.tsx"></script>
84+
</body>
85+
</html>

client/jest.config.js

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

0 commit comments

Comments
 (0)