Skip to content

Commit

Permalink
Merge pull request #105 from Codehagen/104-bug-still-some-default-tem…
Browse files Browse the repository at this point in the history
…plate

Update default template
  • Loading branch information
Codehagen authored Sep 10, 2024
2 parents a54cbd7 + ad789f4 commit f842cf6
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 52 deletions.
34 changes: 17 additions & 17 deletions apps/www/src/app/(dashboard)/dashboard/analytics/page.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
import { redirect } from "next/navigation";
import { getAnalyticsStats } from "@/actions/stats/get-analytics-stats";
import { getUserStats } from "@/actions/stats/get-users-stats";
import { redirect } from "next/navigation"
import { getAnalyticsStats } from "@/actions/stats/get-analytics-stats"
import { getUserStats } from "@/actions/stats/get-users-stats"

import { authOptions } from "@/lib/auth";
import { getCurrentUser } from "@/lib/session";
import CardSection from "@/components/analytics/CardSection";
import EventsTrendOverTimeChart from "@/components/dashboard/charts/EventsTrendOverTime";
import UserGrowthTrend from "@/components/dashboard/charts/UserGrowthChart";
import { DashboardHeader } from "@/components/dashboard/header";
import { DashboardShell } from "@/components/dashboard/shell";
import { EmptyPlaceholder } from "@/components/shared/empty-placeholder";
import { authOptions } from "@/lib/auth"
import { getCurrentUser } from "@/lib/session"
import CardSection from "@/components/analytics/CardSection"
import EventsTrendOverTimeChart from "@/components/dashboard/charts/EventsTrendOverTime"
import UserGrowthTrend from "@/components/dashboard/charts/UserGrowthChart"
import { DashboardHeader } from "@/components/dashboard/header"
import { DashboardShell } from "@/components/dashboard/shell"
import { EmptyPlaceholder } from "@/components/shared/empty-placeholder"

export const metadata = {
title: "Dingify Analytics - Your Alerts Overview",
title: "Propdock Analyse - Din Eiendomsoversikt",
description:
"Monitor and analyze all your critical events in real-time. Access key metrics, track important journeys, and make data-driven decisions to optimize your business performance on the Dingify Dashboard.",
};
"Overvåk og analyser alle dine kritiske eiendomshendelser i sanntid. Få tilgang til nøkkelmetrikker, spor viktige leietakerreiser, og ta datadrevne beslutninger for å optimalisere ytelsen til din eiendomsportefølje på Propdock-dashbordet.",
}

export default async function DashboardPage() {
const user = await getCurrentUser();
const user = await getCurrentUser()

if (!user) {
redirect(authOptions.pages?.signIn || "/login");
redirect(authOptions.pages?.signIn || "/login")
}

//TODO Make these calls dynamic
Expand Down Expand Up @@ -56,5 +56,5 @@ export default async function DashboardPage() {
<UserGrowthTrend />
</div>
</DashboardShell>
);
)
}
4 changes: 2 additions & 2 deletions apps/www/src/app/(marketing)/pricing/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { PricingCards } from "@/components/pricing-cards"
import { PricingFaq } from "@/components/pricing-faq"

export const metadata = {
title: "Dingify Pricing - Tailored Plans for Your Monitoring Needs",
title: "Propdock Priser",
description:
"Explore competitive pricing plans for Dingify. Find the perfect package to enhance your real-time monitoring, event tracking, and data analytics.",
"Utforsk konkurransedyktige prisplaner for Propdock. Finn den perfekte pakken for å forbedre din eiendomsforvaltning, leietakersporing og eiendomsanalyse.",
}

export default async function PricingPage() {
Expand Down
40 changes: 20 additions & 20 deletions apps/www/src/app/(property)/property/page.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
import { redirect } from "next/navigation";
import { redirect } from "next/navigation"

import { authOptions } from "@/lib/auth";
import { prisma } from "@/lib/db";
import { getCurrentUser } from "@/lib/session";
import { AddPropertyButton } from "@/components/buttons/AddPropertyButton";
import { AddWorkspaceButton } from "@/components/buttons/AddWorkspaceButton";
import { DashboardHeader } from "@/components/dashboard/header";
import { DashboardShell } from "@/components/dashboard/shell";
import { EmptyPlaceholder } from "@/components/shared/empty-placeholder";
import { PropertyColumns } from "@/components/table/dashboard/columns";
import { DataTable } from "@/components/table/dashboard/data-table";
import { authOptions } from "@/lib/auth"
import { prisma } from "@/lib/db"
import { getCurrentUser } from "@/lib/session"
import { AddPropertyButton } from "@/components/buttons/AddPropertyButton"
import { AddWorkspaceButton } from "@/components/buttons/AddWorkspaceButton"
import { DashboardHeader } from "@/components/dashboard/header"
import { DashboardShell } from "@/components/dashboard/shell"
import { EmptyPlaceholder } from "@/components/shared/empty-placeholder"
import { PropertyColumns } from "@/components/table/dashboard/columns"
import { DataTable } from "@/components/table/dashboard/data-table"

export const metadata = {
title: "Dingify Dashboard - Your Alerts Overview",
title: "Propdock Dashbord - Din Eiendomsoversikt",
description:
"Monitor and analyze all your critical events in real-time. Access key metrics, track important journeys, and make data-driven decisions to optimize your business performance on the Dingify Dashboard.",
};
"Overvåk og analyser alle dine eiendommer i sanntid. Få tilgang til nøkkelmetrikk, spor viktige hendelser, og ta datadrevne beslutninger for å optimalisere din eiendomsforvaltning med Propdock Dashbord.",
}

export default async function PropertyPage() {
const user = await getCurrentUser();
const user = await getCurrentUser()

if (!user) {
redirect(authOptions.pages?.signIn ?? "/login");
redirect(authOptions.pages?.signIn ?? "/login")
}

// Fetch workspace associated with the user
Expand All @@ -36,7 +36,7 @@ export default async function PropertyPage() {
select: {
id: true,
},
});
})

if (!userWorkspace) {
return (
Expand All @@ -54,7 +54,7 @@ export default async function PropertyPage() {
<AddWorkspaceButton />
</EmptyPlaceholder>
</DashboardShell>
);
)
}

//TODO - Make function to fetch properties somewhere else
Expand Down Expand Up @@ -103,7 +103,7 @@ export default async function PropertyPage() {
orderBy: {
createdAt: "desc",
},
});
})

return (
<DashboardShell>
Expand Down Expand Up @@ -131,5 +131,5 @@ export default async function PropertyPage() {
)}
</div>
</DashboardShell>
);
)
}
2 changes: 1 addition & 1 deletion apps/www/src/components/buttons/DocsButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { cn } from "@/lib/utils"
export function DocsButton() {
return (
<Link
href="https://docs.dingify.io/"
href="https://docs.propdock.no/"
className={cn(buttonVariants({ variant: "outline" }), "px-4")}
>
Explore Docs
Expand Down
26 changes: 14 additions & 12 deletions apps/www/src/components/pricing-faq.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,39 +9,41 @@ import Balancer from "react-wrap-balancer"
const pricingFaqData = [
{
id: "item-1",
question: "How does Dingify help with real-time monitoring and analytics?",
question:
"Hvordan hjelper Propdock med sanntidsovervåking og analyse av eiendomsporteføljen?",
answer:
"Dingify provides comprehensive real-time monitoring and analytics by capturing critical business events, tracking user journeys, and offering detailed KPIs and insights. Make data-driven decisions to optimize your business performance.",
"Propdock tilbyr omfattende sanntidsovervåking og analyse ved å fange opp kritiske forretningshendelser, spore leietakernes reiser, og tilby detaljerte KPIer og innsikt. Ta datadrevne beslutninger for å optimalisere ytelsen til din eiendomsportefølje.",
},
{
id: "item-2",
question: "Can I integrate Dingify with my existing business tools?",
question:
"Kan jeg integrere Propdock med mine eksisterende forretningsverktøy?",
answer:
"Absolutely! Dingify is built with integration in mind. Our comprehensive API allows you to seamlessly connect with your existing business tools, ensuring a smooth addition to your current workflow.",
"Absolutt! Propdock er bygget med integrasjon i tankene. Vår omfattende API tillater deg å koble sømløst til dine eksisterende forretningsverktøy, som Poweroffice, Fiken, og Tripletex, og sikrer en smidig tilføyelse til din nåværende arbeidsflyt.",
},
{
id: "item-3",
question: "What kind of support can I expect with Dingify?",
question: "Hvilken type support kan jeg forvente med Propdock?",
answer:
"We offer dedicated support for all our users. Whether you're on a free or paid plan, our team is ready to assist you with any questions or issues you may encounter. Premium support options are available for our Pro plan subscribers.",
"Vi tilbyr dedikert support for alle våre brukere. Uansett om du er på en gratis eller betalt plan, er vårt team klart til å hjelpe deg med eventuelle spørsmål eller problemer du måtte støte på. Premium supportalternativer er tilgjengelige for våre Pro-planabonnenter.",
},
{
id: "item-4",
question: "Is my data secure with Dingify?",
question: "Er dataene mine sikre med Propdock?",
answer:
"Data security is our top priority. We employ SSL encryption and adhere to industry best practices to ensure that all your data, from event tracking to customer information, is securely stored and protected.",
"Datasikkerhet er vår høyeste prioritet. Vi bruker SSL-kryptering og følger bransjens beste praksis for å sikre at alle dine data, fra hendelsesporing til kundeinformasjon, er sikkert lagret og beskyttet.",
},
{
id: "item-5",
question: "How does the free plan differ from the paid plans?",
question: "Hvordan skiller gratisplanen seg fra de betalte planene?",
answer:
"The free plan offers basic features that allow you to experience the advantages of Dingify's real-time monitoring. Our paid plans provide access to more advanced features, including detailed analytics, priority support, and increased event volume.",
"Gratisplanen tilbyr grunnleggende funksjoner som lar deg oppleve fordelene med Propdocks sanntidsovervåking av eiendomsporteføljen. Våre betalte planer gir tilgang til mer avanserte funksjoner, inkludert detaljert analyse, prioritert support, og økt hendelsesvolum.",
},
{
id: "item-6",
question: "What additional features does the Pro plan include?",
question: "Hvilke tilleggsfunksjoner inkluderer Pro-planen?",
answer:
"The Pro plan includes everything in the Basic plan plus advanced analytics, priority support, higher event volume, custom API integrations, and access to new features before they're publicly released.",
"Pro-planen inkluderer alt i Basic-planen pluss avansert analyse, prioritert support, høyere hendelsesvolum, tilpassede API-integrasjoner, og tilgang til nye funksjoner før de blir offentlig tilgjengelige.",
},
]

Expand Down

0 comments on commit f842cf6

Please sign in to comment.