yakuza0 2.22.39-beta.6 → 2.22.39

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.
@@ -28,12 +28,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
28
28
 
29
29
  exports.default = function () {
30
30
  var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(ctx) {
31
- var store, $yk, $ws, app, keys, cs, clientKey;
31
+ var store, $yk, $ws, app, route, keys, cs, clientKey, q, ci;
32
32
  return _regenerator2.default.wrap(function _callee3$(_context3) {
33
33
  while (1) {
34
34
  switch (_context3.prev = _context3.next) {
35
35
  case 0:
36
- store = ctx.store, $yk = ctx.$yk, $ws = ctx.$ws, app = ctx.app;
36
+ store = ctx.store, $yk = ctx.$yk, $ws = ctx.$ws, app = ctx.app, route = ctx.route;
37
37
 
38
38
  // await set(ctx);
39
39
 
@@ -135,7 +135,31 @@ exports.default = function () {
135
135
  // Cookies.set(yConf.server.stupid.v2023_12.aMark, "", {domain: $yk.appConf.cookieDomain})
136
136
  $yk.firstRefresh = false;
137
137
 
138
- case 17:
138
+ if (route.query.__isc) {
139
+ q = _yakuza._.omit(route.query, ['__isc']);
140
+ ci = setInterval(function () {
141
+ // history.replaceState(q, '', route.path)
142
+ if (location.href.indexOf("__isc") !== -1) {
143
+ history.pushState(q, "", location.href.split('?')[0]);
144
+ }
145
+ }, 100);
146
+
147
+ setTimeout(function () {
148
+ clearInterval(ci);
149
+ }, 10000);
150
+ // route.query.__isc = ''
151
+ // console.log(route.path, q, 2222);
152
+ // const fu = location.href.replace('__isc=' + route.query.__isc ,'')
153
+ // // console.log(fu, 221);
154
+ // history.pushState(q, "", location.href.split('?')[0]);
155
+ // history.pushState(q, "", route.path);
156
+ // const a = route.path + '?' + qs.stringify(q)
157
+ // console.log(a);
158
+ // console.log(route.path, q, 111);
159
+ // redirect(location.href.split('?')[0], q)
160
+ }
161
+
162
+ case 18:
139
163
  case 'end':
140
164
  return _context3.stop();
141
165
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yakuza0",
3
- "version": "2.22.39-beta.6",
3
+ "version": "2.22.39",
4
4
  "description": "yakuza0 with nuxt",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/utils/secret.js CHANGED
@@ -196,7 +196,7 @@ var set = exports.set = function set(_ref3) {
196
196
 
197
197
  return new _promise2.default(function () {
198
198
  var _ref4 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(resolve, reject) {
199
- var w, mixin, yc, hostname, spiData, spi, spiQuery, spiSecret, parser, setUniversal, ucResC, timeout, universalBody, getUc, getSvcInSsrWithServer, getSvc, q, ci;
199
+ var w, mixin, yc, hostname, spiData, spi, spiQuery, spiSecret, parser, setUniversal, ucResC, timeout, universalBody, getUc, getSvcInSsrWithServer, getSvc;
200
200
  return _regenerator2.default.wrap(function _callee9$(_context9) {
201
201
  while (1) {
202
202
  switch (_context9.prev = _context9.next) {
@@ -221,7 +221,7 @@ var set = exports.set = function set(_ref3) {
221
221
  }
222
222
 
223
223
  if ($yk.standAlone) {
224
- _context9.next = 30;
224
+ _context9.next = 29;
225
225
  break;
226
226
  }
227
227
 
@@ -292,7 +292,7 @@ var set = exports.set = function set(_ref3) {
292
292
  };
293
293
 
294
294
  if (!w) {
295
- _context9.next = 30;
295
+ _context9.next = 29;
296
296
  break;
297
297
  }
298
298
 
@@ -715,59 +715,6 @@ var set = exports.set = function set(_ref3) {
715
715
  return getSvc();
716
716
 
717
717
  case 29:
718
-
719
- if (route.query.__isc) {
720
- q = _yakuza._.omit(route.query, ['__isc']);
721
- // route.query.__isc = ''
722
- // console.log(route.path, q, 2222);
723
- // const fu = location.href.replace('__isc=' + route.query.__isc ,'')
724
- // // console.log(fu, 221);
725
- // history.pushState(q, "", location.href.split('?')[0]);
726
- // history.pushState(q, "", route.path);
727
-
728
- ci = setInterval(function () {
729
- // history.replaceState(q, '', route.path)
730
- if (location.href.indexOf("__isc") !== -1) {
731
- history.pushState(q, "", location.href.split('?')[0]);
732
- }
733
- }, 100);
734
-
735
- setTimeout(function () {
736
- clearInterval(ci);
737
- }, 10000);
738
- // const a = route.path + '?' + qs.stringify(q)
739
- // console.log(a);
740
- // console.log(route.path, q, 111);
741
- // redirect(location.href.split('?')[0], q)
742
- }
743
- // if (!checkServer() && yConf.security.isStupid) {
744
- // function sc() {
745
- // const sc = Cookies.get('__sc')
746
- // if (!sc) {
747
- // Cookies.set('__sc', gPwd(), { expires: 7 });
748
- // }
749
- // }
750
- //
751
- // const main = document.getElementsByTagName('body')[0]
752
- // main.onkeydown = sc;
753
- // main.myKeyUp = sc;
754
- // main.onclick = sc;
755
- // main.ondblclick = sc;
756
- // main.onmousedown = sc;
757
- // main.onmouseover = sc;
758
- // main.onmousemove = sc;
759
- // main.onmouseenter = sc;
760
- // main.onmouseup = sc;
761
- // main.onmouseout = sc;
762
- // main.onmouseleave = sc;
763
- // if (document.addEventListener) {
764
- // document.addEventListener('DOMMouseScroll', sc, false);
765
- // }//W3C
766
- // window.onmousewheel = document.onmousewheel = sc
767
- // document.onmousemove = sc
768
- // }
769
-
770
- case 30:
771
718
  case "end":
772
719
  return _context9.stop();
773
720
  }