');
+ inOl = true;
+ olIndex = 0;
+ }
+ olIndex += 1;
+ out.push("
" + olIndex + ". " + inline(ol[2], c) + "
");
+ continue;
+ }
+
+ if (!line.trim()) {
+ closeLists();
+ continue;
+ }
+
+ closeLists();
+ paraCount += 1;
+ var cls = dropCap && paraCount === 1 ? ' class="dropcap"' : "";
+ out.push("
" + inline(line.trim(), c) + "
");
+ }
+
+ flushQuote();
+ closeLists();
+ if (inCode) {
+ out.push('
' + escapeHtml(codeBuf.join("\n")) + "
");
+ }
+ return out.join("");
+ }
+
+ global.MarkdownLite = { markdownToHtml: markdownToHtml, themeColors: themeColors };
+})(window);
+
+/**
+ * Official XHS miniTool bridge helpers (Chrome 61 / ES2017).
+ * Prefer window.xhs.miniTool Storage (9.46+); fall back to localStorage.
+ */
+(function (global) {
+ "use strict";
+
+ var STORAGE_MIN = 9460;
+ var COMMENT_MIN = 9490;
+ var FILE_MIN = 9490;
+
+ function readBuildVersion(launchOptions) {
+ var env = launchOptions && launchOptions.miniToolEnv;
+ return Number(env && env.buildVersion) || 0;
+ }
+
+ function getClientVersion(buildVersion) {
+ return Math.floor((Number(buildVersion) || 0) / 1000);
+ }
+
+ function isClientVersionAtLeast(buildVersion, minimum) {
+ return getClientVersion(buildVersion) >= minimum;
+ }
+
+ function getMiniTool() {
+ return global.xhs && global.xhs.miniTool ? global.xhs.miniTool : null;
+ }
+
+ function getBuildVersion() {
+ var xhs = global.xhs;
+ var sync = readBuildVersion(xhs && xhs.launchOptions);
+ if (sync) {
+ return Promise.resolve(sync);
+ }
+ var mt = getMiniTool();
+ if (!mt || typeof mt.getLaunchOptions !== "function") {
+ return Promise.resolve(0);
+ }
+ return Promise.resolve(mt.getLaunchOptions())
+ .then(function (opts) {
+ return readBuildVersion(opts);
+ })
+ .catch(function () {
+ return 0;
+ });
+ }
+
+ function setLocalData(key, data, encrypt) {
+ var serialized;
+ try {
+ serialized = JSON.stringify(data);
+ } catch (e) {
+ return Promise.resolve(false);
+ }
+ if (typeof serialized !== "string") return Promise.resolve(false);
+ var useEncrypt = !!encrypt;
+
+ return getBuildVersion().then(function (buildVersion) {
+ var mt = getMiniTool();
+ if (
+ isClientVersionAtLeast(buildVersion, STORAGE_MIN) &&
+ mt &&
+ typeof mt.setStorage === "function"
+ ) {
+ var payload = { key: key, data: serialized };
+ if (useEncrypt) payload.encrypt = true;
+ return Promise.resolve(mt.setStorage(payload))
+ .then(function () {
+ return true;
+ })
+ .catch(function () {
+ return writeBrowser(key, serialized);
+ });
+ }
+ return writeBrowser(key, serialized);
+ });
+ }
+
+ function writeBrowser(key, serialized) {
+ try {
+ global.localStorage.setItem(key, serialized);
+ return true;
+ } catch (e) {
+ return false;
+ }
+ }
+
+ function getLocalData(key, fallback, encrypt) {
+ var useEncrypt = !!encrypt;
+ return getBuildVersion().then(function (buildVersion) {
+ var mt = getMiniTool();
+ if (
+ isClientVersionAtLeast(buildVersion, STORAGE_MIN) &&
+ mt &&
+ typeof mt.getStorage === "function"
+ ) {
+ var payload = { key: key };
+ if (useEncrypt) payload.encrypt = true;
+ return Promise.resolve(mt.getStorage(payload))
+ .then(function (res) {
+ var raw = res && res.data;
+ if (raw != null && raw !== "") {
+ try {
+ return JSON.parse(raw);
+ } catch (e) {
+ return fallback;
+ }
+ }
+ // Retry without encrypt (migration), then browser
+ if (useEncrypt) {
+ return Promise.resolve(mt.getStorage({ key: key }))
+ .then(function (res2) {
+ var raw2 = res2 && res2.data;
+ if (raw2 != null && raw2 !== "") {
+ try {
+ var parsed = JSON.parse(raw2);
+ return setLocalData(key, parsed, true).then(function () {
+ return parsed;
+ });
+ } catch (e2) {
+ return readBrowser(key, fallback);
+ }
+ }
+ return readBrowser(key, fallback);
+ })
+ .catch(function () {
+ return readBrowser(key, fallback);
+ });
+ }
+ var fromBrowser = readBrowser(key, null);
+ if (fromBrowser == null) return fallback;
+ return writeNative(mt, key, JSON.stringify(fromBrowser), false).then(
+ function () {
+ return fromBrowser;
+ },
+ function () {
+ return fromBrowser;
+ }
+ );
+ })
+ .catch(function () {
+ return readBrowser(key, fallback);
+ });
+ }
+ return readBrowser(key, fallback);
+ });
+ }
+
+ function writeNative(mt, key, serialized, encrypt) {
+ if (!mt || typeof mt.setStorage !== "function") {
+ return Promise.resolve(false);
+ }
+ var payload = { key: key, data: serialized };
+ if (encrypt) payload.encrypt = true;
+ return Promise.resolve(mt.setStorage(payload)).then(
+ function () {
+ return true;
+ },
+ function () {
+ return false;
+ }
+ );
+ }
+
+ function readBrowser(key, fallback) {
+ try {
+ var raw = global.localStorage.getItem(key);
+ if (raw == null || raw === "") return fallback;
+ return JSON.parse(raw);
+ } catch (e) {
+ return fallback;
+ }
+ }
+
+ function removeLocalData(key) {
+ return getBuildVersion().then(function (buildVersion) {
+ var mt = getMiniTool();
+ if (
+ isClientVersionAtLeast(buildVersion, STORAGE_MIN) &&
+ mt &&
+ typeof mt.removeStorage === "function"
+ ) {
+ return Promise.resolve(mt.removeStorage({ key: key }))
+ .then(function () {
+ removeBrowser(key);
+ return true;
+ })
+ .catch(function () {
+ return removeBrowser(key);
+ });
+ }
+ return removeBrowser(key);
+ });
+ }
+
+ function clearLocalData() {
+ return getBuildVersion().then(function (buildVersion) {
+ var mt = getMiniTool();
+ if (
+ isClientVersionAtLeast(buildVersion, STORAGE_MIN) &&
+ mt &&
+ typeof mt.clearStorage === "function"
+ ) {
+ return Promise.resolve(mt.clearStorage())
+ .then(function () {
+ clearBrowser();
+ return true;
+ })
+ .catch(function () {
+ return clearBrowser();
+ });
+ }
+ return clearBrowser();
+ });
+ }
+
+ function removeBrowser(key) {
+ try {
+ global.localStorage.removeItem(key);
+ return true;
+ } catch (e) {
+ return false;
+ }
+ }
+
+ function clearBrowser() {
+ try {
+ global.localStorage.clear();
+ return true;
+ } catch (e) {
+ return false;
+ }
+ }
+
+ function getLaunchOptions() {
+ var xhs = global.xhs;
+ if (xhs && xhs.launchOptions) {
+ return Promise.resolve(xhs.launchOptions);
+ }
+ var mt = getMiniTool();
+ if (!mt || typeof mt.getLaunchOptions !== "function") {
+ return Promise.resolve(null);
+ }
+ return Promise.resolve(mt.getLaunchOptions()).catch(function () {
+ return null;
+ });
+ }
+
+ /** Read miniToolSnapshotInfo from launch options (comment re-entry, §3.9). */
+ function readSnapshotInfo(launchOptions) {
+ if (!launchOptions) return null;
+ var raw =
+ launchOptions.miniToolSnapshotInfo ||
+ (launchOptions.query && launchOptions.query.miniToolSnapshotInfo) ||
+ (launchOptions.referrerInfo &&
+ launchOptions.referrerInfo.miniToolSnapshotInfo) ||
+ (launchOptions.extraData && launchOptions.extraData.miniToolSnapshotInfo);
+ if (!raw) return null;
+ if (typeof raw === "object") return raw;
+ try {
+ return JSON.parse(raw);
+ } catch (e) {
+ return null;
+ }
+ }
+
+ function callApi(name, options) {
+ var mt = getMiniTool();
+ if (!mt || typeof mt[name] !== "function") {
+ return Promise.reject({ errMsg: name + ":fail not available" });
+ }
+ return Promise.resolve(mt[name](options || {}));
+ }
+
+ function writeTempFile(dataUrl) {
+ return callApi("writeTempFile", { data: dataUrl }).then(function (res) {
+ return (res && res.filePath) || dataUrl;
+ });
+ }
+
+ function saveImageToPhotosAlbum(filePath) {
+ return callApi("saveImageToPhotosAlbum", { filePath: filePath });
+ }
+
+ function postNote(opts) {
+ return callApi("postNote", opts);
+ }
+
+ function canPostComment(buildVersion) {
+ var mt = getMiniTool();
+ return (
+ isClientVersionAtLeast(buildVersion, COMMENT_MIN) &&
+ mt &&
+ typeof mt.interactionOpenApi === "function"
+ );
+ }
+
+ function postComment(payload, saveToAlbum) {
+ return callApi("interactionOpenApi", {
+ payload: payload,
+ saveToAlbum: saveToAlbum !== false
+ });
+ }
+
+ function getStorageInfo() {
+ return getBuildVersion().then(function (buildVersion) {
+ var mt = getMiniTool();
+ if (
+ !isClientVersionAtLeast(buildVersion, STORAGE_MIN) ||
+ !mt ||
+ typeof mt.getStorageInfo !== "function"
+ ) {
+ return null;
+ }
+ return Promise.resolve(mt.getStorageInfo()).catch(function () {
+ return null;
+ });
+ });
+ }
+
+ function canUseFileSystem(buildVersion) {
+ var mt = getMiniTool();
+ return (
+ isClientVersionAtLeast(buildVersion, FILE_MIN) &&
+ mt &&
+ typeof mt.writeFile === "function" &&
+ typeof mt.readFile === "function"
+ );
+ }
+
+ function getUserDataPath() {
+ return getLaunchOptions().then(function (opts) {
+ var env = opts && opts.miniToolEnv;
+ return (env && env.userDataPath) || "";
+ });
+ }
+
+ function ensureDir(dirPath) {
+ var mt = getMiniTool();
+ if (!mt || typeof mt.mkdir !== "function") {
+ return Promise.resolve(false);
+ }
+ return Promise.resolve(mt.mkdir({ dirPath: dirPath, recursive: true }))
+ .then(function () {
+ return true;
+ })
+ .catch(function () {
+ return false;
+ });
+ }
+
+ function writeUtf8File(relativePath, data) {
+ return getBuildVersion().then(function (bv) {
+ if (!canUseFileSystem(bv)) {
+ return Promise.reject({ errMsg: "writeFile:fail version" });
+ }
+ return getUserDataPath().then(function (root) {
+ if (!root) return Promise.reject({ errMsg: "writeFile:fail no path" });
+ var rel = String(relativePath || "").replace(/^\/+/, "");
+ var parts = rel.split("/");
+ var dir =
+ parts.length > 1 ? root + "/" + parts.slice(0, -1).join("/") : root;
+ var filePath = root + "/" + rel;
+ return ensureDir(dir).then(function () {
+ return callApi("writeFile", {
+ filePath: filePath,
+ data: typeof data === "string" ? data : JSON.stringify(data),
+ encoding: "utf8"
+ }).then(function () {
+ return filePath;
+ });
+ });
+ });
+ });
+ }
+
+ function appendUtf8File(relativePath, data) {
+ return getBuildVersion().then(function (bv) {
+ if (!canUseFileSystem(bv)) {
+ return Promise.reject({ errMsg: "appendFile:fail version" });
+ }
+ var mt = getMiniTool();
+ if (!mt || typeof mt.appendFile !== "function") {
+ // Fallback: read + write
+ return readUtf8File(relativePath).then(function (prev) {
+ return writeUtf8File(
+ relativePath,
+ (prev || "") + (typeof data === "string" ? data : String(data))
+ );
+ });
+ }
+ return getUserDataPath().then(function (root) {
+ if (!root) return Promise.reject({ errMsg: "appendFile:fail no path" });
+ var rel = String(relativePath || "").replace(/^\/+/, "");
+ var parts = rel.split("/");
+ var dir =
+ parts.length > 1 ? root + "/" + parts.slice(0, -1).join("/") : root;
+ var filePath = root + "/" + rel;
+ return ensureDir(dir).then(function () {
+ return callApi("appendFile", {
+ filePath: filePath,
+ data: typeof data === "string" ? data : String(data),
+ encoding: "utf8"
+ }).then(function () {
+ return filePath;
+ });
+ });
+ });
+ });
+ }
+
+ function postVideoNote(opts) {
+ var videoRes = { video_url: opts.videoPath };
+ if (opts.coverPath) videoRes.cover_url = opts.coverPath;
+ return callApi("postNote", {
+ title: opts.title,
+ content: opts.content,
+ pageType: "video_publish",
+ mediaInfo: {
+ video_resources: videoRes
+ }
+ });
+ }
+
+ function readUtf8File(relativePath) {
+ return getBuildVersion().then(function (bv) {
+ if (!canUseFileSystem(bv)) {
+ return Promise.resolve(null);
+ }
+ return getUserDataPath().then(function (root) {
+ if (!root) return null;
+ var filePath = root + "/" + String(relativePath || "").replace(/^\/+/, "");
+ return callApi("readFile", { filePath: filePath, encoding: "utf8" })
+ .then(function (res) {
+ return res && res.data != null ? res.data : null;
+ })
+ .catch(function () {
+ return null;
+ });
+ });
+ });
+ }
+
+ /** Write dataURL to temp, then optionally persist via saveFile (9.49+). */
+ function persistImage(dataUrl, relativePath) {
+ return writeTempFile(dataUrl).then(function (tempPath) {
+ return getBuildVersion().then(function (bv) {
+ var mt = getMiniTool();
+ if (
+ !relativePath ||
+ !isClientVersionAtLeast(bv, FILE_MIN) ||
+ !mt ||
+ typeof mt.saveFile !== "function"
+ ) {
+ return tempPath;
+ }
+ return getUserDataPath().then(function (root) {
+ if (!root) return tempPath;
+ var dest = root + "/" + String(relativePath).replace(/^\/+/, "");
+ var dir = dest.replace(/\/[^/]+$/, "");
+ return ensureDir(dir).then(function () {
+ return callApi("saveFile", {
+ tempFilePath: tempPath,
+ filePath: dest
+ })
+ .then(function (res) {
+ return (res && res.savedFilePath) || dest || tempPath;
+ })
+ .catch(function () {
+ return tempPath;
+ });
+ });
+ });
+ });
+ });
+ }
+
+ function getFileStorageInfo() {
+ return getBuildVersion().then(function (bv) {
+ var mt = getMiniTool();
+ if (
+ !isClientVersionAtLeast(bv, FILE_MIN) ||
+ !mt ||
+ typeof mt.getFileStorageInfo !== "function"
+ ) {
+ return null;
+ }
+ return Promise.resolve(mt.getFileStorageInfo()).catch(function () {
+ return null;
+ });
+ });
+ }
+
+ function unlinkFile(relativeOrAbsPath) {
+ return getBuildVersion().then(function (bv) {
+ var mt = getMiniTool();
+ if (
+ !isClientVersionAtLeast(bv, FILE_MIN) ||
+ !mt ||
+ typeof mt.unlink !== "function"
+ ) {
+ return false;
+ }
+ var path = String(relativeOrAbsPath || "");
+ if (!path) return false;
+ var p = Promise.resolve(path);
+ if (path.indexOf("/") !== 0 && path.indexOf("usr") !== 0) {
+ p = getUserDataPath().then(function (root) {
+ return root ? root + "/" + path.replace(/^\/+/, "") : path;
+ });
+ }
+ return p.then(function (filePath) {
+ return callApi("unlink", { filePath: filePath })
+ .then(function () {
+ return true;
+ })
+ .catch(function () {
+ return false;
+ });
+ });
+ });
+ }
+
+ function readDirList(relativeDir) {
+ return getBuildVersion().then(function (bv) {
+ var mt = getMiniTool();
+ if (
+ !isClientVersionAtLeast(bv, FILE_MIN) ||
+ !mt ||
+ typeof mt.readDir !== "function"
+ ) {
+ return [];
+ }
+ return getUserDataPath().then(function (root) {
+ if (!root) return [];
+ var dirPath =
+ root +
+ (relativeDir
+ ? "/" + String(relativeDir).replace(/^\/+|\/+$/g, "")
+ : "");
+ return callApi("readDir", { dirPath: dirPath })
+ .then(function (res) {
+ var files = (res && res.files) || [];
+ return files.map(function (f) {
+ if (typeof f === "string") {
+ return { name: f, path: dirPath + "/" + f };
+ }
+ var name = f.name || f.fileName || String(f);
+ return {
+ name: name,
+ path: f.path || f.filePath || dirPath + "/" + name,
+ isDir: !!(f.isDir || f.isDirectory)
+ };
+ });
+ })
+ .catch(function () {
+ return [];
+ });
+ });
+ });
+ }
+
+ function cleanupShareDir() {
+ return readDirList("share").then(function (files) {
+ var chain = Promise.resolve(0);
+ for (var i = 0; i < files.length; i++) {
+ (function (file) {
+ if (file.isDir) return;
+ chain = chain.then(function (n) {
+ return callApi("unlink", { filePath: file.path })
+ .then(function () {
+ return n + 1;
+ })
+ .catch(function () {
+ return n;
+ });
+ });
+ })(files[i]);
+ }
+ return chain;
+ });
+ }
+
+ /** Convert
File / Blob to data URL (offline, no network). */
+ function blobToDataUrl(blob) {
+ return new Promise(function (resolve, reject) {
+ if (!blob) {
+ reject({ errMsg: "blobToDataUrl:fail empty" });
+ return;
+ }
+ try {
+ var reader = new FileReader();
+ reader.onload = function () {
+ resolve(reader.result);
+ };
+ reader.onerror = function () {
+ reject({ errMsg: "blobToDataUrl:fail read" });
+ };
+ reader.readAsDataURL(blob);
+ } catch (e) {
+ reject({ errMsg: "blobToDataUrl:fail " + (e && e.message) });
+ }
+ });
+ }
+
+ global.XhsBridge = {
+ getBuildVersion: getBuildVersion,
+ getClientVersion: getClientVersion,
+ isClientVersionAtLeast: isClientVersionAtLeast,
+ setLocalData: setLocalData,
+ getLocalData: getLocalData,
+ removeLocalData: removeLocalData,
+ clearLocalData: clearLocalData,
+ getStorageInfo: getStorageInfo,
+ getFileStorageInfo: getFileStorageInfo,
+ getLaunchOptions: getLaunchOptions,
+ readSnapshotInfo: readSnapshotInfo,
+ writeTempFile: writeTempFile,
+ saveImageToPhotosAlbum: saveImageToPhotosAlbum,
+ postNote: postNote,
+ canPostComment: canPostComment,
+ postComment: postComment,
+ canUseFileSystem: canUseFileSystem,
+ getUserDataPath: getUserDataPath,
+ writeUtf8File: writeUtf8File,
+ appendUtf8File: appendUtf8File,
+ readUtf8File: readUtf8File,
+ persistImage: persistImage,
+ unlinkFile: unlinkFile,
+ readDirList: readDirList,
+ cleanupShareDir: cleanupShareDir,
+ blobToDataUrl: blobToDataUrl,
+ postVideoNote: postVideoNote,
+ getMiniTool: getMiniTool,
+ STORAGE_MIN: STORAGE_MIN,
+ COMMENT_MIN: COMMENT_MIN,
+ FILE_MIN: FILE_MIN
+ };
+})(window);
+
/* bundled classic script for xhs minitool */
// Auto-generated by scripts/build_book_data.py — do not edit by hand.
var BOOK_DATA = {
@@ -3795,3 +4828,4 @@ var BOOK_DATA = {
}
})();
+
diff --git a/apps/miniprogram/xhs/release/book/index.html b/apps/miniprogram/xhs/release-book/index.html
similarity index 100%
rename from apps/miniprogram/xhs/release/book/index.html
rename to apps/miniprogram/xhs/release-book/index.html
diff --git a/apps/miniprogram/xhs/release/book/styles.css b/apps/miniprogram/xhs/release-book/styles.css
similarity index 100%
rename from apps/miniprogram/xhs/release/book/styles.css
rename to apps/miniprogram/xhs/release-book/styles.css
diff --git a/apps/miniprogram/xhs/release/app.js b/apps/miniprogram/xhs/release/app.js
index 6c013e1..a823e0a 100644
--- a/apps/miniprogram/xhs/release/app.js
+++ b/apps/miniprogram/xhs/release/app.js
@@ -1,604 +1,684 @@
-/* bundled classic script for xhs minitool */
-/* auto-generated — do not edit */
-window.__NAV_DATA__ = {
- "brand": "游民导航",
- "tagline": "数字游民工具与出海资源合集",
- "footer": "2026 游民导航",
- "categories": [
- {
- "id": "nomad",
- "title": "数字游民",
- "emoji": "✦",
- "groups": [
- {
- "id": "community",
- "title": "游民社区",
- "links": [
- {
- "id": "nomadro",
- "title": "nomadro",
- "subtitle": "出海导航",
- "href": "https://nomadro.com",
- "icon": "/icons/nomadro.webp"
- },
- {
- "id": "nomadlist",
- "title": "nomadlist",
- "subtitle": "海外最大的数字游民社区",
- "href": "https://nomads.com?ref=https://nomadro.com",
- "icon": "/icons/nomadlist.webp"
- },
- {
- "id": "nomadcna",
- "title": "nomadcna",
- "subtitle": "国内数字游民社区",
- "href": "https://meetup.hackrobot.cn",
- "icon": "/icons/nomadcna.webp"
- }
- ]
- },
- {
- "id": "toolbox",
- "title": "工具箱",
- "links": [
- {
- "id": "chatgpt",
- "title": "ChatGPT",
- "subtitle": "OpenAI 开发的人工智能聊天机器人",
- "href": "https://chat.openai.com/",
- "icon": "/icons/chatgpt.webp"
- },
- {
- "id": "grok",
- "title": "Grok",
- "subtitle": "xAI 免费 AI 助手,追求真实与客观",
- "href": "https://grok.com/",
- "icon": "/icons/grok.webp"
- }
- ]
- },
- {
- "id": "us-phone",
- "title": "美国手机号",
- "links": [
- {
- "id": "1psim",
- "title": "1psim",
- "subtitle": "低成本 2.5$/m,支持 eSIM 和实体卡(邮寄中国)",
- "href": "https://1psim.com/7GARRL",
- "icon": "/icons/1psim.webp"
- },
- {
- "id": "yesim",
- "title": "yesim",
- "subtitle": "美国手机号,3$/m",
- "href": "https://yesim.app/?partner_id=1948",
- "icon": "/icons/yesim.webp"
- },
- {
- "id": "tello",
- "title": "tello",
- "subtitle": "最低 5$/m,支持 eSIM",
- "href": "https://tello.com/",
- "icon": "/icons/tello.webp"
- },
- {
- "id": "9esim",
- "title": "9esim",
- "subtitle": "让任何手机支持 eSIM,可写数据的 SIM 实体卡",
- "href": "https://www.9esim.com/?coupon=XIAOSHUANGERIC2",
- "icon": "/icons/9esim.webp"
- }
- ]
- },
- {
- "id": "finance",
- "title": "金融收款",
- "links": [
- {
- "id": "wise",
- "title": "wise",
- "subtitle": "线上开通境外银行账户(身份证即可)",
- "href": "https://wise.com/invite/amc/xiaoshuangh",
- "icon": "/icons/wise.webp"
- },
- {
- "id": "okx",
- "title": "OKX 交易所",
- "subtitle": "加密货币交易所",
- "href": "https://okx.com/join/84999861",
- "icon": "/icons/okx.webp"
- },
- {
- "id": "safepal",
- "title": "safepal (U卡)",
- "subtitle": "邀请码 104809,出海神卡,加密货币与法币转换",
- "href": "https://www.safepal.com/zh-cn/",
- "icon": "/icons/safepal.webp"
- },
- {
- "id": "paypal",
- "title": "paypal",
- "subtitle": "出海收款必备,TikTok 提现、佣金提现",
- "href": "https://py.pl/1tyAwY",
- "icon": "/icons/paypal.webp"
- },
- {
- "id": "bmc",
- "title": "buy me coffee",
- "subtitle": "赞助收款平台",
- "href": "https://www.buymeacoffee.com/invite/xiaoshuangi",
- "icon": "/icons/bmc.webp"
- }
- ]
- }
- ]
- },
- {
- "id": "studio",
- "title": "工作室",
- "emoji": "☕",
- "groups": [
- {
- "id": "proxy",
- "title": "科学上网",
- "links": [
- {
- "id": "jms",
- "title": "just my socks",
- "subtitle": "老牌网络代理服务",
- "href": "https://justmysocks.net/members/aff.php?aff=12475",
- "icon": "/icons/jms.webp"
- },
- {
- "id": "ykk",
- "title": "Ykk Cloud",
- "subtitle": "性价比高的网络加速服务",
- "href": "https://panel.ykkk.best/#/register?code=xYQebIgT",
- "icon": "/icons/ykk.webp"
- }
- ]
- },
- {
- "id": "vps",
- "title": "VPS 服务器",
- "links": [
- {
- "id": "vultr",
- "title": "vultr",
- "subtitle": "可按分钟计费的服务器(可支付宝)",
- "href": "https://www.vultr.com/?ref=8985003",
- "icon": "/icons/vultr.webp"
- },
- {
- "id": "bwh",
- "title": "bandwagonhost",
- "subtitle": "针对中国线路优化的高质量 VPS",
- "href": "https://bandwagonhost.com/aff.php?aff=25463",
- "icon": "/icons/bwh.webp"
- },
- {
- "id": "racknerd",
- "title": "RackNerd",
- "subtitle": "最便宜的美国 VPS 服务器",
- "href": "https://my.racknerd.com/aff.php?aff=15630",
- "icon": "/icons/racknerd.webp"
- },
- {
- "id": "qcloud",
- "title": "腾讯云",
- "subtitle": "腾讯服务器,国内速度快",
- "href": "https://curl.qcloud.com/BZZ2MBTN",
- "icon": "/icons/qcloud.webp"
- },
- {
- "id": "aliyun",
- "title": "阿里云",
- "subtitle": "阿里巴巴旗下 VPS 服务器",
- "href": "https://www.aliyun.com/minisite/goods?userCode=dii0ofzg",
- "icon": "/icons/aliyun.webp"
- },
- {
- "id": "colocrossing",
- "title": "colocrossing",
- "subtitle": "美国 VPS 服务商",
- "href": "https://cloud.colocrossing.com/aff.php?aff=1846",
- "icon": "/icons/colocrossing.webp"
- }
- ]
- },
- {
- "id": "resi-ip",
- "title": "静态住宅 IP",
- "links": [
- {
- "id": "iproyal",
- "title": "iproyal",
- "subtitle": "静态住宅 IP,出海必备",
- "href": "https://iproyal.cn/?r=nomadro",
- "icon": "/icons/iproyal.webp"
- },
- {
- "id": "proxy-cheap",
- "title": "proxy-cheap",
- "subtitle": "便宜的住宅 IP",
- "href": "https://app.proxy-cheap.com/r/bmcMoY",
- "icon": "/icons/proxy-cheap.webp"
- },
- {
- "id": "smartproxy",
- "title": "smartproxy",
- "subtitle": "静态住宅 IP 服务商",
- "href": "https://www.smartproxy.org/register/?invitation_code=7RXPLM",
- "icon": "/icons/smartproxy.webp"
- }
- ]
- },
- {
- "id": "resi-vps",
- "title": "住宅 VPS 服务器",
- "links": [
- {
- "id": "lisa",
- "title": "lisa",
- "subtitle": "住宅 IP 服务器,TikTok 必备",
- "href": "https://lisahost.com/aff.php?aff=7566",
- "icon": "/icons/lisa.webp"
- },
- {
- "id": "voyracloud",
- "title": "voyracloud",
- "subtitle": "静态住宅 IP 服务器",
- "href": "https://www.voyracloud.com/?ref_code=2LJPRTE5",
- "icon": "/icons/voyracloud.webp"
- }
- ]
- },
- {
- "id": "hardware",
- "title": "硬件",
- "links": [
- {
- "id": "rpi",
- "title": "树莓派",
- "subtitle": "无与伦比的 ARM 开发板",
- "href": "https://uland.taobao.com/coupon/edetail?e=5hkWkiThOmClhHvvyUNXZfh8CuWt5YH5OVuOuRD5gLJMmdsrkidbOWBzzpT26idJPSbzO0ArF68ertbZl9wqRUbeJevxT02sHgNIxyFsmaMOsi2OxhyQb%2BhYUTTNN7GRRSHvQe2jOLZ9pbNCYX0I%2BPP%2BWUTgK%2F%2B0I%2BtaUgbudUxA%2B536asYsLWVfKa%2BhVnND4NyB1fwjO3bJLf667Yy8Q5jB6TX2HR3Qrq8LCw4Dujjqyaqc1rGLUwdQHHM8iY%2BUDMxLRSiIntldeBz90au3REAmOgZ0RtdnfeSBK3KXa0%2FA9snq37kKL6zL4bZ3EAS%2F2oYsLHTsIOxroXBFP6oz%2BA%3D%3D&traceId=213e032e17650447230113327e0c4f&union_lens=lensId%3APUB%401765044691%400b521400_0da4_19af4dca231_da77%400290EZjuZ2xbgOlH3NTYAyI%40eyJmbG9vcklkIjoyMDg3MTcxMDEwLCJzcG1CIjoiiX3BvcnRhbF92Ml90b29sX3NlbGVjdGlvbmxpc3RfZGV0YWlsX2luZGV4X2h0bSIsInNyY0Zsb29ySWQiiOiiI4MDY2NCJ9",
- "icon": "/icons/rpi.webp"
- },
- {
- "id": "mini-pc",
- "title": "迷你主机",
- "subtitle": "具有性价比的 X86 小主机",
- "href": "https://s.click.taobao.com/t?e=m%3D2%26s%3DCb1Quo%2F0Wb5w4vFB6t2Z2ueEDrYVVa64YUrQeSeIhnK53hKxp7mNFuhCZFSw9yq2woqx0EHqItb0JlhLk0Jl4eVWmNyHytKdTKJ80yOOA0Mtd0e5Ku7CIDk5ffgV5fRI1qrpxiwMoCNxc1AtbZGVS936JshS%2F%2FIdwgQgG5hIzyLNEPXytV9ALtCLThlbPuuZLb93Df8fOziGg7JVKZos%2BjLJJgRsfWlWtajntMnDLEHhuApO%2F8klJ62RdK%2B6%2FP7Z6k6s3rDgsC6jO9AJYjY8CXJ%2BwEVkOqHFPSJJXArlDuzso5nyPLY4NPiLqets6lIJ",
- "icon": "/icons/mini-pc.webp"
- },
- {
- "id": "gpu",
- "title": "GPU 显卡",
- "subtitle": "AI 时代的算力基础设施",
- "href": "https://union-click.jd.com/jdc?e=618%7Cpc%7C&p=JF8BATUJK1olXwEDUFZVCkkRC18IGloWWwALV19aAUonRzBQRQQlBENHFRxWFlVPRjtUBABAQlRcCEBdCUoUBWkBGFoSVAcdDRsBVXsQB29pbiZRKGMHKlclCEgVWghcGV91UQoyVW5dCUoWAmYPHl4RbTYCU24fZp-esLulkIK0yd6n5V1eOEonA2kPH1oQWQUFV19VCnsQA2Y4El0dWQ4LU1hBC00SCmcJK2slXjYFVFdJDjlWUXsOaWslXTYBZF5cCEoQAGoLH1kRQQYHV1lbAFcXBWgMGl4RXgUKUllYOEkWAmsBK2vL05J3IB9Uajl8UStqSz4dFQ9jitDJGTlnA2sPH0olImF5ECFaSU0VVAdNQDxuW09KFiw8SyljbW1jcih3JWNxNlwaS0hqWBhoX2sQbQEEVW4",
- "icon": "/icons/gpu.webp"
- }
- ]
- },
- {
- "id": "software",
- "title": "软件",
- "links": [
- {
- "id": "3x-ui",
- "title": "3X-UI",
- "subtitle": "科学上网仪表盘",
- "href": "https://github.com/MHSanaei/3x-ui",
- "icon": "/icons/3x-ui.webp"
- },
- {
- "id": "mihomo",
- "title": "虚空终端 mihomo",
- "subtitle": "代理软件以及配置 wiki",
- "href": "https://wiki.metacubex.one/config/",
- "icon": "/icons/mihomo.webp"
- },
- {
- "id": "frp",
- "title": "frp",
- "subtitle": "高性能内网穿透",
- "href": "https://gofrp.org/zh-cn/docs/",
- "icon": "/icons/frp.webp"
- },
- {
- "id": "wireguard",
- "title": "wireguard",
- "subtitle": "P2P 打洞组网",
- "href": "https://github.com/WireGuard/wireguard-go",
- "icon": "/icons/wireguard.webp"
- },
- {
- "id": "lineageos",
- "title": "lineageos (pi5)",
- "subtitle": "树莓派的安卓 LineageOS",
- "href": "https://konstakang.com/devices/rpi5/",
- "icon": "/icons/lineageos.webp"
- }
- ]
- },
- {
- "id": "gear",
- "title": "数码装备",
- "links": [
- {
- "id": "ai-glasses",
- "title": "AI 眼镜",
- "subtitle": "第一视角拍摄",
- "href": "https://union-click.jd.com/jdc?e=618%7Cpc%7C&p=JF8BATkJK1olXw8AXVxfCU8UA18IGloVWwcKXFlZDUgnRzBQRQQlBENHFRxWFlVPRjtUBABAQlRcCEBdCUoXBW4AE1wRWAUdDRsBVXtwXw1pZzNKAmZgFFwlYUh8UzVBZyZlUQoyVW5dCUoWAmYPHl4RbTYCU24fZpO9hbeBtYKjxt-jwInikZ-fjV8JK1sTWgIDUVtVAEkVA2w4HFscbQ8EXFpVAUwRH2wOHlIdXDYyZF1tD0seF2l6WgkBW3QyZF5tC3sXAm8AGFsVXAEBXEJdDUMVB24UG10SWQcHUVZbAE8fCl8KGloRVDYyitPtY0JrQAYIYj0dXGZKMVc5T5Was35jYlMVXQUTZAQOch9SZTMNbC9gIGdQJi5VCzkRSCpfWDUXVAJlDQoCbw1gcG9qRwYdHnYyUW5aDEgn",
- "icon": "/icons/ai-glasses.webp"
- },
- {
- "id": "action-cam",
- "title": "运动相机",
- "subtitle": "骑行记录仪",
- "href": "https://union-click.jd.com/jdc?e=618%7Cpc%7C&p=JF8BASgJK1olXDYCVV9eCE0UB28ME1slGVlaCgFtUQ5SQi0DBUVNGFJeSwUIFxlJX3EIGloWXQABUF5ZAEsIWipURmt3CFhXIQkpbChuRy8JGDpRJUJQDwkbBEcnAl8IGloUXA8FUVtZOHsXBF9edVsUXAcDVV1fDEonAl8IHVwRXAMGVVpaDEsUM2gIEmscWw4GXFdaDlcUBWoBE1olbTYBZFldAV8RcS5aD11nbTYCZF1tCEoXAmsNHl8UXQQeVF1ZDE0UH28OHF8UWAIDUVddCkgnAW4JH1IlbdiMwDxcaAJfBTlNTRpCBHpHLhyDht8GcR8BHFIUTDZ6NSMpYRJweWtBfAUXC2JyXBkpfTNRWi1mGV4UAlgENFpeDA13cRRcTAJLbQMyU1peOA",
- "icon": "/icons/action-cam.webp"
- },
- {
- "id": "drone",
- "title": "无人机",
- "subtitle": "天空视角",
- "href": "https://union-click.jd.com/jdc?e=618%7Cpc%7C&p=JF8BASgJK1olXDYCVV9eAUIeB2YMH14lGVlaCgFtUQ5SQi0DBUVNGFJeSwUIFxlJX3EIGloWVA8LUFdZDE4IWipURmtCHHVEABsFVChPYRJAbVhlGRhbFRgLBEcnAl8IGloUXA8FUVtZOHsXBF9edVsUXAcDVV1fDEonAl8IHVwRXAMGVVdbC04VM2gIEmscWw4GXFdaDlcUBWoBE1olbTYBZFldAV8RcS5aD11nbTYCZF1tCEoXAmgLHlgRXgIeVFpfDU0UH28OHF8UWAIDUlteAUwnAW4JH1IlbdiMwCQvcipMBxJhfV9HGgF3FVaDht8GfxgBGVkRTDZUCjsVbzBTYRJbeRkWGG9WAx02D0JcUy5mGRNRFEJiUwgldStzfx1wTj1GbQMyU1peOA",
- "icon": "/icons/drone.webp"
- }
- ]
- }
- ]
- },
- {
- "id": "overseas",
- "title": "出海掘金",
- "emoji": "◎",
- "groups": [
- {
- "id": "tiktok",
- "title": "TikTok",
- "links": [
- {
- "id": "tiktok",
- "title": "TikTok",
- "subtitle": "全球直播平台",
- "href": "https://www.tiktok.com/",
- "icon": "/icons/tiktok.webp"
- },
- {
- "id": "cloud-phone",
- "title": "云手机",
- "subtitle": "用开源硬件打造云手机",
- "href": "https://www.hackrobot.cn/",
- "icon": "/icons/cloud-phone.webp"
- },
- {
- "id": "vcam",
- "title": "vcam 虚拟摄像头",
- "subtitle": "Xposed 模块,替换摄像头视频流",
- "href": "https://pan.baidu.com/s/1NW4GMGA3cxfUQNWZPD9vOg?pwd=live",
- "icon": "/icons/vcam.webp"
- }
- ]
- },
- {
- "id": "youtube",
- "title": "YouTube",
- "links": [
- {
- "id": "youtube",
- "title": "YouTube",
- "subtitle": "全球最大的视频网站",
- "href": "https://www.youtube.com/",
- "icon": "/icons/youtube.webp"
- },
- {
- "id": "smmfollows",
- "title": "smmfollows",
- "subtitle": "刷粉刷量平台",
- "href": "https://smmfollows.com/ref/dfugq",
- "icon": "/icons/smmfollows.webp"
- },
- {
- "id": "yt-auto-dismiss",
- "title": "YouTube Studio Auto Dismiss",
- "subtitle": "油猴脚本,无人直播辅助",
- "href": "https://greasyfork.org/zh-CN/scripts/557378-youtube-studio-auto-dismiss",
- "icon": "/icons/yt-auto-dismiss.webp"
- }
- ]
- },
- {
- "id": "web",
- "title": "Web 网站",
- "links": [
- {
- "id": "namesilo",
- "title": "namesilo",
- "subtitle": "注册域名",
- "href": "https://www.namesilo.com/?rid=3bd4047mc",
- "icon": "/icons/namesilo.webp"
- },
- {
- "id": "aapanel",
- "title": "aapanel",
- "subtitle": "宝塔面板",
- "href": "https://www.aapanel.com?referral_code=wcn04vez",
- "icon": "/icons/aapanel.webp"
- },
- {
- "id": "cloudflare",
- "title": "Cloudflare",
- "subtitle": "互联网基础节点",
- "href": "https://www.cloudflare.com/",
- "icon": "/icons/cloudflare.webp"
- },
- {
- "id": "ga",
- "title": "Google Analytics",
- "subtitle": "网站流量统计服务",
- "href": "https://analytics.google.com/",
- "icon": "/icons/ga.webp"
- },
- {
- "id": "adsense",
- "title": "Google AdSense",
- "subtitle": "Google 广告服务",
- "href": "https://www.google.com/adsense/",
- "icon": "/icons/adsense.webp"
- }
- ]
- }
- ]
- },
- {
- "id": "live",
- "title": "无人直播",
- "emoji": "▷",
- "groups": [
- {
- "id": "live-soft",
- "title": "软件",
- "links": [
- {
- "id": "obs",
- "title": "OBS",
- "subtitle": "免费开源:录屏 / 推流直播",
- "href": "https://pan.quark.cn/s/03e89f1bbc9b",
- "icon": "/icons/obs.webp"
- },
- {
- "id": "ffmpeg",
- "title": "ffmpeg",
- "subtitle": "命令行视频处理 / 推流,Python 自动化",
- "href": "https://www.ffmpeg.org/download.html",
- "icon": "/icons/ffmpeg.webp"
- },
- {
- "id": "srs",
- "title": "SRS",
- "subtitle": "开源直播服务器,拉流推流中转",
- "href": "https://ossrs.io/",
- "icon": "/icons/srs.webp"
- }
- ]
- }
- ]
- },
- {
- "id": "pay",
- "title": "支付网关",
- "emoji": "◇",
- "groups": [
- {
- "id": "merchant",
- "title": "小微商户",
- "links": [
- {
- "id": "nowpayments",
- "title": "NOWPayments",
- "subtitle": "加密货币收款",
- "href": "https://account.nowpayments.io/create-account?link_id=3680795921",
- "icon": "/icons/nowpayments.webp"
- },
- {
- "id": "creem",
- "title": "Creem",
- "subtitle": "软件出海收款,税务合规",
- "href": "https://www.creem.io/",
- "icon": "/icons/creem.webp"
- },
- {
- "id": "stripe",
- "title": "Stripe",
- "subtitle": "全球在线支付",
- "href": "https://stripe.com/",
- "icon": "/icons/stripe.webp"
- },
- {
- "id": "zpay",
- "title": "z-pay",
- "subtitle": "支持独角数卡 · 易支付",
- "href": "https://z-pay.cn/?uid=22119",
- "icon": "/icons/zpay.webp"
- },
- {
- "id": "xorpay",
- "title": "xorpay",
- "subtitle": "支持收银台支付",
- "href": "https://xorpay.com?r=nomadro",
- "icon": "/icons/xorpay.webp"
- }
- ]
- }
- ]
- },
- {
- "id": "books",
- "title": "书籍",
- "emoji": "◈",
- "groups": [
- {
- "id": "handbook",
- "title": "手册",
- "links": [
- {
- "id": "nomad-book",
- "title": "数字游民手册",
- "subtitle": "复制链接后在小红书打开",
- "href": "https://www.xiaohongshu.com/s/poster?bgimg=https%3A%2F%2Fsns-redskillhub-s1.xhscdn.com%2Fred_app_image%2F1040g4m8325ke1q36l0404a4druqrlvd5valvb80%3Fsign%3Dbc0c41c2e219f6ca904f52176bd17f54%26t%3D6c9a7a85&xhsshare=&appuid=5acc75ba4eacab15c751fda5&apptime=1790527237&deeplink=xhsdiscover%3A%2F%2FminiTool%2F6ab8984da1e3af0015584e92%3Fsource%3Dh5%26page_key%3D28%26xhsMpScreenMode%3Dfull%26share_id%3D5e90e5979b054c8baf8b3db4c8993d79%26share_channel%3Dcopy_link",
- "icon": "/icons/nomad-book.webp",
- "action": "copy"
- }
- ]
- }
- ]
- },
- {
- "id": "forum",
- "title": "论坛社区",
- "emoji": "◉",
- "groups": [
- {
- "id": "blog",
- "title": "博客",
- "links": [
- {
- "id": "yidu",
- "title": "异度世界",
- "subtitle": "独立博客,Hugo 搭建",
- "href": "https://blog.hackrobot.cn",
- "icon": "/icons/yidu.webp"
- },
- {
- "id": "dsx",
- "title": "大师兄",
- "subtitle": "AI 实践",
- "href": "https://dsx2016.com",
- "icon": "/icons/dsx.webp"
- }
- ]
- }
- ]
+/* nomadro xhs offline bundle */
+/* generated — offline seed for xhs minitool */
+var PORTAL_DATA = {
+ "config": {
+ "homeBrand": "nomadro",
+ "homeTagline": "数字游民操作系统",
+ "homeLead": "导航 · 小册 · 社群 · 离线可用",
+ "modules": {
+ "nav": {
+ "enabled": true,
+ "title": "出海导航",
+ "emoji": "🧭",
+ "desc": "工具与出海资源"
+ },
+ "book": {
+ "enabled": true,
+ "title": "数字游民小册",
+ "emoji": "📖",
+ "desc": "离线预览章节"
+ },
+ "community": {
+ "enabled": true,
+ "title": "旅居社群",
+ "emoji": "🌏",
+ "desc": "活动与目的地"
+ }
}
- ]
+ },
+ "nav": {
+ "brand": "游民导航",
+ "tagline": "数字游民工具与出海资源合集",
+ "footer": "2026 游民导航",
+ "categories": [
+ {
+ "id": "nomad",
+ "title": "数字游民",
+ "emoji": "✦",
+ "groups": [
+ {
+ "id": "community",
+ "title": "游民社区",
+ "links": [
+ {
+ "id": "nomadro",
+ "title": "nomadro",
+ "subtitle": "出海导航",
+ "href": "https://nomadro.com",
+ "icon": "./icons/nomadro.webp"
+ },
+ {
+ "id": "nomadlist",
+ "title": "nomadlist",
+ "subtitle": "海外最大的数字游民社区",
+ "href": "https://nomads.com?ref=https://nomadro.com",
+ "icon": "./icons/nomadlist.webp"
+ },
+ {
+ "id": "nomadcna",
+ "title": "nomadcna",
+ "subtitle": "国内数字游民社区",
+ "href": "https://meetup.hackrobot.cn",
+ "icon": "./icons/nomadcna.webp"
+ }
+ ]
+ },
+ {
+ "id": "toolbox",
+ "title": "工具箱",
+ "links": [
+ {
+ "id": "chatgpt",
+ "title": "ChatGPT",
+ "subtitle": "OpenAI 开发的人工智能聊天机器人",
+ "href": "https://chat.openai.com/",
+ "icon": "./icons/chatgpt.webp"
+ },
+ {
+ "id": "grok",
+ "title": "Grok",
+ "subtitle": "xAI 免费 AI 助手,追求真实与客观",
+ "href": "https://grok.com/",
+ "icon": "./icons/grok.webp"
+ }
+ ]
+ },
+ {
+ "id": "us-phone",
+ "title": "美国手机号",
+ "links": [
+ {
+ "id": "1psim",
+ "title": "1psim",
+ "subtitle": "低成本 2.5$/m,支持 eSIM 和实体卡(邮寄中国)",
+ "href": "https://1psim.com/7GARRL",
+ "icon": "./icons/1psim.webp"
+ },
+ {
+ "id": "yesim",
+ "title": "yesim",
+ "subtitle": "美国手机号,3$/m",
+ "href": "https://yesim.app/?partner_id=1948",
+ "icon": "./icons/yesim.webp"
+ },
+ {
+ "id": "tello",
+ "title": "tello",
+ "subtitle": "最低 5$/m,支持 eSIM",
+ "href": "https://tello.com/",
+ "icon": "./icons/tello.webp"
+ },
+ {
+ "id": "9esim",
+ "title": "9esim",
+ "subtitle": "让任何手机支持 eSIM,可写数据的 SIM 实体卡",
+ "href": "https://www.9esim.com/?coupon=XIAOSHUANGERIC2",
+ "icon": "./icons/9esim.webp"
+ }
+ ]
+ },
+ {
+ "id": "finance",
+ "title": "金融收款",
+ "links": [
+ {
+ "id": "wise",
+ "title": "wise",
+ "subtitle": "线上开通境外银行账户(身份证即可)",
+ "href": "https://wise.com/invite/amc/xiaoshuangh",
+ "icon": "./icons/wise.webp"
+ },
+ {
+ "id": "okx",
+ "title": "OKX 交易所",
+ "subtitle": "加密货币交易所",
+ "href": "https://okx.com/join/84999861",
+ "icon": "./icons/okx.webp"
+ },
+ {
+ "id": "safepal",
+ "title": "safepal (U卡)",
+ "subtitle": "邀请码 104809,出海神卡,加密货币与法币转换",
+ "href": "https://www.safepal.com/zh-cn/",
+ "icon": "./icons/safepal.webp"
+ },
+ {
+ "id": "paypal",
+ "title": "paypal",
+ "subtitle": "出海收款必备,TikTok 提现、佣金提现",
+ "href": "https://py.pl/1tyAwY",
+ "icon": "./icons/paypal.webp"
+ },
+ {
+ "id": "bmc",
+ "title": "buy me coffee",
+ "subtitle": "赞助收款平台",
+ "href": "https://www.buymeacoffee.com/invite/xiaoshuangi",
+ "icon": "./icons/bmc.webp"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "id": "studio",
+ "title": "工作室",
+ "emoji": "☕",
+ "groups": [
+ {
+ "id": "proxy",
+ "title": "科学上网",
+ "links": [
+ {
+ "id": "jms",
+ "title": "just my socks",
+ "subtitle": "老牌网络代理服务",
+ "href": "https://justmysocks.net/members/aff.php?aff=12475",
+ "icon": "./icons/jms.webp"
+ },
+ {
+ "id": "ykk",
+ "title": "Ykk Cloud",
+ "subtitle": "性价比高的网络加速服务",
+ "href": "https://panel.ykkk.best/#/register?code=xYQebIgT",
+ "icon": "./icons/ykk.webp"
+ }
+ ]
+ },
+ {
+ "id": "vps",
+ "title": "VPS 服务器",
+ "links": [
+ {
+ "id": "vultr",
+ "title": "vultr",
+ "subtitle": "可按分钟计费的服务器(可支付宝)",
+ "href": "https://www.vultr.com/?ref=8985003",
+ "icon": "./icons/vultr.webp"
+ },
+ {
+ "id": "bwh",
+ "title": "bandwagonhost",
+ "subtitle": "针对中国线路优化的高质量 VPS",
+ "href": "https://bandwagonhost.com/aff.php?aff=25463",
+ "icon": "./icons/bwh.webp"
+ },
+ {
+ "id": "racknerd",
+ "title": "RackNerd",
+ "subtitle": "最便宜的美国 VPS 服务器",
+ "href": "https://my.racknerd.com/aff.php?aff=15630",
+ "icon": "./icons/racknerd.webp"
+ },
+ {
+ "id": "qcloud",
+ "title": "腾讯云",
+ "subtitle": "腾讯服务器,国内速度快",
+ "href": "https://curl.qcloud.com/BZZ2MBTN",
+ "icon": "./icons/qcloud.webp"
+ },
+ {
+ "id": "aliyun",
+ "title": "阿里云",
+ "subtitle": "阿里巴巴旗下 VPS 服务器",
+ "href": "https://www.aliyun.com/minisite/goods?userCode=dii0ofzg",
+ "icon": "./icons/aliyun.webp"
+ },
+ {
+ "id": "colocrossing",
+ "title": "colocrossing",
+ "subtitle": "美国 VPS 服务商",
+ "href": "https://cloud.colocrossing.com/aff.php?aff=1846",
+ "icon": "./icons/colocrossing.webp"
+ }
+ ]
+ },
+ {
+ "id": "resi-ip",
+ "title": "静态住宅 IP",
+ "links": [
+ {
+ "id": "iproyal",
+ "title": "iproyal",
+ "subtitle": "静态住宅 IP,出海必备",
+ "href": "https://iproyal.cn/?r=nomadro",
+ "icon": "./icons/iproyal.webp"
+ },
+ {
+ "id": "proxy-cheap",
+ "title": "proxy-cheap",
+ "subtitle": "便宜的住宅 IP",
+ "href": "https://app.proxy-cheap.com/r/bmcMoY",
+ "icon": "./icons/proxy-cheap.webp"
+ },
+ {
+ "id": "smartproxy",
+ "title": "smartproxy",
+ "subtitle": "静态住宅 IP 服务商",
+ "href": "https://www.smartproxy.org/register/?invitation_code=7RXPLM",
+ "icon": "./icons/smartproxy.webp"
+ }
+ ]
+ },
+ {
+ "id": "resi-vps",
+ "title": "住宅 VPS 服务器",
+ "links": [
+ {
+ "id": "lisa",
+ "title": "lisa",
+ "subtitle": "住宅 IP 服务器,TikTok 必备",
+ "href": "https://lisahost.com/aff.php?aff=7566",
+ "icon": "./icons/lisa.webp"
+ },
+ {
+ "id": "voyracloud",
+ "title": "voyracloud",
+ "subtitle": "静态住宅 IP 服务器",
+ "href": "https://www.voyracloud.com/?ref_code=2LJPRTE5",
+ "icon": "./icons/voyracloud.webp"
+ }
+ ]
+ },
+ {
+ "id": "hardware",
+ "title": "硬件",
+ "links": [
+ {
+ "id": "rpi",
+ "title": "树莓派",
+ "subtitle": "无与伦比的 ARM 开发板",
+ "href": "https://uland.taobao.com/coupon/edetail?e=5hkWkiThOmClhHvvyUNXZfh8CuWt5YH5OVuOuRD5gLJMmdsrkidbOWBzzpT26idJPSbzO0ArF68ertbZl9wqRUbeJevxT02sHgNIxyFsmaMOsi2OxhyQb%2BhYUTTNN7GRRSHvQe2jOLZ9pbNCYX0I%2BPP%2BWUTgK%2F%2B0I%2BtaUgbudUxA%2B536asYsLWVfKa%2BhVnND4NyB1fwjO3bJLf667Yy8Q5jB6TX2HR3Qrq8LCw4Dujjqyaqc1rGLUwdQHHM8iY%2BUDMxLRSiIntldeBz90au3REAmOgZ0RtdnfeSBK3KXa0%2FA9snq37kKL6zL4bZ3EAS%2F2oYsLHTsIOxroXBFP6oz%2BA%3D%3D&traceId=213e032e17650447230113327e0c4f&union_lens=lensId%3APUB%401765044691%400b521400_0da4_19af4dca231_da77%400290EZjuZ2xbgOlH3NTYAyI%40eyJmbG9vcklkIjoyMDg3MTcxMDEwLCJzcG1CIjoiiX3BvcnRhbF92Ml90b29sX3NlbGVjdGlvbmxpc3RfZGV0YWlsX2luZGV4X2h0bSIsInNyY0Zsb29ySWQiiOiiI4MDY2NCJ9",
+ "icon": "./icons/rpi.webp"
+ },
+ {
+ "id": "mini-pc",
+ "title": "迷你主机",
+ "subtitle": "具有性价比的 X86 小主机",
+ "href": "https://s.click.taobao.com/t?e=m%3D2%26s%3DCb1Quo%2F0Wb5w4vFB6t2Z2ueEDrYVVa64YUrQeSeIhnK53hKxp7mNFuhCZFSw9yq2woqx0EHqItb0JlhLk0Jl4eVWmNyHytKdTKJ80yOOA0Mtd0e5Ku7CIDk5ffgV5fRI1qrpxiwMoCNxc1AtbZGVS936JshS%2F%2FIdwgQgG5hIzyLNEPXytV9ALtCLThlbPuuZLb93Df8fOziGg7JVKZos%2BjLJJgRsfWlWtajntMnDLEHhuApO%2F8klJ62RdK%2B6%2FP7Z6k6s3rDgsC6jO9AJYjY8CXJ%2BwEVkOqHFPSJJXArlDuzso5nyPLY4NPiLqets6lIJ",
+ "icon": "./icons/mini-pc.webp"
+ },
+ {
+ "id": "gpu",
+ "title": "GPU 显卡",
+ "subtitle": "AI 时代的算力基础设施",
+ "href": "https://union-click.jd.com/jdc?e=618%7Cpc%7C&p=JF8BATUJK1olXwEDUFZVCkkRC18IGloWWwALV19aAUonRzBQRQQlBENHFRxWFlVPRjtUBABAQlRcCEBdCUoUBWkBGFoSVAcdDRsBVXsQB29pbiZRKGMHKlclCEgVWghcGV91UQoyVW5dCUoWAmYPHl4RbTYCU24fZp-esLulkIK0yd6n5V1eOEonA2kPH1oQWQUFV19VCnsQA2Y4El0dWQ4LU1hBC00SCmcJK2slXjYFVFdJDjlWUXsOaWslXTYBZF5cCEoQAGoLH1kRQQYHV1lbAFcXBWgMGl4RXgUKUllYOEkWAmsBK2vL05J3IB9Uajl8UStqSz4dFQ9jitDJGTlnA2sPH0olImF5ECFaSU0VVAdNQDxuW09KFiw8SyljbW1jcih3JWNxNlwaS0hqWBhoX2sQbQEEVW4",
+ "icon": "./icons/gpu.webp"
+ }
+ ]
+ },
+ {
+ "id": "software",
+ "title": "软件",
+ "links": [
+ {
+ "id": "3x-ui",
+ "title": "3X-UI",
+ "subtitle": "科学上网仪表盘",
+ "href": "https://github.com/MHSanaei/3x-ui",
+ "icon": "./icons/3x-ui.webp"
+ },
+ {
+ "id": "mihomo",
+ "title": "虚空终端 mihomo",
+ "subtitle": "代理软件以及配置 wiki",
+ "href": "https://wiki.metacubex.one/config/",
+ "icon": "./icons/mihomo.webp"
+ },
+ {
+ "id": "frp",
+ "title": "frp",
+ "subtitle": "高性能内网穿透",
+ "href": "https://gofrp.org/zh-cn/docs/",
+ "icon": "./icons/frp.webp"
+ },
+ {
+ "id": "wireguard",
+ "title": "wireguard",
+ "subtitle": "P2P 打洞组网",
+ "href": "https://github.com/WireGuard/wireguard-go",
+ "icon": "./icons/wireguard.webp"
+ },
+ {
+ "id": "lineageos",
+ "title": "lineageos (pi5)",
+ "subtitle": "树莓派的安卓 LineageOS",
+ "href": "https://konstakang.com/devices/rpi5/",
+ "icon": "./icons/lineageos.webp"
+ }
+ ]
+ },
+ {
+ "id": "gear",
+ "title": "数码装备",
+ "links": [
+ {
+ "id": "ai-glasses",
+ "title": "AI 眼镜",
+ "subtitle": "第一视角拍摄",
+ "href": "https://union-click.jd.com/jdc?e=618%7Cpc%7C&p=JF8BATkJK1olXw8AXVxfCU8UA18IGloVWwcKXFlZDUgnRzBQRQQlBENHFRxWFlVPRjtUBABAQlRcCEBdCUoXBW4AE1wRWAUdDRsBVXtwXw1pZzNKAmZgFFwlYUh8UzVBZyZlUQoyVW5dCUoWAmYPHl4RbTYCU24fZpO9hbeBtYKjxt-jwInikZ-fjV8JK1sTWgIDUVtVAEkVA2w4HFscbQ8EXFpVAUwRH2wOHlIdXDYyZF1tD0seF2l6WgkBW3QyZF5tC3sXAm8AGFsVXAEBXEJdDUMVB24UG10SWQcHUVZbAE8fCl8KGloRVDYyitPtY0JrQAYIYj0dXGZKMVc5T5Was35jYlMVXQUTZAQOch9SZTMNbC9gIGdQJi5VCzkRSCpfWDUXVAJlDQoCbw1gcG9qRwYdHnYyUW5aDEgn",
+ "icon": "./icons/ai-glasses.webp"
+ },
+ {
+ "id": "action-cam",
+ "title": "运动相机",
+ "subtitle": "骑行记录仪",
+ "href": "https://union-click.jd.com/jdc?e=618%7Cpc%7C&p=JF8BASgJK1olXDYCVV9eCE0UB28ME1slGVlaCgFtUQ5SQi0DBUVNGFJeSwUIFxlJX3EIGloWXQABUF5ZAEsIWipURmt3CFhXIQkpbChuRy8JGDpRJUJQDwkbBEcnAl8IGloUXA8FUVtZOHsXBF9edVsUXAcDVV1fDEonAl8IHVwRXAMGVVpaDEsUM2gIEmscWw4GXFdaDlcUBWoBE1olbTYBZFldAV8RcS5aD11nbTYCZF1tCEoXAmsNHl8UXQQeVF1ZDE0UH28OHF8UWAIDUVddCkgnAW4JH1IlbdiMwDxcaAJfBTlNTRpCBHpHLhyDht8GcR8BHFIUTDZ6NSMpYRJweWtBfAUXC2JyXBkpfTNRWi1mGV4UAlgENFpeDA13cRRcTAJLbQMyU1peOA",
+ "icon": "./icons/action-cam.webp"
+ },
+ {
+ "id": "drone",
+ "title": "无人机",
+ "subtitle": "天空视角",
+ "href": "https://union-click.jd.com/jdc?e=618%7Cpc%7C&p=JF8BASgJK1olXDYCVV9eAUIeB2YMH14lGVlaCgFtUQ5SQi0DBUVNGFJeSwUIFxlJX3EIGloWVA8LUFdZDE4IWipURmtCHHVEABsFVChPYRJAbVhlGRhbFRgLBEcnAl8IGloUXA8FUVtZOHsXBF9edVsUXAcDVV1fDEonAl8IHVwRXAMGVVdbC04VM2gIEmscWw4GXFdaDlcUBWoBE1olbTYBZFldAV8RcS5aD11nbTYCZF1tCEoXAmgLHlgRXgIeVFpfDU0UH28OHF8UWAIDUlteAUwnAW4JH1IlbdiMwCQvcipMBxJhfV9HGgF3FVaDht8GfxgBGVkRTDZUCjsVbzBTYRJbeRkWGG9WAx02D0JcUy5mGRNRFEJiUwgldStzfx1wTj1GbQMyU1peOA",
+ "icon": "./icons/drone.webp"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "id": "overseas",
+ "title": "出海掘金",
+ "emoji": "◎",
+ "groups": [
+ {
+ "id": "tiktok",
+ "title": "TikTok",
+ "links": [
+ {
+ "id": "tiktok",
+ "title": "TikTok",
+ "subtitle": "全球直播平台",
+ "href": "https://www.tiktok.com/",
+ "icon": "./icons/tiktok.webp"
+ },
+ {
+ "id": "cloud-phone",
+ "title": "云手机",
+ "subtitle": "用开源硬件打造云手机",
+ "href": "https://www.hackrobot.cn/",
+ "icon": "./icons/cloud-phone.webp"
+ },
+ {
+ "id": "vcam",
+ "title": "vcam 虚拟摄像头",
+ "subtitle": "Xposed 模块,替换摄像头视频流",
+ "href": "https://pan.baidu.com/s/1NW4GMGA3cxfUQNWZPD9vOg?pwd=live",
+ "icon": "./icons/vcam.webp"
+ }
+ ]
+ },
+ {
+ "id": "youtube",
+ "title": "YouTube",
+ "links": [
+ {
+ "id": "youtube",
+ "title": "YouTube",
+ "subtitle": "全球最大的视频网站",
+ "href": "https://www.youtube.com/",
+ "icon": "./icons/youtube.webp"
+ },
+ {
+ "id": "smmfollows",
+ "title": "smmfollows",
+ "subtitle": "刷粉刷量平台",
+ "href": "https://smmfollows.com/ref/dfugq",
+ "icon": "./icons/smmfollows.webp"
+ },
+ {
+ "id": "yt-auto-dismiss",
+ "title": "YouTube Studio Auto Dismiss",
+ "subtitle": "油猴脚本,无人直播辅助",
+ "href": "https://greasyfork.org/zh-CN/scripts/557378-youtube-studio-auto-dismiss",
+ "icon": "./icons/yt-auto-dismiss.webp"
+ }
+ ]
+ },
+ {
+ "id": "web",
+ "title": "Web 网站",
+ "links": [
+ {
+ "id": "namesilo",
+ "title": "namesilo",
+ "subtitle": "注册域名",
+ "href": "https://www.namesilo.com/?rid=3bd4047mc",
+ "icon": "./icons/namesilo.webp"
+ },
+ {
+ "id": "aapanel",
+ "title": "aapanel",
+ "subtitle": "宝塔面板",
+ "href": "https://www.aapanel.com?referral_code=wcn04vez",
+ "icon": "./icons/aapanel.webp"
+ },
+ {
+ "id": "cloudflare",
+ "title": "Cloudflare",
+ "subtitle": "互联网基础节点",
+ "href": "https://www.cloudflare.com/",
+ "icon": "./icons/cloudflare.webp"
+ },
+ {
+ "id": "ga",
+ "title": "Google Analytics",
+ "subtitle": "网站流量统计服务",
+ "href": "https://analytics.google.com/",
+ "icon": "./icons/ga.webp"
+ },
+ {
+ "id": "adsense",
+ "title": "Google AdSense",
+ "subtitle": "Google 广告服务",
+ "href": "https://www.google.com/adsense/",
+ "icon": "./icons/adsense.webp"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "id": "live",
+ "title": "无人直播",
+ "emoji": "▷",
+ "groups": [
+ {
+ "id": "live-soft",
+ "title": "软件",
+ "links": [
+ {
+ "id": "obs",
+ "title": "OBS",
+ "subtitle": "免费开源:录屏 / 推流直播",
+ "href": "https://pan.quark.cn/s/03e89f1bbc9b",
+ "icon": "./icons/obs.webp"
+ },
+ {
+ "id": "ffmpeg",
+ "title": "ffmpeg",
+ "subtitle": "命令行视频处理 / 推流,Python 自动化",
+ "href": "https://www.ffmpeg.org/download.html",
+ "icon": "./icons/ffmpeg.webp"
+ },
+ {
+ "id": "srs",
+ "title": "SRS",
+ "subtitle": "开源直播服务器,拉流推流中转",
+ "href": "https://ossrs.io/",
+ "icon": "./icons/srs.webp"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "id": "pay",
+ "title": "支付网关",
+ "emoji": "◇",
+ "groups": [
+ {
+ "id": "merchant",
+ "title": "小微商户",
+ "links": [
+ {
+ "id": "nowpayments",
+ "title": "NOWPayments",
+ "subtitle": "加密货币收款",
+ "href": "https://account.nowpayments.io/create-account?link_id=3680795921",
+ "icon": "./icons/nowpayments.webp"
+ },
+ {
+ "id": "creem",
+ "title": "Creem",
+ "subtitle": "软件出海收款,税务合规",
+ "href": "https://www.creem.io/",
+ "icon": "./icons/creem.webp"
+ },
+ {
+ "id": "stripe",
+ "title": "Stripe",
+ "subtitle": "全球在线支付",
+ "href": "https://stripe.com/",
+ "icon": "./icons/stripe.webp"
+ },
+ {
+ "id": "zpay",
+ "title": "z-pay",
+ "subtitle": "支持独角数卡 · 易支付",
+ "href": "https://z-pay.cn/?uid=22119",
+ "icon": "./icons/zpay.webp"
+ },
+ {
+ "id": "xorpay",
+ "title": "xorpay",
+ "subtitle": "支持收银台支付",
+ "href": "https://xorpay.com?r=nomadro",
+ "icon": "./icons/xorpay.webp"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "id": "books",
+ "title": "书籍",
+ "emoji": "◈",
+ "groups": [
+ {
+ "id": "handbook",
+ "title": "手册",
+ "links": [
+ {
+ "id": "nomad-book",
+ "title": "数字游民手册",
+ "subtitle": "复制链接后在小红书打开",
+ "href": "https://www.xiaohongshu.com/s/poster?bgimg=https%3A%2F%2Fsns-redskillhub-s1.xhscdn.com%2Fred_app_image%2F1040g4m8325ke1q36l0404a4druqrlvd5valvb80%3Fsign%3Dbc0c41c2e219f6ca904f52176bd17f54%26t%3D6c9a7a85&xhsshare=&appuid=5acc75ba4eacab15c751fda5&apptime=1790527237&deeplink=xhsdiscover%3A%2F%2FminiTool%2F6ab8984da1e3af0015584e92%3Fsource%3Dh5%26page_key%3D28%26xhsMpScreenMode%3Dfull%26share_id%3D5e90e5979b054c8baf8b3db4c8993d79%26share_channel%3Dcopy_link",
+ "icon": "./icons/nomad-book.webp",
+ "action": "copy"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "id": "forum",
+ "title": "论坛社区",
+ "emoji": "◉",
+ "groups": [
+ {
+ "id": "blog",
+ "title": "博客",
+ "links": [
+ {
+ "id": "yidu",
+ "title": "异度世界",
+ "subtitle": "独立博客,Hugo 搭建",
+ "href": "https://blog.hackrobot.cn",
+ "icon": "./icons/yidu.webp"
+ },
+ {
+ "id": "dsx",
+ "title": "大师兄",
+ "subtitle": "AI 实践",
+ "href": "https://dsx2016.com",
+ "icon": "./icons/dsx.webp"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "brandIcon": "./icons/nomadro.webp"
+ },
+ "book": {
+ "title": "数字游民一人公司小册",
+ "subtitle": "离线预览 · 完整章节见 H5 /book",
+ "chapters": [
+ {
+ "id": "c1",
+ "title": "为什么做数字游民",
+ "body": "地理套利、远程收入与低成本生活,是 nomadro 的核心命题。\n\n本页为小红书纯前端离线兜底;完整阅读请打开 nomadro.cn/book。"
+ },
+ {
+ "id": "c2",
+ "title": "一人公司最小闭环",
+ "body": "获客 → 交付 → 收款 → 复购。先跑通一条最小闭环,再谈规模化。"
+ }
+ ]
+ },
+ "community": {
+ "meetups": [
+ {
+ "id": "online-roundtable",
+ "emoji": "🎙️",
+ "title": "远程工作节奏圆桌",
+ "city": "线上",
+ "date": "近期",
+ "desc": "异步协作、时区管理与旅居城市选择。"
+ },
+ {
+ "id": "chiangmai-cowork",
+ "emoji": "☕",
+ "title": "清迈联合办公下午茶",
+ "city": "清迈",
+ "date": "近期",
+ "desc": "签证经验、住宿踩坑与同城社交。"
+ },
+ {
+ "id": "lisbon-sunset",
+ "emoji": "🌅",
+ "title": "里斯本日落漫步",
+ "city": "里斯本",
+ "date": "近期",
+ "desc": "同城游民日落局,交换欧洲签证情报。"
+ }
+ ]
+ }
};
+var NAV_DATA = PORTAL_DATA.nav;
-/* 游民导航 · 小红书小工具(纯离线 classic script) */
+/* nomadro 小红书小工具 — 对齐 H5 门户首页,纯离线 SPA */
(function () {
"use strict";
- var data = window.NAV_DATA || {};
- var categories = data.categories || [];
+ var portal = window.PORTAL_DATA || (typeof PORTAL_DATA !== "undefined" ? PORTAL_DATA : null) || {};
+ var cfg = portal.config || {};
+ var nav = portal.nav || window.NAV_DATA || (typeof NAV_DATA !== "undefined" ? NAV_DATA : {}) || {};
+ var book = portal.book || { title: "小册", chapters: [] };
+ var community = portal.community || { meetups: [] };
+ var categories = nav.categories || [];
+
var state = {
- theme: "light",
+ view: "home",
+ theme: "dark",
activeId: categories[0] ? categories[0].id : "",
drawerOpen: false,
sheetOpen: false,
currentLink: null,
jumping: false,
+ bookChapter: null,
};
var els = {};
@@ -607,10 +687,6 @@ window.__NAV_DATA__ = {
return document.getElementById(id);
}
- function qs(sel, root) {
- return (root || document).querySelector(sel);
- }
-
function escapeHtml(str) {
return String(str == null ? "" : str)
.replace(/&/g, "&")
@@ -621,42 +697,22 @@ window.__NAV_DATA__ = {
function applySafeArea() {
try {
- var root = document.documentElement;
- var probe = document.createElement("div");
- probe.style.cssText =
- "position:absolute;visibility:hidden;pointer-events:none;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top);";
- document.body.appendChild(probe);
- var envTop = parseFloat(window.getComputedStyle(probe).paddingTop) || 0;
- document.body.removeChild(probe);
-
- // 小红书宿主顶栏(返回 / 分享)常盖住内容;Android 上 env 常为 0
- var status = envTop > 0 ? envTop : 28;
- var hostBar = 44;
- var padTop = Math.max(status + hostBar, 72);
- root.style.setProperty("--app-pad-top", padTop + "px");
- root.style.setProperty("--safe-area-inset-top", status + "px");
+ var status = 28;
+ var padTop = Math.max(status + 44, 72);
+ document.documentElement.style.setProperty("--app-pad-top", padTop + "px");
} catch (e) {
document.documentElement.style.setProperty("--app-pad-top", "80px");
}
}
- function readTheme() {
- try {
- var saved = localStorage.getItem("navmini-xhs-theme");
- if (saved === "light" || saved === "dark") return saved;
- } catch (e) {}
- return "light";
- }
-
function setTheme(theme) {
state.theme = theme;
document.documentElement.setAttribute("data-theme", theme);
try {
- localStorage.setItem("navmini-xhs-theme", theme);
+ localStorage.setItem("nomadro-xhs-theme", theme);
} catch (e) {}
- if (els.themeIcon) {
- els.themeIcon.textContent = theme === "dark" ? "☀" : "☾";
- }
+ var ic = theme === "dark" ? "☀" : "☾";
+ if (els.homeThemeIcon) els.homeThemeIcon.textContent = ic;
}
function showToast(msg) {
@@ -669,68 +725,73 @@ window.__NAV_DATA__ = {
}, 1600);
}
- /** 选中网址文本(容器禁用程序化写入剪贴板,仅做文本选中) */
- function selectUrlText() {
- try {
- var node = els.sheetUrlBox;
- if (!node) return false;
- var range = document.createRange();
- range.selectNodeContents(node);
- var sel = window.getSelection();
- if (!sel) return false;
- sel.removeAllRanges();
- sel.addRange(range);
- return true;
- } catch (e) {
- return false;
+ function showView(name) {
+ state.view = name;
+ var views = ["home", "nav", "book", "community"];
+ for (var i = 0; i < views.length; i++) {
+ var el = $("view-" + views[i]);
+ if (el) el.classList.toggle("is-active", views[i] === name);
+ }
+ window.scrollTo(0, 0);
+ if (name === "nav") {
+ renderNav();
+ }
+ if (name === "book") {
+ state.bookChapter = null;
+ renderBook();
+ }
+ if (name === "community") {
+ renderCommunity();
}
}
- function setGuideStep(step) {
- var items = els.guideSteps
- ? els.guideSteps.querySelectorAll(".guide-step")
- : [];
- for (var i = 0; i < items.length; i++) {
- var n = i + 1;
- items[i].classList.toggle("is-active", n === step);
- items[i].classList.toggle("is-done", n < step);
+ /* ----- 首页(对齐 H5) ----- */
+ function renderHome() {
+ var brand = cfg.homeBrand || "nomadro";
+ if (els.homeBrand) els.homeBrand.textContent = brand;
+ if (els.homeTagline) els.homeTagline.textContent = cfg.homeTagline || "数字游民操作系统";
+ if (els.homeLead) els.homeLead.textContent = cfg.homeLead || "导航 · 小册 · 社群 · 离线可用";
+ if (els.homeFoot) els.homeFoot.textContent = brand + " · 离线包";
+
+ var mods = cfg.modules || {};
+ var order = [
+ { key: "nav", emoji: "🧭", title: "出海导航", desc: "工具与出海资源" },
+ { key: "book", emoji: "📖", title: "数字游民小册", desc: "离线预览章节" },
+ { key: "community", emoji: "🌏", title: "旅居社群", desc: "活动与目的地" },
+ ];
+ var html = "";
+ for (var i = 0; i < order.length; i++) {
+ var o = order[i];
+ var m = mods[o.key] || {};
+ if (m.enabled === false) continue;
+ html +=
+ '
';
}
+ if (!html) {
+ html = '
模块已关闭(离线配置)
';
+ }
+ if (els.homeCards) els.homeCards.innerHTML = html;
}
- function setGuideUi(phase) {
- // phase: idle | selected
- var selected = phase === "selected";
- if (els.sheetUrlBox) {
- els.sheetUrlBox.classList.toggle("is-pulse", !selected);
- els.sheetUrlBox.classList.toggle("is-selected", selected);
- }
- if (els.sheetSelect) {
- els.sheetSelect.classList.toggle("pulse", !selected);
- els.sheetSelect.classList.toggle("is-done", selected);
- }
- if (els.sheetSelectLabel) {
- els.sheetSelectLabel.textContent = selected
- ? "② 已选中 · 再点可重选"
- : "① 点我选中网址";
- }
- if (els.sheetSelectSub) {
- els.sheetSelectSub.textContent = selected
- ? "下一步:手指按住蓝色网址区"
- : "选中后请按住网址复制";
- }
- // 第一步:只显示向下指按钮的小手;第二步:小手上移指网址,文案在右边
- if (els.fingerBtn) {
- els.fingerBtn.classList.toggle("is-hidden", selected);
- els.fingerBtn.setAttribute("aria-hidden", selected ? "true" : "false");
- }
- if (els.fingerUrl) {
- els.fingerUrl.classList.toggle("is-hidden", !selected);
- els.fingerUrl.setAttribute("aria-hidden", selected ? "false" : "true");
- }
- if (els.sheetUrlWrap) {
- els.sheetUrlWrap.classList.toggle("is-pointing", selected);
- }
- setGuideStep(selected ? 2 : 1);
+ /* ----- 导航 ----- */
+ function countLinks(cat) {
+ var n = 0;
+ var groups = cat.groups || [];
+ for (var i = 0; i < groups.length; i++) n += (groups[i].links || []).length;
+ return n;
}
function findCategory(id) {
@@ -740,54 +801,45 @@ window.__NAV_DATA__ = {
return categories[0] || null;
}
- function countLinks(cat) {
- var n = 0;
- var groups = cat.groups || [];
- for (var i = 0; i < groups.length; i++) {
- n += (groups[i].links || []).length;
- }
- return n;
- }
-
function renderDrawer() {
+ if (!els.drawerNav) return;
var html = "";
for (var i = 0; i < categories.length; i++) {
var cat = categories[i];
- var active = cat.id === state.activeId ? " active" : "";
html +=
'
";
+ "";
}
- els.drawerNav.innerHTML = html;
+ els.drawerNav.innerHTML = html || '
暂无分类数据
';
}
- function renderContent() {
+ function renderNavContent() {
+ if (!els.content) return;
+ if (!categories.length) {
+ els.content.innerHTML =
+ '
离线导航数据未打包。请重新 assemble。
';
+ return;
+ }
var html = "";
for (var i = 0; i < categories.length; i++) {
var cat = categories[i];
html +=
'
");
- inOl = false;
- olIndex = 0;
- }
- if (!inUl) {
- out.push('