tagging release w.t.f.

This commit is contained in:
2022-04-20 14:34:09 +02:00
parent bfbd2fa77c
commit d2f30a1569
4 changed files with 25 additions and 1 deletions

15
package-lock.json generated
View File

@@ -6,6 +6,7 @@
"": { "": {
"name": "wastpol", "name": "wastpol",
"dependencies": { "dependencies": {
"@socialgouv/matomo-next": "^1.3.0",
"@supercharge/request-ip": "^1.1.2", "@supercharge/request-ip": "^1.1.2",
"axios": "^0.26.0", "axios": "^0.26.0",
"child_process": "^1.0.2", "child_process": "^1.0.2",
@@ -486,6 +487,14 @@
"react": ">=16.3" "react": ">=16.3"
} }
}, },
"node_modules/@socialgouv/matomo-next": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@socialgouv/matomo-next/-/matomo-next-1.3.0.tgz",
"integrity": "sha512-1EWGFre4CudvcJPIaLYyAwHsGk8mMK5/IKztEIaU14uUifv117dlIJmcpJIVEow70AMY1VqRHh1x5z7Dx+H7dQ==",
"peerDependencies": {
"next": ">= 9.5.5"
}
},
"node_modules/@supercharge/request-ip": { "node_modules/@supercharge/request-ip": {
"version": "1.1.2", "version": "1.1.2",
"resolved": "https://registry.npmjs.org/@supercharge/request-ip/-/request-ip-1.1.2.tgz", "resolved": "https://registry.npmjs.org/@supercharge/request-ip/-/request-ip-1.1.2.tgz",
@@ -6900,6 +6909,12 @@
"prop-types": "^15.5.7" "prop-types": "^15.5.7"
} }
}, },
"@socialgouv/matomo-next": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@socialgouv/matomo-next/-/matomo-next-1.3.0.tgz",
"integrity": "sha512-1EWGFre4CudvcJPIaLYyAwHsGk8mMK5/IKztEIaU14uUifv117dlIJmcpJIVEow70AMY1VqRHh1x5z7Dx+H7dQ==",
"requires": {}
},
"@supercharge/request-ip": { "@supercharge/request-ip": {
"version": "1.1.2", "version": "1.1.2",
"resolved": "https://registry.npmjs.org/@supercharge/request-ip/-/request-ip-1.1.2.tgz", "resolved": "https://registry.npmjs.org/@supercharge/request-ip/-/request-ip-1.1.2.tgz",

View File

@@ -10,6 +10,7 @@
"deploy": "git pull && npm i && next build && pm2 restart kroj" "deploy": "git pull && npm i && next build && pm2 restart kroj"
}, },
"dependencies": { "dependencies": {
"@socialgouv/matomo-next": "^1.3.0",
"@supercharge/request-ip": "^1.1.2", "@supercharge/request-ip": "^1.1.2",
"axios": "^0.26.0", "axios": "^0.26.0",
"child_process": "^1.0.2", "child_process": "^1.0.2",

View File

@@ -1,11 +1,19 @@
import '../styles/globals.css' import '../styles/globals.css'
import { SessionProvider } from "next-auth/react" import { SessionProvider } from "next-auth/react"
import Head from "next/head"; import Head from "next/head";
import { useEffect } from "react";
import { init } from "@socialgouv/matomo-next";
const MATOMO_URL = process.env.NEXT_PUBLIC_MATOMO_URL;
const MATOMO_SITE_ID = process.env.NEXT_PUBLIC_MATOMO_SITE_ID;
function MyApp({ function MyApp({
Component, Component,
pageProps: { session, ...pageProps }, pageProps: { session, ...pageProps },
}) { }) {
useEffect(() => {
init({ url: MATOMO_URL, siteId: MATOMO_SITE_ID });
}, []);
return ( return (
<SessionProvider session={session}> <SessionProvider session={session}>
<Head> <Head>

View File

@@ -14,7 +14,7 @@ export default function Home() {
const { data: session } = useSession(); const { data: session } = useSession();
const [selectedIndex, setSelectedIndex] = useState(0); const [selectedIndex, setSelectedIndex] = useState(0);
const [tabs] = useState(["auto", "manual"]); const [tabs] = useState(["auto", "manual"]);
const [realTabs] = useState([Generator, Manual]); //const [realTabs] = useState([Generator, Manual]);
if (session) { if (session) {
return ( return (