New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

koishi-plugin-teach

Package Overview
Dependencies
Maintainers
1
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koishi-plugin-teach - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

122

dist/index.js

@@ -1,116 +0,6 @@

import {stats, meta, router} from "../client.js";
import {defineComponent, ref, computed, resolveComponent, unref, openBlock, createBlock, withCtx, createVNode, createCommentVNode, createTextVNode, Fragment, toDisplayString} from "../vue.js";
const _hoisted_1$1 = /* @__PURE__ */ createTextVNode(" \u95EE\u7B54\u65E5\u5747\u89E6\u53D1\u6B21\u6570 ");
const _hoisted_2$1 = /* @__PURE__ */ createTextVNode("\u5237\u65B0");
const _hoisted_3 = /* @__PURE__ */ createTextVNode(" \u663E\u793A\u7684\u6B21\u6570\u4E3A\u5B9E\u9645\u89E6\u53D1\u6B21\u6570\u3002\u4E0D\u8003\u8651\u91CD\u5B9A\u5411\u95EE\u7B54\u548C\u6307\u4EE4\u8C03\u7528\u3002 ");
var _sfc_main$1 = defineComponent({
expose: [],
setup(__props) {
const questions = ref(stats.value.questions);
function refresh() {
questions.value = stats.value.questions;
}
const option = computed(() => ({
tooltip: {
show: true,
formatter({data}) {
return `${data.name}<br>\u65E5\u5747\u89E6\u53D1\uFF1A${+data.value.toFixed(1)}`;
}
},
series: {
type: "wordCloud",
data: questions.value
}
}));
return (_ctx, _cache) => {
const _component_k_button = resolveComponent("k-button");
const _component_k_chart = resolveComponent("k-chart");
const _component_k_card = resolveComponent("k-card");
return unref(stats).questions ? (openBlock(), createBlock(_component_k_card, {
key: 0,
class: "frameless word-cloud"
}, {
header: withCtx(() => [
_hoisted_1$1,
createVNode(_component_k_button, {
class: "refresh",
frameless: "",
onClick: refresh
}, {
default: withCtx(() => [
_hoisted_2$1
]),
_: 1
})
]),
footer: withCtx(() => [
_hoisted_3
]),
default: withCtx(() => [
createVNode(_component_k_chart, {
option: unref(option),
autoresize: ""
}, null, 8, ["option"])
]),
_: 1
})) : createCommentVNode("v-if", true);
};
}
});
var wordCloud_vue_vue_type_style_index_0_lang = ".word-cloud .refresh {\n float: right;\n font-size: 1rem;\n padding: 0;\n min-height: 1.8rem;\n}";
const _hoisted_1 = {class: "card-grid profile-grid"};
const _hoisted_2 = {class: "card-grid chart-grid"};
var _sfc_main = defineComponent({
expose: [],
setup(__props) {
const assetSize = computed(() => {
if (!meta.value.assetSize)
return "\u6682\u65E0\u6570\u636E";
return (meta.value.assetSize / 1048576).toFixed(1) + " MB";
});
return (_ctx, _cache) => {
const _component_k_numeric = resolveComponent("k-numeric");
return openBlock(), createBlock(Fragment, null, [
createVNode("div", _hoisted_1, [
createVNode(_component_k_numeric, {
title: "\u603B\u95EE\u9898\u6570\u91CF",
icon: "quote-left"
}, {
default: withCtx(() => [
createTextVNode(toDisplayString(unref(meta).questions), 1)
]),
_: 1
}),
createVNode(_component_k_numeric, {
title: "\u603B\u95EE\u7B54\u6570\u91CF",
icon: "quote-right"
}, {
default: withCtx(() => [
createTextVNode(toDisplayString(unref(meta).dialogues), 1)
]),
_: 1
}),
createVNode(_component_k_numeric, {
title: "\u56FE\u7247\u670D\u52A1\u5668",
icon: "hdd"
}, {
default: withCtx(() => [
createTextVNode(toDisplayString(unref(assetSize)), 1)
]),
_: 1
})
]),
createVNode("div", _hoisted_2, [
createVNode(_sfc_main$1)
])
], 64);
};
}
});
var teach_vue_vue_type_style_index_0_lang = "";
router.addRoute({
path: "/teach",
name: "\u95EE\u7B54",
meta: {icon: "book", require: ["stats", "meta"]},
component: _sfc_main
});
var __vite_style__=document.createElement("style");__vite_style__.innerHTML=".word-cloud .refresh{float:right;font-size:1rem;padding:0;min-height:1.8rem}",document.head.appendChild(__vite_style__),function(t,e){"use strict";const u=e.createTextVNode(" \u95EE\u7B54\u65E5\u5747\u89E6\u53D1\u6B21\u6570 "),i=e.createTextVNode("\u5237\u65B0"),c=e.createTextVNode(" \u663E\u793A\u7684\u6B21\u6570\u4E3A\u5B9E\u9645\u89E6\u53D1\u6B21\u6570\u3002\u4E0D\u8003\u8651\u91CD\u5B9A\u5411\u95EE\u7B54\u548C\u6307\u4EE4\u8C03\u7528\u3002 ");var d=e.defineComponent({expose:[],setup(h){const r=e.ref(t.stats.value.questions);function n(){r.value=t.stats.value.questions}const a=e.computed(()=>({tooltip:{show:!0,formatter({data:o}){return`${o.name}<br>\u65E5\u5747\u89E6\u53D1\uFF1A${+o.value.toFixed(1)}`}},series:{type:"wordCloud",data:r.value}}));return(o,g)=>{const s=e.resolveComponent("k-button"),f=e.resolveComponent("k-chart"),E=e.resolveComponent("k-card");return e.unref(t.stats).questions?(e.openBlock(),e.createBlock(E,{key:0,class:"frameless word-cloud"},{header:e.withCtx(()=>[u,e.createVNode(s,{class:"refresh",frameless:"",onClick:n},{default:e.withCtx(()=>[i]),_:1})]),footer:e.withCtx(()=>[c]),default:e.withCtx(()=>[e.createVNode(f,{option:e.unref(a),autoresize:""},null,8,["option"])]),_:1})):e.createCommentVNode("v-if",!0)}}}),C=`.word-cloud .refresh {
float: right;
font-size: 1rem;
padding: 0;
min-height: 1.8rem;
}`;const l={class:"card-grid profile-grid"},m={class:"card-grid chart-grid"};var p=e.defineComponent({expose:[],setup(h){const r=e.computed(()=>t.meta.value.assetSize?(t.meta.value.assetSize/1048576).toFixed(1)+" MB":"\u6682\u65E0\u6570\u636E");return(n,a)=>{const o=e.resolveComponent("k-numeric");return e.openBlock(),e.createBlock(e.Fragment,null,[e.createVNode("div",l,[e.createVNode(o,{title:"\u603B\u95EE\u9898\u6570\u91CF",icon:"quote-left"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t.meta).questions),1)]),_:1}),e.createVNode(o,{title:"\u603B\u95EE\u7B54\u6570\u91CF",icon:"quote-right"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t.meta).dialogues),1)]),_:1}),e.createVNode(o,{title:"\u56FE\u7247\u670D\u52A1\u5668",icon:"hdd"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)),1)]),_:1})]),e.createVNode("div",m,[e.createVNode(d)])],64)}}}),x="";t.router.addRoute({path:"/teach",name:"\u95EE\u7B54",meta:{icon:"book",require:["stats","meta"]},component:p})}(KoishiClient,Vue);

6

package.json
{
"name": "koishi-plugin-teach",
"description": "Teach plugin for Koishi",
"version": "2.1.2",
"version": "2.1.3",
"main": "lib/index.js",

@@ -37,3 +37,3 @@ "typings": "lib/index.d.ts",

"peerDependencies": {
"koishi-core": "^3.7.1"
"koishi-core": "^3.7.2"
},

@@ -43,3 +43,3 @@ "devDependencies": {

"koishi-plugin-mysql": "^3.3.0",
"koishi-plugin-webui": "^4.1.0",
"koishi-plugin-webui": "^4.1.1",
"koishi-test-utils": "^6.0.0-beta.11"

@@ -46,0 +46,0 @@ },

Sorry, the diff of this file is too big to display

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