This commit is contained in:
2023-02-03 11:35:07 +01:00
parent 5aa076e769
commit 9c17e1508d
40 changed files with 3539 additions and 5 deletions

2
TD2/www/_nuxt/001c78c.js Normal file

File diff suppressed because one or more lines are too long

1
TD2/www/_nuxt/654ffe2.js Normal file

File diff suppressed because one or more lines are too long

54
TD2/www/_nuxt/LICENSES Normal file
View File

@ -0,0 +1,54 @@
/*!
* Pusher JavaScript Library v5.1.1
* https://pusher.com/
*
* Copyright 2017, Pusher
* Released under the MIT licence.
*/
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @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.
*/
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
/*!
* vue-router v3.5.3
* (c) 2021 Evan You
* @license MIT
*/
/*!
* Vue.js v2.6.14
* (c) 2014-2021 Evan You
* Released under the MIT License.
*/
/*!
* cookie
* Copyright(c) 2012-2014 Roman Shtylman
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* vuex v3.6.2
* (c) 2021 Evan You
* @license MIT
*/

1
TD2/www/_nuxt/ab05ce0.js Normal file
View File

@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{212:function(e,t,n){var content=n(214);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(75).default)("6759f5ab",content,!0,{sourceMap:!1})},213:function(e,t,n){"use strict";n(212)},214:function(e,t,n){var o=n(74)(!1);o.push([e.i,".titre-general{width:50%;margin:0 auto 50px;padding-bottom:20px;border:1px solid #000;border-top:none;font-size:40px;text-align:center}.pending{color:#ff4500}.disconnected{color:red}.connected{color:green}",""]),e.exports=o},215:function(e,t,n){"use strict";n.r(t);var o=n(4),c=(n(43),{data:function(){return{status:"pending",email:"user1@unice.fr",echo:null,messages:[],message_to_send:null}},watch:{},mounted:function(){var e=this;this.echo=window.Echo,this.echo.connector.pusher.connection.bind("connected",(function(){e.status="connected"})),this.echo.connector.pusher.connection.bind("disconnected",(function(){e.status="disconnected"})),this.getMessages(),this.echo.channel("LP-IOTIA").listen(".App\\Events\\PublicMessage",(function(data){e.messages.push(data.message.message),console.log(data)}))},methods:{getMessages:function(){var e=this;this.$axios.get("messages").catch((function(e){console.log(e)})).then((function(t){e.messages=t.data.messages}))},sendMessage:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$axios.post("messages",{content:e.message_to_send}).catch((function(e){console.log(e)})).then((function(e){e&&e.data&&alert("Message envoyé")}));case 1:case"end":return t.stop()}}),t)})))()},login:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$auth.loginWith("local",{data:{email:e.email,password:"demo"}}).catch((function(e){alert(e.response.data.message)})).then((function(){e.$auth.user&&alert("Connecté : "+e.$auth.user.email)}));case 2:case"end":return t.stop()}}),t)})))()}}}),r=(n(213),n(39)),component=Object(r.a)(c,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h1",{staticClass:"titre-general"},[e._v("Statut du serveur Websocket")]),e._v(" "),n("div",{staticStyle:{"text-align":"center"}},[n("h2",[e._v("Statut : "),n("span",{class:e.echo?e.echo.connector.pusher.connection.state:e.status,staticStyle:{"font-weight":"bold"}},[e._v(e._s(e.echo?e.echo.connector.pusher.connection.state:e.status))])])]),e._v(" "),e.$auth.user?n("div",[n("p",[e._v("Connecté en tant que "+e._s(e.$auth.user.email))]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.message_to_send,expression:"message_to_send"}],attrs:{type:"text"},domProps:{value:e.message_to_send},on:{input:function(t){t.target.composing||(e.message_to_send=t.target.value)}}}),e._v(" "),n("button",{on:{click:e.sendMessage}},[e._v("Envoyer")])]):n("div",{staticStyle:{"margin-top":"10px","text-align":"center"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.email,expression:"email"}],attrs:{type:"text"},domProps:{value:e.email},on:{input:function(t){t.target.composing||(e.email=t.target.value)}}}),e._v(" "),n("button",{on:{click:e.login}},[e._v("Se connecter")])]),e._v(" "),n("div",e._l(e.messages,(function(t){return n("p",[n("strong",[e._v("["+e._s(t.sender.name)+"]")]),e._v(" "+e._s(t.content))])})),0)])}),[],!1,null,null,null);t.default=component.exports}}]);

1
TD2/www/_nuxt/b50a4cf.js Normal file
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={3: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:"ab05ce0"}[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()}([]);

2
TD2/www/_nuxt/b69b31e.js Normal file

File diff suppressed because one or more lines are too long