@funnycaptcha/cli 0.2.0 → 0.6.0

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.
Files changed (2) hide show
  1. package/dist/cli.js +9 -2
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -106,7 +106,14 @@ function getDemoHTML() {
106
106
  { type: 'emoji-match', zh: '\u8868\u60C5\u5339\u914D', en: 'Emoji Match', descZh: '\u9009\u51FA\u5339\u914D\u7684 emoji', descEn: 'Pick matching emoji' },
107
107
  { type: 'meme-quiz', zh: '\u6897\u56FE\u95EE\u7B54', en: 'Meme Quiz', descZh: '\u770B\u6897\u56FE\u9009\u6897\u540D', descEn: 'Pick the right meme' },
108
108
  { type: 'mini-game', zh: '\u8FF7\u4F60\u6E38\u620F', en: 'Mini Game', descZh: '30 \u79D2\u6253\u5730\u9F20\u8FBE 10 \u5206', descEn: 'Whack-a-mole, score 10 in 30s' },
109
- { type: 'anti-bot', zh: '\u53CD\u4EBA\u7C7B\u8BBD\u523A', en: 'Anti-Bot Satire', descZh: '\u673A\u5668\u4EBA\u6CE8\u5165 JS \u5C31\u80FD\u901A\u8FC7', descEn: 'Bots can inject JS to pass' }
109
+ { type: 'anti-bot', zh: '\u53CD\u4EBA\u7C7B\u8BBD\u523A', en: 'Anti-Bot Satire', descZh: '\u673A\u5668\u4EBA\u6CE8\u5165 JS \u5C31\u80FD\u901A\u8FC7', descEn: 'Bots can inject JS to pass' },
110
+ { type: 'click-text', zh: '\u6587\u5B57\u70B9\u9009', en: 'Click Text', descZh: '\u6309\u987A\u5E8F\u70B9\u51FB\u6307\u5B9A\u6C49\u5B57', descEn: 'Click characters in order' },
111
+ { type: 'color-pick', zh: '\u989C\u8272\u9009\u62E9', en: 'Color Pick', descZh: '\u70B9\u51FB\u6307\u5B9A\u989C\u8272\u7684\u65B9\u5757', descEn: 'Pick the right color' },
112
+ { type: 'puzzle', zh: '\u62FC\u56FE\u7F3A\u53E3', en: 'Puzzle Gap', descZh: '\u62D6\u52A8\u62FC\u56FE\u5230\u7F3A\u53E3\u4F4D\u7F6E', descEn: 'Drag puzzle to the gap' },
113
+ { type: 'advanced-math', zh: '\u9AD8\u7B49\u6570\u5B66', en: 'Calculus', descZh: '\u6C42\u5BFC\u3001\u79EF\u5206\u3001\u6781\u9650', descEn: 'Derivatives, integrals, limits' },
114
+ { type: 'olympiad', zh: '\u5C0F\u5B66\u5965\u6570', en: 'Math Olympiad', descZh: '\u9E21\u5154\u540C\u7B3C\u3001\u690D\u6811\u3001\u884C\u7A0B', descEn: 'Classic word problems' },
115
+ { type: 'equation-balance', zh: '\u65B9\u7A0B\u5F0F\u914D\u5E73', en: 'Balance Equation', descZh: '\u914D\u5E73\u5316\u5B66\u65B9\u7A0B\u5F0F\u7CFB\u6570', descEn: 'Balance chemical equations' },
116
+ { type: 'random-hunt', zh: '\u968F\u673A\u6570\u730E\u624B', en: 'Random Hunter', descZh: '\u6570\u5B57\u6EE1\u8DB3\u6761\u4EF6\u65F6\u6355\u83B7', descEn: 'Catch the number when it matches' }
110
117
  ];
111
118
  var locale = 'zh';
112
119
  var theme = 'dark';
@@ -120,7 +127,7 @@ function getDemoHTML() {
120
127
  card.innerHTML =
121
128
  '<h3 class="card-title">' + (locale === 'zh' ? item.zh : item.en) + '</h3>' +
122
129
  '<p class="card-desc">' + (locale === 'zh' ? item.descZh : item.descEn) + '</p>' +
123
- '<div class="fc-demo" data-funny-captcha="' + item.type + '" data-locale="' + locale + '" data-theme="' + theme + '"></div>';
130
+ '<div class="fc-demo" data-funny-captcha data-type="' + item.type + '" data-locale="' + locale + '" data-theme="' + theme + '"></div>';
124
131
  grid.appendChild(card);
125
132
  });
126
133
  // \u91CD\u65B0\u626B\u63CF\u6302\u8F7D
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnycaptcha/cli",
3
- "version": "0.2.0",
3
+ "version": "0.6.0",
4
4
  "description": "FunnyChapter CLI — 在终端输入 funnycaptcha 即可打开 demo",
5
5
  "type": "module",
6
6
  "bin": {
@@ -11,7 +11,7 @@
11
11
  "dist"
12
12
  ],
13
13
  "dependencies": {
14
- "@funnycaptcha/embed": "0.2.0"
14
+ "@funnycaptcha/embed": "0.6.0"
15
15
  },
16
16
  "publishConfig": {
17
17
  "access": "public",