Skip to content

Commit

Permalink
sepearate kit and www
Browse files Browse the repository at this point in the history
  • Loading branch information
RhysSullivan committed Oct 31, 2024
1 parent 00a7d70 commit 675141e
Show file tree
Hide file tree
Showing 28 changed files with 1,182 additions and 32 deletions.
6 changes: 0 additions & 6 deletions kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
"name": "@tenant-kit/kit",
"version": "0.1.0",
"private": true,
"exports": {
"./*": "./src/*.tsx",
"./globals.css": "./globals.css",
"./postcss-config": "./postcss.config.mjs",
"./tailwind-config": "./tailwind.config.ts"
},
"dependencies": {
"@hookform/resolvers": "^3.9.0",
"@radix-ui/react-label": "^2.1.0",
Expand Down
1 change: 0 additions & 1 deletion kit/src/domains/client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ export function DomainStatus({ domain }: { domain: string }) {
/>
);
}
console.log(status);
return null;
}

Expand Down
57 changes: 51 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion www/app/(home)/components.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"use client";
import { DomainStatus } from "@/components/domains/client";
import { useDomainStatus } from "@/components/domains/client";
import { Card } from "@/components/ui/card";
import { DomainStatus, useDomainStatus } from "@/domains/client";

import { ExternalLink } from "lucide-react";
export function DomainStatusCard({ domain }: { domain: string }) {
const status = useDomainStatus(domain);
Expand Down
2 changes: 1 addition & 1 deletion www/app/(home)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ReactNode } from "react";
import { HomeLayout } from "fumadocs-ui/layouts/home";
import { baseOptions } from "~/app/layout.config";
import { baseOptions } from "@/app/layout.config";

export default function Layout({
children,
Expand Down
4 changes: 2 additions & 2 deletions www/app/(home)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Link from "next/link";
import { SiteSettingsDomains } from "@tenant-kit/kit/domains/client";
import { Button } from "@tenant-kit/kit/components/ui/button";
import { DomainStatusCard } from "./components";
import { SiteSettingsDomains } from "@/components/domains/client";
import { Button } from "@/components/ui/button";
type ProjectDetails = {
name: string;
apexName: string;
Expand Down
2 changes: 1 addition & 1 deletion www/app/api/search/route.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { source } from "~/lib/source";
import { source } from "@/lib/source";
import { createFromSource } from "fumadocs-core/search/server";

export const { GET } = createFromSource(source);
2 changes: 1 addition & 1 deletion www/app/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { source } from "~/lib/source";
import { source } from "@/lib/source";
import {
DocsPage,
DocsBody,
Expand Down
4 changes: 2 additions & 2 deletions www/app/docs/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DocsLayout } from "fumadocs-ui/layouts/docs";
import type { ReactNode } from "react";
import { baseOptions } from "~/app/layout.config";
import { source } from "~/lib/source";
import { baseOptions } from "@/app/layout.config";
import { source } from "@/lib/source";

export default function Layout({ children }: { children: ReactNode }) {
return (
Expand Down
1 change: 0 additions & 1 deletion www/app/global.css

This file was deleted.

60 changes: 60 additions & 0 deletions www/app/globals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
:root {
--background: 0 0% 100%;
--foreground: 240 10% 3.9%;
--card: 0 0% 100%;
--card-foreground: 240 10% 3.9%;
--popover: 0 0% 100%;
--popover-foreground: 240 10% 3.9%;
--primary: 240 5.9% 10%;
--primary-foreground: 0 0% 98%;
--secondary: 240 4.8% 95.9%;
--secondary-foreground: 240 5.9% 10%;
--muted: 240 4.8% 95.9%;
--muted-foreground: 240 3.8% 46.1%;
--accent: 240 4.8% 95.9%;
--accent-foreground: 240 5.9% 10%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 240 5.9% 10%;
--radius: 0.5rem;
--chart-1: 12 76% 61%;
--chart-2: 173 58% 39%;
--chart-3: 197 37% 24%;
--chart-4: 43 74% 66%;
--chart-5: 27 87% 67%;
}

.dark {
--background: 240 10% 3.9%;
--foreground: 0 0% 98%;
--card: 240 10% 3.9%;
--card-foreground: 0 0% 98%;
--popover: 240 10% 3.9%;
--popover-foreground: 0 0% 98%;
--primary: 0 0% 98%;
--primary-foreground: 240 5.9% 10%;
--secondary: 240 3.7% 15.9%;
--secondary-foreground: 0 0% 98%;
--muted: 240 3.7% 15.9%;
--muted-foreground: 240 5% 64.9%;
--accent: 240 3.7% 15.9%;
--accent-foreground: 0 0% 98%;
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 0% 98%;
--border: 240 3.7% 15.9%;
--input: 240 3.7% 15.9%;
--ring: 240 4.9% 83.9%;
--chart-1: 220 70% 50%;
--chart-2: 160 60% 45%;
--chart-3: 30 80% 55%;
--chart-4: 280 65% 60%;
--chart-5: 340 75% 55%;
}
}
2 changes: 1 addition & 1 deletion www/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "./global.css";
import "./globals.css";
import { RootProvider } from "fumadocs-ui/provider";
import { Inter } from "next/font/google";
import type { ReactNode } from "react";
Expand Down
17 changes: 17 additions & 0 deletions www/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "tailwind.config.ts",
"css": "./app/globals.css",
"baseColor": "slate",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
}
}
Loading

0 comments on commit 675141e

Please sign in to comment.