lsc 1 year ago
parent
commit
ef0f49b767

+ 1 - 1
dist/index.html

@@ -1 +1 @@
-<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=favicon.ico><title>cocorobo</title></head><body><noscript><strong>We're sorry but cocorobo doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=static/js/chunk-vendors.0b34b779.js></script><script src=static/js/app.1ff3028e.js></script></body></html><script>document.domain = "cocorobo.hk"</script>
+<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=favicon.ico><title>cocorobo</title></head><body><noscript><strong>We're sorry but cocorobo doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=static/js/chunk-vendors.0b34b779.js></script><script src=static/js/app.97d0ca9e.js></script></body></html><script>document.domain = "cocorobo.hk"</script>

File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.1ff3028e.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.97d0ca9e.js


+ 1 - 1
dist/static/js/chunk-99e0488e.e2ef5f59.js → dist/static/js/chunk-3cba2aa3.bbb6bd37.js

@@ -1 +1 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-99e0488e"],{"18f3":function(e,t,r){var n=r("ce2c");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=r("499e").default;i("0d575ed8",n,!0,{sourceMap:!1,shadowMode:!1})},"4abd":function(e,t,r){"use strict";var n=r("18f3"),i=r.n(n);i.a},"9ed6":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},i=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"loginBox"},[r("iframe",{attrs:{src:"//edu.cocorobo.hk/LoginIframe?type=2",frameborder:"0"}})])}],o=(r("96cf"),r("1da1")),a=r("5530"),c=r("2f62"),s={data:function(){return{redirect:void 0,timer:null}},watch:{$route:{handler:function(e){this.redirect=e.query&&e.query.redirect},immediate:!0}},methods:Object(a["a"])(Object(a["a"])({},Object(c["b"])({login:"user/login"})),{},{handleLogin:function(){this.$router.push({path:this.redirect||"/"})},getLogin:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.login();case 2:r=t.sent,r&&e.$router.push({path:e.redirect||"/"});case 4:case"end":return t.stop()}}),t)})))()}}),beforeDestroy:function(){clearInterval(this.timer),this.timer=null},mounted:function(){var e=this;this.getLogin(),this.timer=setInterval((function(){e.getLogin()}),2e3)}},u=s,d=(r("4abd"),r("2877")),f=Object(d["a"])(u,n,i,!1,null,"5497deef",null);t["default"]=f.exports},ce2c:function(e,t,r){var n=r("24fb");t=n(!1),t.push([e.i,".loginBox[data-v-5497deef]{position:relative;width:100vw;height:100vh;overflow:hidden}.loginBox>iframe[data-v-5497deef]{width:100%;height:100%;border:0}",""]),e.exports=t}}]);
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3cba2aa3"],{"18f3":function(e,t,r){var n=r("ce2c");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=r("499e").default;i("0d575ed8",n,!0,{sourceMap:!1,shadowMode:!1})},"4abd":function(e,t,r){"use strict";var n=r("18f3"),i=r.n(n);i.a},"9ed6":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},i=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"loginBox"},[r("iframe",{attrs:{src:"//edu.cocorobo.hk/LoginIframe?type=2",frameborder:"0"}})])}],o=(r("96cf"),r("1da1")),a=r("5530"),c=r("2f62"),s={data:function(){return{redirect:void 0,timer:null}},watch:{$route:{handler:function(e){this.redirect=e.query&&e.query.redirect},immediate:!0}},methods:Object(a["a"])(Object(a["a"])({},Object(c["b"])({login:"user/login"})),{},{handleLogin:function(){this.$router.push({path:this.redirect||"/"})},getLogin:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.login();case 2:r=t.sent,r&&e.$router.push({path:e.redirect||"/"});case 4:case"end":return t.stop()}}),t)})))()}}),beforeDestroy:function(){clearInterval(this.timer),this.timer=null},mounted:function(){var e=this;this.getLogin(),this.timer=setInterval((function(){e.getLogin()}),2e3)}},u=s,d=(r("4abd"),r("2877")),f=Object(d["a"])(u,n,i,!1,null,"5497deef",null);t["default"]=f.exports},ce2c:function(e,t,r){var n=r("24fb");t=n(!1),t.push([e.i,".loginBox[data-v-5497deef]{position:relative;width:100vw;height:100vh;overflow:hidden}.loginBox>iframe[data-v-5497deef]{width:100%;height:100%;border:0}",""]),e.exports=t}}]);

+ 1 - 0
dist/static/js/chunk-604638be.d8e727cb.js

@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-604638be"],{"434d":function(e,t,r){var a=r("24fb");t=a(!1),t.push([e.i,".loginBox[data-v-b9da6d8a]{position:relative;width:100vw;height:100vh;overflow:hidden}.loginBox>iframe[data-v-b9da6d8a]{width:100%;height:100%;border:0}",""]),e.exports=t},"89ef":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},i=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"loginBox"},[r("iframe",{attrs:{allow:"camera *; microphone *;display-capture;midi;encrypted-media;",src:"https://cloud.cocorobo.hk/aigpt/",frameborder:"0"}})])}],o={data:function(){return{redirect:void 0,timer:null}},watch:{$route:{handler:function(e){this.redirect=e.query&&e.query.redirect},immediate:!0}},methods:{},beforeDestroy:function(){clearInterval(this.timer),this.timer=null},mounted:function(){}},n=o,c=(r("bac4"),r("2877")),d=Object(c["a"])(n,a,i,!1,null,"b9da6d8a",null);t["default"]=d.exports},9540:function(e,t,r){var a=r("434d");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=r("499e").default;i("6e1575e6",a,!0,{sourceMap:!1,shadowMode:!1})},bac4:function(e,t,r){"use strict";var a=r("9540"),i=r.n(a);i.a}}]);

+ 8 - 0
src/router/router.config.js

@@ -43,5 +43,13 @@ export const constantRouterMap = [
       title: '课程详情',
       keepAlive: false
     }
+  },
+  {
+    path: '/aigpt',
+    component: () => import('@/views/aigpt/index'),
+    meta: {
+      title: 'aigpt',
+      keepAlive: false
+    }
   }
 ]

+ 70 - 0
src/views/aigpt/index.vue

@@ -0,0 +1,70 @@
+<template>
+  <div class="loginBox">
+    <iframe
+      allow="camera *; microphone *;display-capture;midi;encrypted-media;"
+      src="https://cloud.cocorobo.hk/aigpt/"
+      frameborder="0"
+    ></iframe>
+    <!-- <button @click="handleLogin">登录</button> -->
+  </div>
+</template>
+
+<script>
+// import { mapActions } from 'vuex'
+export default {
+  data() {
+    return {
+      redirect: undefined,
+      timer: null
+    }
+  },
+  watch: {
+    $route: {
+      handler: function(route) {
+        this.redirect = route.query && route.query.redirect
+      },
+      immediate: true
+    }
+  },
+  methods: {
+    // ...mapActions({
+    //   login: 'user/login'
+    // }),
+    // handleLogin() {
+    //   this.$router.push({ path: this.redirect || '/' })
+    // },
+    // async getLogin() {
+    //   const userid = await this.login()
+    //   if (userid) {
+    //     this.$router.push({ path: this.redirect || '/' })
+    //   }
+    //   // eduGet().then(res => {})
+    // }
+  },
+  beforeDestroy() {
+    clearInterval(this.timer)
+    this.timer = null
+  },
+  mounted() {
+    // this.getLogin()
+    // this.timer = setInterval(() => {
+    //   this.getLogin()
+    // }, 2000)
+  }
+}
+</script>
+
+<style lang="scss" scoped>
+.loginBox {
+  position: relative;
+  width: 100vw;
+  height: 100vh;
+  overflow: hidden;
+
+  > iframe {
+    width: 100%;
+    height: 100%;
+    border: 0;
+  }
+}
+</style>

Some files were not shown because too many files changed in this diff