mirror of https://github.com/buster-so/buster.git
Update BusterPosthogProvider.tsx
This commit is contained in:
parent
f4d3720aba
commit
863aeb3f61
|
@ -41,7 +41,7 @@ const options: Partial<PostHogConfig> = {
|
||||||
|
|
||||||
loaded: () => {
|
loaded: () => {
|
||||||
console.log(
|
console.log(
|
||||||
`🚀 Welcome to Buster v${version}`,
|
`%c🚀 Welcome to Buster v${version}`,
|
||||||
'background: linear-gradient(to right, #a21caf, #8b1cb1, #6b21a8); color: white; font-size: 16px; font-weight: bold; padding: 10px; border-radius: 5px;'
|
'background: linear-gradient(to right, #a21caf, #8b1cb1, #6b21a8); color: white; font-size: 16px; font-weight: bold; padding: 10px; border-radius: 5px;'
|
||||||
);
|
);
|
||||||
console.log(
|
console.log(
|
||||||
|
|
|
@ -1,28 +1,28 @@
|
||||||
import { createFileRoute } from "@tanstack/react-router";
|
import { createFileRoute } from '@tanstack/react-router';
|
||||||
import { z } from "zod";
|
import { z } from 'zod';
|
||||||
import { AppPageLayout } from "@/components/ui/layouts/AppPageLayout";
|
import { AppPageLayout } from '@/components/ui/layouts/AppPageLayout';
|
||||||
import { HomePageController, HomePageHeader } from "@/controllers/HomePage";
|
import { HomePageController, HomePageHeader } from '@/controllers/HomePage';
|
||||||
|
|
||||||
const searchParamsSchema = z.object({
|
const searchParamsSchema = z.object({
|
||||||
q: z.string().optional(),
|
q: z.string().optional(),
|
||||||
submit: z
|
submit: z
|
||||||
.preprocess((val) => {
|
.preprocess((val) => {
|
||||||
if (typeof val === "string") {
|
if (typeof val === 'string') {
|
||||||
return val === "true";
|
return val === 'true';
|
||||||
}
|
}
|
||||||
return val;
|
return val;
|
||||||
}, z.boolean())
|
}, z.boolean())
|
||||||
.optional(),
|
.optional(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export const Route = createFileRoute("/app/_app/home")({
|
export const Route = createFileRoute('/app/_app/home')({
|
||||||
head: () => {
|
head: () => {
|
||||||
return {
|
return {
|
||||||
meta: [
|
meta: [
|
||||||
{ title: "Home" },
|
{ title: 'Home' },
|
||||||
{ name: "description", content: "Buster home dashboard" },
|
{ name: 'description', content: 'Buster home dashboard' },
|
||||||
{ name: "og:title", content: "Home" },
|
{ name: 'og:title', content: 'Home' },
|
||||||
{ name: "og:description", content: "Buster home dashboard" },
|
{ name: 'og:description', content: 'Buster home dashboard' },
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue