├── LICENSE ├── .modified ├── src ├── ai │ ├── dev.ts │ └── genkit.ts ├── app │ ├── favicon.ico │ ├── layout.tsx │ ├── login │ │ └── page.tsx │ ├── globals.css │ └── page.tsx ├── lib │ ├── types.ts │ ├── utils.ts │ ├── actions.ts │ └── data-storage.ts ├── components │ ├── ui │ │ ├── skeleton.tsx │ │ ├── textarea.tsx │ │ ├── label.tsx │ │ ├── input.tsx │ │ ├── separator.tsx │ │ ├── progress.tsx │ │ ├── toaster.tsx │ │ ├── checkbox.tsx │ │ ├── slider.tsx │ │ ├── switch.tsx │ │ ├── badge.tsx │ │ ├── tooltip.tsx │ │ ├── popover.tsx │ │ ├── avatar.tsx │ │ ├── radio-group.tsx │ │ ├── password-input.tsx │ │ ├── alert.tsx │ │ ├── scroll-area.tsx │ │ ├── tabs.tsx │ │ ├── button.tsx │ │ ├── card.tsx │ │ ├── accordion.tsx │ │ ├── calendar.tsx │ │ ├── table.tsx │ │ ├── dialog.tsx │ │ ├── sheet.tsx │ │ ├── form.tsx │ │ ├── alert-dialog.tsx │ │ ├── toast.tsx │ │ ├── select.tsx │ │ ├── dropdown-menu.tsx │ │ ├── menubar.tsx │ │ └── chart.tsx │ ├── theme-provider.tsx │ ├── domain-card.tsx │ ├── settings-dialog.tsx │ └── add-edit-domain-dialog.tsx └── hooks │ ├── use-mobile.tsx │ └── use-toast.ts ├── .vscode └── settings.json ├── postcss.config.mjs ├── .github ├── ISSUE_TEMPLATE │ ├── feature_request.md │ └── bug_report.md └── pull_request_template.md ├── components.json ├── next.config.js ├── .gitignore ├── tsconfig.json ├── docs ├── blueprint.md ├── build.md └── deployment.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── .idx └── dev.nix ├── vps-autostart.sh ├── deploy.sh ├── package.json ├── deploy-pm2.sh ├── nginx-node-deploy.sh ├── README.md ├── tailwind.config.ts └── 0001-NPM-URL.patch /LICENSE: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.modified: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/ai/dev.ts: -------------------------------------------------------------------------------- 1 | // Flows will be imported for their side effects in this file. 2 | -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoJyenn/DomainMonitoring/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "IDX.aI.enableInlineCompletion": true, 3 | "IDX.aI.enableCodebaseIndexing": true 4 | } -------------------------------------------------------------------------------- /src/lib/types.ts: -------------------------------------------------------------------------------- 1 | 2 | export interface DomainInfo { 3 | id: string; 4 | name: string; 5 | expirationDate: Date; 6 | dateAdded: Date; 7 | } 8 | -------------------------------------------------------------------------------- /postcss.config.mjs: -------------------------------------------------------------------------------- 1 | /** @type {import('postcss-load-config').Config} */ 2 | const config = { 3 | plugins: { 4 | tailwindcss: {}, 5 | }, 6 | }; 7 | 8 | export default config; 9 | -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- 1 | 2 | import { clsx, type ClassValue } from "clsx" 3 | import { twMerge } from "tailwind-merge" 4 | 5 | export function cn(...inputs: ClassValue[]) { 6 | return twMerge(clsx(inputs)) 7 | } 8 | -------------------------------------------------------------------------------- /src/ai/genkit.ts: -------------------------------------------------------------------------------- 1 | import {genkit} from 'genkit'; 2 | import {googleAI} from '@genkit-ai/googleai'; 3 | 4 | export const ai = genkit({ 5 | plugins: [googleAI()], 6 | model: 'googleai/gemini-2.0-flash', 7 | }); 8 | -------------------------------------------------------------------------------- /src/components/ui/skeleton.tsx: -------------------------------------------------------------------------------- 1 | import { cn } from "@/lib/utils" 2 | 3 | function Skeleton({ 4 | className, 5 | ...props 6 | }: React.HTMLAttributes) { 7 | return ( 8 |
12 | ) 13 | } 14 | 15 | export { Skeleton } 16 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 功能请求 3 | about: 为该项目提出您的想法 4 | title: "[功能] " 5 | labels: enhancement 6 | assignees: '' 7 | --- 8 | 9 | ## 您的功能请求是否与问题有关?请描述 10 | 简明扼要地描述问题所在。例如,当[...]时我总是感到沮丧。 11 | 12 | ## 描述您希望的解决方案 13 | 清晰简洁地描述您希望发生的事情。 14 | 15 | ## 描述您考虑过的替代方案 16 | 清晰简洁地描述您考虑过的任何替代解决方案或功能。 17 | 18 | ## 预期用例 19 | 描述此功能的主要使用场景和受益用户。 20 | 21 | ## 其他信息 22 | 在此处添加有关功能请求的任何其他信息或截图。 -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://ui.shadcn.com/schema.json", 3 | "style": "default", 4 | "rsc": true, 5 | "tsx": true, 6 | "tailwind": { 7 | "config": "tailwind.config.ts", 8 | "css": "src/app/globals.css", 9 | "baseColor": "neutral", 10 | "cssVariables": true, 11 | "prefix": "" 12 | }, 13 | "aliases": { 14 | "components": "@/components", 15 | "utils": "@/lib/utils", 16 | "ui": "@/components/ui", 17 | "lib": "@/lib", 18 | "hooks": "@/hooks" 19 | }, 20 | "iconLibrary": "lucide" 21 | } -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug报告 3 | about: 创建Bug报告以帮助我们改进 4 | title: "[BUG] " 5 | labels: bug 6 | assignees: '' 7 | --- 8 | 9 | ## 描述Bug 10 | 清晰简洁地描述该Bug是什么。 11 | 12 | ## 复现步骤 13 | 复现该行为的步骤: 14 | 1. 前往 '...' 15 | 2. 点击 '....' 16 | 3. 滚动到 '....' 17 | 4. 查看错误 18 | 19 | ## 预期行为 20 | 清晰简洁地描述您期望发生的事情。 21 | 22 | ## 截图 23 | 如果适用,添加截图以帮助解释您的问题。 24 | 25 | ## 环境信息 26 | - 操作系统: [例如: Windows 10, Ubuntu 20.04] 27 | - 浏览器 [例如: Chrome, Safari] 28 | - 版本 [例如: 22] 29 | - 部署方式 [例如: Docker, PM2] 30 | 31 | ## 其他信息 32 | 在此处添加关于该问题的任何其他信息。 -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | ## 描述 2 | 3 | 请描述您的更改以及它们解决了什么问题。请链接到任何相关的问题。 4 | 5 | 修复 #(issue编号) 6 | 7 | ## 更改类型 8 | 9 | - [ ] 修复Bug 10 | - [ ] 新功能 11 | - [ ] 代码样式更新(格式,重命名) 12 | - [ ] 重构(没有功能变化,没有api变化) 13 | - [ ] 构建相关更改 14 | - [ ] 文档内容更改 15 | - [ ] 其他(请描述) 16 | 17 | ## 测试 18 | 19 | 请描述您的测试方法以及如何验证您的更改。 20 | 21 | ## 截图 22 | 23 | 如果适用,请添加截图以帮助解释您的更改。 24 | 25 | ## 检查清单 26 | 27 | - [ ] 我的代码遵循该项目的编码风格 28 | - [ ] 我已经自我审查了我的代码 29 | - [ ] 我已经更新了文档(如果适用) 30 | - [ ] 我的更改不会生成新的警告 31 | - [ ] 我添加了测试(如果适用) 32 | - [ ] 所有新旧测试都通过 33 | 34 | ## 其他信息 35 | 36 | 提供有关您的PR的任何其他信息。 -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- 1 | const nextConfig = { 2 | /* config options here */ 3 | typescript: { 4 | ignoreBuildErrors: true, 5 | }, 6 | eslint: { 7 | ignoreDuringBuilds: true, 8 | }, 9 | images: { 10 | remotePatterns: [ 11 | { 12 | protocol: 'https', 13 | hostname: 'placehold.co', 14 | port: '', 15 | pathname: '/**', 16 | }, 17 | ], 18 | }, 19 | output: 'standalone', 20 | // 指定输出端口为9769 21 | experimental: { 22 | serverComponentsExternalPackages: [], 23 | }, 24 | }; 25 | 26 | module.exports = nextConfig; 27 | -------------------------------------------------------------------------------- /src/hooks/use-mobile.tsx: -------------------------------------------------------------------------------- 1 | import * as React from "react" 2 | 3 | const MOBILE_BREAKPOINT = 768 4 | 5 | export function useIsMobile() { 6 | const [isMobile, setIsMobile] = React.useState(undefined) 7 | 8 | React.useEffect(() => { 9 | const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`) 10 | const onChange = () => { 11 | setIsMobile(window.innerWidth < MOBILE_BREAKPOINT) 12 | } 13 | mql.addEventListener("change", onChange) 14 | setIsMobile(window.innerWidth < MOBILE_BREAKPOINT) 15 | return () => mql.removeEventListener("change", onChange) 16 | }, []) 17 | 18 | return !!isMobile 19 | } 20 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.* 7 | .yarn/* 8 | !.yarn/patches 9 | !.yarn/plugins 10 | !.yarn/releases 11 | !.yarn/versions 12 | 13 | # testing 14 | /coverage 15 | 16 | # next.js 17 | /.next/ 18 | /out/ 19 | 20 | # production 21 | /build 22 | 23 | # misc 24 | .DS_Store 25 | *.pem 26 | 27 | # debug 28 | npm-debug.log* 29 | yarn-debug.log* 30 | yarn-error.log* 31 | .pnpm-debug.log* 32 | 33 | # vercel 34 | .vercel 35 | 36 | # typescript 37 | *.tsbuildinfo 38 | next-env.d.ts 39 | 40 | .genkit/* 41 | .env* 42 | 43 | # firebase 44 | firebase-debug.log 45 | firestore-debug.log -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | 2 | { 3 | "compilerOptions": { 4 | "target": "ES2017", 5 | "lib": ["dom", "dom.iterable", "esnext"], 6 | "allowJs": true, 7 | "skipLibCheck": true, 8 | "strict": true, 9 | "noEmit": true, 10 | "esModuleInterop": true, 11 | "module": "esnext", 12 | "moduleResolution": "bundler", 13 | "resolveJsonModule": true, 14 | "isolatedModules": true, 15 | "jsx": "preserve", 16 | "incremental": true, 17 | "plugins": [ 18 | { 19 | "name": "next" 20 | } 21 | ], 22 | "paths": { 23 | "@/*": ["./src/*"] 24 | } 25 | }, 26 | "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], 27 | "exclude": ["node_modules"] 28 | } 29 | -------------------------------------------------------------------------------- /src/components/ui/textarea.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | 3 | import {cn} from '@/lib/utils'; 4 | 5 | const Textarea = React.forwardRef>( 6 | ({className, ...props}, ref) => { 7 | return ( 8 |