Skip to content

chore: upgrade dependencies #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions app.config.ts

This file was deleted.

1,270 changes: 1,270 additions & 0 deletions bun.lock

Large diffs are not rendered by default.

Binary file removed bun.lockb
Binary file not shown.
7 changes: 0 additions & 7 deletions content/docs/okrs-guide/theo-doi-va-do-luong/meta.json

This file was deleted.

7 changes: 0 additions & 7 deletions content/docs/okrs-guide/tong-ket/meta.json

This file was deleted.

9 changes: 0 additions & 9 deletions content/docs/teams/meta.json

This file was deleted.

3 changes: 3 additions & 0 deletions deploy/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
.next
.git
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 0 additions & 8 deletions hooks/useDomain.tsx

This file was deleted.

60 changes: 32 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,47 +5,51 @@
"scripts": {
"build": "next build",
"dev": "next dev",
"start": "next start",
"gen.docs": "bun ./scripts/generate-docs.tsx",
"lint": "bunx @biomejs/biome format --write"
"lint.format": "biome format --write",
"start": "next start",
"upgrade.deps": "ncu --dep dev,prod,peer -u -p bun"
},
"dependencies": {
"@radix-ui/react-tooltip": "1.1.1",
"@radix-ui/react-tooltip": "1.1.8",
"@resvg/resvg-js": "2.6.2",
"@techmely/reset-css": "1.0.4",
"@techmely/utils": "3.2.0",
"algoliasearch": "4.24.0",
"class-variance-authority": "0.7.0",
"@techmely/utils": "3.3.0",
"algoliasearch": "5.20.3",
"class-variance-authority": "0.7.1",
"clsx": "2.1.1",
"framer-motion": "11.2.12",
"fumadocs-core": "^12.2.5",
"fumadocs-mdx": "^8.2.33",
"fumadocs-openapi": "3.1.3",
"fumadocs-twoslash": "1.1.0",
"fumadocs-ui": "^12.2.5",
"next": "^14.2.4",
"framer-motion": "12.4.7",
"fumadocs-core": "^15.0.12",
"fumadocs-mdx": "^11.5.6",
"fumadocs-openapi": "6.1.1",
"fumadocs-twoslash": "3.0.0",
"fumadocs-ui": "^15.0.12",
"next": "^15.1.7",
"next-sitemap": "4.2.3",
"phenomenon": "1.6.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"rss": "1.2.2",
"satori": "0.10.13",
"surrealdb.js": "1.0.0-beta.9"
"satori": "0.12.1"
},
"devDependencies": {
"@biomejs/biome": "1.8.2",
"@dotenvx/dotenvx": "1.1.0",
"@next/bundle-analyzer": "14.2.4",
"@techmely/types": "1.6.9",
"@biomejs/biome": "1.9.4",
"@dotenvx/dotenvx": "1.37.0",
"@next/bundle-analyzer": "15.1.7",
"@techmely/types": "1.9.0",
"@types/mdx": "^2.0.13",
"@types/node": "^20.14.9",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/node": "^22.13.5",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@types/rss": "0.0.32",
"autoprefixer": "^10.4.19",
"autoprefixer": "^10.4.20",
"fontaine": "0.5.0",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.4",
"typescript": "^5.5.2"
"npm-check-updates": "^17.1.15",
"postcss": "^8.5.3",
"tailwindcss": "^4.0.8",
"typescript": "^5.7.3"
},
"engines": {
"bun": ">=1.2.2"
}
}
12 changes: 6 additions & 6 deletions scripts/generate-openapi.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { generateFiles } from "fumadocs-openapi";
void generateFiles({
input: ["./docs-techmely.yaml"],
output: "./content/docs",
});
import { generateFiles } from "fumadocs-openapi";

void generateFiles({
input: ["./docs-techmely.yaml"],
output: "./content/docs",
});
11 changes: 11 additions & 0 deletions src/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export const appConfig = {
name: "Techmely",
description:
"All stuff about Techmely, is the single source of truth for how we operate at Techmely",
url: "https://handbook.techmely.com",
address: "HaNoi, VietNam",
githubUrl: "https://github.com/techmely",
blog: {
description: "Expose emotion Techmely Team",
},
};
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { blogSource } from "@/modules/blogs/source";
import { blogSource } from "@/src/modules/blogs/source";
import { notFound } from "next/navigation";
import type { ReactNode } from "react";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { appConfig } from "@/app.config";
import { blogAuthors } from "@/modules/blogs/constant";
import { blogSource } from "@/modules/blogs/source";
import { appConfig } from "@/src/app.config";
import { blogAuthors } from "@/src/modules/blogs/constant";
import { blogSource } from "@/src/modules/blogs/source";
import { DocsBody } from "fumadocs-ui/page";
import type { Metadata } from "next";
import { notFound } from "next/navigation";
Expand Down
2 changes: 1 addition & 1 deletion app/(blog)/blog/page.tsx → src/app/(blog)/blog/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { appConfig } from "@/app.config";
import { appConfig } from "@/src/app.config";
import type { Metadata } from "next";

export const metadata: Metadata = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { appConfig } from "@/app.config";
import { appConfig } from "@/src/app.config";
import type { Metadata } from "next";

export const metadata: Metadata = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { appConfig } from "@/app.config";
import { appConfig } from "@/src/app.config";
import type { Metadata } from "next";

export const metadata: Metadata = {
Expand Down
2 changes: 1 addition & 1 deletion app/(blog)/layout.tsx → src/app/(blog)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { appConfig } from "@/app.config";
import { appConfig } from "@/src/app.config";
import type { Metadata } from "next";
import type { ReactNode } from "react";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { appConfig } from "@/app.config";
import { appConfig } from "@/src/app.config";
import type { Metadata } from "next";

export const metadata: Metadata = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { appConfig } from "@/app.config";
import { appConfig } from "@/src/app.config";
import type { Metadata } from "next";

export const metadata: Metadata = {
Expand Down
File renamed without changes.
27 changes: 13 additions & 14 deletions app/(marketing)/page.tsx → src/app/(marketing)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { appConfig } from '@/app.config'
import type { Metadata } from 'next'
import Link from 'next/link'
import { TargetIcon, UsersIcon } from 'lucide-react'
import { appConfig } from "@/src/app.config";
import type { Metadata } from "next";
import Link from "next/link";
import { TargetIcon, UsersIcon } from "lucide-react";

export const metadata: Metadata = {
alternates: {
canonical: appConfig.url,
},
}
};

export default function HomePage() {
return (
Expand All @@ -20,15 +20,15 @@ export default function HomePage() {
<TargetIcon
className="p-1 rounded-md size-6 shrink-0 bg-gradient-to-t from-background/80"
style={{
backgroundColor: 'hsl(var(--okrs-guide-color)/.3)',
color: 'hsl(var(--okrs-guide-color))',
backgroundColor: "hsl(var(--okrs-guide-color)/.3)",
color: "hsl(var(--okrs-guide-color))",
}}
/>
<h2 className="text-lg font-medium">OKRs Guide</h2>
</div>
<p className="mb-4 text-sm text-muted-foreground">
Comprehensive guide to understand and implement OKRs effectively
in your organization
Comprehensive guide to understand and implement OKRs effectively in your
organization
</p>
<Link
href="/docs/okrs-guide"
Expand All @@ -45,15 +45,14 @@ export default function HomePage() {
<UsersIcon
className="p-1 rounded-md size-6 shrink-0 bg-gradient-to-t from-background/80"
style={{
backgroundColor: 'hsl(var(--teams-color)/.3)',
color: 'hsl(var(--teams-color))',
backgroundColor: "hsl(var(--teams-color)/.3)",
color: "hsl(var(--teams-color))",
}}
/>
<h2 className="text-lg font-medium">About Us</h2>
</div>
<p className="mb-4 text-sm text-muted-foreground">
Learn more about our team, mission and how we can help your
business grow
Learn more about our team, mission and how we can help your business grow
</p>
<Link
href="/docs/teams"
Expand All @@ -66,5 +65,5 @@ export default function HomePage() {
</div>
</div>
</main>
)
);
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { appConfig } from "@/app.config";
import { appConfig } from "@/src/app.config";
import type { Metadata } from "next";

export const metadata: Metadata = {
Expand All @@ -10,7 +10,9 @@ export const metadata: Metadata = {
export default function ShowCasesPage() {
return (
<main className="overflow-x-clip">
<div className="mx-auto flex max-w-[1400px] flex-col px-3 md:px-6">Marketing Show Cases Page</div>
<div className="mx-auto flex max-w-[1400px] flex-col px-3 md:px-6">
Marketing Show Cases Page
</div>
</main>
);
}
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type DocsModule, docsModules } from "@/utils/modules";
import { type DocsModule, docsModules } from "@/src/utils/modules";
import { ImageResponse } from "next/og";
import type { NextRequest } from "next/server";

Expand Down
2 changes: 1 addition & 1 deletion app/api/search/route.ts → src/app/api/search/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createSearchAPI } from "fumadocs-core/search/server";

import { docSource } from "@/modules/docs/source";
import { docSource } from "@/src/modules/docs/source";

export const { GET } = createSearchAPI("advanced", {
indexes: docSource.getPages().map((page) => ({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SvgUse } from "@/components/SvgUse";
import { type PageDocs, docSource } from "@/modules/docs/source";
import { SvgUse } from "@/src/components/SvgUse";
import { type PageDocs, docSource } from "@/src/modules/docs/source";
import { Card, Cards } from "fumadocs-ui/components/card";
import { RollButton } from "fumadocs-ui/components/roll-button";
import { DocsBody, DocsPage } from "fumadocs-ui/page";
Expand Down
File renamed without changes.
File renamed without changes.
12 changes: 5 additions & 7 deletions app/global.css → src/app/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
--primary: var(--okrs-guide-color);
}


body {
font-family: Be Vietnam Pro, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
font-family:
Be Vietnam Pro, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
overflow: hidden;
overflow-wrap: break-word;
}
Expand All @@ -32,10 +32,8 @@ body {
font-style: normal;
font-weight: 400 500 700;
font-display: optional;
src:
url("/fonts/bvp.regular.woff2") format("woff2"),
url("/fonts/bvp.medium.woff2") format("woff2"),
url("/fonts/bvp.bold.woff2") format("woff2");
src: url("/fonts/bvp.regular.woff2") format("woff2"), url("/fonts/bvp.medium.woff2")
format("woff2"), url("/fonts/bvp.bold.woff2") format("woff2");
}

/* Common CSS */
Expand All @@ -60,4 +58,4 @@ body {
100% {
opacity: 100%;
}
}
}
Loading