prts-moonlit 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gacha.html +7 -7
- package/index.html +14 -12
- package/ledger.html +7 -7
- package/package.json +1 -1
package/gacha.html
CHANGED
|
@@ -1148,17 +1148,17 @@ document.addEventListener('pointerdown',function(){ac()},{once:true});
|
|
|
1148
1148
|
wxhr(url(),JSON.stringify({v:1,u:acct.u,c:acct.c||0,t:t,data:snap()}),function(){st('✔ 已上传 · 后台校验…');setTimeout(function(){verify(t)},600);});
|
|
1149
1149
|
}
|
|
1150
1150
|
function verify(t){
|
|
1151
|
-
|
|
1151
|
+
var x2=new XMLHttpRequest();x2.open('GET',url()+'?ts='+Date.now(),true);x2.timeout=20000;x2.onload=function(){try{var x=x2.responseText;
|
|
1152
1152
|
x=(x||'').replace(/=$/,'');
|
|
1153
1153
|
try{var rb=JSON.parse(x);if(rb.t===t){st('✔ 已同步 '+clock());return;}}catch(e){}
|
|
1154
1154
|
if(!window.__pv){window.__pv=1;setTimeout(function(){push(1);},800);}
|
|
1155
1155
|
else{window.__pv=0;st('⚠ 上传好像没送达(此浏览器限制跨域)——数据还在本机,可换 Safari 或用存档码');}
|
|
1156
|
-
}).
|
|
1156
|
+
}catch(e){st('⚠ 校验失败(可能网络受限)');}};x2.onerror=x2.ontimeout=function(){st('⚠ 校验失败(可能网络受限)');};x2.send();
|
|
1157
1157
|
}
|
|
1158
1158
|
function pull(manual){
|
|
1159
1159
|
if(!acct||!acct.k)return;
|
|
1160
1160
|
if(manual)st('↻ 同步中…');
|
|
1161
|
-
|
|
1161
|
+
var x2=new XMLHttpRequest();x2.open('GET',url()+'?ts='+Date.now(),true);x2.timeout=20000;x2.onload=function(){try{var x=x2.responseText;
|
|
1162
1162
|
x=(x||'').replace(/=$/,'');
|
|
1163
1163
|
if(!x){if(manual)st('☁ 云端还没有存档——点「云端上传」把本机数据传上去');return;}
|
|
1164
1164
|
var rb;try{rb=JSON.parse(x)}catch(e){st('⚠ 云端数据格式异常');return;}
|
|
@@ -1173,7 +1173,7 @@ document.addEventListener('pointerdown',function(){ac()},{once:true});
|
|
|
1173
1173
|
st(same2?'✔ 已是最新 '+clock():'☁ 云端比本机旧——点「云端上传」可覆盖云端');
|
|
1174
1174
|
}
|
|
1175
1175
|
else{st('✔ 已是云端最新');}
|
|
1176
|
-
}).
|
|
1176
|
+
}catch(e){st('⚠ 云端数据格式异常');}};x2.onerror=x2.ontimeout=function(){st('⚠ 云端连接失败');};x2.send();
|
|
1177
1177
|
}
|
|
1178
1178
|
function logout(){localStorage.removeItem(LS);acct=null;}
|
|
1179
1179
|
var CSS='.acWrap{position:fixed;inset:0;z-index:9998;background:rgba(3,6,14,.66);display:none;align-items:center;justify-content:center}.acWrap.on{display:flex}'+
|
|
@@ -1228,7 +1228,7 @@ document.addEventListener('pointerdown',function(){ac()},{once:true});
|
|
|
1228
1228
|
st('✦ 仓库已创建,正在上传本机数据…');render();push();return;
|
|
1229
1229
|
}
|
|
1230
1230
|
st('↻ 查找云端仓库…');
|
|
1231
|
-
|
|
1231
|
+
var x3=new XMLHttpRequest();x3.open('GET',BASE+k+'?ts='+Date.now(),true);x3.timeout=20000;x3.onload=function(){try{var x=x3.responseText;
|
|
1232
1232
|
x=(x||'').replace(/=$/,'');
|
|
1233
1233
|
if(x&&x.length>2){
|
|
1234
1234
|
var rb=null;try{rb=JSON.parse(x)}catch(e){}if(!rb){acct=null;localStorage.removeItem(LS);st('⚠ 云端数据异常——没敢覆盖');return;}
|
|
@@ -1239,7 +1239,7 @@ document.addEventListener('pointerdown',function(){ac()},{once:true});
|
|
|
1239
1239
|
b.setAttribute('data-mode','create');b.textContent='✦ 没找到仓库——点此以本机数据创建';
|
|
1240
1240
|
st('(如果是新账号,创建后本机数据会上传成初始存档)');
|
|
1241
1241
|
}
|
|
1242
|
-
}).
|
|
1242
|
+
}catch(e){st('⚠ 云端连接失败,稍后再试');}};x3.onerror=x3.ontimeout=function(){st('⚠ 云端连接失败,稍后再试');};x3.send();
|
|
1243
1243
|
};
|
|
1244
1244
|
var pl=g('#acPull');if(pl)pl.onclick=function(){pull(1)};
|
|
1245
1245
|
var pu=g('#acPush');if(pu)pu.onclick=function(){if(acct&&acct.k)push();};
|
|
@@ -1300,7 +1300,7 @@ document.addEventListener('pointerdown',function(){ac()},{once:true});
|
|
|
1300
1300
|
btn.addEventListener('click',open);
|
|
1301
1301
|
setInterval(function(){if(acct&&acct.k){var c=canon();if(c!==lastSnap){lastSnap=c;clearTimeout(pq);pq=setTimeout(push,900);}}},2000);
|
|
1302
1302
|
if(acct&&acct.k){setTimeout(function(){pull(false);},250);}
|
|
1303
|
-
var APP_VER='1.2.
|
|
1303
|
+
var APP_VER='1.2.3';
|
|
1304
1304
|
function _verCmp(a,b){var x=String(a).split('.'),y=String(b).split('.');for(var i=0;i<3;i++){var p=parseInt(x[i]||'0',10),q=parseInt(y[i]||'0',10);if(p!==q)return p-q}return 0}
|
|
1305
1305
|
function chkVer(){
|
|
1306
1306
|
try{
|
package/index.html
CHANGED
|
@@ -542,7 +542,7 @@ img.av{filter:saturate(1.1) contrast(1.05) -webkit-user-drag:none}
|
|
|
542
542
|
<div class="bnews" id="newsBar" data-act="news" style="cursor:pointer">
|
|
543
543
|
<div class="hd">BREAKING NEWS</div>
|
|
544
544
|
<div class="bx">
|
|
545
|
-
<div style="font-size:.82em;line-height:1.4;font-weight:800;color:#ff5f57">版本 v1.2.
|
|
545
|
+
<div style="font-size:.82em;line-height:1.4;font-weight:800;color:#ff5f57">版本 v1.2.3 正式上线!<br><span style="opacity:.75;font-size:.82em;font-weight:400;color:#ffd23f">点此查看使用教程与更新内容 ↗</span></div>
|
|
546
546
|
</div>
|
|
547
547
|
</div>
|
|
548
548
|
|
|
@@ -2641,7 +2641,7 @@ function tshuffle(a){for(var i=a.length-1;i>0;i--){var j=Math.floor(Math.random(
|
|
|
2641
2641
|
var TARO_NOW=[];
|
|
2642
2642
|
function openNews(){
|
|
2643
2643
|
var h='<div class="box"><div class="tag rd">NOTICE</div>'+
|
|
2644
|
-
'<div style="margin-top:6px;font-weight:900;font-size:1.08em">版本 v1.2.
|
|
2644
|
+
'<div style="margin-top:6px;font-weight:900;font-size:1.08em">版本 v1.2.3 正式上线!</div>'+
|
|
2645
2645
|
'<div style="font-size:.78em;opacity:.7;margin-top:3px">鲸鲸的养成计划 · PRTS 终端 · 2026-09-27</div></div>'+
|
|
2646
2646
|
'<div class="box" style="margin-top:10px"><div class="tag">使用教程</div>'+
|
|
2647
2647
|
'<div style="font-size:.82em;line-height:1.8;margin-top:6px">'+
|
|
@@ -2651,7 +2651,9 @@ function openNews(){
|
|
|
2651
2651
|
'④ 云存档:点 @ 登录 →「云端导入」接回数据 /「云端上传」备份上云;也有「本地存档码」跨设备搬运<br>'+
|
|
2652
2652
|
'⑤ 恢复出厂:@ 面板内「清空本机存档」,一键清空本机数据(云端不受影响)<br>'+'⑥ AI 对话:01 里保存 API 配置(地址/Key/模型)→ 和「人格」开聊;采购中心的券可直接在对话里使用<br>'+'⑦ 意见箱:@ 面板里的 📮 直达云端,说什么都能被鲸鲸收到</div></div>'+
|
|
2653
2653
|
'<div class="box" style="margin-top:10px"><div class="tag">免责声明</div><div style="font-size:.76em;line-height:1.75;margin-top:6px;opacity:.8">本站为个人学习与娱乐项目,无商业运营、无任何支付功能。AI 功能需自备 API 密钥,生成内容仅供参考;数据保存在你的设备与私有云存档中,可随时一键清空。</div></div>'+
|
|
2654
|
-
'<div class="box" style="margin-top:10px"><div class="tag">更新内容 · v1.2.
|
|
2654
|
+
'<div class="box" style="margin-top:10px"><div class="tag">更新内容 · v1.2.3</div>'+
|
|
2655
|
+
'<div style="font-size:.82em;line-height:1.8;margin-top:6px">✦ 云端同步加固:开屏拉取 / 云端导入 / 登录校验 / 上传校验全部换用更稳的传输通道——弱网与受限环境也能把存档稳稳拉回来</div></div>'+
|
|
2656
|
+
'<div class="box" style="margin-top:10px"><div class="tag">里程碑 · v1.2.2</div>'+
|
|
2655
2657
|
'<div style="font-size:.82em;line-height:1.8;margin-top:6px">✦ 本地密码本:@ 面板 🔐 · 只存本机、主口令加密、永不上云<br>✦ 收件箱:意见与战绩直达站内,主人专属(📬)<br>✦ AI 推理调节:对话页 ⚙ 新增 推理强度 / 温度 / 上限<br>✦ 账本余额校准:「💳 实际余额」自己填,主页余额同步跟动</div></div>'+
|
|
2656
2658
|
'<div class="box" style="margin-top:10px"><div class="tag">里程碑 · v1.2.1</div>'+
|
|
2657
2659
|
'<div style="font-size:.82em;line-height:1.8;margin-top:6px">✦ 意见箱上岗:@ 面板 📮 写信直达云端信箱,鲸鲸定期收信<br>✦ 一键报备:寻访战绩直传云端;和 AI 聊一句自动打卡<br>✦ API Key 加密保存:密文落盘、聊天照常<br>✦ 版本哨兵:新版上线自动提醒「点此刷新更新」<br>✦ 公开招募下线(九宫格重排 01-09)· 免责声明上站</div></div>'+
|
|
@@ -2991,7 +2993,7 @@ boot();
|
|
|
2991
2993
|
(function(){
|
|
2992
2994
|
var B=document.getElementById('petB'),bub=document.getElementById('petBub'),txt=document.getElementById('petTxt');
|
|
2993
2995
|
if(!B)return;
|
|
2994
|
-
var L=['鲸鲸~','主人~','捏到了!再捏一下嘛','今日宜抽卡','小鱼干 +1!','BUILD v1.2.
|
|
2996
|
+
var L=['鲸鲸~','主人~','捏到了!再捏一下嘛','今日宜抽卡','小鱼干 +1!','BUILD v1.2.3 已就位','账单同步了吗?','过场动画,好看吧?','晚安前记得说晚安哦','鲸鲸在看家…','要摸摸头吗?','别熬夜啦,主人'];
|
|
2995
2997
|
var last=-1,ht=0;
|
|
2996
2998
|
function say(){
|
|
2997
2999
|
var i;do{i=Math.floor(Math.random()*L.length)}while(i===last);
|
|
@@ -3026,7 +3028,7 @@ boot();
|
|
|
3026
3028
|
setInterval(function(){if(document.visibilityState==='visible')say()},36000);
|
|
3027
3029
|
})();
|
|
3028
3030
|
</script>
|
|
3029
|
-
<div style="position:fixed;left:10px;bottom:5px;font-size:9px;letter-spacing:.14em;color:#4cc9ff;opacity:.5;z-index:45;font-family:ui-monospace,Menlo,monospace;pointer-events:none">BUILD v1.2.
|
|
3031
|
+
<div style="position:fixed;left:10px;bottom:5px;font-size:9px;letter-spacing:.14em;color:#4cc9ff;opacity:.5;z-index:45;font-family:ui-monospace,Menlo,monospace;pointer-events:none">BUILD v1.2.3</div>
|
|
3030
3032
|
|
|
3031
3033
|
<!-- ===== SYSTEM LOGIN 云存档 ===== -->
|
|
3032
3034
|
<script>
|
|
@@ -3131,17 +3133,17 @@ boot();
|
|
|
3131
3133
|
wxhr(url(),JSON.stringify({v:1,u:acct.u,c:acct.c||0,t:t,data:snap()}),function(){st('✔ 已上传 · 后台校验…');setTimeout(function(){verify(t)},600);});
|
|
3132
3134
|
}
|
|
3133
3135
|
function verify(t){
|
|
3134
|
-
|
|
3136
|
+
var x2=new XMLHttpRequest();x2.open('GET',url()+'?ts='+Date.now(),true);x2.timeout=20000;x2.onload=function(){try{var x=x2.responseText;
|
|
3135
3137
|
x=(x||'').replace(/=$/,'');
|
|
3136
3138
|
try{var rb=JSON.parse(x);if(rb.t===t){st('✔ 已同步 '+clock());return;}}catch(e){}
|
|
3137
3139
|
if(!window.__pv){window.__pv=1;setTimeout(function(){push(1);},800);}
|
|
3138
3140
|
else{window.__pv=0;st('⚠ 上传好像没送达(此浏览器限制跨域)——数据还在本机,可换 Safari 或用存档码');}
|
|
3139
|
-
}).
|
|
3141
|
+
}catch(e){st('⚠ 校验失败(可能网络受限)');}};x2.onerror=x2.ontimeout=function(){st('⚠ 校验失败(可能网络受限)');};x2.send();
|
|
3140
3142
|
}
|
|
3141
3143
|
function pull(manual){
|
|
3142
3144
|
if(!acct||!acct.k)return;
|
|
3143
3145
|
if(manual)st('↻ 同步中…');
|
|
3144
|
-
|
|
3146
|
+
var x2=new XMLHttpRequest();x2.open('GET',url()+'?ts='+Date.now(),true);x2.timeout=20000;x2.onload=function(){try{var x=x2.responseText;
|
|
3145
3147
|
x=(x||'').replace(/=$/,'');
|
|
3146
3148
|
if(!x){if(manual)st('☁ 云端还没有存档——点「云端上传」把本机数据传上去');return;}
|
|
3147
3149
|
var rb;try{rb=JSON.parse(x)}catch(e){st('⚠ 云端数据格式异常');return;}
|
|
@@ -3156,7 +3158,7 @@ boot();
|
|
|
3156
3158
|
st(same2?'✔ 已是最新 '+clock():'☁ 云端比本机旧——点「云端上传」可覆盖云端');
|
|
3157
3159
|
}
|
|
3158
3160
|
else{st('✔ 已是云端最新');}
|
|
3159
|
-
}).
|
|
3161
|
+
}catch(e){st('⚠ 云端数据格式异常');}};x2.onerror=x2.ontimeout=function(){st('⚠ 云端连接失败');};x2.send();
|
|
3160
3162
|
}
|
|
3161
3163
|
function logout(){localStorage.removeItem(LS);acct=null;}
|
|
3162
3164
|
var CSS='.acWrap{position:fixed;inset:0;z-index:9998;background:rgba(3,6,14,.66);display:none;align-items:center;justify-content:center}.acWrap.on{display:flex}'+
|
|
@@ -3211,7 +3213,7 @@ boot();
|
|
|
3211
3213
|
st('✦ 仓库已创建,正在上传本机数据…');render();push();return;
|
|
3212
3214
|
}
|
|
3213
3215
|
st('↻ 查找云端仓库…');
|
|
3214
|
-
|
|
3216
|
+
var x3=new XMLHttpRequest();x3.open('GET',BASE+k+'?ts='+Date.now(),true);x3.timeout=20000;x3.onload=function(){try{var x=x3.responseText;
|
|
3215
3217
|
x=(x||'').replace(/=$/,'');
|
|
3216
3218
|
if(x&&x.length>2){
|
|
3217
3219
|
var rb=null;try{rb=JSON.parse(x)}catch(e){}if(!rb){acct=null;localStorage.removeItem(LS);st('⚠ 云端数据异常——没敢覆盖');return;}
|
|
@@ -3222,7 +3224,7 @@ boot();
|
|
|
3222
3224
|
b.setAttribute('data-mode','create');b.textContent='✦ 没找到仓库——点此以本机数据创建';
|
|
3223
3225
|
st('(如果是新账号,创建后本机数据会上传成初始存档)');
|
|
3224
3226
|
}
|
|
3225
|
-
}).
|
|
3227
|
+
}catch(e){st('⚠ 云端连接失败,稍后再试');}};x3.onerror=x3.ontimeout=function(){st('⚠ 云端连接失败,稍后再试');};x3.send();
|
|
3226
3228
|
};
|
|
3227
3229
|
var pl=g('#acPull');if(pl)pl.onclick=function(){pull(1)};
|
|
3228
3230
|
var pu=g('#acPush');if(pu)pu.onclick=function(){if(acct&&acct.k)push();};
|
|
@@ -3283,7 +3285,7 @@ boot();
|
|
|
3283
3285
|
btn.addEventListener('click',open);
|
|
3284
3286
|
setInterval(function(){if(acct&&acct.k){var c=canon();if(c!==lastSnap){lastSnap=c;clearTimeout(pq);pq=setTimeout(push,900);}}},2000);
|
|
3285
3287
|
if(acct&&acct.k){setTimeout(function(){pull(false);},250);}
|
|
3286
|
-
var APP_VER='1.2.
|
|
3288
|
+
var APP_VER='1.2.3';
|
|
3287
3289
|
function _verCmp(a,b){var x=String(a).split('.'),y=String(b).split('.');for(var i=0;i<3;i++){var p=parseInt(x[i]||'0',10),q=parseInt(y[i]||'0',10);if(p!==q)return p-q}return 0}
|
|
3288
3290
|
function chkVer(){
|
|
3289
3291
|
try{
|
package/ledger.html
CHANGED
|
@@ -1137,17 +1137,17 @@ window.LEDGER_BACKUP = [];
|
|
|
1137
1137
|
wxhr(url(),JSON.stringify({v:1,u:acct.u,c:acct.c||0,t:t,data:snap()}),function(){st('✔ 已上传 · 后台校验…');setTimeout(function(){verify(t)},600);});
|
|
1138
1138
|
}
|
|
1139
1139
|
function verify(t){
|
|
1140
|
-
|
|
1140
|
+
var x2=new XMLHttpRequest();x2.open('GET',url()+'?ts='+Date.now(),true);x2.timeout=20000;x2.onload=function(){try{var x=x2.responseText;
|
|
1141
1141
|
x=(x||'').replace(/=$/,'');
|
|
1142
1142
|
try{var rb=JSON.parse(x);if(rb.t===t){st('✔ 已同步 '+clock());return;}}catch(e){}
|
|
1143
1143
|
if(!window.__pv){window.__pv=1;setTimeout(function(){push(1);},800);}
|
|
1144
1144
|
else{window.__pv=0;st('⚠ 上传好像没送达(此浏览器限制跨域)——数据还在本机,可换 Safari 或用存档码');}
|
|
1145
|
-
}).
|
|
1145
|
+
}catch(e){st('⚠ 校验失败(可能网络受限)');}};x2.onerror=x2.ontimeout=function(){st('⚠ 校验失败(可能网络受限)');};x2.send();
|
|
1146
1146
|
}
|
|
1147
1147
|
function pull(manual){
|
|
1148
1148
|
if(!acct||!acct.k)return;
|
|
1149
1149
|
if(manual)st('↻ 同步中…');
|
|
1150
|
-
|
|
1150
|
+
var x2=new XMLHttpRequest();x2.open('GET',url()+'?ts='+Date.now(),true);x2.timeout=20000;x2.onload=function(){try{var x=x2.responseText;
|
|
1151
1151
|
x=(x||'').replace(/=$/,'');
|
|
1152
1152
|
if(!x){if(manual)st('☁ 云端还没有存档——点「云端上传」把本机数据传上去');return;}
|
|
1153
1153
|
var rb;try{rb=JSON.parse(x)}catch(e){st('⚠ 云端数据格式异常');return;}
|
|
@@ -1162,7 +1162,7 @@ window.LEDGER_BACKUP = [];
|
|
|
1162
1162
|
st(same2?'✔ 已是最新 '+clock():'☁ 云端比本机旧——点「云端上传」可覆盖云端');
|
|
1163
1163
|
}
|
|
1164
1164
|
else{st('✔ 已是云端最新');}
|
|
1165
|
-
}).
|
|
1165
|
+
}catch(e){st('⚠ 云端数据格式异常');}};x2.onerror=x2.ontimeout=function(){st('⚠ 云端连接失败');};x2.send();
|
|
1166
1166
|
}
|
|
1167
1167
|
function logout(){localStorage.removeItem(LS);acct=null;}
|
|
1168
1168
|
var CSS='.acWrap{position:fixed;inset:0;z-index:9998;background:rgba(3,6,14,.66);display:none;align-items:center;justify-content:center}.acWrap.on{display:flex}'+
|
|
@@ -1217,7 +1217,7 @@ window.LEDGER_BACKUP = [];
|
|
|
1217
1217
|
st('✦ 仓库已创建,正在上传本机数据…');render();push();return;
|
|
1218
1218
|
}
|
|
1219
1219
|
st('↻ 查找云端仓库…');
|
|
1220
|
-
|
|
1220
|
+
var x3=new XMLHttpRequest();x3.open('GET',BASE+k+'?ts='+Date.now(),true);x3.timeout=20000;x3.onload=function(){try{var x=x3.responseText;
|
|
1221
1221
|
x=(x||'').replace(/=$/,'');
|
|
1222
1222
|
if(x&&x.length>2){
|
|
1223
1223
|
var rb=null;try{rb=JSON.parse(x)}catch(e){}if(!rb){acct=null;localStorage.removeItem(LS);st('⚠ 云端数据异常——没敢覆盖');return;}
|
|
@@ -1228,7 +1228,7 @@ window.LEDGER_BACKUP = [];
|
|
|
1228
1228
|
b.setAttribute('data-mode','create');b.textContent='✦ 没找到仓库——点此以本机数据创建';
|
|
1229
1229
|
st('(如果是新账号,创建后本机数据会上传成初始存档)');
|
|
1230
1230
|
}
|
|
1231
|
-
}).
|
|
1231
|
+
}catch(e){st('⚠ 云端连接失败,稍后再试');}};x3.onerror=x3.ontimeout=function(){st('⚠ 云端连接失败,稍后再试');};x3.send();
|
|
1232
1232
|
};
|
|
1233
1233
|
var pl=g('#acPull');if(pl)pl.onclick=function(){pull(1)};
|
|
1234
1234
|
var pu=g('#acPush');if(pu)pu.onclick=function(){if(acct&&acct.k)push();};
|
|
@@ -1289,7 +1289,7 @@ window.LEDGER_BACKUP = [];
|
|
|
1289
1289
|
btn.addEventListener('click',open);
|
|
1290
1290
|
setInterval(function(){if(acct&&acct.k){var c=canon();if(c!==lastSnap){lastSnap=c;clearTimeout(pq);pq=setTimeout(push,900);}}},2000);
|
|
1291
1291
|
if(acct&&acct.k){setTimeout(function(){pull(false);},250);}
|
|
1292
|
-
var APP_VER='1.2.
|
|
1292
|
+
var APP_VER='1.2.3';
|
|
1293
1293
|
function _verCmp(a,b){var x=String(a).split('.'),y=String(b).split('.');for(var i=0;i<3;i++){var p=parseInt(x[i]||'0',10),q=parseInt(y[i]||'0',10);if(p!==q)return p-q}return 0}
|
|
1294
1294
|
function chkVer(){
|
|
1295
1295
|
try{
|