Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wq-clock-ly

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wq-clock-ly - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

2

package.json
{
"name": "wq-clock-ly",
"version": "2.0.0",
"version": "3.0.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "wq-clock-ly.common.js",

@@ -296,7 +296,199 @@ /******/ (function() { // webpackBootstrap

/* harmony default export */ var wqClock = (wqClock_component.exports);
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/ReplyTextarea/index.vue?vue&type=template&id=569901b1&scoped=true
var ReplyTextareavue_type_template_id_569901b1_scoped_true_render = function render() {
var _vm = this,
_c = _vm._self._c;
return _c('div', {
staticClass: "reply-box"
}, [!_vm.isLogin ? _c('div', {
staticClass: "login-guide"
}, [_vm._m(0)]) : [!_vm.isApp ? [_vm.showAvatar ? _c('div', {
staticClass: "reply-avatar"
}) : _vm._e(), _c('div', {
staticClass: "reply-main"
}, [_c('div', {
staticClass: "reply-textarea-wrapper"
}, [_c('div', {
staticClass: "reply-textarea-wrapper_footer clearfix"
}, [_c('span', {
staticClass: "limit-text fl"
}, [_vm._v("还能输入" + _vm._s(_vm.limitLength) + "个字符")]), _c('div', {
staticClass: "reply-btn-submit paper-btn paper-btn-submit fr",
on: {
"click": _vm.handleSubmit
}
}, [_c('span', {
staticClass: "text"
}, [_vm._v("评论")])])])])])] : _c('div', {
staticClass: "reply-box-mini"
}, [_c('div', {
staticClass: "reply-textarea-wrapper"
}, [_c('div', {
staticClass: "reply-textarea-wrapper_footer clearfix"
}, [_c('div', {
staticClass: "reply-btn-submit paper-btn paper-btn-submit fr",
on: {
"click": _vm.handleSubmit
}
}, [_c('span', {
staticClass: "text"
}, [_vm._v("评论")])])])])])]], 2);
};
var ReplyTextareavue_type_template_id_569901b1_scoped_true_staticRenderFns = [function () {
var _vm = this,
_c = _vm._self._c;
return _c('div', {
staticClass: "login-guide-text"
}, [_vm._v(" 请先 "), _c('span', {
staticStyle: {
"color": "#6B5CFF"
}
}, [_vm._v("登录")]), _vm._v(" 后发表评论~ ")]);
}];
;// CONCATENATED MODULE: ./src/package/ReplyTextarea/index.vue?vue&type=template&id=569901b1&scoped=true
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/ReplyTextarea/index.vue?vue&type=script&lang=js
// import { mapState } from 'vuex';
// import { debounce } from 'lodash';
// import { Field } from 'vant';
/* harmony default export */ var ReplyTextareavue_type_script_lang_js = ({
name: 'reply-textarea',
components: {
// Field
},
props: {
in_reply_to_id: {
type: [String, Number],
default: () => ''
},
isLogin: {
type: Boolean,
default: () => true
},
showAvatar: {
type: Boolean,
default: () => true
},
placeholder: {
type: String,
default: () => '说些什么吧'
},
avatar_url: {
type: String
}
},
data() {
return {
content: '',
maxLength: 500,
limitLength: 500,
replyInfo: {
status: '',
in_reply_to_id: null,
visibility: 'public',
media_ids: [],
sensitive: false,
spoiler_text: "",
poll: null,
language: "zh"
},
isGetPostIdByComment: false
};
},
watch: {
in_reply_to_id: {
handler(val) {
if (val && this.isGetPostIdByComment) this.handleSubmit();
}
}
},
computed: {
// ...mapState({
// loginInfo: ({ system = {} }) => system.loginInfo,
// isLogin: ({ system = {} }) => system.isLogin, // 是否登录
// }),
},
mounted() {},
beforeDestroy() {
this.content = '';
},
methods: {
onBlur() {
if (this.$refs.ref_replyTextarea_field.$parent.$parent.replyPlaceholder) this.$refs.ref_replyTextarea_field.$parent.$parent.replyPlaceholder = '说些什么吧';
// this.onInput()
},
// onInput: debounce(function input(val) {
// this.limitLength = this.maxLength - this.content.length
// }, 350),
async handleSubmit() {
const status = this.content.trim();
if (!status) return false;
// if(!this.in_reply_to_id) {
// this.isGetPostIdByComment = true
// this.$EventBus.$emit('getPostId', 'comment', e)
// } else {
// this.isGetPostIdByComment = false
// const params = {
// ...this.replyInfo,
// status,
// in_reply_to_id: this.in_reply_to_id
// }
// try {
// await this.getLinkAuthorize('', e)
// const res = await this.$api.paper.submitToLink(params)
this.$toast('发布成功');
this.content = '';
// this.$EventBus.$emit('updateList', res)
// } catch (error) {
// // console.log(error)
// this.$toast(error)
// }
// }
}
}
});
;// CONCATENATED MODULE: ./src/package/ReplyTextarea/index.vue?vue&type=script&lang=js
/* harmony default export */ var package_ReplyTextareavue_type_script_lang_js = (ReplyTextareavue_type_script_lang_js);
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/ReplyTextarea/index.vue?vue&type=style&index=0&id=569901b1&prod&lang=less&scoped=true
// extracted by mini-css-extract-plugin
;// CONCATENATED MODULE: ./src/package/ReplyTextarea/index.vue?vue&type=style&index=0&id=569901b1&prod&lang=less&scoped=true
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/ReplyTextarea/index.vue?vue&type=style&index=1&id=569901b1&prod&lang=less
// extracted by mini-css-extract-plugin
;// CONCATENATED MODULE: ./src/package/ReplyTextarea/index.vue?vue&type=style&index=1&id=569901b1&prod&lang=less
;// CONCATENATED MODULE: ./src/package/ReplyTextarea/index.vue
;
/* normalize component */
var ReplyTextarea_component = normalizeComponent(
package_ReplyTextareavue_type_script_lang_js,
ReplyTextareavue_type_template_id_569901b1_scoped_true_render,
ReplyTextareavue_type_template_id_569901b1_scoped_true_staticRenderFns,
false,
null,
"569901b1",
null
)
/* harmony default export */ var ReplyTextarea = (ReplyTextarea_component.exports);
;// CONCATENATED MODULE: ./src/package/index.js
const comArr = [wqButton, wqClock]; // 注册组件
const comArr = [wqButton, wqClock, ReplyTextarea]; // 注册组件
const install = Vue => {

@@ -303,0 +495,0 @@ comArr.forEach(item => {

@@ -306,7 +306,199 @@ (function webpackUniversalModuleDefinition(root, factory) {

/* harmony default export */ var wqClock = (wqClock_component.exports);
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/ReplyTextarea/index.vue?vue&type=template&id=569901b1&scoped=true
var ReplyTextareavue_type_template_id_569901b1_scoped_true_render = function render() {
var _vm = this,
_c = _vm._self._c;
return _c('div', {
staticClass: "reply-box"
}, [!_vm.isLogin ? _c('div', {
staticClass: "login-guide"
}, [_vm._m(0)]) : [!_vm.isApp ? [_vm.showAvatar ? _c('div', {
staticClass: "reply-avatar"
}) : _vm._e(), _c('div', {
staticClass: "reply-main"
}, [_c('div', {
staticClass: "reply-textarea-wrapper"
}, [_c('div', {
staticClass: "reply-textarea-wrapper_footer clearfix"
}, [_c('span', {
staticClass: "limit-text fl"
}, [_vm._v("还能输入" + _vm._s(_vm.limitLength) + "个字符")]), _c('div', {
staticClass: "reply-btn-submit paper-btn paper-btn-submit fr",
on: {
"click": _vm.handleSubmit
}
}, [_c('span', {
staticClass: "text"
}, [_vm._v("评论")])])])])])] : _c('div', {
staticClass: "reply-box-mini"
}, [_c('div', {
staticClass: "reply-textarea-wrapper"
}, [_c('div', {
staticClass: "reply-textarea-wrapper_footer clearfix"
}, [_c('div', {
staticClass: "reply-btn-submit paper-btn paper-btn-submit fr",
on: {
"click": _vm.handleSubmit
}
}, [_c('span', {
staticClass: "text"
}, [_vm._v("评论")])])])])])]], 2);
};
var ReplyTextareavue_type_template_id_569901b1_scoped_true_staticRenderFns = [function () {
var _vm = this,
_c = _vm._self._c;
return _c('div', {
staticClass: "login-guide-text"
}, [_vm._v(" 请先 "), _c('span', {
staticStyle: {
"color": "#6B5CFF"
}
}, [_vm._v("登录")]), _vm._v(" 后发表评论~ ")]);
}];
;// CONCATENATED MODULE: ./src/package/ReplyTextarea/index.vue?vue&type=template&id=569901b1&scoped=true
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/ReplyTextarea/index.vue?vue&type=script&lang=js
// import { mapState } from 'vuex';
// import { debounce } from 'lodash';
// import { Field } from 'vant';
/* harmony default export */ var ReplyTextareavue_type_script_lang_js = ({
name: 'reply-textarea',
components: {
// Field
},
props: {
in_reply_to_id: {
type: [String, Number],
default: () => ''
},
isLogin: {
type: Boolean,
default: () => true
},
showAvatar: {
type: Boolean,
default: () => true
},
placeholder: {
type: String,
default: () => '说些什么吧'
},
avatar_url: {
type: String
}
},
data() {
return {
content: '',
maxLength: 500,
limitLength: 500,
replyInfo: {
status: '',
in_reply_to_id: null,
visibility: 'public',
media_ids: [],
sensitive: false,
spoiler_text: "",
poll: null,
language: "zh"
},
isGetPostIdByComment: false
};
},
watch: {
in_reply_to_id: {
handler(val) {
if (val && this.isGetPostIdByComment) this.handleSubmit();
}
}
},
computed: {
// ...mapState({
// loginInfo: ({ system = {} }) => system.loginInfo,
// isLogin: ({ system = {} }) => system.isLogin, // 是否登录
// }),
},
mounted() {},
beforeDestroy() {
this.content = '';
},
methods: {
onBlur() {
if (this.$refs.ref_replyTextarea_field.$parent.$parent.replyPlaceholder) this.$refs.ref_replyTextarea_field.$parent.$parent.replyPlaceholder = '说些什么吧';
// this.onInput()
},
// onInput: debounce(function input(val) {
// this.limitLength = this.maxLength - this.content.length
// }, 350),
async handleSubmit() {
const status = this.content.trim();
if (!status) return false;
// if(!this.in_reply_to_id) {
// this.isGetPostIdByComment = true
// this.$EventBus.$emit('getPostId', 'comment', e)
// } else {
// this.isGetPostIdByComment = false
// const params = {
// ...this.replyInfo,
// status,
// in_reply_to_id: this.in_reply_to_id
// }
// try {
// await this.getLinkAuthorize('', e)
// const res = await this.$api.paper.submitToLink(params)
this.$toast('发布成功');
this.content = '';
// this.$EventBus.$emit('updateList', res)
// } catch (error) {
// // console.log(error)
// this.$toast(error)
// }
// }
}
}
});
;// CONCATENATED MODULE: ./src/package/ReplyTextarea/index.vue?vue&type=script&lang=js
/* harmony default export */ var package_ReplyTextareavue_type_script_lang_js = (ReplyTextareavue_type_script_lang_js);
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-74.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-74.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-74.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/ReplyTextarea/index.vue?vue&type=style&index=0&id=569901b1&prod&lang=less&scoped=true
// extracted by mini-css-extract-plugin
;// CONCATENATED MODULE: ./src/package/ReplyTextarea/index.vue?vue&type=style&index=0&id=569901b1&prod&lang=less&scoped=true
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-74.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-74.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-74.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/ReplyTextarea/index.vue?vue&type=style&index=1&id=569901b1&prod&lang=less
// extracted by mini-css-extract-plugin
;// CONCATENATED MODULE: ./src/package/ReplyTextarea/index.vue?vue&type=style&index=1&id=569901b1&prod&lang=less
;// CONCATENATED MODULE: ./src/package/ReplyTextarea/index.vue
;
/* normalize component */
var ReplyTextarea_component = normalizeComponent(
package_ReplyTextareavue_type_script_lang_js,
ReplyTextareavue_type_template_id_569901b1_scoped_true_render,
ReplyTextareavue_type_template_id_569901b1_scoped_true_staticRenderFns,
false,
null,
"569901b1",
null
)
/* harmony default export */ var ReplyTextarea = (ReplyTextarea_component.exports);
;// CONCATENATED MODULE: ./src/package/index.js
const comArr = [wqButton, wqClock]; // 注册组件
const comArr = [wqButton, wqClock, ReplyTextarea]; // 注册组件
const install = Vue => {

@@ -313,0 +505,0 @@ comArr.forEach(item => {

@@ -1,2 +0,2 @@

(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["wq-clock-ly"]=e():t["wq-clock-ly"]=e()})("undefined"!==typeof self?self:this,(function(){return function(){"use strict";var t={};!function(){t.d=function(e,n){for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})}}(),function(){t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){t.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){t.p=""}();var e={};if(t.r(e),t.d(e,{default:function(){return g}}),"undefined"!==typeof window){var n=window.document.currentScript,o=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(t.p=o[1])}var r=function(){var t=this,e=t._self._c;return e("div",[t._v("————wq-button————")])},i=[],s={name:"wq-button"},a=s;function c(t,e,n,o,r,i,s,a){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),o&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),s?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=c):r&&(c=a?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:u}}var u=c(a,r,i,!1,null,null,null),l=u.exports,d=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"clock"}},[e("div",{staticClass:"box",style:{color:t.textColor}},[e("span",{staticClass:"date"},[t._v(t._s(t.date))]),e("span",{staticClass:"time"},[t._v(t._s(t.time))])])])},f=[],p={name:"wqClock",props:{textColor:{type:String,default:"#2cf3fb"}},data(){return{timer:null,date:"",time:""}},created(){this.updateTime()},mounted(){this.timer=setInterval((()=>{this.updateTime()}),1e3)},methods:{updateTime(){let t=new Date,e="-",n=":",o=d(t.getFullYear()),r=d(t.getMonth()+1),i=d(t.getDate()),s=d(t.getHours()),a=d(t.getMinutes()),c=d(t.getSeconds()),u=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],l=u[t.getDay()];function d(t){return t>=0&&t<10?"0"+t:t}this.date=o+e+r+e+i+` ${l}`,this.time=s+n+a+n+c}},beforeDestroy(){clearInterval(this.timer)}},_=p,m=c(_,d,f,!1,null,"2ab500a3",null),v=m.exports;const h=[l,v],y=t=>{h.forEach((e=>{t.component(e.name,e)}))};var b=y,g=b;return e}()}));
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["wq-clock-ly"]=e():t["wq-clock-ly"]=e()})("undefined"!==typeof self?self:this,(function(){return function(){"use strict";var t={};!function(){t.d=function(e,n){for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})}}(),function(){t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){t.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){t.p=""}();var e={};if(t.r(e),t.d(e,{default:function(){return T}}),"undefined"!==typeof window){var n=window.document.currentScript,i=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(t.p=i[1])}var r=function(){var t=this,e=t._self._c;return e("div",[t._v("————wq-button————")])},a=[],s={name:"wq-button"},o=s;function l(t,e,n,i,r,a,s,o){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),s?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=o?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var p=c.render;c.render=function(t,e){return l.call(e),p(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}var c=l(o,r,a,!1,null,null,null),p=c.exports,d=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"clock"}},[e("div",{staticClass:"box",style:{color:t.textColor}},[e("span",{staticClass:"date"},[t._v(t._s(t.date))]),e("span",{staticClass:"time"},[t._v(t._s(t.time))])])])},u=[],f={name:"wqClock",props:{textColor:{type:String,default:"#2cf3fb"}},data(){return{timer:null,date:"",time:""}},created(){this.updateTime()},mounted(){this.timer=setInterval((()=>{this.updateTime()}),1e3)},methods:{updateTime(){let t=new Date,e="-",n=":",i=d(t.getFullYear()),r=d(t.getMonth()+1),a=d(t.getDate()),s=d(t.getHours()),o=d(t.getMinutes()),l=d(t.getSeconds()),c=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],p=c[t.getDay()];function d(t){return t>=0&&t<10?"0"+t:t}this.date=i+e+r+e+a+` ${p}`,this.time=s+n+o+n+l}},beforeDestroy(){clearInterval(this.timer)}},_=f,m=l(_,d,u,!1,null,"2ab500a3",null),y=m.exports,v=function(){var t=this,e=t._self._c;return e("div",{staticClass:"reply-box"},[t.isLogin?[t.isApp?e("div",{staticClass:"reply-box-mini"},[e("div",{staticClass:"reply-textarea-wrapper"},[e("div",{staticClass:"reply-textarea-wrapper_footer clearfix"},[e("div",{staticClass:"reply-btn-submit paper-btn paper-btn-submit fr",on:{click:t.handleSubmit}},[e("span",{staticClass:"text"},[t._v("评论")])])])])]):[t.showAvatar?e("div",{staticClass:"reply-avatar"}):t._e(),e("div",{staticClass:"reply-main"},[e("div",{staticClass:"reply-textarea-wrapper"},[e("div",{staticClass:"reply-textarea-wrapper_footer clearfix"},[e("span",{staticClass:"limit-text fl"},[t._v("还能输入"+t._s(t.limitLength)+"个字符")]),e("div",{staticClass:"reply-btn-submit paper-btn paper-btn-submit fr",on:{click:t.handleSubmit}},[e("span",{staticClass:"text"},[t._v("评论")])])])])])]]:e("div",{staticClass:"login-guide"},[t._m(0)])],2)},h=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"login-guide-text"},[t._v(" 请先 "),e("span",{staticStyle:{color:"#6B5CFF"}},[t._v("登录")]),t._v(" 后发表评论~ ")])}],b={name:"reply-textarea",components:{},props:{in_reply_to_id:{type:[String,Number],default:()=>""},isLogin:{type:Boolean,default:()=>!0},showAvatar:{type:Boolean,default:()=>!0},placeholder:{type:String,default:()=>"说些什么吧"},avatar_url:{type:String}},data(){return{content:"",maxLength:500,limitLength:500,replyInfo:{status:"",in_reply_to_id:null,visibility:"public",media_ids:[],sensitive:!1,spoiler_text:"",poll:null,language:"zh"},isGetPostIdByComment:!1}},watch:{in_reply_to_id:{handler(t){t&&this.isGetPostIdByComment&&this.handleSubmit()}}},computed:{},mounted(){},beforeDestroy(){this.content=""},methods:{onBlur(){this.$refs.ref_replyTextarea_field.$parent.$parent.replyPlaceholder&&(this.$refs.ref_replyTextarea_field.$parent.$parent.replyPlaceholder="说些什么吧")},async handleSubmit(){const t=this.content.trim();if(!t)return!1;this.$toast("发布成功"),this.content=""}}},C=b,g=l(C,v,h,!1,null,"569901b1",null),x=g.exports;const S=[p,y,x],w=t=>{S.forEach((e=>{t.component(e.name,e)}))};var $=w,T=$;return e}()}));
//# sourceMappingURL=wq-clock-ly.umd.min.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc