This commit is contained in:
2022-07-21 03:28:35 +00:00
parent d7c883d6df
commit 51b34b0e1d
30103 changed files with 4152204 additions and 23 deletions
+1
View File
File diff suppressed because one or more lines are too long
+2
View File
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
!function(e){function r(data){for(var r,n,l=data[0],f=data[1],d=data[2],i=0,h=[];i<l.length;i++)n=l[i],Object.prototype.hasOwnProperty.call(o,n)&&o[n]&&h.push(o[n][0]),o[n]=0;for(r in f)Object.prototype.hasOwnProperty.call(f,r)&&(e[r]=f[r]);for(v&&v(data);h.length;)h.shift()();return c.push.apply(c,d||[]),t()}function t(){for(var e,i=0;i<c.length;i++){for(var r=c[i],t=!0,n=1;n<r.length;n++){var f=r[n];0!==o[f]&&(t=!1)}t&&(c.splice(i--,1),e=l(l.s=r[0]))}return e}var n={},o={6:0},c=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var c,script=document.createElement("script");script.charset="utf-8",script.timeout=120,l.nc&&script.setAttribute("nonce",l.nc),script.src=function(e){return l.p+""+{2:"563a13c",3:"7028ef3",4:"3a9ae06",5:"e440647",8:"2109837"}[e]+".js"}(e);var f=new Error;c=function(r){script.onerror=script.onload=null,clearTimeout(d);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),c=r&&r.target&&r.target.src;f.message="Loading chunk "+e+" failed.\n("+n+": "+c+")",f.name="ChunkLoadError",f.type=n,f.request=c,t[1](f)}o[e]=void 0}};var d=setTimeout((function(){c({type:"timeout",target:script})}),12e4);script.onerror=script.onload=c,document.head.appendChild(script)}return Promise.all(r)},l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},l.p="/_nuxt/",l.oe=function(e){throw console.error(e),e};var f=window.webpackJsonp=window.webpackJsonp||[],d=f.push.bind(f);f.push=r,f=f.slice();for(var i=0;i<f.length;i++)r(f[i]);var v=d;t()}([]);
+1
View File
File diff suppressed because one or more lines are too long
+2
View File
File diff suppressed because one or more lines are too long
+2
View File
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{300:function(e,r,t){"use strict";t.r(r);var n=t(15);t(65),t(32);r.default={middleware:function(e){return Object(n.a)(regeneratorRuntime.mark((function r(){var t,n,o,c,d,w;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.req,n=e.res,e.error,o=e.$axios,e.redirect,c=new URL(t.url,"https://".concat(t.headers.host)),d=c.searchParams.get("LINEUserID")||"",console.log(d),r.next=6,o.get("https://api.contree.io/profile",{params:{LINEUserID:d}});case 6:return w=r.sent,r.next=9,n.setHeader("Content-Type","application/json; charset=utf-8");case 9:n.end(JSON.stringify(w.data.slice(-1)));case 10:case"end":return r.stop()}}),r)})))()}}}}]);
+53
View File
@@ -0,0 +1,53 @@
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/**
* vue-class-component v7.2.3
* (c) 2015-present Evan You
* @license MIT
*/
/*!
* vue-client-only v0.0.0-semantic-release
* (c) 2021-present egoist <0x142857@gmail.com>
* Released under the MIT License.
*/
/*!
* vue-no-ssr v1.1.1
* (c) 2018-present egoist <0x142857@gmail.com>
* Released under the MIT License.
*/
/*!
* vuex v3.6.2
* (c) 2021 Evan You
* @license MIT
*/
/*!
* vue-router v3.5.4
* (c) 2022 Evan You
* @license MIT
*/
/*!
* Vue.js v2.7.7
* (c) 2014-2022 Evan You
* Released under the MIT License.
*/
+2
View File
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{301:function(e,r,t){"use strict";t.r(r);var n=t(15),o=(t(65),t(14),"https://api.contree.io/profile");r.default={template:"<p>OK</p>",middleware:function(e){return Object(n.a)(regeneratorRuntime.mark((function r(){var t,n,data,c,d,f,w,x;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.req,e.error,n=e.$axios,e.redirect,r.next=3,new Promise((function(e){var body="";t.on("data",(function(data){body+=data})),t.on("end",(function(){e(JSON.parse(body))}))}));case 3:return data=r.sent,c=data.LINEUserID=data.LINEUserID||"test",r.next=7,n.get(o,{params:{LINEUserID:c}});case 7:if(d=r.sent,f=data.VerifyNUM,w=data.VerifySys,!(d.data.length>0)){r.next=16;break}return x=d.data[0].id,r.next=14,n.patch("".concat(o,"/").concat(x),data);case 14:r.next=18;break;case 16:return r.next=18,n.post(o,data);case 18:return r.next=20,n.get("https://nodered.contree.io/contree_push",{params:{userid:c,Verify:f,VerifySys:w}});case 20:case"end":return r.stop()}}),r)})))()}}}}]);
File diff suppressed because it is too large Load Diff
+9
View File
@@ -0,0 +1,9 @@
<!doctype html>
<html {{ html_attrs }}>
<head {{ head_attrs }}>
{{ HEAD }}
</head>
<body {{ body_attrs }}>
{{ APP }}
<script src="/_nuxt/312f03e.js"></script><script src="/_nuxt/b8ffd72.js"></script><script src="/_nuxt/49227e3.js"></script><script src="/_nuxt/043caf4.js"></script></body>
</html>
+9
View File
@@ -0,0 +1,9 @@
<!doctype html>
<html {{ html_attrs }}>
<head {{ head_attrs }}>
{{ HEAD }}
</head>
<body {{ body_attrs }}>
{{ APP }}
</body>
</html>
+38
View File
@@ -0,0 +1,38 @@
exports.ids = [1];
exports.modules = {
/***/ 86:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(URL) {const ENDPOINT = 'https://api.contree.io/profile';
/* harmony default export */ __webpack_exports__["default"] = ({
async middleware({
req,
res,
error,
$axios,
redirect
}) {
const url = new URL(req.url, `https://${req.headers.host}`);
const uid = url.searchParams.get('LINEUserID') || ''; //const veify_checked = url.searchParams.get('Veify_Checked')
//console.log(veify_checked)
console.log(uid);
const response = await $axios.get(ENDPOINT, {
params: {
LINEUserID: uid
}
});
await res.setHeader('Content-Type', 'application/json; charset=utf-8');
res.end(JSON.stringify(response.data.slice(-1)));
}
});
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)["URL"]))
/***/ })
};;
//# sourceMappingURL=autofill.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"pages/autofill.js","sources":["webpack:///./pages/autofill.ts"],"sourcesContent":["import querystring from 'querystring'\nimport { Vue, Component } from \"nuxt-property-decorator\";\nimport { initLIFF } from \"~/plugins/liff\";\n\nconst ENDPOINT = 'https://api.contree.io/profile'\n\nexport default {\n async middleware({ req, res, error, $axios, redirect }) {\n const url: URL = new URL(req.url, `https://${req.headers.host}`)\n const uid: string = url.searchParams.get('LINEUserID') || ''\n //const veify_checked = url.searchParams.get('Veify_Checked') \n //console.log(veify_checked)\n console.log(uid)\n\n\n\n const response = await $axios.get(ENDPOINT, {\n params: { LINEUserID: uid }\n })\n await res.setHeader('Content-Type', 'application/json; charset=utf-8')\n res.end(JSON.stringify(response.data.slice(-1)))\n }\n}\n"],"mappings":";;;;;;;AAIA;AAAA;AAEA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAEA;AACA;AAAA;AAIA;AACA;AAAA;AAAA;AADA;AAGA;AACA;AACA;AACA;AAhBA;;;;;A","sourceRoot":""}
+4094
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+60
View File
@@ -0,0 +1,60 @@
exports.ids = [3];
exports.modules = {
/***/ 87:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
const ENDPOINT = "https://api.contree.io/profile";
const ENDPOINT2 = "https://nodered.contree.io/contree_push";
/* harmony default export */ __webpack_exports__["default"] = ({
template: '<p>OK</p>',
async middleware({
req,
error,
$axios,
redirect
}) {
const data = await new Promise(resolve => {
let body = '';
req.on('data', data => {
body += data;
});
req.on('end', () => {
resolve(JSON.parse(body));
});
});
const uid = data.LINEUserID = data.LINEUserID || 'test';
let response = await $axios.get(ENDPOINT, {
params: {
LINEUserID: uid
}
});
const vnum = data.VerifyNUM;
const vsys = data.VerifySys; //data.BeaconMode = 'leave'
//data.FLAG = false
if (response.data.length > 0) {
const id = response.data[0].id;
await $axios.patch(`${ENDPOINT}/${id}`, data);
} else {
await $axios.post(ENDPOINT, data);
}
await $axios.get(ENDPOINT2, {
params: {
userid: uid,
Verify: vnum,
VerifySys: vsys
}
});
}
});
/***/ })
};;
//# sourceMappingURL=submit.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"pages/submit.js","sources":["webpack:///./pages/submit.ts"],"sourcesContent":["import querystring from 'querystring'\nimport { IForm } from '~/models/submit'\n\nconst ENDPOINT = \"https://api.contree.io/profile\"\nconst ENDPOINT2 = \"https://nodered.contree.io/contree_push\"\n\nexport default {\n template: '<p>OK</p>',\n async middleware({ req, error, $axios, redirect }) {\n const data : IForm = await new Promise((resolve) => {\n let body = ''\n req.on('data', data => {\n body += data\n })\n req.on('end', () => {\n resolve(JSON.parse(body))\n })\n })\n const uid = data.LINEUserID = data.LINEUserID || 'test'\n let response = await $axios.get(ENDPOINT, {\n params: { LINEUserID: uid }\n })\n const vnum = data.VerifyNUM\n const vsys = data.VerifySys\n\n //data.BeaconMode = 'leave'\n //data.FLAG = false\n if (response.data.length > 0) {\n const id = response.data[0].id\n await $axios.patch(`${ENDPOINT}/${id}`, data)\n } else {\n await $axios.post(ENDPOINT, data)\n }\n await $axios.get(ENDPOINT2, {\n params: { userid: uid ,Verify: vnum,VerifySys: vsys }\n })\n }\n}\n"],"mappings":";;;;;;;AAGA;AAAA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AADA;AAGA;AACA;AAGA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AADA;AAGA;AACA;AA/BA;;;;A","sourceRoot":""}
+6632
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+15
View File
@@ -0,0 +1,15 @@
{
"entry": "server.js",
"files": {
"pages/autofill.js": "pages/autofill.js",
"pages/index.js": "pages/index.js",
"pages/submit.js": "pages/submit.js",
"server.js": "server.js"
},
"maps": {
"pages/autofill.js": "pages/autofill.js.map",
"pages/index.js": "pages/index.js.map",
"pages/submit.js": "pages/submit.js.map",
"server.js": "server.js.map"
}
}