removed web-vitals, more updates

This commit is contained in:
2025-12-31 23:03:39 -08:00
parent 282f1e21a4
commit ad0d033230
4 changed files with 1022 additions and 1257 deletions

2238
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -10,28 +10,27 @@
"url": "git+https://github.com/20kaushik02/spotify-manager-web.git" "url": "git+https://github.com/20kaushik02/spotify-manager-web.git"
}, },
"license": "MIT", "license": "MIT",
"author": "Kaushik Ravishankar <rknarayan02@gmail.com>", "author": "Kaushik Ravishankar <hello@knravish.me>",
"bugs": { "bugs": {
"url": "https://github.com/20kaushik02/spotify-manager-web/issues" "url": "https://github.com/20kaushik02/spotify-manager-web/issues"
}, },
"homepage": "https://spotify-manager.knravish.me", "homepage": "https://spotify-manager.knravish.me",
"dependencies": { "dependencies": {
"@dagrejs/dagre": "^1.1.4", "@dagrejs/dagre": "^1.1.8",
"@types/react": "^19.1.6", "@xyflow/react": "^12.10.0",
"@types/react-dom": "^19.1.5", "axios": "^1.13.2",
"@xyflow/react": "^12.6.4", "react": "^19.2.3",
"axios": "^1.9.0", "react-dom": "^19.2.3",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-icons": "^5.5.0", "react-icons": "^5.5.0",
"react-router-dom": "^7.6.1", "react-router-dom": "^7.11.0",
"react-toastify": "^11.0.5", "react-toastify": "^11.0.5"
"web-vitals": "^5.0.2"
}, },
"devDependencies": { "devDependencies": {
"@types/react": "^19.2.3",
"@types/react-dom": "^19.2.3",
"react-scripts": "^5.0.1", "react-scripts": "^5.0.1",
"typescript": "^5.8.3", "typescript": "^5.8.3",
"typescript-plugin-css-modules": "^5.1.0" "typescript-plugin-css-modules": "^5.2.0"
}, },
"overrides": { "overrides": {
"react-scripts": { "react-scripts": {

View File

@@ -2,7 +2,6 @@ import React from "react";
import ReactDOM from "react-dom/client"; import ReactDOM from "react-dom/client";
import "./index.css"; import "./index.css";
import App from "./App.tsx"; import App from "./App.tsx";
import reportWebVitals from "./reportWebVitals.ts";
const root = ReactDOM.createRoot( const root = ReactDOM.createRoot(
document.getElementById("root") as HTMLElement document.getElementById("root") as HTMLElement
@@ -12,8 +11,3 @@ root.render(
<App /> <App />
</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();

View File

@@ -1,12 +0,0 @@
import { type MetricType, onCLS, onFCP, onLCP, onTTFB } from "web-vitals";
const reportWebVitals = (onPerfEntry?: (metric: MetricType) => void): void => {
if (onPerfEntry && onPerfEntry instanceof Function) {
onCLS(onPerfEntry);
onFCP(onPerfEntry);
onLCP(onPerfEntry);
onTTFB(onPerfEntry);
}
};
export default reportWebVitals;