From ad789f455474b7ff3f4459a306ab1d4227860a67 Mon Sep 17 00:00:00 2001 From: meglerhagen Date: Tue, 10 Sep 2024 21:52:43 +0200 Subject: [PATCH] update --- .../(dashboard)/dashboard/analytics/page.tsx | 34 ++++++++-------- apps/www/src/app/(marketing)/pricing/page.tsx | 4 +- apps/www/src/app/(property)/property/page.tsx | 40 +++++++++---------- .../www/src/components/buttons/DocsButton.tsx | 2 +- apps/www/src/components/pricing-faq.tsx | 26 ++++++------ 5 files changed, 54 insertions(+), 52 deletions(-) diff --git a/apps/www/src/app/(dashboard)/dashboard/analytics/page.tsx b/apps/www/src/app/(dashboard)/dashboard/analytics/page.tsx index f3589ed6..1c13a92d 100644 --- a/apps/www/src/app/(dashboard)/dashboard/analytics/page.tsx +++ b/apps/www/src/app/(dashboard)/dashboard/analytics/page.tsx @@ -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 @@ -56,5 +56,5 @@ export default async function DashboardPage() { - ); + ) } diff --git a/apps/www/src/app/(marketing)/pricing/page.tsx b/apps/www/src/app/(marketing)/pricing/page.tsx index 14b5114b..d11b3ff6 100644 --- a/apps/www/src/app/(marketing)/pricing/page.tsx +++ b/apps/www/src/app/(marketing)/pricing/page.tsx @@ -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() { diff --git a/apps/www/src/app/(property)/property/page.tsx b/apps/www/src/app/(property)/property/page.tsx index e3201119..bf696fcd 100644 --- a/apps/www/src/app/(property)/property/page.tsx +++ b/apps/www/src/app/(property)/property/page.tsx @@ -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 @@ -36,7 +36,7 @@ export default async function PropertyPage() { select: { id: true, }, - }); + }) if (!userWorkspace) { return ( @@ -54,7 +54,7 @@ export default async function PropertyPage() { - ); + ) } //TODO - Make function to fetch properties somewhere else @@ -103,7 +103,7 @@ export default async function PropertyPage() { orderBy: { createdAt: "desc", }, - }); + }) return ( @@ -131,5 +131,5 @@ export default async function PropertyPage() { )} - ); + ) } diff --git a/apps/www/src/components/buttons/DocsButton.tsx b/apps/www/src/components/buttons/DocsButton.tsx index 542947e2..862ab15c 100644 --- a/apps/www/src/components/buttons/DocsButton.tsx +++ b/apps/www/src/components/buttons/DocsButton.tsx @@ -6,7 +6,7 @@ import { cn } from "@/lib/utils" export function DocsButton() { return ( Explore Docs diff --git a/apps/www/src/components/pricing-faq.tsx b/apps/www/src/components/pricing-faq.tsx index 5c1753c1..80dce6b2 100644 --- a/apps/www/src/components/pricing-faq.tsx +++ b/apps/www/src/components/pricing-faq.tsx @@ -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.", }, ]