rebase-network

虚帅 Reno

这个文件是经过压缩的产物(theme.min.css),目前的“乱”就是因为被压缩;
直接展开会生成几万行,版本库里通常不建议提交格式化后的产物。建议保留压缩文件,用源样式文件(SCSS/CSS 未压缩版或对应的 theme.css/源码仓库)来维护,然后由构建流程生成 .min.css。

如果你确实需要查看/调试可读版本,可临时本地格式化(不提交),例如在项目根目录执行:

1
npx prettier packages/web/public/assets/css/theme.min.css --write(生成可读版本)

或先复制一份再格式化:

1
2
copy packages/web/public/assets/css/theme.min.css packages/web/public/assets/css/theme.css
npx prettier packages/web/public/assets/css/theme.css --write

简要结构概览(mono-repo)
根目录:pnpm-workspace.yaml/package.json 定义工作区,README.md 介绍项目。

packages/admin:Refine + Vite + TypeScript 的管理后台(React)。
入口 src/index.tsx,路由在 src/router.tsx,页面在 src/pages/…(posts/geekdailies/users等增删改查),constants.ts 配置常量。

packages/web:面向用户的官网/前台,Vite + React(JS)。
入口 src/main.jsx,路由配置 src/router.jsx,页面 src/pages/(home/about/event/geekdaily/job/signin/profile 等),公共组件在 src/components/,样式与静态资源在 public/assets(含 theme.min.css/js 及可读版 theme.css)。

packages/strapi:Strapi 后端(内容管理/API)。src/api/* 包含内容类型的 schema/controllers/routes/services(category、post、geekdaily、job、event等),config/*.js 为 Strapi 配置,public/uploads 存放上传文件。

packages/cloudflare-worker:Cloudflare Worker(src/index.ts),wrangler.toml 配置部署。

其他:各子包都有各自 package.json/yarn.lock/Vite 或 Strapi 配置、tsconfig 等;静态资源与字体

  • Title: rebase-network
  • Author: 虚帅
  • Created at : 2025-12-22 00:00:00
  • Updated at : 2026-02-14 17:11:04
  • Link: https://liujasmyn411.github.io/2025/12/22/1/
  • License: This work is licensed under CC BY-NC-SA 4.0.
Comments
On this page
rebase-network