Wiki-tmp

Wiki snapshot: two-stage preload and entry gate

获取代码

从这台服务器直连下载,不经过代理,速度约为走代理的 3~5 倍。

克隆(推荐,可增量更新)

git clone https://www.romancohort.cloud/git/Wiki-tmp.git

或者直接下载源码包(6.0 MB,main 分支当前快照)

下载 Wiki-tmp-3a297a3a.tar.gz

→ 在网页上浏览全部 679 个文件

仓库信息

README

Team JLU-FBH 2026 Wiki

This repository uses TypeScript and React to manage the wikis.

This repository MUST contain all coding assets to generate your team's wiki (HTML, CSS, JavaScript, TypeScript, Python, etc).

Images, photos, icons and fonts MUST be stored on static.igem.wiki using the uploads tool, and Videos must be embedded from iGEM Video Universe; see the Video & Audio page for guidance on adding video and audio.

Everything your wiki loads (CSS, JavaScript, fonts, images) must be served from iGEM infrastructure. Do not link to external or third-party CDNs (for example Google Fonts, jsDelivr, cdnjs) — upload the files you need via the uploads tool and reference them from static.igem.wiki instead.

For up-to-date requirements, resources, help and guidance, visit teams.igem.org/go/deliverables/wiki.

Using an AI assistant (e.g. Claude Code)? Please read .claude/RESPONSIBLE_AI_USE.md first. You remain fully responsible for everything you publish: never fabricate scientific results, data, or citations.

Getting Started

Before refactoring the code of this template to suit your wiki needs, please make sure you have the ability to use React for web development.

  1. Clone the repository: bash git clone https://gitlab.igem.org/2026/jlu-fbh cd jlu-fbh
  2. Install the dependencies:

bash yarn install

### Important:

Ensure you are using Node.js version >=20.19.0 (Node 22 LTS recommended) to avoid compatibility issues. You can check your Node version by running node -v in your terminal.

  1. Start the development server: bash yarn run dev
  2. Navigate to the files you wish to edit: - The main App component can be found under src/containers/App - Pre-built components are located under src/components - Individual pages can be modified in the src/pages.ts - Content pages can be updated in the src/contents
  3. Once you are done, save the changes by committing them to the main branch of the repository
  4. An automated script will build, test and deploy your wiki to the iGEM server

About This Template

Files

Below is the structure of important files and directories in this project:

├── README.md            -> The file you are currently reading
├── index.html           -> Single HTML file for the wiki
├── package.json         -> Manages project metadata and dependencies
├── src/
│   ├── components/      -> Pre-built components(like Navbar, Footer, etc.)
│   ├── containers/
│   │   └── App/         -> Main React application container
│   ├── contents/
│   │   └── *.tsx        -> Page components for the wiki
│   ├── main.tsx         -> Entry point of the wiki application
│   ├── pages.ts         -> Page definition and path mapping
│   ├── utils/           -> Utility functions
│   └── vite-env.d.ts    -> TypeScript definitions for Vite
├── tsconfig.json        -> Configures TypeScript options
├── tsconfig.node.json   -> TypeScript settings for Node.js
├── vite.config.ts       -> Configuration for the Vite tool
└── yarn.lock            -> Yarn lock file for dependency management

Technologies

  • React: A JavaScript library for building user interfaces
  • TypeScript: Extends JavaScript by adding types
  • Vite: Frontend tooling that provides faster and leaner development builds
  • Bootstrap: Framework for building responsive, mobile-first sites
  • React Router: Declarative routing for React applications
  • (Optional) Prettier: Code formatter

Shared page image loading

New pages inherit Hero and figure preloading through WikiRoutePage. Images in dialogs or inactive tabs use preloadImages or PageImagePreloads. See the shared loading contract and run yarn test:page-loading.