尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Website of Prospekt, the iPhone lens simulator: a free lens comparison tool and focal length tables for 59 cameras, in 15 languages
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗The website for Prospekt, the iPhone lens simulator, live at https://prospekt.nakolini.com and served by GitHub Pages from main.
It has five kinds of pages, in 15 languages (the app's own, without Russian), all plain HTML that reads fine without JavaScript:
/: what the app does, price, privacy, limits, an honest comparison, FAQ./lens-compare/: a free lens comparison tool. Pick a body (and optionally a second one), focal lengths or zooms, and see the frames over a photo (a sample, or your own; it never leaves the browser) or over a standing person drawn to scale, with what each lens covers at a subject distance and how far to stand to fit a subject. Links are shareable: /lens-compare/?body=fujifilm-x-t5&f=23,33,56&d=3&u=m./cameras/ and /cameras/<body>/: focal length, full-frame equivalent and angle-of-view tables for every body in the app, plus what 24-135 mm cover at 1-10 m and portrait distances./guides/, /compare/<a>mm-vs-<b>mm/ and /focal-length/<use>/: question-shaped pages ("35 mm or 50 mm?", "best focal length for portraits") that answer first, then give the numbers for full frame, APS-C and Micro Four Thirds, the trade-offs and a link to the tool with those focal lengths. The pairs and uses are COMPARISONS and GUIDES in gen/build.py; their copy is the compare.*, guide.* and guides.* keys./changelog/: every release.404.html is the page GitHub Pages serves for any missing path. It's English only, kept out of search (noindex), and its links start at the site root (/cameras/) because it can be served at any depth.
English is at the root, other languages under /<lang>/ (/de/, /pt-br/, /zh-hans/...), linked with hreflang.
make build # regenerate every page from data/ and i18n/
make test # unit tests, translation parity, built-site checks (needs node for the JS parity test)
make check # build + test + fail if the committed output is stale (CI runs this)
make bodies # re-export the camera list from ../prospekt (PROSPEKT=path to override)
make serve # http://localhost:8000
Python 3.9+ standard library only. No dependencies.
gen/build.py: the generator and every page template. BASE_URL (canonical host) and PROVIDER_TOKEN (App Store campaign attribution) are at the top.site.css and lens-compare.js with ?v= and a hash of their content (asset_url), so a deploy never pairs new HTML with a cached old file. Rebuild after editing either.gen/lensmath.py: field-of-view math. assets/lens-compare.js has the same formulas for the tool; gen/tests/test_js_parity.py keeps them identical.data/bodies.json: generated from the app's CameraBody.curated; never edit by hand. data/mounts.json: lens mount per body, edited by hand. The tests fail if a body has no mount entry.i18n/<lang>.json: all page copy. en.json is the source; every other file must have the same keys and {placeholders} (tested).support.html, privacy.html, terms.html: hand-written, English only, linked from the App Store listing. Don't move them.favicon.ico and assets/icon-*.png, assets/apple-touch-icon.png: the app icon for browser tabs, the header logo, home-screen bookmarks and the app's JSON-LD image. Made from the app's AppIcon.png (1024 px, square) with ImageMagick: the PNGs and the .ico get iOS-style rounded corners (radius 22.4 % of the side) over transparency, the touch icon stays square because iOS rounds it itself.favicon.ico (index.html, CNAME, the IndexNow key file, lens-compare/, cameras/, changelog/, <lang>/, sitemap.xml, robots.txt, llms.txt) is generated. Edit the generator, not the output.make bodies, add its mount to data/mounts.json, make build.CHANGELOG in gen/build.py and the strings to every i18n/*.json.i18n/en.json, then update the same key in every other language. A key missing from a language falls back to English in the build, but the i18n tests fail until it's translated.COMPARISONS or GUIDES in gen/build.py and its strings to i18n/*.json (compare.<a>_<b>_answer and _choose_<n>, or guide.<slug>_name, _h1, _answer, _why_1-3, _use_<focal>, _faq_1-3_q/_a).https://prospekt.nakolini.com (Cloudflare CNAME prospekt → nakolini.github.io, DNS only). BASE_URL in gen/build.py drives canonical URLs, hreflang, the sitemap and the generated CNAME file; GitHub redirects the old nakolini.github.io/prospekt-site/ URLs there.python3 scripts/indexnow.py to notify Bing, Yandex, Seznam and Naver (the <key>.txt file at the root proves ownership). Google reads sitemap.xml from robots.txt; submit it once in Search Console.The person scene in the tool (the "Person" tile) is drawn by assets/lens-compare.js (drawScene), so it needs no credit. Sample photos (SAMPLES in gen/build.py, each credited in the footer of pages that show it):