From af18a102b2caa07ddd1d13d25f1420e0c82e9c0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Tue, 26 Jan 2021 17:46:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E4=B8=8D=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/admin.js | 1 - public/static/plugs/michat/chart.js | 116 --- public/static/plugs/michat/image/bg.jpg | Bin 18610 -> 0 bytes public/static/plugs/michat/michat.css | 271 ------- public/static/plugs/michat/michat.css.map | 1 - public/static/plugs/michat/michat.js | 82 --- public/static/plugs/michat/michat.less | 321 --------- public/static/plugs/michat/mimc-min_1_0_2.js | 717 ------------------- public/static/plugs/michat/template.html | 29 - 9 files changed, 1538 deletions(-) delete mode 100644 public/static/plugs/michat/chart.js delete mode 100644 public/static/plugs/michat/image/bg.jpg delete mode 100644 public/static/plugs/michat/michat.css delete mode 100644 public/static/plugs/michat/michat.css.map delete mode 100644 public/static/plugs/michat/michat.js delete mode 100644 public/static/plugs/michat/michat.less delete mode 100644 public/static/plugs/michat/mimc-min_1_0_2.js delete mode 100644 public/static/plugs/michat/template.html diff --git a/public/static/admin.js b/public/static/admin.js index 4108f8f6f..166251268 100644 --- a/public/static/admin.js +++ b/public/static/admin.js @@ -59,7 +59,6 @@ require.config({ map: {'*': {css: baseRoot + 'plugs/require/css.js'}}, paths: { 'md5': ['plugs/jquery/md5.min'], - 'chat': ['plugs/michat/michat'], 'json': ['plugs/jquery/json.min'], 'xlsx': ['plugs/jquery/xlsx.min'], 'excel': ['plugs/jquery/excel.xlsx'], diff --git a/public/static/plugs/michat/chart.js b/public/static/plugs/michat/chart.js deleted file mode 100644 index 369d8e4c5..000000000 --- a/public/static/plugs/michat/chart.js +++ /dev/null @@ -1,116 +0,0 @@ -(new function () { - this.app = angular.module("michat", []).run(callback); - angular.bootstrap(document.getElementById(this.app.name), [this.app.name]); - - function callback($rootScope) { - $rootScope.text = ''; - $rootScope.user = {}; - $rootScope.list = []; - - // 数字位数处理 - function toNum(value, fixed) { - while (("" + value).length < fixed) value = '0' + value; - return value; - } - - // 显示时间内容 - $rootScope.showDatetime = function (date) { - var md, td, tm, my = new Date(); - md = my.getFullYear() + '-' + toNum(my.getMonth() + 1, 2) + '-' + toNum(my.getDate(), 2); - td = date.getFullYear() + '-' + toNum(date.getMonth() + 1, 2) + '-' + toNum(date.getDate(), 2); - tm = toNum(date.getHours(), 2) + ':' + toNum(date.getMinutes(), 2) + ':' + toNum(date.getSeconds(), 2); - return md === td ? tm : (td + tm); - }; - for (let i = 10; i <= 99; i++) $rootScope.list.push({ - active: false, - headimg: 'https://demo.thinkadmin.top/upload/decb0fe26fa3f486/b3f6521bf29403c8.png', - username: 'nickname_a_' + i, - nickname: 'NickName_A_B_C' + i, - message: [ - { - type: 'text', - float: 'left', - nickname: 'Nickname_A_' + i, - headimg: 'https://demo.thinkadmin.top/upload/decb0fe26fa3f486/b3f6521bf29403c8.png', - content: '消息内容_1_' + i, - datetime: new Date() - }, - { - type: 'text', - float: 'right', - username: 'think_admin', - nickname: 'ThinkAdmin', - headimg: 'https://demo.thinkadmin.top/upload/decb0fe26fa3f486/b3f6521bf29403c8.png', - content: '消息内容_2_' + i, - datetime: new Date() - }, - { - type: 'text', - float: 'right', - username: 'think_admin', - nickname: 'ThinkAdmin', - headimg: 'https://demo.thinkadmin.top/upload/decb0fe26fa3f486/b3f6521bf29403c8.png', - content: '消息内容_2_' + i, - datetime: new Date() - }, - { - type: 'text', - float: 'left', - username: 'nickname_a_' + i, - nickname: 'Nickname_A_' + i, - headimg: 'https://demo.thinkadmin.top/upload/decb0fe26fa3f486/b3f6521bf29403c8.png', - content: '消息内容_2_' + i, - datetime: new Date() - } - ] - }); - // 移除当前用户 - $rootScope.removeUser = function (user, temp) { - temp = []; - for (let i in $rootScope.list) { - if ($rootScope.list[i].username !== user.username) { - temp.push($rootScope.list[i]); - } - } - $rootScope.list = temp; - }; - // 聊天内容底部 - $rootScope.scrollBottom = function () { - setTimeout(function (div) { - div = document.querySelector('.michat-right-list'); - div.scrollTop = div.scrollHeight; - }, 10); - }; - // 切换当前用户 - $rootScope.switchUser = function (user) { - for (let i in $rootScope.list) { - if ($rootScope.list[i].username === user.username) { - $rootScope.list[i].active = true; - $rootScope.user = user; - } else { - $rootScope.list[i].active = false; - } - } - this.scrollBottom(); - }; - // 回复消息内容 - $rootScope.replyUser = function () { - if ($rootScope.text.length < 1) { - alert('请输入内容'); - } - $rootScope.user.message.push({ - type: 'text', - float: 'right', - username: 'NICKNAME_A', - headimg: 'https://demo.thinkadmin.top/upload/decb0fe26fa3f486/b3f6521bf29403c8.png', - content: $rootScope.text, - datetime: new Date() - }); - $rootScope.text = ''; - $rootScope.scrollBottom(); - }; - // 默认选择会话 - $rootScope.switchUser($rootScope.list[2]); - } -}); - diff --git a/public/static/plugs/michat/image/bg.jpg b/public/static/plugs/michat/image/bg.jpg deleted file mode 100644 index 53ba9216283a962b6d325965a4a11c7504056e54..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 18610 zcmeIZcUY6@wkVEWu>u0pN0DAak={n7NK2$f2n3}XAVhkH85NN}3L$hxAoLeXx4uCZLd&T{A0jazqk*;!cFdGB)lk?#J$#e15#e)vI1 zL{voR2N{_M4`gJ1{KxbMkTWc|Zn3hlaEf9Se}l_% z?iA|zhxbg_UdVag{`nN{hfkIEUR7V_s3((5*Up^|VL8Xbq{X!I+rQ!Ze|7FmIdP=` z!3yzO-#vb7)GlRhJ=-ZCKbf2xJ=1I4Oee-R9{34{0QM9#b2sZ;mZ%Kh;FcoK1N3$8|?-AtGEI1{!8-RvGQ>^TF>P{Wq}dY=t>_>o$7Q&_!fY^JR1Y=9HScyL;=xG+Q zuA>#}OIaNq+-T)VNm-S@^{tAm@<{G=EEcFJH0C|)f-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6 zqr|e?O5GV7n>A&yv_6aANS9}edcTgCD{AGq-U)3DuNGQ5Mh2DhG=I+q+NNEVeC1SY zk`JOv=xgl>X@8da#?EK~N-L^mJzi;f&%n~Jn&PbbRYKN1)}lkMIf z+yHI71Vr24ladvXp1#3Hx4j_tINHsJ*Z+OgyjRlgKLz#A-n^Ub2Bs}&;oR#@r@m2d zHC?CW086x+`w7$iD=`0|fy*AbD~b&+b|CeBC;zG z=`no5XRBaQxTIw;%g*Y;36rKgM&7OnqVwwAG<`>CAfs1k|ITS-iwHqcyUjT9GTj2M zSXyV*5KZ_(5AR_{|Gx5UzX=H%xLKsNCs}->zPPhc-91pnS);BnDC~Fe+@TgSUCgdn z#RHG@+G0f>b7aRwfg&tI9HtBK{=0&rhD?`IAL_$}8qU8e>lrT2sDJ3ceZusc57;i& zE~!aJRKzIjP)+NzgS(6D`u+cEsQszC@vNdFPmbwRvnq)I5quHb$aW{AeNa%ne(fsF zt&ggT6{-DY_n3Lah4^ipx{X;>CPn!gR{E!G|D%8}GUXLpNCh#3P7U+s(2*TC;vRpZ zW^2A2EOCq~N)>Xy+Z@kI_)f%{{;-XyVyuD^*9`2FvoZ!f3JXv}?E9)dAD1WPX8T4* zs7qA)qXte}zxhqg&l&zNhZjK{DGU@3a?S)vW0)`QuX9QHV3Ah3SSkZ$0ee#BS!8p<^s2zx!};K_wxq&?^@Qn*adr0Tt)rm=mP1PR zaiOnlj@ubC{OMi00jNS*rXgs3h%%`&!5!ys&?r^3iTM`XakMLVG5VA4&V4(*L_05I70'); - that.body.on('click', '.michat-message-icon', function () { - layui.$.get(baseRoot + 'plugs/michat/template.html', function (template) { - layui.layer.open({ - type: 1, title: false, skin: 'michat', area: ['800px', '520px'], - closeBtn: true, shadeClose: false, content: template, success: function () { - layui.$.getScript(baseRoot + 'plugs/michat/chart.js') - } - }); - }); - }); - }; - this.showMessageIcon(); - // 给指定账号发送消息 - this.send = function (account, payload) { - this.user.sendMessage(account, payload, false); - }; - // SDK登录初始化 - this.login = function () { - this.user = new MIMCUser(this.appid, this.account); - this.user.registerP2PMsgHandler(function (message) { - console.log("time: " + new Date(parseInt(message.getTimeStamp()))); - console.log('load:' + message.getPayload()); - that.list.push({ - type: message.getBizType || 'TEXT', - text: message.getPayload(), - date: new Date(parseInt(message.getTimeStamp())) - }); - $('.michat-message-number').html(that.list.length); - }); - this.user.registerGroupMsgHandler(function (message) { - console.log(message); - }); - this.user.registerFetchToken(function () { - return that.httpRequest('https://mimc.chat.xiaomi.net/api/account/token', { - appId: that.appid, appKey: that.appkey, appSecret: that.secret, appAccount: that.account - }); - }); - this.user.registerStatusChange(function (bindResult, errType, errReason, errDesc) { - if (bindResult) { - console.log("login succeed"); - } else { - console.log("login failed.errReason=" + errReason + ",errDesc=" + errDesc + ",errType=" + errType); - } - }); - this.user.registerServerAckHandler(function (packetId, sequence, timeStamp, errMsg) { - console.log(packetId, sequence, timeStamp, errMsg); - }); - this.user.registerDisconnHandler(function () { - console.log('disconnect'); - }); - this.user.registerUCDismissHandler(function (topicId) { - console.log("uc dismiss:" + topicId); - }); - this.user.registerUCJoinRespHandler(function (topicId, code, msg, context) { - console.log("uc join:" + topicId + ",code=" + code + ",msg=" + msg + ",context=" + context); - }); - this.user.registerUCMsgHandler(function (groupMsg) { - console.log(groupMsg) - }); - this.user.registerUCQuitRespHandler(function (topicId, code, msg, context) { - console.log("uc quit:" + topicId + ",code=" + code + ",msg=" + msg + ",context=" + context); - }); - this.user.login(); - } - }; -}); diff --git a/public/static/plugs/michat/michat.less b/public/static/plugs/michat/michat.less deleted file mode 100644 index 68c09edeb..000000000 --- a/public/static/plugs/michat/michat.less +++ /dev/null @@ -1,321 +0,0 @@ -::-webkit-scrollbar { - width: 3px; - height: 3px; - - &-track { - border-radius: 2px; - background: #ccc !important; - } - - &-thumb { - border-radius: 5%; - background-color: #666 !important; - } -} - -.michat-message-icon { - width: 60px; - height: 60px; - right: 50px; - bottom: 50px; - padding: 0; - z-index: 998; - position: fixed; - line-height: 60px; - border-radius: 50%; - - .layui-icon { - color: #fff; - margin: 0; - font-size: 28px; - } - - .michat-message-number { - width: 25px; - height: 25px; - font-size: 12px; - background: red; - font-weight: 400; - line-height: 25px; - border-radius: 50%; - position: absolute; - margin: -3px 5px 0 0; - } -} - -.michat { - color: #333; - border: 1px solid rgba(0, 0, 0, 0.05); - font-family: \5FAE\8F6F\96C5\9ED1, serif; - background: #fff url(image/bg.jpg) no-repeat center center; - background-size: cover; - - .layui-layer-title { - background-color: rgba(245, 245, 245, 0.8) - } - - .layui-layer-content { - height: auto !important; - overflow: visible; - } -} - -.michat-left { - &:hover { - overflow-y: auto - } - - top: 0; - left: 0; - bottom: 0; - width: 220px; - z-index: 1000; - overflow: hidden; - position: absolute; - background-color: rgba(220, 220, 220, 0.9); - - li { - &:hover { - background-color: #E2E2E2; - - .layui-icon { - display: inline-block - } - } - - &.michat-this { - background-color: #F3F3F3 - } - - .layui-icon { - top: 7px; - right: 5px; - color: #555; - display: none; - font-size: 22px; - position: absolute; - - &:hover { - color: #c00 - } - } - - margin: 5px; - cursor: pointer; - position: relative; - line-height: 40px; - white-space: nowrap; - border-radius: 3px; - padding: 5px 30px 5px 5px; - - img { - width: 40px; - height: 40px; - border-radius: 10% - } - - span { - width: 130px; - font-size: 14px; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } - - * { - font-size: 14px; - vertical-align: top; - display: inline-block; - *display: inline; - *zoom: 1; - } - } -} - -.michat-right { - position: relative; - margin-left: 220px; - background-color: rgba(255, 255, 255, .9); - - &-header { - height: 80px; - cursor: default; - overflow: hidden; - position: relative; - - img { - top: 15px; - left: 20px; - width: 50px; - height: 50px; - position: absolute; - border-radius: 100% - } - - &-username { - top: 20px; - left: 60px; - font-size: 16px; - position: relative; - } - } - - &-list { - height: 300px; - padding: 15px 15px 5px; - overflow-x: hidden; - overflow-y: auto; - border-bottom: 1px solid #ccc; - - li { - position: relative; - font-size: 0; - min-height: 68px; - padding-left: 60px; - margin-bottom: 10px; - } - - &-item-user { - left: 3px; - position: absolute; - - img { - width: 40px; - height: 40px; - border-radius: 100% - } - } - - &-item-text { - &:hover { - opacity: .9 - } - - &:after { - top: 8px; - left: -16px; - width: 0; - height: 0; - content: ''; - overflow: hidden; - position: absolute; - border-width: 10px; - border-style: solid dashed dashed; - border-color: transparent #e2e2e2 transparent transparent; - } - - display: inline-block; - *display: inline; - *zoom: 1; - color: #333; - padding: 8px 15px; - position: relative; - font-size: 14px; - line-height: 22px; - border-radius: 3px; - vertical-align: top; - word-break: break-all; - background-color: #e2e2e2; - - a { - color: #33DF83 - } - - img { - max-width: 100%; - vertical-align: middle - } - } - - &-right { - text-align: right; - padding-left: 0; - padding-right: 60px; - - .michat-right-list-item { - &-user { - left: auto; - right: 3px; - } - - &-text { - &:after { - left: auto; - right: -16px; - border-color: transparent transparent transparent #5FB878; - } - - color: #fff; - text-align: left; - margin-left: 0; - background-color: #5FB878; - - a { - color: #fff - } - } - } - } - } - - - &-footer { - &-textarea { - display: block; - margin-left: 10px; - - textarea { - - &:focus { - outline: 0 - } - - &::-webkit-input-placeholder { - color: #ccc; - } - - width: 100%; - height: 110px; - border: none; - resize: none; - display: block; - padding: 8px 0 0; - overflow: auto; - background: 0 0; - line-height: 22px; - } - } - - &-bottom { - right: 10px; - height: 32px; - bottom: 10px; - cursor: pointer; - font-size: 0; - position: absolute; - line-height: 32px; - - span { - &:hover { - background-color: #69BC80 - } - - &:active { - background-color: #59B573 - } - - display: inline-block; - *display: inline; - *zoom: 1; - color: #fff; - padding: 0 20px; - font-size: 14px; - margin-left: 5px; - line-height: 32px; - border-radius: 3px; - vertical-align: top; - background-color: #5FB878; - } - } - } -} diff --git a/public/static/plugs/michat/mimc-min_1_0_2.js b/public/static/plugs/michat/mimc-min_1_0_2.js deleted file mode 100644 index 8cb631ebf..000000000 --- a/public/static/plugs/michat/mimc-min_1_0_2.js +++ /dev/null @@ -1,717 +0,0 @@ -var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;ea||1342177279>>=1)b+=b;return d}},"es6","es3");$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).v}},"es6","es3");$jscomp.SYMBOL_PREFIX="jscomp_symbol_"; -$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var a=0;return function(b){return $jscomp.SYMBOL_PREFIX+(b||"")+a++}}(); -$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var b=0;return $jscomp.iteratorPrototype(function(){return b>>0);goog.uidCounter_=0;goog.getHashCode=goog.getUid; -goog.removeHashCode=goog.removeUid;goog.cloneObject=function(a){var b=goog.typeOf(a);if("object"==b||"array"==b){if(a.clone)return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=goog.cloneObject(a[c]);return b}return a};goog.bindNative_=function(a,b,c){return a.call.apply(a.bind,arguments)}; -goog.bindJs_=function(a,b,c){if(!a)throw Error();if(2Number(a[1])?!1:b('(()=>{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')}); -a("es6-impl",function(){return!0});a("es7",function(){return b("2 ** 2 == 4")});a("es8",function(){return b("async () => 1, true")});return c},goog.Transpiler.prototype.needsTranspile=function(a){if("always"==goog.TRANSPILE)return!0;if("never"==goog.TRANSPILE)return!1;this.requiresTranspilation_||(this.requiresTranspilation_=this.createRequiresTranspilation_());if(a in this.requiresTranspilation_)return this.requiresTranspilation_[a];throw Error("Unknown language mode: "+a);},goog.Transpiler.prototype.transpile= -function(a,b){return goog.transpile_(a,b)},goog.transpiler_=new goog.Transpiler,goog.DebugLoader=function(){this.dependencies_={loadFlags:{},nameToPath:{},requires:{},visited:{},written:{},deferred:{}};this.oldIeWaiting_=!1;this.queuedModules_=[];this.lastNonModuleScriptIndex_=0},goog.DebugLoader.IS_OLD_IE_=!(goog.global.atob||!window.document||!window.document.all),goog.DebugLoader.prototype.earlyProcessLoad=function(a){goog.DebugLoader.IS_OLD_IE_&&this.maybeProcessDeferredDep_(a)},goog.DebugLoader.prototype.load= -function(a){var b=this.getPathFromDeps_(a);if(b){var c=function(a){if(!(a in f.written||a in f.visited)){f.visited[a]=!0;if(a in f.requires)for(var b in f.requires[a])if(!g.isProvided(b))if(b in f.nameToPath)c(f.nameToPath[b]);else throw Error("Undefined nameToPath for "+b);a in e||(e[a]=!0,d.push(a))}},d=[],e={},f=this.dependencies_,g=this;c(b);for(a=0;a\x3c/script>')},goog.DebugLoader.prototype.appendScriptSrcNode_=function(a){var b=window.document,c=b.createElement("script");c.type="text/javascript";c.src=a;c.defer=!1;c.async=!1;b.head.appendChild(c)},goog.DebugLoader.prototype.writeScriptTag_= -function(a,b){if(this.inHtmlDocument()){var c=window.document;if(!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING&&"complete"==c.readyState){if(/\bdeps.js$/.test(a))return!1;throw Error('Cannot write "'+a+'" after document load');}void 0===b?goog.DebugLoader.IS_OLD_IE_?(this.oldIeWaiting_=!0,b=" onreadystatechange='goog.debugLoader_.onScriptLoad_(this, "+ ++this.lastNonModuleScriptIndex_+")' ",c.write('