Skip to content

💃 Free CC0 mannequin pose reference library for AI image tools (Nano Banana, ChatGPT, ComfyUI, Midjourney) — 250+ poses × 5 angles in line art, names in ja/zh/en/ko

feat(web): series tabs, sexy-content toggle and QC-aware placeholders

wquguruc1a158b10b78
diff --git a/AGENTS.md b/AGENTS.md
index 9bbcd798..be0b68ff 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -5,9 +5,9 @@ includes this file.
## 1. What this is
A self-made pose reference library: faceless mannequin line art, each pose drawn from five angles (front, diag,
-side, above, below), for people who drive AI image tools with pose references. v0.1.0 ships 73 standard full-body
-poses (364/365 views), 111 photo renders for 23 poses, a four-language catalog (ja / zh / en / ko) and, next, a static
-gallery in `web/`.
+side, above, below), for people who drive AI image tools with pose references. Three series: `std` full body
+(P###, 73 sets), `upper` upper body (U###, 80) and `sexy` full body (S###, 80, rated suggestive), plus photo renders
+for 23 std sets, a four-language catalog (ja / zh / en / ko) and a static gallery in `web/`.
## 2. Hard rules
- **No outside images.** Never download, cache, mirror, re-encode or trace images from ai-pose-gallery
@@ -15,8 +15,13 @@ gallery in `web/`.
redistributing the image data, processed copies included; the mirror's MIT licence covers its front-end code only.
UI patterns may be referenced; code and copy may not be copied.
- **Catalog is the source of truth.** Every image is listed in `data/catalog.json`; `tools/verify.py` must pass.
- A view that could not be generated is `null` and goes into `KNOWN_GAPS` with the reason in `docs/GENERATION.md` —
- never fill a gap with a mirrored, flipped or low-quality drawing.
+ A view that could not be generated is `null` with `gaps: missing` — never fill a gap with a mirrored, flipped or
+ low-quality drawing.
+- **No view ships without a QC pass.** Every catalog view has `status: pass` in `data/qc.json`; a new or redrawn
+ view goes through docs/qc/README.md (review sheets → Sonnet review + pose-name check → `qc_merge.py`) before it
+ enters `images/`. Never mark a view `pass` by hand to get it in.
+- **Ratings.** Every pose has `rating` (`general` / `suggestive`); suggestive poses stay out of the marquee, pose pages,
+ share cards and sitemap, and are hidden in the gallery until the reader opts in (D-06).
- **IDs are stable.** `P001`… never get renumbered or reused (P023 and P028 are retired). New poses take the next
free number; the source-list number goes in `orig_id`.
- **Full-size originals stay out of git.** Commit only the `w300` and `w900` tiers; full size ships as a Release
@@ -33,8 +38,10 @@ README.md overview (English); docs/readme/README.{zh-CN,ja,ko}.md —
LICENSE, NOTICE Apache-2.0 for code, catalog, docs and images (D-01); NOTICE ships in every zip
CONTRIBUTING.md contributor guide; SECURITY.md, CODE_OF_CONDUCT.md; .github/ issue + PR templates
CHANGELOG.md Keep a Changelog; every user-visible change adds a line under [Unreleased]
-data/catalog.json 73 poses: id, orig_id, class_*, name_* (jp/cn/en/kr), desc_en, views{front..below}, photos[]
-data/catalog.csv same data for spreadsheets (o = view present)
+data/catalog.json 233 poses: id, orig_id, series, rating, added_in, class_*, name_* (jp/cn/en/kr), desc_en,
+ views{front..below} (file or null), gaps{view: missing|line|structure}, photos{view: file}
+data/qc.json per-view QC status, reason and file name; per-set pose-name notes (docs/qc/README.md)
+data/catalog.csv tools/export_csv.py output (o = passed, x = failed QC, - = not generated)
images/line/w300/ grid tier, 300 px wide WebP q70
images/line/w900/ lightbox/download tier, 900×1200 WebP q75
images/photo/… same two tiers for photo renders
@@ -43,7 +50,9 @@ web/ gallery source: index.html template, app.js, app.css, i18n.
site/ build output of tools/build_site.py (git-ignored; deploy this): home, pose pages and changelog
per language (zh at the root, ja/ en/ ko/), og/ share cards, sitemap, robots, 404, manifest
build/og-cache/ share-card render cache (git-ignored)
-tools/ build_images.sh, build_site.py (+ site_pages.py, og_cards.py), verify.py, pack_release.sh
+tools/ build_images.py, build_site.py (+ site_pages.py, og_cards.py), verify.py, pack_release.sh,
+ import_series.py, review_sheets.py, line_dups.py, qc_merge.py, export_csv.py
+docs/qc/ QC method, results and the reviewer prompt
docs/DESIGN.md gallery layout, tokens, interaction spec (agent-facing copy of the design canvas)
docs/DECISIONS.md open questions and decisions awaiting a human
docs/GENERATION.md how the sets were made, gap log
@@ -51,8 +60,8 @@ docs/LICENSING.md licensing rules (outside images, redistribution, AI-generat
docs/logo.svg, docs/screenshot.png README assets; retake the screenshot when the hero changes
.github/workflows/ CI: verify.py
```
-File names are `std_<ID>_<view>.webp`, identical across tiers. `std` is the series (standard full-body); a future
-series gets its own prefix and its own catalog file.
+File names are `<series>_<ID>_<view>.webp` (`std_P001_front.webp`, `upper_U001_front.webp`), identical across tiers.
+All series share `data/catalog.json`; a new series gets its own prefix and ID letter.
## 4. Environment
- macOS, zsh. Unquoted `$var` is not word-split in zsh; write flags literally or use arrays.
@@ -61,17 +70,20 @@ series gets its own prefix and its own catalog file.
## 5. Common commands
```bash
-tools/build_images.sh ~/Downloads/pose-gallery-std73 # (re)build w300 + w900, skips up-to-date files
-python3 tools/verify.py # catalog ↔ files, known gaps, orphans
+python3 tools/build_images.py std=~/Downloads/pose-gallery-std73 sexy=~/Downloads/pose-gallery-sexy80 \
+ upper=~/Downloads/pose-gallery-upper80 # w300 + w900 for passing views; prunes everything else
+python3 tools/verify.py # catalog ↔ qc.json ↔ images, gaps, orphans
+python3 tools/import_series.py SRC --series X --added 0.2.0 [--general Cute] # merge a new series
+python3 tools/qc_merge.py <qc_dir> # apply review results (docs/qc/README.md)
python3 tools/build_site.py --link-images && python3 -m http.server 8000 -d site # preview the gallery
python3 tools/build_site.py --site https://… # deploy build: absolute URLs (D-05); share cards need Chrome, --no-og skips
tools/pack_release.sh ~/Downloads/pose-gallery-std73 0.1.0 # dist/shisei-std73-full-v0.1.0.zip + sha256
```
## 6. Way of working
-- **Adding poses or views**: drop sources into the source set → `build_images.sh` → add catalog entries (all four
- languages, `desc_en`) → `verify.py` → CHANGELOG line. A pose with a missing view ships with `null` plus a
- `KNOWN_GAPS` entry and a GENERATION.md note.
+- **Adding poses or views**: drop sources into the source set → `import_series.py` (or edit the catalog: all four
+ languages, `desc_en` where possible) → QC per docs/qc/README.md → `qc_merge.py` → `build_images.py` → `verify.py`
+ → `export_csv.py` → CHANGELOG line and a GENERATION.md note.
- **Translations**: ja is the original naming; zh / en / ko are translations. Keep names short (`動作・手の位置`
shape); change all four together.
- **Web**: follow docs/DESIGN.md. Every UI string lives in `web/i18n.js` in all four languages; `index.html` placeholders
@@ -107,3 +119,6 @@ adding a new image series.
| Licence (D-01): Apache-2.0 | ✅ 2026-10-28 |
| Photo policy (D-03) | ☐ waiting on a human |
| Fill P062 below | ☐ open |
+| upper + sexy series, line-art QC, series / rating filters | ✅ v0.2.0 (unreleased) |
+| Relabel the 23 std sets whose drawing is another pose (D-07) | ☐ waiting on a human |
+| Rewrite failed views out of git history before going public (D-08) | ☐ waiting on a human |
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8d2fdc17..1ae401ab 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,17 @@ the catalog schema.
## [Unreleased]
### Added
+- Two new series: upper body (80 poses, U001–U080) and full-body sexy (80 poses, S001–S080). The catalog gains
+ `series`, `rating`, `added_in` and `gaps`; `photos` becomes a `{view: file}` map.
+- Line-art QC for all 1,100 views ([docs/qc/](docs/qc/README.md)): Sonnet panel review plus a pose-name check,
+ merged by `tools/qc_merge.py` into `data/qc.json`. 856 views pass; failed views leave `images/` and the catalog.
+- Gallery: series tabs, a "sexy content" toggle (off by default, D-06), an "all 5 angles" filter, "failed QC" vs
+ "not generated" placeholders, and counts computed from the data.
+- Tools: `import_series.py`, `review_sheets.py`, `line_dups.py`, `qc_merge.py`, `export_csv.py`; `build_images.py`
+ replaces `build_images.sh` and prunes files that are no longer in the catalog.
+
+### Removed
+- 157 std views that failed QC, including 23 whole sets whose drawing is a different pose from their name (D-07).
- Licensed under Apache-2.0 (`LICENSE`, `NOTICE`) for code, catalog, docs and images; the full-size zip now includes
both files. Licensing rules in [docs/LICENSING.md](docs/LICENSING.md).
- `CONTRIBUTING.md`, `SECURITY.md`, `CODE_OF_CONDUCT.md`, issue templates (bug, pose request) and a PR template.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 20e59c75..aa068701 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -29,17 +29,17 @@ has no runtime dependencies and no build step beyond `build_site.py`.
python3 -I tools/verify.py # catalog ↔ files, known gaps, orphans
python3 -I tools/build_site.py --link-images # writes site/ with symlinked images
python3 -m http.server 8000 -d site # http://localhost:8000
-tools/build_images.sh ~/path/to/source-set # (re)build w300 + w900 from full-size sources
+python3 tools/build_images.py std=~/path/to/std-source-set … # (re)build w300 + w900 for views that passed QC
```
## What a pull request needs
1. **`tools/verify.py` passes.** Never weaken it to make it pass. A view that could not be made is `null` in the
- catalog, listed in `KNOWN_GAPS`, and explained in [docs/GENERATION.md](docs/GENERATION.md) — never filled with a
+ catalog, listed in `gaps` (`missing`), and explained in [docs/GENERATION.md](docs/GENERATION.md) — never filled with a
mirrored, flipped or low-quality drawing.
2. **Catalog entries are complete**: `class_*` and `name_*` in ja / zh / en / ko and an English `desc_en`. Japanese is
the original naming; change all four names together and keep them short (`動作・手の位置`).
-3. **Images**: only the `w300` and `w900` tiers are committed, built by `tools/build_images.sh` (metadata stripped).
+3. **Images**: only the `w300` and `w900` tiers are committed, built by `tools/build_images.py` (metadata stripped), and only for views with a QC `pass` in `data/qc.json` ([docs/qc/](docs/qc/README.md)).
Full-size originals ship in the Release zip. Image rebuilds go in their own commit.
4. **Web changes** follow [docs/DESIGN.md](docs/DESIGN.md), include a screenshot, work at 390×844 without horizontal
scroll, and add every user-visible string to `web/i18n.js` in all four languages. Check with
diff --git a/README.md b/README.md
index eb6dfe8e..12099226 100644
--- a/README.md
+++ b/README.md
@@ -4,12 +4,12 @@
# Shisei 姿勢
-**73 mannequin poses × 5 camera angles, drawn as clean line art for AI image tools.**
+**207 mannequin poses in three series × 5 camera angles, drawn as clean line art for AI image tools.**
English · [简体中文](docs/readme/README.zh-CN.md) · [日本語](docs/readme/README.ja.md) · [한국어](docs/readme/README.ko.md)
-[![Poses](https://img.shields.io/badge/poses-73-15171A?style=flat-square)](data/catalog.json)
-[![Line art](https://img.shields.io/badge/line%20art-364%2F365-1A5CC8?style=flat-square)](docs/GENERATION.md)
+[![Poses](https://img.shields.io/badge/poses-207-15171A?style=flat-square)](data/catalog.json)
+[![Line art](https://img.shields.io/badge/line%20art-856%20QC%20passed-1A5CC8?style=flat-square)](docs/GENERATION.md)
[![Photos](https://img.shields.io/badge/photos-111-5B616A?style=flat-square)](docs/GENERATION.md)
[![Languages](https://img.shields.io/badge/names-ja%20·%20zh%20·%20en%20·%20ko-0aa06e?style=flat-square)](data/catalog.csv)
[![Dependencies](https://img.shields.io/badge/runtime%20deps-0-E07A52?style=flat-square)](web)
@@ -29,19 +29,20 @@ All images are original to this project.
## What's inside
-| Category | Poses | | Category | Poses |
-|---|---:|---|---|---:|
-| Sitting 座り | 14 | | Squatting しゃがみ | 6 |
-| Standing 立ち | 14 | | Leaning forward 前かがみ | 6 |
-| Kneeling 膝立ち | 10 | | Arching back 反り | 3 |
-| Lying 寝そべり | 9 | | Twist ひねり | 3 |
-| Side sit / W-sit 横座り | 8 | | **Total** | **73** |
-
-- **364 of 365** line-art views. The one gap is P062 *below*: nine attempts failed, so it is marked missing rather
- than filled with a bad drawing.
-- **111 photo renders** for 23 poses (P001–P022 in five angles, P050 front) — AI-generated adults, not real people.
-- `data/catalog.json` / `catalog.csv`: ID, category and name in four languages, an English pose description you can
- paste into a prompt, and the file for each view.
+| Series | Poses shown | Views that passed QC | On the site |
+|---|---:|---:|---|
+| Full body · standard (`std`, P###) | 50 of 73 | 208 / 365 | shown |
+| Upper body (`upper`, U###) | 77 of 80 | 307 / 400 | Cute shown; Sexy and Chest emphasis behind a toggle |
+| Full body · sexy (`sexy`, S###) | 80 of 80 | 341 / 400 | behind a toggle |
+
+- **Every view is reviewed** ([docs/qc/](docs/qc/README.md)). A view that fails (nipple marks, a face or hair,
+ clothing, background, broken anatomy, the wrong camera angle, or a drawing that is not the named pose) is removed
+ from `images/` and the catalog, and `data/qc.json` keeps the reason. 23 std sets show a different pose from their
+ name and stay hidden until they are relabelled.
+- Views that were never generated stay empty rather than being filled with a bad drawing.
+- **112 photo renders** for std P001–P022 and P050: AI-generated adults, not real people.
+- `data/catalog.json` / `catalog.csv`: series, rating, category and name in four languages, an English pose
+ description for std, the file for each view, and why a view is empty.
## Using the images
@@ -78,7 +79,7 @@ Deep links open the lightbox directly: `#P001-diag`, `#P001-diag-photo`; filters
data/ catalog.json, catalog.csv — the source of truth
images/ line/ and photo/, each with w300/ and w900/ tiers
web/ static gallery source (index.html, app.js, app.css, i18n.js)
-tools/ build_images.sh, build_site.py, verify.py, pack_release.sh
+tools/ build_images.py, build_site.py, verify.py, qc_merge.py, review_sheets.py, pack_release.sh
docs/ DESIGN, DECISIONS, GENERATION, LICENSING, translated READMEs, logo, screenshot
```
diff --git a/docs/DECISIONS.md b/docs/DECISIONS.md
index df93ea02..8ceae003 100644
--- a/docs/DECISIONS.md
+++ b/docs/DECISIONS.md
@@ -4,6 +4,23 @@
## 待定
+### D-08 已提交历史里的质检不通过图(2026-10-28)
+`0a111e4`(std 两档图)已推到 origin(私有仓库),其中 157 个机位这次质检没过:26 个线条问题(乳头标记、头发、鞋子等),130 个结构问题,1 个本来就缺。工作区已经删掉,但历史里还在。仓库转公开前要决定:
+1. 重写 `0a111e4` 去掉这些文件后 force-push(只有私有仓库时代价最小);
+2. 保留历史,接受公开后仍能从历史里取到。
+推荐 1,需要人点头(force-push main)。
+
+### D-07 23 套 std 姿势画的和名字对不上(2026-10-28)
+P019–P052 一段里有 23 套(P019、P020、P022、P025–P027、P029–P038、P043–P048、P052),线稿本身干净、五机位一致,但画的是另一个姿势(多是站立、行走),名字和分类都对不上。现在整套判 `structure` 不显示,`data/qc.json` 的 `sets` 里记了每套实际画的是什么。可选:
+1. 按实际画面重新命名、改分类(四语 + `desc_en`),复审后放回,std 回到 73 套;
+2. 保持隐藏,以后重新生成。
+推荐 1:画是好的,只是标签错了。需要人确认后再改名,因为会改 std 的分类数量。
+
+### D-06 性感内容默认隐藏(2026-10-28,agent 暂定,待人确认)
+全身・性感系列(80 套)和上半身的性感系、聚胸系(55 套)在 catalog 里 `rating: "suggestive"`,页面默认不显示,读者点「性感内容:隐藏」开关后才出现,选择记在本机 localStorage;首屏滚动方块永远只用 `general`。静态姿势页、分享卡、sitemap 只收 std 的 `general`。
+- 改默认值:`web/app.js` 顶部 `SHOW_SUGGESTIVE_DEFAULT`。
+- 另一个要人定的问题:sexy 系列要不要进公开仓库(源包 README 写的是「仅供自用」,AGENTS §2 内容安全)。质检已经去掉乳头、五官、衣物这类问题,剩下的是姿势本身偏性感。
+
### D-05 站点域名(canonical / og:image / sitemap 用的绝对地址)
分享卡、canonical、hreflang、sitemap 都要绝对 URL。`tools/build_site.py --site URL`(或环境变量 `SHISEI_SITE_URL`)指定,
默认先用 GitHub Pages 地址 `https://wquguru.github.io/shisei`。可选:
diff --git a/docs/DESIGN.md b/docs/DESIGN.md
index 5899a700..f5b92ecd 100644
--- a/docs/DESIGN.md
+++ b/docs/DESIGN.md
@@ -31,6 +31,14 @@
- 语言切换覆盖全部界面文案和姿势名,记在 URL 参数和 localStorage。
- 所有可点元素至少 44px,图标按钮带 `aria-label`。
+## 标签与过滤(v0.2.0)
+- 系列:全部 / 全身・标准 / 上半身 / 全身・性感,分段按钮在分类上方,带当前可见套数;没有可见姿势的系列不出按钮。
+- 分级:`general` / `suggestive`。右上「性感内容:隐藏 / 显示」开关,默认隐藏(D-06),记在 localStorage,不进 URL。
+- 分类:选了系列才出该系列的分类(颜色按 `class_en`),另有 NEW(最新 `added_in`,全系列都新时不显示)和「五机位齐全」。
+- 质检:只显示通过的机位。缺的机位按 `gaps` 区分文案:`missing` →「暂未收录」,`line` / `structure` →「质检未通过」。
+ 一个机位都没通过的姿势整套不出现。
+- URL:`?series=upper&cat=0&full=1`;深链 `#S001-front` / `#U017-side` 同样可用(被分级挡住的不打开)。
+
## 静态页与分享(tools/site_pages.py 生成)
- 每个语言一份:zh 在根目录(也是 x-default),ja / en / ko 在子目录;页面都是目录(`pose/P001/`),链接全部相对,子路径部署可用。
- zh 页面在首帧前按「?lang → 已保存的语言 → 浏览器语言」跳到对应语言;爬虫不跳,各语言 URL 各自被收录。其他语言页只认 ?lang。
diff --git a/docs/GENERATION.md b/docs/GENERATION.md
index cfbdf16e..10120c1c 100644
--- a/docs/GENERATION.md
+++ b/docs/GENERATION.md
@@ -6,6 +6,16 @@
- 线稿 1344×1792 WebP;实拍 1120×2240 WebP。
- 顽固机位主要靠「线稿转机位」补齐:以已有机位的线稿为输入,重绘目标机位。
+## 全身・性感系 v0.2.0(80 套,S001–S080)
+- 无脸球关节素体,胸臀只靠外轮廓。成品 382/400,生成阶段缺 18 格:S006 正面、S013 仰视、S017 正面/仰视、S022 正面、S024 仰视、S027 俯视、S032 仰视、S036 正面/仰视、S042 仰视、S045 仰视、S046 侧面/仰视、S060 正面、S071 俯视/仰视、S078 仰视。
+- 姿势选题参考公开姿势目录的编号与名称(`orig_id`),图全部自制。
+
+## 上半身 v0.2.0(80 套,U001–U080)
+- 头到髋取景,下半身出框。成品 354/400,生成阶段缺 46 格;U051、U072 整套未成(模型总把「肘弯、手在肋高」画成手臂直垂)。缺口明细见源包 README,已全部记成 `gaps: missing`。
+
+## 质检
+三个系列都过了一轮质检,方法和结果见 [qc/README.md](qc/README.md)。
+
## 已知缺口
| 姿势 | 机位 | 尝试 | 结果 |
|---|---|---|---|
diff --git a/docs/readme/README.ja.md b/docs/readme/README.ja.md
index 6f1130a2..011ccd72 100644
--- a/docs/readme/README.ja.md
+++ b/docs/readme/README.ja.md
@@ -4,12 +4,12 @@
# Shisei 姿勢
-**73 ポーズ × 5 アングル。AI 画像生成のポーズ参照に使える素体の線画ライブラリ。**
+**3 シリーズ 207 ポーズ × 5 アングル。AI 画像生成のポーズ参照に使える素体の線画ライブラリ。**
[English](../../README.md) · [简体中文](README.zh-CN.md) · 日本語 · [한국어](README.ko.md)
-[![Poses](https://img.shields.io/badge/ポーズ-73-15171A?style=flat-square)](../../data/catalog.json)
-[![Line art](https://img.shields.io/badge/線画-364%2F365-1A5CC8?style=flat-square)](../GENERATION.md)
+[![Poses](https://img.shields.io/badge/ポーズ-207-15171A?style=flat-square)](../../data/catalog.json)
+[![Line art](https://img.shields.io/badge/線画-856%20QC%20passed-1A5CC8?style=flat-square)](../GENERATION.md)
[![Photos](https://img.shields.io/badge/実写-111-5B616A?style=flat-square)](../GENERATION.md)
[![Languages](https://img.shields.io/badge/名称-ja%20·%20zh%20·%20en%20·%20ko-0aa06e?style=flat-square)](../../data/catalog.csv)
[![Dependencies](https://img.shields.io/badge/ランタイム依存-0-E07A52?style=flat-square)](../../web)
@@ -27,17 +27,16 @@ Shisei は自作のポーズ参照ライブラリです。すべてのポーズ
## 収録内容
-| カテゴリ | ポーズ数 | | カテゴリ | ポーズ数 |
-|---|---:|---|---|---:|
-| 座り | 14 | | しゃがみ | 6 |
-| 立ち | 14 | | 前かがみ | 6 |
-| 膝立ち | 10 | | 反り | 3 |
-| 寝そべり | 9 | | ひねり | 3 |
-| 横座り | 8 | | **合計** | **73** |
+| シリーズ | 表示ポーズ | 品質チェック合格 | サイトでの扱い |
+|---|---:|---:|---|
+| 全身・標準(`std`、P###) | 50 / 73 | 208 / 365 | 表示 |
+| 上半身(`upper`、U###) | 77 / 80 | 307 / 400 | かわいい系は表示、セクシー系・胸寄せ系はスイッチで表示 |
+| 全身・セクシー(`sexy`、S###) | 80 / 80 | 341 / 400 | スイッチで表示 |
-- 線画は **365 枚中 364 枚**。唯一の欠番は P062 の下からのアングルで、9 回試して失敗したため、出来の悪い絵で埋めずに欠番としています。
-- **実写 111 枚**(23 ポーズ:P001–P022 は 5 アングル、P050 は正面)。AI 生成の成人で、実在の人物ではありません。
-- `data/catalog.json` / `catalog.csv`:ID、四か国語のカテゴリと名称、プロンプトに貼れる英語のポーズ説明、アングルごとのファイル名。
+- **すべてのアングルを品質チェック**しています([docs/qc/](../qc/README.md))。乳首の印、顔や髪、衣服、背景、崩れた構造、違うアングル、名前と違うポーズのものは `images/` と catalog から外し、理由を `data/qc.json` に残しています。std の 23 ポーズは名前と絵が合わないため、名前を直すまで非表示です。
+- 生成できなかったアングルは、崩れた絵で埋めずに空けています。
+- **実写 112 枚**(std の P001–P022 と P050)。AI 生成の成人で、実在の人物ではありません。
+- `data/catalog.json` / `catalog.csv`:シリーズ、レーティング、4 言語の分類と名前、std の英語ポーズ説明、アングルごとのファイル、空欄の理由。
## 使い方
@@ -69,7 +68,7 @@ python3 tools/build_site.py # 画像込みのデプロイ用
data/ catalog.json、catalog.csv — 唯一のデータソース
images/ line/ と photo/、それぞれ w300/ と w900/
web/ 静的ギャラリーのソース(index.html、app.js、app.css、i18n.js)
-tools/ build_images.sh、build_site.py、verify.py、pack_release.sh
+tools/ build_images.py、build_site.py、verify.py、qc_merge.py、review_sheets.py、pack_release.sh
docs/ DESIGN、DECISIONS、GENERATION、LICENSING、各言語の README、ロゴ、スクリーンショット
```
diff --git a/docs/readme/README.ko.md b/docs/readme/README.ko.md
index 9714539b..f4be9143 100644
--- a/docs/readme/README.ko.md
+++ b/docs/readme/README.ko.md
@@ -4,12 +4,12 @@
# Shisei 姿勢
-**73가지 포즈 × 5개 앵글. AI 이미지 도구의 포즈 참고용 마네킹 선화 라이브러리.**
+**3개 시리즈 207가지 포즈 × 5개 앵글. AI 이미지 도구의 포즈 참고용 마네킹 선화 라이브러리.**
[English](../../README.md) · [简体中文](README.zh-CN.md) · [日本語](README.ja.md) · 한국어
-[![Poses](https://img.shields.io/badge/포즈-73-15171A?style=flat-square)](../../data/catalog.json)
-[![Line art](https://img.shields.io/badge/선화-364%2F365-1A5CC8?style=flat-square)](../GENERATION.md)
+[![Poses](https://img.shields.io/badge/포즈-207-15171A?style=flat-square)](../../data/catalog.json)
+[![Line art](https://img.shields.io/badge/선화-856%20QC%20passed-1A5CC8?style=flat-square)](../GENERATION.md)
[![Photos](https://img.shields.io/badge/실사-111-5B616A?style=flat-square)](../GENERATION.md)
[![Languages](https://img.shields.io/badge/이름-ja%20·%20zh%20·%20en%20·%20ko-0aa06e?style=flat-square)](../../data/catalog.csv)
[![Dependencies](https://img.shields.io/badge/런타임%20의존성-0-E07A52?style=flat-square)](../../web)
@@ -27,17 +27,16 @@ Shisei는 직접 만든 포즈 참고 라이브러리입니다. 모든 포즈는
## 구성 내용
-| 카테고리 | 포즈 수 | | 카테고리 | 포즈 수 |
-|---|---:|---|---|---:|
-| 앉기 | 14 | | 쪼그려 앉기 | 6 |
-| 서기 | 14 | | 숙이기 | 6 |
-| 무릎 꿇기 | 10 | | 젖히기 | 3 |
-| 눕기 | 9 | | 비틀기 | 3 |
-| 옆 앉기 | 8 | | **합계** | **73** |
+| 시리즈 | 표시 포즈 | 품질 검사 통과 앵글 | 사이트에서 |
+|---|---:|---:|---|
+| 전신・표준 (`std`, P###) | 50 / 73 | 208 / 365 | 표시 |
+| 상반신 (`upper`, U###) | 77 / 80 | 307 / 400 | 귀여운계는 표시, 섹시계·가슴 강조계는 스위치를 켜야 표시 |
+| 전신・섹시 (`sexy`, S###) | 80 / 80 | 341 / 400 | 스위치를 켜야 표시 |
-- 선화 **365장 중 364장**. 유일하게 빠진 것은 P062의 아래에서 본 앵글로, 9번 시도해 실패해서 잘못된 그림으로 채우지 않고 빈칸으로 두었습니다.
-- **실사 111장** (23가지 포즈: P001–P022는 5개 앵글, P050은 정면). AI로 생성한 성인이며 실존 인물이 아닙니다.
-- `data/catalog.json` / `catalog.csv`: ID, 4개 언어의 카테고리와 이름, 프롬프트에 붙여 넣을 수 있는 영어 포즈 설명, 앵글별 파일.
+- **모든 앵글을 품질 검사**했습니다([docs/qc/](../qc/README.md)). 유두 표시, 얼굴이나 머리카락, 옷, 배경, 망가진 구조, 잘못된 앵글, 이름과 다른 포즈는 `images/`와 catalog에서 뺐고, 이유는 `data/qc.json`에 남겼습니다. std의 23개 세트는 그림이 이름과 달라 이름을 고칠 때까지 숨깁니다.
+- 생성하지 못한 앵글은 잘못된 그림으로 채우지 않고 비워 둡니다.
+- **실사 112장** (std의 P001–P022, P050). AI로 생성한 성인이며 실존 인물이 아닙니다.
+- `data/catalog.json` / `catalog.csv`: 시리즈, 등급, 4개 언어 분류와 이름, std의 영문 포즈 설명, 앵글별 파일, 빈 앵글의 이유.
## 사용 방법
@@ -69,7 +68,7 @@ python3 tools/build_site.py # 이미지를 포함한 배포
data/ catalog.json, catalog.csv — 유일한 데이터 원본
images/ line/과 photo/, 각각 w300/과 w900/
web/ 정적 갤러리 소스 (index.html, app.js, app.css, i18n.js)
-tools/ build_images.sh, build_site.py, verify.py, pack_release.sh
+tools/ build_images.py, build_site.py, verify.py, qc_merge.py, review_sheets.py, pack_release.sh
docs/ DESIGN, DECISIONS, GENERATION, LICENSING, 언어별 README, 로고, 스크린샷
```
diff --git a/docs/readme/README.zh-CN.md b/docs/readme/README.zh-CN.md
index 85c45771..1cc4713c 100644
--- a/docs/readme/README.zh-CN.md
+++ b/docs/readme/README.zh-CN.md
@@ -4,12 +4,12 @@
# Shisei 姿勢
-**73 套素体姿势,每套 5 个机位,给 AI 绘图当姿势参考的线稿库。**
+**三个系列 207 套素体姿势,每套 5 个机位,给 AI 绘图当姿势参考的线稿库。**
[English](../../README.md) · 简体中文 · [日本語](README.ja.md) · [한국어](README.ko.md)
-[![Poses](https://img.shields.io/badge/姿势-73-15171A?style=flat-square)](../../data/catalog.json)
-[![Line art](https://img.shields.io/badge/线稿-364%2F365-1A5CC8?style=flat-square)](../GENERATION.md)
+[![Poses](https://img.shields.io/badge/姿势-207-15171A?style=flat-square)](../../data/catalog.json)
+[![Line art](https://img.shields.io/badge/线稿-856%20QC%20passed-1A5CC8?style=flat-square)](../GENERATION.md)
[![Photos](https://img.shields.io/badge/实拍-111-5B616A?style=flat-square)](../GENERATION.md)
[![Languages](https://img.shields.io/badge/名称-ja%20·%20zh%20·%20en%20·%20ko-0aa06e?style=flat-square)](../../data/catalog.csv)
[![Dependencies](https://img.shields.io/badge/运行时依赖-0-E07A52?style=flat-square)](../../web)
@@ -27,17 +27,16 @@ Shisei 是一套自己生成的姿势参考库。每个姿势都是无脸素体
## 内容
-| 分类 | 套数 | | 分类 | 套数 |
-|---|---:|---|---|---:|
-| 坐姿 | 14 | | 蹲姿 | 6 |
-| 站立 | 14 | | 前倾 | 6 |
-| 跪姿 | 10 | | 后仰 | 3 |
-| 躺姿 | 9 | | 扭转 | 3 |
-| 侧坐 | 8 | | **合计** | **73** |
+| 系列 | 显示的套数 | 质检通过的机位 | 页面上 |
+|---|---:|---:|---|
+| 全身・标准(`std`,P###) | 50 / 73 | 208 / 365 | 默认显示 |
+| 上半身(`upper`,U###) | 77 / 80 | 307 / 400 | 可爱系默认显示,性感系、聚胸系要打开开关 |
+| 全身・性感(`sexy`,S###) | 80 / 80 | 341 / 400 | 要打开开关 |
-- 线稿 **364/365** 张。唯一缺的是 P062 仰视,试了 9 次都没成功,宁可标成缺失也不放一张画错的。
-- **111 张实拍**,覆盖 23 套(P001–P022 五个机位,P050 正面),都是 AI 生成的成年人物,不对应任何真人。
-- `data/catalog.json` 和 `catalog.csv` 里有编号、四语分类和名称、可直接放进提示词的英文姿势描述,以及每个机位对应的文件。
+- **每个机位都过了质检**([docs/qc/](../qc/README.md))。有乳头标记、五官或头发、衣物、背景、结构畸形、机位不对,或者画的不是这个姿势的,都从 `images/` 和 catalog 里拿掉了,原因记在 `data/qc.json`。std 有 23 套画的姿势和名字对不上,重新命名之前先不显示。
+- 没生成出来的机位宁可留空,也不放一张画错的。
+- **112 张实拍**,覆盖 std 的 P001–P022 和 P050,都是 AI 生成的成年人物,不对应任何真人。
+- `data/catalog.json` 和 `catalog.csv` 里有系列、分级、四语分类和名称、std 的英文姿势描述、每个机位的文件,以及机位为空的原因。
## 怎么用
@@ -69,7 +68,7 @@ python3 tools/build_site.py # 可部署的完整副本,约
data/ catalog.json、catalog.csv:唯一的数据源
images/ line/ 和 photo/,各有 w300/ 和 w900/ 两档
web/ 静态画廊源码(index.html、app.js、app.css、i18n.js)
-tools/ build_images.sh、build_site.py、verify.py、pack_release.sh
+tools/ build_images.py、build_site.py、verify.py、qc_merge.py、review_sheets.py、pack_release.sh
docs/ DESIGN、DECISIONS、GENERATION、LICENSING、各语言 README、logo、截图
```
diff --git a/web/app.css b/web/app.css
index 22ce99bd..44ae0159 100644
--- a/web/app.css
+++ b/web/app.css
@@ -343,3 +343,15 @@ dialog::backdrop { background: rgba(38, 34, 30, 0.55); }
.cl-item { flex-direction: column; gap: 6px; }
.cl-item time { flex: none; }
}
+
+/* series tabs + rating toggle (above the category chips) */
+.series-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
+.seg.series .n { font-family: var(--mono); font-size: 12px; opacity: 0.7; }
+.chip.adult { margin-left: auto; }
+.chip.adult[aria-pressed="true"] { background: var(--field); color: var(--ink); border-color: var(--accent); }
+@media (max-width: 720px) {
+ .series-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
+ .seg.series { flex-wrap: nowrap; flex: 0 0 auto; }
+ .seg.series button { white-space: nowrap; }
+ .chip.adult { margin-left: 0; }
+}
diff --git a/web/app.js b/web/app.js
index d14db628..0472cbe3 100644
--- a/web/app.js
+++ b/web/app.js
@@ -5,9 +5,17 @@
const I18N = window.I18N;
const LANGS = ['zh', 'ja', 'en', 'ko'];
const VIEWS = ['front', 'diag', 'side', 'above', 'below'];
- // Order matches I18N[*].cats; class_en is the stable key in the catalog.
- const CAT_KEYS = ['Sitting', 'Standing', 'Kneeling', 'Lying', 'Side sit / W-sit', 'Squatting', 'Leaning forward', 'Arching back', 'Twist'];
- const TINT = ['#D3D1E6', '#AFC3E0', '#BCD3C6', '#E3CBB0', '#EBC0BC', '#C7DCD6', '#E6B7A1', '#CBD0AC', '#DDB9C8'];
+ const SERIES = ['std', 'upper', 'sexy'];
+ // Categories per series, keyed by the catalog's class_en. std's order matches I18N[*].cats (its catalog names are
+ // long); the other series use their catalog class_* names as labels.
+ const CATS = {
+ std: [['Sitting', '#D3D1E6'], ['Standing', '#AFC3E0'], ['Kneeling', '#BCD3C6'], ['Lying', '#E3CBB0'], ['Side sit / W-sit', '#EBC0BC'],
+ ['Squatting', '#C7DCD6'], ['Leaning forward', '#E6B7A1'], ['Arching back', '#CBD0AC'], ['Twist', '#DDB9C8']],
+ upper: [['Cute', '#EBC0BC'], ['Sexy', '#E6B7A1'], ['Chest emphasis', '#CBD0AC']],
+ sexy: [['Standing', '#AFC3E0'], ['Sitting', '#D3D1E6'], ['Lying', '#E3CBB0'], ['Kneeling & all fours', '#BCD3C6'], ['Special', '#DDB9C8']]
+ };
+ // Suggestive poses (the sexy series, upper's Sexy / Chest emphasis) stay hidden until the reader opts in (DECISIONS D-06).
+ const SHOW_SUGGESTIVE_DEFAULT = false;
const TOOLS = ['ComfyUI', 'Stable Diffusion', 'Flux', 'Midjourney', 'Nano Banana', 'Qwen-Image', '即梦'];
const NAME_LABEL = { cn: 'ZH', jp: 'JA', en: 'EN', kr: 'KO' };
// Each language has its own copy of this page (zh at the root, the others under ja/ en/ ko/) so search engines and
@@ -15,17 +23,21 @@
const BASE = window.SHISEI.base || '';
const PREFIX = { zh: '', ja: 'ja/', en: 'en/', ko: 'ko/' };
- const poses = CATALOG.map((p) => ({
- ...p,
- ci: Math.max(0, CAT_KEYS.indexOf(p.class_en)),
- isNew: !!p.orig_id,
- line: VIEWS.map((v) => p.views[v] || null),
- photo: VIEWS.map((v) => ((p.photos || []).includes(v) ? p.views[v] : null))
- }));
+ // A view is in the catalog only if it passed QC; a pose with no passing view is not shown at all.
+ const LATEST = CATALOG.map((p) => p.added_in || '').sort().pop();
+ const poses = CATALOG.filter((p) => VIEWS.some((v) => p.views[v])).map((p) => {
+ const ci = Math.max(0, (CATS[p.series] || CATS.std).findIndex((c) => c[0] === p.class_en));
+ const line = VIEWS.map((v) => p.views[v] || null);
+ return {
+ ...p, ci, line,
+ tint: (CATS[p.series] || CATS.std)[ci][1],
+ isNew: p.added_in === LATEST,
+ suggestive: p.rating === 'suggestive',
+ full: line.every(Boolean),
+ photo: VIEWS.map((v) => (p.photos && p.photos[v]) || null)
+ };
+ });
const byId = new Map(poses.map((p) => [p.id, p]));
- const catCounts = CAT_KEYS.map((_, i) => poses.filter((p) => p.ci === i).length);
- const newCount = poses.filter((p) => p.isNew).length;
- const photoCount = poses.filter((p) => p.photo.some(Boolean)).length;
const store = {
get: (k) => { try { return localStorage.getItem('shisei.' + k); } catch (e) { return null; } },
@@ -40,7 +52,10 @@
// The page's own language; the head script already moved the reader if ?lang or their saved choice says otherwise.
const S = {
lang: LANGS.includes(window.SHISEI.lang) ? window.SHISEI.lang : 'zh',
- cat: intParam('cat', 0, CAT_KEYS.length - 1, -1),
+ series: SERIES.includes(params.get('series')) ? params.get('series') : 'all',
+ cat: intParam('cat', 0, 8, -1),
+ full: params.get('full') === '1',
+ adult: (store.get('adult') ?? (SHOW_SUGGESTIVE_DEFAULT ? '1' : '0')) === '1',
newOnly: params.get('new') === '1',
angle: intParam('angle', 0, 4, -1),
medium: params.get('src') === 'photo' ? 'photo' : 'line',
@@ -56,6 +71,16 @@
const src = (kind, tier, file) => BASE + 'images/' + kind + '/' + tier + '/' + file;
const srcset = (kind, file) => src(kind, 'w300', file) + ' 300w, ' + src(kind, 'w900', file) + ' 900w';
const files = (p, photo) => (photo ? p.photo : p.line);
+ const catLabel = (p) => (p.series === 'std' ? t().cats[p.ci] : p['class_' + t().suffix]);
+ // What the reader may see at all: rating first, then the series tab.
+ const allowed = () => poses.filter((p) => S.adult || !p.suggestive);
+ const inSeries = () => allowed().filter((p) => S.series === 'all' || p.series === S.series);
+ const missingText = (p, v, photo) => {
+ const T = t();
+ if (photo) return [T.missingPhoto(T.views[v]), T.missingPhotoSub];
+ const g = (p.gaps || {})[VIEWS[v]];
+ return g === 'line' || g === 'structure' ? [T.qcFail(T.views[v]), T.qcFailSub] : [T.missingLine(T.views[v]), T.missingLineSub];
+ };
const firstView = (arr) => Math.max(0, arr.findIndex(Boolean));
function toast(msg) {
@@ -77,7 +102,9 @@
function syncUrl() {
const p = new URLSearchParams();
+ if (S.series !== 'all') p.set('series', S.series);
if (S.cat >= 0) p.set('cat', S.cat);
+ if (S.full) p.set('full', '1');
if (S.newOnly) p.set('new', '1');
if (S.angle >= 0) p.set('angle', S.angle);
if (S.medium === 'photo') p.set('src', 'photo');
@@ -98,19 +125,24 @@
document.querySelectorAll('[data-i18n-ph]').forEach((el) => { el.placeholder = T[el.dataset.i18nPh]; });
document.querySelectorAll('[data-i18n-aria]').forEach((el) => { el.setAttribute('aria-label', T[el.dataset.i18nAria]); });
$('lang').textContent = T.short;
+ const n = allowed().length;
+ document.querySelector('.hero-sub').textContent = T.heroSub(n);
+ document.querySelector('[data-i18n="browse"]').textContent = T.browse(n);
+ $('new-title').textContent = T.newTitle(allowed().filter((p) => p.isNew).length);
$('howList').innerHTML = T.how.map((s) => '<li>' + esc(s) + '</li>').join('');
$('termsList').innerHTML = T.termsItems.map((s) => '<li>' + esc(s) + '</li>').join('');
}
/* hero */
function renderMarquee() {
+ const safe = poses.filter((p) => !p.suggestive);
const row = (offset) => {
const tiles = [];
for (let k = 0; k < 18; k++) {
- const p = poses[(k * 7 + offset * 11) % poses.length];
+ const p = safe[(k * 7 + offset * 11) % safe.length];
const vi = (k * 2 + offset) % 5;
const f = p.line[vi] || p.line[firstView(p.line)];
- tiles.push('<span class="mq-tile" style="background:' + TINT[p.ci] + '"><img src="' + src('line', 'w300', f) + '" alt="" width="146" height="146" decoding="async"></span>');
+ tiles.push('<span class="mq-tile" style="background:' + p.tint + '"><img src="' + src('line', 'w300', f) + '" alt="" width="146" height="146" decoding="async"></span>');
}
return tiles.join('') + tiles.join('');
};
@@ -121,11 +153,11 @@
function renderFeatured() {
const T = t();
- $('featured').innerHTML = poses.filter((p) => p.isNew).map((p) => {
+ $('featured').innerHTML = allowed().filter((p) => p.isNew).slice(0, 24).map((p) => {
const vi = p.line[1] ? 1 : firstView(p.line);
const n = p.line.filter(Boolean).length;
return '<button type="button" class="fcard" data-open="' + p.id + '" data-v="' + vi + '" aria-label="' + esc(T.open(p.id) + ' ' + nameOf(p)) + '">' +
- '<span class="ftile" style="background:' + TINT[p.ci] + '"><img src="' + src('line', 'w300', p.line[vi]) + '" srcset="' + srcset('line', p.line[vi]) + '" sizes="300px" alt="" loading="lazy" decoding="async">' +
+ '<span class="ftile" style="background:' + p.tint + '"><img src="' + src('line', 'w300', p.line[vi]) + '" srcset="' + srcset('line', p.line[vi]) + '" sizes="300px" alt="" loading="lazy" decoding="async">' +
'<span class="badge new">' + T.newBadge + '</span><span class="vlabel">' + n + '/5</span></span>' +
'<span class="fcard-t"><span>' + esc(nameOf(p)) + '</span><span class="mono muted" style="font-size:13px">' + p.id + '</span></span></button>';
}).join('');
@@ -135,9 +167,24 @@
function renderCats() {
const T = t();
const chip = (label, n, sel, dot, act) => '<button type="button" class="chip" role="tab" aria-selected="' + sel + '" data-act="' + act + '"><span class="dot" style="background:' + dot + '"></span>' + esc(label) + '<span class="n">' + n + '</span></button>';
- $('cats').innerHTML = chip(T.all, poses.length, S.cat < 0 && !S.newOnly, 'var(--accent)', 'cat:-1') +
- T.cats.map((c, i) => chip(c, catCounts[i], S.cat === i, TINT[i], 'cat:' + i)).join('') +
- chip(T.newBadge, newCount, S.newOnly, 'var(--new)', 'new');
+ const ok = allowed();
+ const tabs = [['all', ok.length]].concat(SERIES.map((k) => [k, ok.filter((p) => p.series === k).length])).filter((x) => x[1] > 0);
+ $('series').setAttribute('aria-label', T.seriesLabel);
+ $('series').innerHTML = tabs.map(([k, n]) => '<button type="button" data-act="series:' + k + '" aria-pressed="' + (S.series === k) + '">' + esc(T.series[k]) + ' <span class="n">' + n + '</span></button>').join('');
+ const adult = $('adult');
+ adult.setAttribute('aria-pressed', String(S.adult));
+ adult.title = T.adultHint;
+ adult.innerHTML = '<span class="dot" style="background:' + (S.adult ? 'var(--accent)' : 'var(--line)') + '"></span>' + esc(S.adult ? T.adultOn : T.adultOff);
+ const base = inSeries();
+ const cats = S.series === 'all' ? [] : CATS[S.series].map((c, i) => {
+ const sample = base.find((p) => p.ci === i);
+ return sample ? chip(catLabel(sample), base.filter((p) => p.ci === i).length, S.cat === i, c[1], 'cat:' + i) : '';
+ });
+ const nNew = base.filter((p) => p.isNew).length;
+ const nFull = base.filter((p) => p.full).length;
+ $('cats').innerHTML = chip(T.all, base.length, S.cat < 0 && !S.newOnly && !S.full, 'var(--accent)', 'cat:-1') + cats.join('') +
+ (nNew && nNew < base.length ? chip(T.newBadge, nNew, S.newOnly, 'var(--new)', 'new') : '') +
+ chip(T.full, nFull, S.full, 'var(--ink)', 'full');
}
function segHtml(cls, label, opts) {
@@ -148,7 +195,7 @@
const T = t();
return [
[T.angle, segHtml('angle', T.angle, [[T.angleAll, 'angle:-1', S.angle < 0]].concat(T.views.map((v, i) => [v, 'angle:' + i, S.angle === i])))],
- [T.medium, segHtml('medium', T.medium, [[T.line, 'medium:line', S.medium === 'line'], [T.photo + ' · ' + photoCount, 'medium:photo', S.medium === 'photo']])],
+ [T.medium, segHtml('medium', T.medium, [[T.line, 'medium:line', S.medium === 'line'], [T.photo + ' · ' + inSeries().filter((p) => p.photo.some(Boolean)).length, 'medium:photo', S.medium === 'photo']])],
[T.view, segHtml('view', T.view, [[T.byPose, 'view:pose', S.view === 'pose'], [T.single, 'view:single', S.view === 'single']])]
];
}
@@ -163,9 +210,10 @@
/* grid */
function pool() {
const q = S.q.trim().toLowerCase();
- return poses.filter((p) => {
- if (S.cat >= 0 && p.ci !== S.cat) return false;
+ return inSeries().filter((p) => {
+ if (S.series !== 'all' && S.cat >= 0 && p.ci !== S.cat) return false;
if (S.newOnly && !p.isNew) return false;
+ if (S.full && !p.full) return false;
if (S.medium === 'photo' && !p.photo.some(Boolean)) return false;
if (!q) return true;
const hay = [p.id, p.orig_id || '', p.name_cn, p.name_jp, p.name_en, p.name_kr, p.class_cn, p.class_jp, p.class_en, p.class_kr].join(' ').toLowerCase();
@@ -186,15 +234,16 @@
const f = arr[cur];
const kind = photo ? 'photo' : 'line';
const dots = VIEWS.map((_, i) => '<button type="button" data-dot="' + i + '" aria-label="' + esc(T.views[i]) + '" aria-pressed="' + (i === cur) + '"' + (arr[i] ? '' : ' disabled') + '><i></i></button>').join('');
- return '<article class="card" data-id="' + p.id + '" style="--tint:' + TINT[p.ci] + '">' +
+ const [missB, missS] = missingText(p, cur, photo);
+ return '<article class="card" data-id="' + p.id + '" style="--tint:' + p.tint + '">' +
'<a class="tile" href="#' + p.id + '-' + VIEWS[cur] + '" data-tile aria-label="' + esc(T.open(p.id) + ' ' + nameOf(p)) + '">' +
'<img' + (f ? ' src="' + src(kind, 'w300', f) + '" srcset="' + srcset(kind, f) + '"' : '') + ' sizes="(max-width: 720px) 50vw, 320px" alt="' + esc(p.id + ' ' + nameOf(p) + ' · ' + T.views[cur]) + '" loading="lazy" decoding="async"' + (f ? '' : ' hidden') + '>' +
- '<span class="missing"' + (f ? ' hidden' : '') + '><b>' + esc(photo ? T.missingPhoto(T.views[cur]) : T.missingLine(T.views[cur])) + '</b><span>' + esc(photo ? T.missingPhotoSub : T.missingLineSub) + '</span></span>' +
+ '<span class="missing"' + (f ? ' hidden' : '') + '><b>' + esc(missB) + '</b><span>' + esc(missS) + '</span></span>' +
(p.isNew ? '<span class="badge new">' + T.newBadge + '</span>' : '') +
(!photo && p.photo.some(Boolean) ? '<span class="badge ph">' + esc(T.hasPhoto) + '</span>' : '') +
'<span class="vlabel">' + esc(T.views[cur]) + ' ' + (cur + 1) + '/5</span>' +
'</a>' +
- '<div class="card-foot"><div class="card-t"><h3>' + esc(nameOf(p)) + '</h3><span>' + p.id + ' · ' + esc(T.cats[p.ci]) + '</span></div>' +
+ '<div class="card-foot"><div class="card-t"><h3>' + esc(nameOf(p)) + '</h3><span>' + p.id + ' · ' + esc(catLabel(p)) + '</span></div>' +
'<div class="dots" role="group" aria-label="' + esc(T.angle) + '">' + dots + '</div></div></article>';
}
@@ -215,6 +264,7 @@
}
img.hidden = !f;
miss.hidden = !!f;
+ if (!f) { const [b, s] = missingText(p, cur, photo); miss.innerHTML = '<b>' + esc(b) + '</b><span>' + esc(s) + '</span>'; }
card.querySelector('.vlabel').textContent = T.views[cur] + ' ' + (cur + 1) + '/5';
card.querySelector('[data-tile]').setAttribute('href', '#' + p.id + '-' + VIEWS[cur]);
card.querySelectorAll('[data-dot]').forEach((b) => b.setAttribute('aria-pressed', String(+b.dataset.dot === cur)));
@@ -237,14 +287,14 @@
const tiles = [];
list.forEach((p) => files(p, photo).forEach((f, i) => {
if (!f || (S.angle >= 0 && S.angle !== i)) return;
- tiles.push('<a class="stile" href="#' + p.id + '-' + VIEWS[i] + '" data-open="' + p.id + '" data-v="' + i + '" style="--tint:' + TINT[p.ci] + '" aria-label="' + esc(p.id + ' ' + nameOf(p) + ' · ' + T.views[i]) + '">' +
+ tiles.push('<a class="stile" href="#' + p.id + '-' + VIEWS[i] + '" data-open="' + p.id + '" data-v="' + i + '" style="--tint:' + p.tint + '" aria-label="' + esc(p.id + ' ' + nameOf(p) + ' · ' + T.views[i]) + '">' +
'<span class="tile">' + '<img src="' + src(kind, 'w300', f) + '" srcset="' + srcset(kind, f) + '" sizes="(max-width: 720px) 50vw, 200px" alt="" loading="lazy" decoding="async"></span>' +
'<span class="stile-t"><span class="mono">' + p.id + '</span><span>' + esc(T.views[i]) + '</span></span></a>');
}));
count = tiles.length;
grid.innerHTML = tiles.join('');
}
- $('count').textContent = S.view === 'pose' ? T.countPoses(list.length) : T.countImages(count);
+ $('count').textContent = S.view === 'pose' ? T.countPoses(list.length, inSeries().length) : T.countImages(count);
$('sheetApply').textContent = T.show(list.length);
}
@@ -260,8 +310,10 @@
/* actions */
function act(a) {
const [k, v] = a.split(':');
- if (k === 'cat') { S.cat = +v; S.newOnly = false; }
+ if (k === 'cat') { S.cat = +v; S.newOnly = false; if (S.cat < 0) S.full = false; }
+ else if (k === 'series') { S.series = v; S.cat = -1; S.newOnly = false; }
else if (k === 'new') { S.newOnly = !S.newOnly; if (S.newOnly) S.cat = -1; }
+ else if (k === 'full') { S.full = !S.full; }
else if (k === 'angle') { S.angle = +v; S.per = {}; }
else if (k === 'medium') { S.medium = v; S.per = {}; }
else if (k === 'view') { S.view = v; }
@@ -270,6 +322,14 @@
renderGrid();
syncUrl();
}
+ $('adult').addEventListener('click', () => {
+ S.adult = !S.adult;
+ store.set('adult', S.adult ? '1' : '0');
+ if (!S.adult && S.series === 'sexy') S.series = 'all';
+ renderAll();
+ renderMarquee();
+ syncUrl();
+ });
document.addEventListener('click', (e) => {
const b = e.target.closest('[data-act]');
if (b) act(b.dataset.act);
@@ -348,11 +408,11 @@
const LB = { id: null, v: 0, photo: false };
function lbList() {
const list = pool();
- return list.some((p) => p.id === LB.id) ? list : poses;
+ return list.some((p) => p.id === LB.id) ? list : allowed();
}
function openLb(id, v, photo) {
const p = byId.get(id);
- if (!p) return;
+ if (!p || (p.suggestive && !S.adult)) return;
LB.id = id;
LB.photo = photo && p.photo.some(Boolean);
const arr = files(p, LB.photo);
@@ -366,7 +426,7 @@
const arr = files(p, LB.photo);
const f = arr[LB.v];
const kind = LB.photo ? 'photo' : 'line';
- const tint = LB.photo ? 'var(--tile)' : TINT[p.ci];
+ const tint = LB.photo ? 'var(--tile)' : p.tint;
$('lb').style.setProperty('--tint', tint);
$('lb').classList.toggle('photo', LB.photo);
const img = $('lbImg');
@@ -374,9 +434,10 @@
img.hidden = !f;
const miss = $('lbMissing');
miss.hidden = !!f;
- miss.innerHTML = f ? '' : '<b>' + esc(LB.photo ? T.missingPhoto(T.views[LB.v]) : T.missingLine(T.views[LB.v])) + '</b><span>' + esc(LB.photo ? T.missingPhotoSub : T.missingLineSub) + '</span>';
+ const [mb, ms] = missingText(p, LB.v, LB.photo);
+ miss.innerHTML = f ? '' : '<b>' + esc(mb) + '</b><span>' + esc(ms) + '</span>';
$('lbCounter').textContent = T.views[LB.v] + ' ' + (LB.v + 1) + '/5';
- $('lbMeta').textContent = p.id + ' · ' + T.cats[p.ci];
+ $('lbMeta').textContent = p.id + ' · ' + T.series[p.series] + ' · ' + catLabel(p);
$('lbTitle').textContent = nameOf(p);
$('lbNames').innerHTML = ['cn', 'jp', 'en', 'kr'].filter((s) => s !== T.suffix)
.map((s) => '<dt>' + NAME_LABEL[s] + '</dt><dd>' + esc(p['name_' + s]) + '</dd>').join('');
@@ -387,12 +448,16 @@
$('lbMedium').setAttribute('aria-label', T.medium);
$('lbMedium').innerHTML = '<button type="button" data-lbm="line" aria-pressed="' + !LB.photo + '">' + esc(T.line) + '</button>' +
'<button type="button" data-lbm="photo" aria-pressed="' + LB.photo + '"' + (hasPhoto ? '' : ' disabled') + '>' + esc(T.photo) + '</button>';
- $('lbDesc').textContent = p.desc_en;
+ $('lbDesc').textContent = p.desc_en || '';
+ $('lbDescBox').hidden = !p.desc_en;
const dl = $('lbDl');
$('lbDlText').textContent = T.download + ' · ' + (LB.photo ? '900×1800' : '900×1200');
if (f) { dl.href = src(kind, 'w900', f); dl.setAttribute('download', 'shisei_' + p.id + '_' + VIEWS[LB.v] + (LB.photo ? '_photo' : '') + '.webp'); dl.removeAttribute('aria-disabled'); }
else { dl.removeAttribute('href'); dl.setAttribute('aria-disabled', 'true'); }
- $('lbPage').href = posePage(p.id);
+ // Static pose pages exist only for general std poses (tools/site_pages.py).
+ const hasPage = p.series === 'std' && !p.suggestive;
+ $('lbPage').hidden = !hasPage;
+ if (hasPage) $('lbPage').href = posePage(p.id);
history.replaceState(null, '', location.pathname + location.search + '#' + p.id + '-' + VIEWS[LB.v] + (LB.photo ? '-photo' : ''));
}
const posePage = (id) => BASE + PREFIX[S.lang] + 'pose/' + id + '/';
@@ -463,7 +528,7 @@
// Deep links: #P001, #P001-diag, #P001-diag-photo
function openFromHash() {
- const m = location.hash.match(/^#(P\d{3})(?:-(front|diag|side|above|below))?(-photo)?$/);
+ const m = location.hash.match(/^#([PSU]\d{3})(?:-(front|diag|side|above|below))?(-photo)?$/);
if (m && byId.has(m[1])) openLb(m[1], m[2] ? VIEWS.indexOf(m[2]) : 0, !!m[3]);
}
window.addEventListener('hashchange', openFromHash);