Merge pull request 'xbx' (#186) from xbx into master

Reviewed-on: http://git.luyuan.tk/luyuan/beelink/pulls/186
This commit is contained in:
luyuan 2020-11-30 14:42:32 +08:00
commit 5ac5515cba
10 changed files with 35 additions and 6 deletions

0
dist/css/chunk-b6ad4206.0e433876.css vendored Normal file
View File

4
dist/index.html vendored
View File

@ -61,11 +61,11 @@
left: 0;
z-index: 1001;
display: none;
}</style><link href="/css/chunk-04e3a2fa.08ef3a2d.css" rel="prefetch"><link href="/css/chunk-05d3c41a.55076a31.css" rel="prefetch"><link href="/css/chunk-06828374.8e285ce3.css" rel="prefetch"><link href="/css/chunk-07015098.03da786d.css" rel="prefetch"><link href="/css/chunk-14e6a7cb.9cba31b5.css" rel="prefetch"><link href="/css/chunk-16964057.37c6c246.css" rel="prefetch"><link href="/css/chunk-1abac668.206f270b.css" rel="prefetch"><link href="/css/chunk-21d6a1b9.85832ac1.css" rel="prefetch"><link href="/css/chunk-27236dd2.3992b5d2.css" rel="prefetch"><link href="/css/chunk-2a197f09.b2772b24.css" rel="prefetch"><link href="/css/chunk-34d93bb8.4cba2bdb.css" rel="prefetch"><link href="/css/chunk-371ee143.78141e1e.css" rel="prefetch"><link href="/css/chunk-3c703972.0e433876.css" rel="prefetch"><link href="/css/chunk-3c7641ed.f87c4e8b.css" rel="prefetch"><link href="/css/chunk-46e3b07d.9259aefd.css" rel="prefetch"><link href="/css/chunk-4cbe0c82.f0a6b24e.css" rel="prefetch"><link href="/css/chunk-4e0b884c.48d44d85.css" rel="prefetch"><link href="/css/chunk-520d8a08.dd761c06.css" rel="prefetch"><link href="/css/chunk-623eb100.c75b32b7.css" rel="prefetch"><link href="/css/chunk-650d0cb1.47d38586.css" rel="prefetch"><link href="/css/chunk-68091c98.14c0db2d.css" rel="prefetch"><link href="/css/chunk-737c53fe.6caedc04.css" rel="prefetch"><link href="/css/chunk-74d6e86d.85aed290.css" rel="prefetch"><link href="/css/chunk-74d7e8d4.4686069f.css" rel="prefetch"><link href="/css/chunk-977f0f52.6081abf8.css" rel="prefetch"><link href="/css/chunk-cc7ac8b2.cf93d877.css" rel="prefetch"><link href="/css/chunk-da7e1532.17a6e0e0.css" rel="prefetch"><link href="/css/chunk-ebdb96a0.d22f743d.css" rel="prefetch"><link href="/css/chunk-ef207110.a20941ed.css" rel="prefetch"><link href="/js/chunk-04e3a2fa.2e9d9876.js" rel="prefetch"><link href="/js/chunk-05d3c41a.1d8c01a8.js" rel="prefetch"><link href="/js/chunk-06828374.0a34c841.js" rel="prefetch"><link href="/js/chunk-07015098.cd94af61.js" rel="prefetch"><link href="/js/chunk-14e6a7cb.22c48f45.js" rel="prefetch"><link href="/js/chunk-16964057.53d9997e.js" rel="prefetch"><link href="/js/chunk-1abac668.d554bb92.js" rel="prefetch"><link href="/js/chunk-21d6a1b9.7239c69b.js" rel="prefetch"><link href="/js/chunk-27236dd2.6a20330a.js" rel="prefetch"><link href="/js/chunk-2a197f09.a639ef81.js" rel="prefetch"><link href="/js/chunk-34d93bb8.1720a2ff.js" rel="prefetch"><link href="/js/chunk-371ee143.14edd599.js" rel="prefetch"><link href="/js/chunk-3c703972.d65780ed.js" rel="prefetch"><link href="/js/chunk-3c7641ed.5518a539.js" rel="prefetch"><link href="/js/chunk-46e3b07d.9e8798de.js" rel="prefetch"><link href="/js/chunk-4cbe0c82.55bdb95d.js" rel="prefetch"><link href="/js/chunk-4e0b884c.eac26ffe.js" rel="prefetch"><link href="/js/chunk-520d8a08.76e69e99.js" rel="prefetch"><link href="/js/chunk-623eb100.0a0ebf4c.js" rel="prefetch"><link href="/js/chunk-650d0cb1.7932c010.js" rel="prefetch"><link href="/js/chunk-68091c98.6bc9c5f0.js" rel="prefetch"><link href="/js/chunk-737c53fe.358c23d9.js" rel="prefetch"><link href="/js/chunk-74d6e86d.b8bbfde0.js" rel="prefetch"><link href="/js/chunk-74d7e8d4.68462b66.js" rel="prefetch"><link href="/js/chunk-977f0f52.0d90c33e.js" rel="prefetch"><link href="/js/chunk-cc7ac8b2.e162bb81.js" rel="prefetch"><link href="/js/chunk-da7e1532.4b71bb2c.js" rel="prefetch"><link href="/js/chunk-ebdb96a0.cbefff6f.js" rel="prefetch"><link href="/js/chunk-ef207110.1f12e190.js" rel="prefetch"><link href="/css/app.feddf0de.css" rel="preload" as="style"><link href="/css/chunk-vendors.d0a33139.css" rel="preload" as="style"><link href="/js/app.386daa50.js" rel="preload" as="script"><link href="/js/chunk-vendors.5e652f88.js" rel="preload" as="script"><link href="/css/chunk-vendors.d0a33139.css" rel="stylesheet"><link href="/css/app.feddf0de.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but beelink doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><div id="make"></div><script>window.fbAsyncInit = function () {
}</style><link href="/css/chunk-04e3a2fa.08ef3a2d.css" rel="prefetch"><link href="/css/chunk-05d3c41a.55076a31.css" rel="prefetch"><link href="/css/chunk-06828374.8e285ce3.css" rel="prefetch"><link href="/css/chunk-07015098.03da786d.css" rel="prefetch"><link href="/css/chunk-14e6a7cb.9cba31b5.css" rel="prefetch"><link href="/css/chunk-16964057.37c6c246.css" rel="prefetch"><link href="/css/chunk-1abac668.206f270b.css" rel="prefetch"><link href="/css/chunk-21d6a1b9.85832ac1.css" rel="prefetch"><link href="/css/chunk-27236dd2.3992b5d2.css" rel="prefetch"><link href="/css/chunk-2a197f09.b2772b24.css" rel="prefetch"><link href="/css/chunk-34d93bb8.4cba2bdb.css" rel="prefetch"><link href="/css/chunk-371ee143.78141e1e.css" rel="prefetch"><link href="/css/chunk-3c703972.0e433876.css" rel="prefetch"><link href="/css/chunk-3c7641ed.f87c4e8b.css" rel="prefetch"><link href="/css/chunk-46e3b07d.9259aefd.css" rel="prefetch"><link href="/css/chunk-4cbe0c82.f0a6b24e.css" rel="prefetch"><link href="/css/chunk-4e0b884c.48d44d85.css" rel="prefetch"><link href="/css/chunk-520d8a08.dd761c06.css" rel="prefetch"><link href="/css/chunk-623eb100.c75b32b7.css" rel="prefetch"><link href="/css/chunk-650d0cb1.47d38586.css" rel="prefetch"><link href="/css/chunk-68091c98.14c0db2d.css" rel="prefetch"><link href="/css/chunk-737c53fe.6caedc04.css" rel="prefetch"><link href="/css/chunk-74d6e86d.85aed290.css" rel="prefetch"><link href="/css/chunk-74d7e8d4.4686069f.css" rel="prefetch"><link href="/css/chunk-977f0f52.6081abf8.css" rel="prefetch"><link href="/css/chunk-b6ad4206.0e433876.css" rel="prefetch"><link href="/css/chunk-cc7ac8b2.cf93d877.css" rel="prefetch"><link href="/css/chunk-da7e1532.17a6e0e0.css" rel="prefetch"><link href="/css/chunk-ebdb96a0.d22f743d.css" rel="prefetch"><link href="/css/chunk-ef207110.a20941ed.css" rel="prefetch"><link href="/js/chunk-04e3a2fa.2e9d9876.js" rel="prefetch"><link href="/js/chunk-05d3c41a.1d8c01a8.js" rel="prefetch"><link href="/js/chunk-06828374.0a34c841.js" rel="prefetch"><link href="/js/chunk-07015098.cd94af61.js" rel="prefetch"><link href="/js/chunk-14e6a7cb.22c48f45.js" rel="prefetch"><link href="/js/chunk-16964057.53d9997e.js" rel="prefetch"><link href="/js/chunk-1abac668.d554bb92.js" rel="prefetch"><link href="/js/chunk-21d6a1b9.7239c69b.js" rel="prefetch"><link href="/js/chunk-27236dd2.6a20330a.js" rel="prefetch"><link href="/js/chunk-2a197f09.a639ef81.js" rel="prefetch"><link href="/js/chunk-34d93bb8.1720a2ff.js" rel="prefetch"><link href="/js/chunk-371ee143.14edd599.js" rel="prefetch"><link href="/js/chunk-3c703972.d65780ed.js" rel="prefetch"><link href="/js/chunk-3c7641ed.5518a539.js" rel="prefetch"><link href="/js/chunk-46e3b07d.9e8798de.js" rel="prefetch"><link href="/js/chunk-4cbe0c82.55bdb95d.js" rel="prefetch"><link href="/js/chunk-4e0b884c.eac26ffe.js" rel="prefetch"><link href="/js/chunk-520d8a08.76e69e99.js" rel="prefetch"><link href="/js/chunk-623eb100.0a0ebf4c.js" rel="prefetch"><link href="/js/chunk-650d0cb1.7932c010.js" rel="prefetch"><link href="/js/chunk-68091c98.6bc9c5f0.js" rel="prefetch"><link href="/js/chunk-737c53fe.358c23d9.js" rel="prefetch"><link href="/js/chunk-74d6e86d.b8bbfde0.js" rel="prefetch"><link href="/js/chunk-74d7e8d4.68462b66.js" rel="prefetch"><link href="/js/chunk-977f0f52.0d90c33e.js" rel="prefetch"><link href="/js/chunk-b6ad4206.2dd14c9e.js" rel="prefetch"><link href="/js/chunk-cc7ac8b2.e162bb81.js" rel="prefetch"><link href="/js/chunk-da7e1532.4b71bb2c.js" rel="prefetch"><link href="/js/chunk-ebdb96a0.cbefff6f.js" rel="prefetch"><link href="/js/chunk-ef207110.1f12e190.js" rel="prefetch"><link href="/css/app.feddf0de.css" rel="preload" as="style"><link href="/css/chunk-vendors.d0a33139.css" rel="preload" as="style"><link href="/js/app.e02ec795.js" rel="preload" as="script"><link href="/js/chunk-vendors.5e652f88.js" rel="preload" as="script"><link href="/css/chunk-vendors.d0a33139.css" rel="stylesheet"><link href="/css/app.feddf0de.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but beelink doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><div id="make"></div><script>window.fbAsyncInit = function () {
FB.init({
appId: '277826133389999',
autoLogAppEvents: true,
xfbml: true,
version: 'v8.0'
});
};</script><script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js"></script><script src="/js/cropper.min.js"></script><script src="/js/chunk-vendors.5e652f88.js"></script><script src="/js/app.386daa50.js"></script></body></html>
};</script><script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js"></script><script src="/js/cropper.min.js"></script><script src="/js/chunk-vendors.5e652f88.js"></script><script src="/js/app.e02ec795.js"></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/js/app.e02ec795.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/js/app.e02ec795.js.map vendored Normal file

File diff suppressed because one or more lines are too long

2
dist/js/chunk-b6ad4206.2dd14c9e.js vendored Normal file
View File

@ -0,0 +1,2 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b6ad4206"],{"0f40":function(e,c,t){"use strict";t("f151")},c10c:function(e,c,t){"use strict";t.r(c);var n=t("7a23"),o=Object(n["withScopeId"])("data-v-1ba22e13"),a=o((function(e,c,t,o,a,i){return Object(n["openBlock"])(),Object(n["createBlock"])("div")})),i=t("bc3a"),d=t.n(i),u=t("6c02"),r=Object(n["defineComponent"])({setup:function(){var e=Object(u["d"])().params.code;d.a.get("https://api.weibo.com/oauth2/access_token?client_id=2754574056&client_secret=2f16267634db2de14cda7891c49aa54a&grant_type=authorization_code&redirect_uri=https://beelink.theluyuan.com/wblogin&code=".concat(e)).then((function(e){console.log(e)}))}});t("0f40");r.render=a,r.__scopeId="data-v-1ba22e13";c["default"]=r},f151:function(e,c,t){}}]);
//# sourceMappingURL=chunk-b6ad4206.2dd14c9e.js.map

View File

@ -0,0 +1 @@
{"version":3,"sources":["webpack:///./src/views/login/wblogin.vue?f05c","webpack:///./src/views/login/wblogin.vue","webpack:///./src/views/login/wblogin.vue?0d29","webpack:///./src/views/login/wblogin.vue?668d"],"names":["setup","code","params","a","get","then","res","console","log","render","__scopeId"],"mappings":"kHAAA,W,kKCCI,yBAAW,U,iCCKA,+BAAiB,CAC5BA,MAD4B,WAEzB,IAAMC,EAAQ,iBAAWC,OAAOD,KAChC,EAAAE,EAAMC,IAAN,8MAAiNH,IAAQI,MAAK,SAACC,GAC3NC,QAAQC,IAAIF,S,UCLvB,EAAOG,OAAS,EAChB,EAAOC,UAAY,kBAEJ,gB","file":"js/chunk-b6ad4206.2dd14c9e.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./wblogin.vue?vue&type=style&index=0&id=1ba22e13&lang=scss&scoped=true\"","<template>\r\n <div></div>\r\n</template>\r\n<style lang=\"scss\" scoped>\r\n\r\n</style>\r\n<script lang=\"ts\">\r\nimport axios from \"axios\";\r\nimport { defineComponent } from \"vue\";\r\nimport { useRoute } from \"vue-router\";\r\n\r\n\r\nexport default defineComponent(({\r\n setup(){\r\n const code = useRoute().params.code;\r\n axios.get(`https://api.weibo.com/oauth2/access_token?client_id=2754574056&client_secret=2f16267634db2de14cda7891c49aa54a&grant_type=authorization_code&redirect_uri=https://beelink.theluyuan.com/wblogin&code=${code}`).then((res)=>{\r\n console.log(res)\r\n })\r\n }\r\n}))\r\n</script>","\r\nimport axios from \"axios\";\r\nimport { defineComponent } from \"vue\";\r\nimport { useRoute } from \"vue-router\";\r\n\r\n\r\nexport default defineComponent(({\r\n setup(){\r\n const code = useRoute().params.code;\r\n axios.get(`https://api.weibo.com/oauth2/access_token?client_id=2754574056&client_secret=2f16267634db2de14cda7891c49aa54a&grant_type=authorization_code&redirect_uri=https://beelink.theluyuan.com/wblogin&code=${code}`).then((res)=>{\r\n console.log(res)\r\n })\r\n }\r\n}))\r\n","import { render } from \"./wblogin.vue?vue&type=template&id=1ba22e13&scoped=true&bindings={}\"\nimport script from \"./wblogin.vue?vue&type=script&lang=ts\"\nexport * from \"./wblogin.vue?vue&type=script&lang=ts\"\n\nimport \"./wblogin.vue?vue&type=style&index=0&id=1ba22e13&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-1ba22e13\"\n\nexport default script"],"sourceRoot":""}

View File

@ -144,7 +144,12 @@ const routes: Array<RouteRecordRaw> = [
path: '/about',
name: 'About',
component: () => import('../views/login/About.vue')
}
},{
path: '/wblogin',
name: 'About',
component: () => import('../views/login/wblogin.vue')
},
]
const router = createRouter({

View File

@ -0,0 +1,21 @@
<template>
<div></div>
</template>
<style lang="scss" scoped>
</style>
<script lang="ts">
import axios from "axios";
import { defineComponent } from "vue";
import { useRoute } from "vue-router";
export default defineComponent(({
setup(){
const code = useRoute().params.code;
axios.get(`https://api.weibo.com/oauth2/access_token?client_id=2754574056&client_secret=2f16267634db2de14cda7891c49aa54a&grant_type=authorization_code&redirect_uri=https://beelink.theluyuan.com/wblogin&code=${code}`).then((res)=>{
console.log(res)
})
}
}))
</script>