Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
love_飞影
Neos
Commits
3adbf313
Commit
3adbf313
authored
Oct 17, 2022
by
chechunchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove currently unused reportWebVitals.ts
parent
b02c56f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
21 deletions
+0
-21
src/main.tsx
src/main.tsx
+0
-6
src/reportWebVitals.ts
src/reportWebVitals.ts
+0
-15
No files found.
src/main.tsx
View file @
3adbf313
import
React
from
"
react
"
;
import
React
from
"
react
"
;
import
ReactDOM
from
"
react-dom/client
"
;
import
ReactDOM
from
"
react-dom/client
"
;
import
App
from
"
./App
"
;
import
App
from
"
./App
"
;
import
reportWebVitals
from
"
./reportWebVitals
"
;
import
{
BrowserRouter
}
from
"
react-router-dom
"
;
import
{
BrowserRouter
}
from
"
react-router-dom
"
;
import
{
Provider
}
from
"
react-redux
"
;
import
{
Provider
}
from
"
react-redux
"
;
import
{
store
}
from
"
./store
"
;
import
{
store
}
from
"
./store
"
;
...
@@ -18,8 +17,3 @@ root.render(
...
@@ -18,8 +17,3 @@ root.render(
</
BrowserRouter
>
</
BrowserRouter
>
</
React
.
StrictMode
>
</
React
.
StrictMode
>
);
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals
();
src/reportWebVitals.ts
deleted
100644 → 0
View file @
b02c56f5
import
{
ReportHandler
}
from
"
web-vitals
"
;
const
reportWebVitals
=
(
onPerfEntry
?:
ReportHandler
)
=>
{
if
(
onPerfEntry
&&
onPerfEntry
instanceof
Function
)
{
import
(
"
web-vitals
"
).
then
(({
getCLS
,
getFID
,
getFCP
,
getLCP
,
getTTFB
})
=>
{
getCLS
(
onPerfEntry
);
getFID
(
onPerfEntry
);
getFCP
(
onPerfEntry
);
getLCP
(
onPerfEntry
);
getTTFB
(
onPerfEntry
);
});
}
};
export
default
reportWebVitals
;
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