foliko 1.1.21 → 1.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,8 +33,9 @@ class Logger {
33
33
  info: '\x1b[32m', // 绿色
34
34
  warn: '\x1b[33m', // 黄色
35
35
  error: '\x1b[31m', // 红色
36
+ grey: '\x1b[90m', // 暗灰色
36
37
  reset: '\x1b[0m',
37
- dim: '\x1b[2m', // 灰色
38
+ dim: '\x1b[2m', // 暗灰色
38
39
  };
39
40
  }
40
41
 
@@ -72,6 +73,7 @@ class Logger {
72
73
  const color = this.colors[levelName.toLowerCase()] || '';
73
74
  const reset = this.colors.reset;
74
75
  const dim = this.colors.dim;
76
+ const grey = this.colors.grey;
75
77
 
76
78
  const parts = [];
77
79
 
@@ -91,7 +93,8 @@ class Logger {
91
93
  parts.push(levelName.padEnd(5));
92
94
  }
93
95
 
94
- // 消息
96
+ // 消息(根据级别着色)
97
+ const msgColor = this.enableColors ? color : '';
95
98
  const message = args
96
99
  .map((arg) => {
97
100
  if (arg instanceof Error) {
@@ -108,7 +111,7 @@ class Logger {
108
111
  })
109
112
  .join(' ');
110
113
 
111
- parts.push(message);
114
+ parts.push(`${grey}${message}${reset}`);
112
115
  return parts.join(' ');
113
116
  }
114
117
 
package/undefined.svg CHANGED
@@ -1,8 +1 @@
1
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="802" height="NaN" viewBox="-1,NaN,802,NaN"><defs><linearGradient x1="400" y1="600" x2="1000" y2="600" gradientUnits="userSpaceOnUse" id="color-1"><stop offset="0" stop-color="#f5f0e6"></stop><stop offset="1" stop-color="#ede8dc"></stop></linearGradient></defs><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="none" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,1200v-1200h800v1200z" fill="url(#color-1)" stroke="none" stroke-width="1"></path><path d="M0,1200v-1200h800v1200z" fill="none" stroke="#000000" stroke-width="2"></path><path d="M40,1140v-1100h720v1100z" fill-opacity="0" fill="#000000" stroke="none" stroke-width="1"></path><text x="400" y="55" fill="#6b6459" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, seguiemj, sans-serif" font-weight="normal" font-size="14" text-anchor="middle">━━━━━━━━━━━━━━━ VOL.01 ━━━━━━━━━━━━━━━</text><text x="400" y="130" fill="#b85450" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, seguiemj, sans-serif" font-weight="normal" font-size="52" text-anchor="middle">微信 iLink 机器人</text><text x="400" y="195" fill="#6b6459" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, seguiemj, sans-serif" font-weight="normal" font-size="18" text-anchor="middle">零依赖 · 极简接入 · 高效稳定</text><text x="400" y="235" fill="#1a1a1a" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, seguiemj, sans-serif" font-weight="normal" font-size="16" text-anchor="middle">WEIXIN iLINK BOT SDK FOR NODE.JS</text><path d="M100,270h600" fill="none" stroke="#ffffff" stroke-width="2"></path><path d="M100,NaNc0,NaN 0,NaN 0,NaNh290c0,0 0,NaN 0,NaNc0,NaN -290,NaN -290,NaNz" fill="#ffffff" stroke="none" stroke-width="1"></path><text x="110" y="454" fill="#000000" stroke="none" stroke-width="1" font-family="Microsoft YaHei, msyh, PatuaOne-Regular, seguiemj, seguisym, SegUIVar, wryh, Segoe UI Emoji, sans-serif" font-weight="normal" font-size="24" text-anchor="start">[object Object]</text><text x="110" y="480" fill="#666666" stroke="none" stroke-width="1" font-family="Microsoft YaHei, msyh, PatuaOne-Regular, seguiemj, seguisym, SegUIVar, wryh, Segoe UI Emoji, sans-serif" font-weight="normal" font-size="16" text-anchor="start">[object Object]</text><path d="M105,480c-2.76142,0 -5,-2.23858 -5,-5v-50c0,-2.76142 2.23858,-5 5,-5h280c2.76142,0 5,2.23858 5,5v50c0,2.76142 -2.23858,5 -5,5z" fill="#ffffff" stroke="none" stroke-width="1"></path><text x="245" y="435" fill="#b85450" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, seguiemj, sans-serif" font-weight="normal" font-size="20" text-anchor="middle">ZERO DEPENDENCY</text><text x="245" y="460" fill="#6b6459" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, seguiemj, sans-serif" font-weight="normal" font-size="12" text-anchor="middle">零外部依赖 · 轻量安装</text><path d="M415,480c-2.76142,0 -5,-2.23858 -5,-5v-50c0,-2.76142 2.23858,-5 5,-5h280c2.76142,0 5,2.23858 5,5v50c0,2.76142 -2.23858,5 -5,5z" fill="#ffffff" stroke="none" stroke-width="1"></path><text x="555" y="435" fill="#b85450" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, seguiemj, sans-serif" font-weight="normal" font-size="20" text-anchor="middle">QR CODE AUTH</text><text x="555" y="460" fill="#6b6459" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, seguiemj, sans-serif" font-weight="normal" font-size="12" text-anchor="middle">扫码登录 · 安全认证</text><path d="M105,555c-2.76142,0 -5,-2.23858 -5,-5v-50c0,-2.76142 2.23858,-5 5,-5h280c2.76142,0 5,2.23858 5,5v50c0,2.76142 -2.23858,5 -5,5z" fill="#ffffff" stroke="none" stroke-width="1"></path><text x="245" y="510" fill="#b85450" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, seguiemj, sans-serif" font-weight="normal" font-size="20" text-anchor="middle">EVENT DRIVEN</text><text x="245" y="535" fill="#6b6459" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, seguiemj, sans-serif" font-weight="normal" font-size="12" text-anchor="middle">事件驱动 · 高效响应</text><path d="M415,555c-2.76142,0 -5,-2.23858 -5,-5v-50c0,-2.76142 2.23858,-5 5,-5h280c2.76142,0 5,2.23858 5,5v50c0,2.76142 -2.23858,5 -5,5z" fill="#ffffff" stroke="none" stroke-width="1"></path><text x="555" y="510" fill="#b85450" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, seguiemj, sans-serif" font-weight="normal" font-size="20" text-anchor="middle">RICH MEDIA</text><text x="555" y="535" fill="#6b6459" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, seguiemj, sans-serif" font-weight="normal" font-size="12" text-anchor="middle">多媒体消息 · 丰富交互</text><path d="M100,580h600" fill="none" stroke="#ffffff" stroke-width="2"></path><text x="400" y="600" fill="#1a1a1a" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, seguiemj, sans-serif" font-weight="normal" font-size="16" text-anchor="middle">QUICK START</text><path d="M108,830c-4.41828,0 -8,-3.58172 -8,-8v-184c0,-4.41828 3.58172,-8 8,-8h584c4.41828,0 8,3.58172 8,8v184c0,4.41828 -3.58172,8 -8,8z" fill="#2d2d2d" stroke="none" stroke-width="1"></path><text x="120" y="645" fill="#f8f8f2" stroke="none" stroke-width="1" font-family="Consolas, Microsoft YaHei, seguiemj, sans-serif" font-weight="normal" font-size="13" text-anchor="start">import { WeixinBot } from '@chnak/weixin-bot';
2
-
3
- const bot = new WeixinBot({
4
- onQRCode: (qr) =&gt; console.log(qr),
5
- onMessage: (msg) =&gt; bot.sendText(msg.from, 'Hello!')
6
- });
7
-
8
- bot.start();</text><path d="M100,850h600" fill="none" stroke="#ffffff" stroke-width="2"></path><path d="M106,920c-3.31371,0 -6,-2.68629 -6,-6v-38c0,-3.31371 2.68629,-6 6,-6h588c3.31371,0 6,2.68629 6,6v38c0,3.31371 -2.68629,6 -6,6z" fill="#2d2d2d" stroke="none" stroke-width="1"></path><text x="400" y="885" fill="#50fa7b" stroke="none" stroke-width="1" font-family="Consolas, Microsoft YaHei, seguiemj, sans-serif" font-weight="normal" font-size="18" text-anchor="middle">$ npm install @chnak/weixin-bot</text><text x="400" y="950" fill="#6b6459" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, seguiemj, sans-serif" font-weight="normal" font-size="14" text-anchor="middle">v1.2.9 · MIT License · Node.js &gt;= 14.0.0</text><text x="400" y="980" fill="#b85450" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, seguiemj, sans-serif" font-weight="normal" font-size="14" text-anchor="middle">npmjs.com/package/@chnak/weixin-bot</text><text x="400" y="1020" fill="#6b6459" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, seguiemj, sans-serif" font-weight="normal" font-size="14" text-anchor="middle">━━━━━━━━━━━━━━━ ◆ ━━━━━━━━━━━━━━━</text><text x="400" y="1045" fill="#6b6459" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, seguiemj, sans-serif" font-weight="normal" font-size="12" text-anchor="middle">❖ ❖</text></g></svg>
1
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1080" height="1920" viewBox="0,0,1080,1920"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="none" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,1920v-1920h1080v1920z" fill="#f5f5f0" stroke="none" stroke-width="1"></path><text x="540" y="120" fill="#ffffff" stroke="#c41e3a" stroke-width="2" font-family="Microsoft YaHei, SimHei, KaiTi, seguiemj, sans-serif" font-weight="normal" font-size="48" text-anchor="middle">广东信宜特产</text><text x="540" y="200" fill="#2c1810" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, seguiemj, sans-serif" font-weight="normal" font-size="72" text-anchor="middle">钱排银妃三华李</text><text x="540" y="300" fill="#8b4513" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, seguiemj, sans-serif" font-weight="normal" font-size="36" text-anchor="middle">果中爱马仕 | 酸甜脆爽</text><path d="M90,900v-450h900v450z" fill="none" stroke="none" stroke-width="1"></path><text x="540" y="480" fill="#c41e3a" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, seguiemj, sans-serif" font-weight="normal" font-size="32" text-anchor="middle">核心卖点</text><text x="155" y="582" fill="#007bff" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, msyh, PatuaOne-Regular, seguiemj, seguisym, SegUIVar, wryh, Segoe UI Emoji, sans-serif" font-weight="normal" font-size="32" text-anchor="start">location</text><text x="155" y="607" fill="#ffffff" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, msyh, PatuaOne-Regular, seguiemj, seguisym, SegUIVar, wryh, Segoe UI Emoji, sans-serif" font-weight="normal" font-size="20" text-anchor="start">产地直发</text><text x="155" y="626" fill="#aaaaaa" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, msyh, PatuaOne-Regular, seguiemj, seguisym, SegUIVar, wryh, Segoe UI Emoji, sans-serif" font-weight="normal" font-size="14" text-anchor="start">广东信宜钱排镇</text><text x="155" y="732" fill="#007bff" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, msyh, PatuaOne-Regular, seguiemj, seguisym, SegUIVar, wryh, Segoe UI Emoji, sans-serif" font-weight="normal" font-size="32" text-anchor="start">leaf</text><text x="155" y="757" fill="#ffffff" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, msyh, PatuaOne-Regular, seguiemj, seguisym, SegUIVar, wryh, Segoe UI Emoji, sans-serif" font-weight="normal" font-size="20" text-anchor="start">新鲜采摘</text><text x="155" y="776" fill="#aaaaaa" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, msyh, PatuaOne-Regular, seguiemj, seguisym, SegUIVar, wryh, Segoe UI Emoji, sans-serif" font-weight="normal" font-size="14" text-anchor="start">当季现摘 冷链配送</text><text x="555" y="582" fill="#007bff" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, msyh, PatuaOne-Regular, seguiemj, seguisym, SegUIVar, wryh, Segoe UI Emoji, sans-serif" font-weight="normal" font-size="32" text-anchor="start">star</text><text x="555" y="607" fill="#ffffff" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, msyh, PatuaOne-Regular, seguiemj, seguisym, SegUIVar, wryh, Segoe UI Emoji, sans-serif" font-weight="normal" font-size="20" text-anchor="start">精选大果</text><text x="555" y="626" fill="#aaaaaa" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, msyh, PatuaOne-Regular, seguiemj, seguisym, SegUIVar, wryh, Segoe UI Emoji, sans-serif" font-weight="normal" font-size="14" text-anchor="start">单果30g以上</text><text x="555" y="732" fill="#007bff" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, msyh, PatuaOne-Regular, seguiemj, seguisym, SegUIVar, wryh, Segoe UI Emoji, sans-serif" font-weight="normal" font-size="32" text-anchor="start">heart</text><text x="555" y="757" fill="#ffffff" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, msyh, PatuaOne-Regular, seguiemj, seguisym, SegUIVar, wryh, Segoe UI Emoji, sans-serif" font-weight="normal" font-size="20" text-anchor="start">酸甜脆爽</text><text x="555" y="776" fill="#aaaaaa" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, msyh, PatuaOne-Regular, seguiemj, seguisym, SegUIVar, wryh, Segoe UI Emoji, sans-serif" font-weight="normal" font-size="14" text-anchor="start">自然成熟 口感极佳</text><path d="M302,1070c-6.62742,0 -12,-5.37258 -12,-12v-96c0,-6.62742 5.37258,-12 12,-12h176c6.62742,0 12,5.37258 12,12v96c0,6.62742 -5.37258,12 -12,12z" fill="#ffffff" stroke="#e5e7eb" stroke-width="1"></path><text x="306" y="1001.8" fill="#64748b" stroke="none" stroke-width="1" font-family="Microsoft YaHei, msyh, PatuaOne-Regular, seguiemj, seguisym, SegUIVar, wryh, Segoe UI Emoji, sans-serif" font-weight="normal" font-size="14" text-anchor="start">Total Users</text><text x="306" y="1032.24" fill="#1e293b" stroke="none" stroke-width="1" font-family="Microsoft YaHei, msyh, PatuaOne-Regular, seguiemj, seguisym, SegUIVar, wryh, Segoe UI Emoji, sans-serif" font-weight="normal" font-size="27.6" text-anchor="start">19.8</text><text x="540" y="1850" fill="#666666" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, seguiemj, sans-serif" font-weight="normal" font-size="28" text-anchor="middle">长按识别 立即购买</text><text x="472" y="474.8" fill="#000000" stroke="none" stroke-width="1" font-family="Microsoft YaHei, msyh, PatuaOne-Regular, seguiemj, seguisym, SegUIVar, wryh, Segoe UI Emoji, sans-serif" font-weight="normal" font-size="38.4" text-anchor="middle">🍑</text><text x="540" y="1880" fill="#999999" stroke="none" stroke-width="1" font-family="Microsoft YaHei, SimHei, KaiTi, seguiemj, sans-serif" font-weight="normal" font-size="20" text-anchor="middle">正宗钱排三华李 假一赔十</text></g></svg>
@@ -1,30 +0,0 @@
1
- {
2
- "routes": [],
3
- "webhooks": [],
4
- "statics": [
5
- {
6
- "urlPath": "/news/",
7
- "folder": "D:\\code\\vb-agent",
8
- "options": {
9
- "dotfiles": "ignore",
10
- "index": "index.html"
11
- }
12
- },
13
- {
14
- "urlPath": "/news/",
15
- "folder": "D:\\code\\vb-agent",
16
- "options": {
17
- "dotfiles": "ignore",
18
- "index": "index.html"
19
- }
20
- },
21
- {
22
- "urlPath": "/news/",
23
- "folder": "D:\\code\\vb-agent",
24
- "options": {
25
- "dotfiles": "ignore",
26
- "index": "index.html"
27
- }
28
- }
29
- ]
30
- }
package/nul DELETED
@@ -1,3 +0,0 @@
1
- dir: cannot access '/s': No such file or directory
2
- dir: cannot access '/b': No such file or directory
3
- dir: cannot access '*.png': No such file or directory
Binary file
Binary file