desktop-tool-pl-qrcode 1.0.0 → 1.0.1
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.
- package/dist/index.js +864 -0
- package/dist/style.css +1 -0
- package/package.json +6 -2
package/dist/index.js
ADDED
|
@@ -0,0 +1,864 @@
|
|
|
1
|
+
import ke, { useState as L, useEffect as dr } from "react";
|
|
2
|
+
import vr from "qrcode";
|
|
3
|
+
var ne = { exports: {} }, W = {};
|
|
4
|
+
/**
|
|
5
|
+
* @license React
|
|
6
|
+
* react-jsx-runtime.production.min.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
var Oe;
|
|
14
|
+
function pr() {
|
|
15
|
+
if (Oe)
|
|
16
|
+
return W;
|
|
17
|
+
Oe = 1;
|
|
18
|
+
var E = ke, C = Symbol.for("react.element"), y = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, S = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, _ = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
19
|
+
function k(x, f, T) {
|
|
20
|
+
var p, l = {}, R = null, D = null;
|
|
21
|
+
T !== void 0 && (R = "" + T), f.key !== void 0 && (R = "" + f.key), f.ref !== void 0 && (D = f.ref);
|
|
22
|
+
for (p in f)
|
|
23
|
+
g.call(f, p) && !_.hasOwnProperty(p) && (l[p] = f[p]);
|
|
24
|
+
if (x && x.defaultProps)
|
|
25
|
+
for (p in f = x.defaultProps, f)
|
|
26
|
+
l[p] === void 0 && (l[p] = f[p]);
|
|
27
|
+
return { $$typeof: C, type: x, key: R, ref: D, props: l, _owner: S.current };
|
|
28
|
+
}
|
|
29
|
+
return W.Fragment = y, W.jsx = k, W.jsxs = k, W;
|
|
30
|
+
}
|
|
31
|
+
var Y = {};
|
|
32
|
+
/**
|
|
33
|
+
* @license React
|
|
34
|
+
* react-jsx-runtime.development.js
|
|
35
|
+
*
|
|
36
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
37
|
+
*
|
|
38
|
+
* This source code is licensed under the MIT license found in the
|
|
39
|
+
* LICENSE file in the root directory of this source tree.
|
|
40
|
+
*/
|
|
41
|
+
var Se;
|
|
42
|
+
function hr() {
|
|
43
|
+
return Se || (Se = 1, process.env.NODE_ENV !== "production" && function() {
|
|
44
|
+
var E = ke, C = Symbol.for("react.element"), y = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), x = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), M = Symbol.iterator, Q = "@@iterator";
|
|
45
|
+
function v(e) {
|
|
46
|
+
if (e === null || typeof e != "object")
|
|
47
|
+
return null;
|
|
48
|
+
var r = M && e[M] || e[Q];
|
|
49
|
+
return typeof r == "function" ? r : null;
|
|
50
|
+
}
|
|
51
|
+
var O = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
|
+
function h(e) {
|
|
53
|
+
{
|
|
54
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
55
|
+
t[n - 1] = arguments[n];
|
|
56
|
+
Pe("error", e, t);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function Pe(e, r, t) {
|
|
60
|
+
{
|
|
61
|
+
var n = O.ReactDebugCurrentFrame, s = n.getStackAddendum();
|
|
62
|
+
s !== "" && (r += "%s", t = t.concat([s]));
|
|
63
|
+
var c = t.map(function(i) {
|
|
64
|
+
return String(i);
|
|
65
|
+
});
|
|
66
|
+
c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
var Ne = !1, De = !1, qe = !1, Fe = !1, Ae = !1, ae;
|
|
70
|
+
ae = Symbol.for("react.module.reference");
|
|
71
|
+
function $e(e) {
|
|
72
|
+
return !!(typeof e == "string" || typeof e == "function" || e === g || e === _ || Ae || e === S || e === T || e === p || Fe || e === D || Ne || De || qe || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === l || e.$$typeof === k || e.$$typeof === x || e.$$typeof === f || // This needs to include all possible module reference object
|
|
73
|
+
// types supported by any Flight configuration anywhere since
|
|
74
|
+
// we don't know which Flight build this will end up being used
|
|
75
|
+
// with.
|
|
76
|
+
e.$$typeof === ae || e.getModuleId !== void 0));
|
|
77
|
+
}
|
|
78
|
+
function Ie(e, r, t) {
|
|
79
|
+
var n = e.displayName;
|
|
80
|
+
if (n)
|
|
81
|
+
return n;
|
|
82
|
+
var s = r.displayName || r.name || "";
|
|
83
|
+
return s !== "" ? t + "(" + s + ")" : t;
|
|
84
|
+
}
|
|
85
|
+
function oe(e) {
|
|
86
|
+
return e.displayName || "Context";
|
|
87
|
+
}
|
|
88
|
+
function w(e) {
|
|
89
|
+
if (e == null)
|
|
90
|
+
return null;
|
|
91
|
+
if (typeof e.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
92
|
+
return e.displayName || e.name || null;
|
|
93
|
+
if (typeof e == "string")
|
|
94
|
+
return e;
|
|
95
|
+
switch (e) {
|
|
96
|
+
case g:
|
|
97
|
+
return "Fragment";
|
|
98
|
+
case y:
|
|
99
|
+
return "Portal";
|
|
100
|
+
case _:
|
|
101
|
+
return "Profiler";
|
|
102
|
+
case S:
|
|
103
|
+
return "StrictMode";
|
|
104
|
+
case T:
|
|
105
|
+
return "Suspense";
|
|
106
|
+
case p:
|
|
107
|
+
return "SuspenseList";
|
|
108
|
+
}
|
|
109
|
+
if (typeof e == "object")
|
|
110
|
+
switch (e.$$typeof) {
|
|
111
|
+
case x:
|
|
112
|
+
var r = e;
|
|
113
|
+
return oe(r) + ".Consumer";
|
|
114
|
+
case k:
|
|
115
|
+
var t = e;
|
|
116
|
+
return oe(t._context) + ".Provider";
|
|
117
|
+
case f:
|
|
118
|
+
return Ie(e, e.render, "ForwardRef");
|
|
119
|
+
case l:
|
|
120
|
+
var n = e.displayName || null;
|
|
121
|
+
return n !== null ? n : w(e.type) || "Memo";
|
|
122
|
+
case R: {
|
|
123
|
+
var s = e, c = s._payload, i = s._init;
|
|
124
|
+
try {
|
|
125
|
+
return w(i(c));
|
|
126
|
+
} catch {
|
|
127
|
+
return null;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return null;
|
|
132
|
+
}
|
|
133
|
+
var P = Object.assign, A = 0, ie, se, le, ce, ue, fe, de;
|
|
134
|
+
function ve() {
|
|
135
|
+
}
|
|
136
|
+
ve.__reactDisabledLog = !0;
|
|
137
|
+
function Le() {
|
|
138
|
+
{
|
|
139
|
+
if (A === 0) {
|
|
140
|
+
ie = console.log, se = console.info, le = console.warn, ce = console.error, ue = console.group, fe = console.groupCollapsed, de = console.groupEnd;
|
|
141
|
+
var e = {
|
|
142
|
+
configurable: !0,
|
|
143
|
+
enumerable: !0,
|
|
144
|
+
value: ve,
|
|
145
|
+
writable: !0
|
|
146
|
+
};
|
|
147
|
+
Object.defineProperties(console, {
|
|
148
|
+
info: e,
|
|
149
|
+
log: e,
|
|
150
|
+
warn: e,
|
|
151
|
+
error: e,
|
|
152
|
+
group: e,
|
|
153
|
+
groupCollapsed: e,
|
|
154
|
+
groupEnd: e
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
A++;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
function We() {
|
|
161
|
+
{
|
|
162
|
+
if (A--, A === 0) {
|
|
163
|
+
var e = {
|
|
164
|
+
configurable: !0,
|
|
165
|
+
enumerable: !0,
|
|
166
|
+
writable: !0
|
|
167
|
+
};
|
|
168
|
+
Object.defineProperties(console, {
|
|
169
|
+
log: P({}, e, {
|
|
170
|
+
value: ie
|
|
171
|
+
}),
|
|
172
|
+
info: P({}, e, {
|
|
173
|
+
value: se
|
|
174
|
+
}),
|
|
175
|
+
warn: P({}, e, {
|
|
176
|
+
value: le
|
|
177
|
+
}),
|
|
178
|
+
error: P({}, e, {
|
|
179
|
+
value: ce
|
|
180
|
+
}),
|
|
181
|
+
group: P({}, e, {
|
|
182
|
+
value: ue
|
|
183
|
+
}),
|
|
184
|
+
groupCollapsed: P({}, e, {
|
|
185
|
+
value: fe
|
|
186
|
+
}),
|
|
187
|
+
groupEnd: P({}, e, {
|
|
188
|
+
value: de
|
|
189
|
+
})
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
A < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
var K = O.ReactCurrentDispatcher, G;
|
|
196
|
+
function U(e, r, t) {
|
|
197
|
+
{
|
|
198
|
+
if (G === void 0)
|
|
199
|
+
try {
|
|
200
|
+
throw Error();
|
|
201
|
+
} catch (s) {
|
|
202
|
+
var n = s.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
+
G = n && n[1] || "";
|
|
204
|
+
}
|
|
205
|
+
return `
|
|
206
|
+
` + G + e;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
var z = !1, V;
|
|
210
|
+
{
|
|
211
|
+
var Ye = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
+
V = new Ye();
|
|
213
|
+
}
|
|
214
|
+
function pe(e, r) {
|
|
215
|
+
if (!e || z)
|
|
216
|
+
return "";
|
|
217
|
+
{
|
|
218
|
+
var t = V.get(e);
|
|
219
|
+
if (t !== void 0)
|
|
220
|
+
return t;
|
|
221
|
+
}
|
|
222
|
+
var n;
|
|
223
|
+
z = !0;
|
|
224
|
+
var s = Error.prepareStackTrace;
|
|
225
|
+
Error.prepareStackTrace = void 0;
|
|
226
|
+
var c;
|
|
227
|
+
c = K.current, K.current = null, Le();
|
|
228
|
+
try {
|
|
229
|
+
if (r) {
|
|
230
|
+
var i = function() {
|
|
231
|
+
throw Error();
|
|
232
|
+
};
|
|
233
|
+
if (Object.defineProperty(i.prototype, "props", {
|
|
234
|
+
set: function() {
|
|
235
|
+
throw Error();
|
|
236
|
+
}
|
|
237
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
|
+
try {
|
|
239
|
+
Reflect.construct(i, []);
|
|
240
|
+
} catch (b) {
|
|
241
|
+
n = b;
|
|
242
|
+
}
|
|
243
|
+
Reflect.construct(e, [], i);
|
|
244
|
+
} else {
|
|
245
|
+
try {
|
|
246
|
+
i.call();
|
|
247
|
+
} catch (b) {
|
|
248
|
+
n = b;
|
|
249
|
+
}
|
|
250
|
+
e.call(i.prototype);
|
|
251
|
+
}
|
|
252
|
+
} else {
|
|
253
|
+
try {
|
|
254
|
+
throw Error();
|
|
255
|
+
} catch (b) {
|
|
256
|
+
n = b;
|
|
257
|
+
}
|
|
258
|
+
e();
|
|
259
|
+
}
|
|
260
|
+
} catch (b) {
|
|
261
|
+
if (b && n && typeof b.stack == "string") {
|
|
262
|
+
for (var o = b.stack.split(`
|
|
263
|
+
`), m = n.stack.split(`
|
|
264
|
+
`), u = o.length - 1, d = m.length - 1; u >= 1 && d >= 0 && o[u] !== m[d]; )
|
|
265
|
+
d--;
|
|
266
|
+
for (; u >= 1 && d >= 0; u--, d--)
|
|
267
|
+
if (o[u] !== m[d]) {
|
|
268
|
+
if (u !== 1 || d !== 1)
|
|
269
|
+
do
|
|
270
|
+
if (u--, d--, d < 0 || o[u] !== m[d]) {
|
|
271
|
+
var j = `
|
|
272
|
+
` + o[u].replace(" at new ", " at ");
|
|
273
|
+
return e.displayName && j.includes("<anonymous>") && (j = j.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, j), j;
|
|
274
|
+
}
|
|
275
|
+
while (u >= 1 && d >= 0);
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
} finally {
|
|
280
|
+
z = !1, K.current = c, We(), Error.prepareStackTrace = s;
|
|
281
|
+
}
|
|
282
|
+
var F = e ? e.displayName || e.name : "", N = F ? U(F) : "";
|
|
283
|
+
return typeof e == "function" && V.set(e, N), N;
|
|
284
|
+
}
|
|
285
|
+
function Me(e, r, t) {
|
|
286
|
+
return pe(e, !1);
|
|
287
|
+
}
|
|
288
|
+
function Ue(e) {
|
|
289
|
+
var r = e.prototype;
|
|
290
|
+
return !!(r && r.isReactComponent);
|
|
291
|
+
}
|
|
292
|
+
function B(e, r, t) {
|
|
293
|
+
if (e == null)
|
|
294
|
+
return "";
|
|
295
|
+
if (typeof e == "function")
|
|
296
|
+
return pe(e, Ue(e));
|
|
297
|
+
if (typeof e == "string")
|
|
298
|
+
return U(e);
|
|
299
|
+
switch (e) {
|
|
300
|
+
case T:
|
|
301
|
+
return U("Suspense");
|
|
302
|
+
case p:
|
|
303
|
+
return U("SuspenseList");
|
|
304
|
+
}
|
|
305
|
+
if (typeof e == "object")
|
|
306
|
+
switch (e.$$typeof) {
|
|
307
|
+
case f:
|
|
308
|
+
return Me(e.render);
|
|
309
|
+
case l:
|
|
310
|
+
return B(e.type, r, t);
|
|
311
|
+
case R: {
|
|
312
|
+
var n = e, s = n._payload, c = n._init;
|
|
313
|
+
try {
|
|
314
|
+
return B(c(s), r, t);
|
|
315
|
+
} catch {
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
return "";
|
|
320
|
+
}
|
|
321
|
+
var $ = Object.prototype.hasOwnProperty, he = {}, ge = O.ReactDebugCurrentFrame;
|
|
322
|
+
function J(e) {
|
|
323
|
+
if (e) {
|
|
324
|
+
var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
|
|
325
|
+
ge.setExtraStackFrame(t);
|
|
326
|
+
} else
|
|
327
|
+
ge.setExtraStackFrame(null);
|
|
328
|
+
}
|
|
329
|
+
function Ve(e, r, t, n, s) {
|
|
330
|
+
{
|
|
331
|
+
var c = Function.call.bind($);
|
|
332
|
+
for (var i in e)
|
|
333
|
+
if (c(e, i)) {
|
|
334
|
+
var o = void 0;
|
|
335
|
+
try {
|
|
336
|
+
if (typeof e[i] != "function") {
|
|
337
|
+
var m = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
|
+
throw m.name = "Invariant Violation", m;
|
|
339
|
+
}
|
|
340
|
+
o = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
+
} catch (u) {
|
|
342
|
+
o = u;
|
|
343
|
+
}
|
|
344
|
+
o && !(o instanceof Error) && (J(s), h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof o), J(null)), o instanceof Error && !(o.message in he) && (he[o.message] = !0, J(s), h("Failed %s type: %s", t, o.message), J(null));
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
var Be = Array.isArray;
|
|
349
|
+
function H(e) {
|
|
350
|
+
return Be(e);
|
|
351
|
+
}
|
|
352
|
+
function Je(e) {
|
|
353
|
+
{
|
|
354
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
355
|
+
return t;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
function Qe(e) {
|
|
359
|
+
try {
|
|
360
|
+
return me(e), !1;
|
|
361
|
+
} catch {
|
|
362
|
+
return !0;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
function me(e) {
|
|
366
|
+
return "" + e;
|
|
367
|
+
}
|
|
368
|
+
function be(e) {
|
|
369
|
+
if (Qe(e))
|
|
370
|
+
return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), me(e);
|
|
371
|
+
}
|
|
372
|
+
var I = O.ReactCurrentOwner, Ke = {
|
|
373
|
+
key: !0,
|
|
374
|
+
ref: !0,
|
|
375
|
+
__self: !0,
|
|
376
|
+
__source: !0
|
|
377
|
+
}, ye, Re, X;
|
|
378
|
+
X = {};
|
|
379
|
+
function Ge(e) {
|
|
380
|
+
if ($.call(e, "ref")) {
|
|
381
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
382
|
+
if (r && r.isReactWarning)
|
|
383
|
+
return !1;
|
|
384
|
+
}
|
|
385
|
+
return e.ref !== void 0;
|
|
386
|
+
}
|
|
387
|
+
function ze(e) {
|
|
388
|
+
if ($.call(e, "key")) {
|
|
389
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
390
|
+
if (r && r.isReactWarning)
|
|
391
|
+
return !1;
|
|
392
|
+
}
|
|
393
|
+
return e.key !== void 0;
|
|
394
|
+
}
|
|
395
|
+
function He(e, r) {
|
|
396
|
+
if (typeof e.ref == "string" && I.current && r && I.current.stateNode !== r) {
|
|
397
|
+
var t = w(I.current.type);
|
|
398
|
+
X[t] || (h('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', w(I.current.type), e.ref), X[t] = !0);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
function Xe(e, r) {
|
|
402
|
+
{
|
|
403
|
+
var t = function() {
|
|
404
|
+
ye || (ye = !0, h("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
405
|
+
};
|
|
406
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
407
|
+
get: t,
|
|
408
|
+
configurable: !0
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
function Ze(e, r) {
|
|
413
|
+
{
|
|
414
|
+
var t = function() {
|
|
415
|
+
Re || (Re = !0, h("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
416
|
+
};
|
|
417
|
+
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
418
|
+
get: t,
|
|
419
|
+
configurable: !0
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
var er = function(e, r, t, n, s, c, i) {
|
|
424
|
+
var o = {
|
|
425
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
426
|
+
$$typeof: C,
|
|
427
|
+
// Built-in properties that belong on the element
|
|
428
|
+
type: e,
|
|
429
|
+
key: r,
|
|
430
|
+
ref: t,
|
|
431
|
+
props: i,
|
|
432
|
+
// Record the component responsible for creating this element.
|
|
433
|
+
_owner: c
|
|
434
|
+
};
|
|
435
|
+
return o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
436
|
+
configurable: !1,
|
|
437
|
+
enumerable: !1,
|
|
438
|
+
writable: !0,
|
|
439
|
+
value: !1
|
|
440
|
+
}), Object.defineProperty(o, "_self", {
|
|
441
|
+
configurable: !1,
|
|
442
|
+
enumerable: !1,
|
|
443
|
+
writable: !1,
|
|
444
|
+
value: n
|
|
445
|
+
}), Object.defineProperty(o, "_source", {
|
|
446
|
+
configurable: !1,
|
|
447
|
+
enumerable: !1,
|
|
448
|
+
writable: !1,
|
|
449
|
+
value: s
|
|
450
|
+
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
451
|
+
};
|
|
452
|
+
function rr(e, r, t, n, s) {
|
|
453
|
+
{
|
|
454
|
+
var c, i = {}, o = null, m = null;
|
|
455
|
+
t !== void 0 && (be(t), o = "" + t), ze(r) && (be(r.key), o = "" + r.key), Ge(r) && (m = r.ref, He(r, s));
|
|
456
|
+
for (c in r)
|
|
457
|
+
$.call(r, c) && !Ke.hasOwnProperty(c) && (i[c] = r[c]);
|
|
458
|
+
if (e && e.defaultProps) {
|
|
459
|
+
var u = e.defaultProps;
|
|
460
|
+
for (c in u)
|
|
461
|
+
i[c] === void 0 && (i[c] = u[c]);
|
|
462
|
+
}
|
|
463
|
+
if (o || m) {
|
|
464
|
+
var d = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
465
|
+
o && Xe(i, d), m && Ze(i, d);
|
|
466
|
+
}
|
|
467
|
+
return er(e, o, m, s, n, I.current, i);
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
var Z = O.ReactCurrentOwner, Ee = O.ReactDebugCurrentFrame;
|
|
471
|
+
function q(e) {
|
|
472
|
+
if (e) {
|
|
473
|
+
var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
|
|
474
|
+
Ee.setExtraStackFrame(t);
|
|
475
|
+
} else
|
|
476
|
+
Ee.setExtraStackFrame(null);
|
|
477
|
+
}
|
|
478
|
+
var ee;
|
|
479
|
+
ee = !1;
|
|
480
|
+
function re(e) {
|
|
481
|
+
return typeof e == "object" && e !== null && e.$$typeof === C;
|
|
482
|
+
}
|
|
483
|
+
function _e() {
|
|
484
|
+
{
|
|
485
|
+
if (Z.current) {
|
|
486
|
+
var e = w(Z.current.type);
|
|
487
|
+
if (e)
|
|
488
|
+
return `
|
|
489
|
+
|
|
490
|
+
Check the render method of \`` + e + "`.";
|
|
491
|
+
}
|
|
492
|
+
return "";
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
function tr(e) {
|
|
496
|
+
{
|
|
497
|
+
if (e !== void 0) {
|
|
498
|
+
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
|
|
499
|
+
return `
|
|
500
|
+
|
|
501
|
+
Check your code at ` + r + ":" + t + ".";
|
|
502
|
+
}
|
|
503
|
+
return "";
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
var xe = {};
|
|
507
|
+
function nr(e) {
|
|
508
|
+
{
|
|
509
|
+
var r = _e();
|
|
510
|
+
if (!r) {
|
|
511
|
+
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
512
|
+
t && (r = `
|
|
513
|
+
|
|
514
|
+
Check the top-level render call using <` + t + ">.");
|
|
515
|
+
}
|
|
516
|
+
return r;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
function je(e, r) {
|
|
520
|
+
{
|
|
521
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
522
|
+
return;
|
|
523
|
+
e._store.validated = !0;
|
|
524
|
+
var t = nr(r);
|
|
525
|
+
if (xe[t])
|
|
526
|
+
return;
|
|
527
|
+
xe[t] = !0;
|
|
528
|
+
var n = "";
|
|
529
|
+
e && e._owner && e._owner !== Z.current && (n = " It was passed a child from " + w(e._owner.type) + "."), q(e), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), q(null);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
function Ce(e, r) {
|
|
533
|
+
{
|
|
534
|
+
if (typeof e != "object")
|
|
535
|
+
return;
|
|
536
|
+
if (H(e))
|
|
537
|
+
for (var t = 0; t < e.length; t++) {
|
|
538
|
+
var n = e[t];
|
|
539
|
+
re(n) && je(n, r);
|
|
540
|
+
}
|
|
541
|
+
else if (re(e))
|
|
542
|
+
e._store && (e._store.validated = !0);
|
|
543
|
+
else if (e) {
|
|
544
|
+
var s = v(e);
|
|
545
|
+
if (typeof s == "function" && s !== e.entries)
|
|
546
|
+
for (var c = s.call(e), i; !(i = c.next()).done; )
|
|
547
|
+
re(i.value) && je(i.value, r);
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
function ar(e) {
|
|
552
|
+
{
|
|
553
|
+
var r = e.type;
|
|
554
|
+
if (r == null || typeof r == "string")
|
|
555
|
+
return;
|
|
556
|
+
var t;
|
|
557
|
+
if (typeof r == "function")
|
|
558
|
+
t = r.propTypes;
|
|
559
|
+
else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
|
|
560
|
+
// Inner props are checked in the reconciler.
|
|
561
|
+
r.$$typeof === l))
|
|
562
|
+
t = r.propTypes;
|
|
563
|
+
else
|
|
564
|
+
return;
|
|
565
|
+
if (t) {
|
|
566
|
+
var n = w(r);
|
|
567
|
+
Ve(t, e.props, "prop", n, e);
|
|
568
|
+
} else if (r.PropTypes !== void 0 && !ee) {
|
|
569
|
+
ee = !0;
|
|
570
|
+
var s = w(r);
|
|
571
|
+
h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
|
|
572
|
+
}
|
|
573
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
function or(e) {
|
|
577
|
+
{
|
|
578
|
+
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
579
|
+
var n = r[t];
|
|
580
|
+
if (n !== "children" && n !== "key") {
|
|
581
|
+
q(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), q(null);
|
|
582
|
+
break;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
e.ref !== null && (q(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), q(null));
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
var we = {};
|
|
589
|
+
function Te(e, r, t, n, s, c) {
|
|
590
|
+
{
|
|
591
|
+
var i = $e(e);
|
|
592
|
+
if (!i) {
|
|
593
|
+
var o = "";
|
|
594
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
595
|
+
var m = tr(s);
|
|
596
|
+
m ? o += m : o += _e();
|
|
597
|
+
var u;
|
|
598
|
+
e === null ? u = "null" : H(e) ? u = "array" : e !== void 0 && e.$$typeof === C ? (u = "<" + (w(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : u = typeof e, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", u, o);
|
|
599
|
+
}
|
|
600
|
+
var d = rr(e, r, t, s, c);
|
|
601
|
+
if (d == null)
|
|
602
|
+
return d;
|
|
603
|
+
if (i) {
|
|
604
|
+
var j = r.children;
|
|
605
|
+
if (j !== void 0)
|
|
606
|
+
if (n)
|
|
607
|
+
if (H(j)) {
|
|
608
|
+
for (var F = 0; F < j.length; F++)
|
|
609
|
+
Ce(j[F], e);
|
|
610
|
+
Object.freeze && Object.freeze(j);
|
|
611
|
+
} else
|
|
612
|
+
h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
613
|
+
else
|
|
614
|
+
Ce(j, e);
|
|
615
|
+
}
|
|
616
|
+
if ($.call(r, "key")) {
|
|
617
|
+
var N = w(e), b = Object.keys(r).filter(function(fr) {
|
|
618
|
+
return fr !== "key";
|
|
619
|
+
}), te = b.length > 0 ? "{key: someKey, " + b.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
620
|
+
if (!we[N + te]) {
|
|
621
|
+
var ur = b.length > 0 ? "{" + b.join(": ..., ") + ": ...}" : "{}";
|
|
622
|
+
h(`A props object containing a "key" prop is being spread into JSX:
|
|
623
|
+
let props = %s;
|
|
624
|
+
<%s {...props} />
|
|
625
|
+
React keys must be passed directly to JSX without using spread:
|
|
626
|
+
let props = %s;
|
|
627
|
+
<%s key={someKey} {...props} />`, te, N, ur, N), we[N + te] = !0;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
return e === g ? or(d) : ar(d), d;
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
function ir(e, r, t) {
|
|
634
|
+
return Te(e, r, t, !0);
|
|
635
|
+
}
|
|
636
|
+
function sr(e, r, t) {
|
|
637
|
+
return Te(e, r, t, !1);
|
|
638
|
+
}
|
|
639
|
+
var lr = sr, cr = ir;
|
|
640
|
+
Y.Fragment = g, Y.jsx = lr, Y.jsxs = cr;
|
|
641
|
+
}()), Y;
|
|
642
|
+
}
|
|
643
|
+
process.env.NODE_ENV === "production" ? ne.exports = pr() : ne.exports = hr();
|
|
644
|
+
var a = ne.exports;
|
|
645
|
+
async function gr(E, C = {}) {
|
|
646
|
+
const y = {
|
|
647
|
+
width: 300,
|
|
648
|
+
margin: 2,
|
|
649
|
+
color: { dark: "#000000", light: "#ffffff" },
|
|
650
|
+
errorCorrectionLevel: "M",
|
|
651
|
+
...C
|
|
652
|
+
};
|
|
653
|
+
if (!E || E.trim() === "")
|
|
654
|
+
throw new Error("输入内容不能为空");
|
|
655
|
+
try {
|
|
656
|
+
return await vr.toDataURL(E, y);
|
|
657
|
+
} catch (g) {
|
|
658
|
+
throw new Error(`生成二维码失败: ${g.message}`);
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
function mr(E, C = "qrcode.png") {
|
|
662
|
+
const y = document.createElement("a");
|
|
663
|
+
y.href = E, y.download = C, document.body.appendChild(y), y.click(), document.body.removeChild(y);
|
|
664
|
+
}
|
|
665
|
+
function Rr({ onClose: E, onMinimize: C, onMaximize: y }) {
|
|
666
|
+
const [g, S] = L("text"), [_, k] = L(""), [x, f] = L(""), [T, p] = L(""), [l, R] = L({
|
|
667
|
+
width: 300,
|
|
668
|
+
margin: 2,
|
|
669
|
+
color: "#000000",
|
|
670
|
+
bgColor: "#ffffff",
|
|
671
|
+
errorLevel: "M"
|
|
672
|
+
});
|
|
673
|
+
dr(() => {
|
|
674
|
+
_.trim() ? D() : f("");
|
|
675
|
+
}, [_, l, g]);
|
|
676
|
+
const D = async () => {
|
|
677
|
+
if (!_.trim()) {
|
|
678
|
+
f("");
|
|
679
|
+
return;
|
|
680
|
+
}
|
|
681
|
+
p("");
|
|
682
|
+
try {
|
|
683
|
+
const v = g === "url" && !_.match(/^https?:\/\//) ? `https://${_}` : _, O = await gr(v, {
|
|
684
|
+
width: l.width,
|
|
685
|
+
margin: l.margin,
|
|
686
|
+
color: { dark: l.color, light: l.bgColor },
|
|
687
|
+
errorCorrectionLevel: l.errorLevel
|
|
688
|
+
});
|
|
689
|
+
f(O);
|
|
690
|
+
} catch (v) {
|
|
691
|
+
p(v.message), f("");
|
|
692
|
+
}
|
|
693
|
+
}, M = () => {
|
|
694
|
+
if (x) {
|
|
695
|
+
const v = (/* @__PURE__ */ new Date()).getTime();
|
|
696
|
+
mr(x, `qrcode-${v}.png`);
|
|
697
|
+
}
|
|
698
|
+
}, Q = (v) => {
|
|
699
|
+
k(v.target.value);
|
|
700
|
+
};
|
|
701
|
+
return /* @__PURE__ */ a.jsxs("div", { className: "qrcode-plugin", children: [
|
|
702
|
+
/* @__PURE__ */ a.jsxs("div", { className: "qrcode-header", children: [
|
|
703
|
+
/* @__PURE__ */ a.jsx("h2", { children: "📱 二维码生成器" }),
|
|
704
|
+
E && /* @__PURE__ */ a.jsxs("div", { className: "qrcode-window-controls", children: [
|
|
705
|
+
/* @__PURE__ */ a.jsx("button", { onClick: C, title: "最小化", children: "─" }),
|
|
706
|
+
/* @__PURE__ */ a.jsx("button", { onClick: y, title: "最大化", children: "□" }),
|
|
707
|
+
/* @__PURE__ */ a.jsx("button", { onClick: E, title: "关闭", children: "✕" })
|
|
708
|
+
] })
|
|
709
|
+
] }),
|
|
710
|
+
/* @__PURE__ */ a.jsxs("div", { className: "qrcode-tabs", children: [
|
|
711
|
+
/* @__PURE__ */ a.jsx(
|
|
712
|
+
"button",
|
|
713
|
+
{
|
|
714
|
+
className: `qrcode-tab ${g === "text" ? "active" : ""}`,
|
|
715
|
+
onClick: () => S("text"),
|
|
716
|
+
children: "文本"
|
|
717
|
+
}
|
|
718
|
+
),
|
|
719
|
+
/* @__PURE__ */ a.jsx(
|
|
720
|
+
"button",
|
|
721
|
+
{
|
|
722
|
+
className: `qrcode-tab ${g === "url" ? "active" : ""}`,
|
|
723
|
+
onClick: () => S("url"),
|
|
724
|
+
children: "链接"
|
|
725
|
+
}
|
|
726
|
+
)
|
|
727
|
+
] }),
|
|
728
|
+
/* @__PURE__ */ a.jsxs("div", { className: "qrcode-content", children: [
|
|
729
|
+
/* @__PURE__ */ a.jsxs("div", { className: "qrcode-input-section", children: [
|
|
730
|
+
/* @__PURE__ */ a.jsx("label", { children: g === "text" ? "输入文本内容" : "输入链接地址" }),
|
|
731
|
+
/* @__PURE__ */ a.jsx(
|
|
732
|
+
"textarea",
|
|
733
|
+
{
|
|
734
|
+
value: _,
|
|
735
|
+
onChange: Q,
|
|
736
|
+
placeholder: g === "text" ? "请输入要生成二维码的文本内容..." : "请输入 URL 地址...",
|
|
737
|
+
className: "qrcode-textarea",
|
|
738
|
+
rows: 4
|
|
739
|
+
}
|
|
740
|
+
)
|
|
741
|
+
] }),
|
|
742
|
+
T && /* @__PURE__ */ a.jsxs("div", { className: "qrcode-error", children: [
|
|
743
|
+
"⚠️ ",
|
|
744
|
+
T
|
|
745
|
+
] }),
|
|
746
|
+
x && /* @__PURE__ */ a.jsx("div", { className: "qrcode-preview-section", children: /* @__PURE__ */ a.jsxs("div", { className: "qrcode-preview-card", children: [
|
|
747
|
+
/* @__PURE__ */ a.jsx(
|
|
748
|
+
"img",
|
|
749
|
+
{
|
|
750
|
+
src: x,
|
|
751
|
+
alt: "二维码",
|
|
752
|
+
className: "qrcode-image",
|
|
753
|
+
style: { width: `${l.width}px` }
|
|
754
|
+
}
|
|
755
|
+
),
|
|
756
|
+
/* @__PURE__ */ a.jsx(
|
|
757
|
+
"button",
|
|
758
|
+
{
|
|
759
|
+
className: "qrcode-download-btn",
|
|
760
|
+
onClick: M,
|
|
761
|
+
children: "📥 下载二维码"
|
|
762
|
+
}
|
|
763
|
+
)
|
|
764
|
+
] }) }),
|
|
765
|
+
/* @__PURE__ */ a.jsxs("div", { className: "qrcode-settings", children: [
|
|
766
|
+
/* @__PURE__ */ a.jsx("h3", { children: "⚙️ 设置" }),
|
|
767
|
+
/* @__PURE__ */ a.jsxs("div", { className: "qrcode-settings-grid", children: [
|
|
768
|
+
/* @__PURE__ */ a.jsxs("div", { className: "qrcode-setting-item", children: [
|
|
769
|
+
/* @__PURE__ */ a.jsxs("label", { children: [
|
|
770
|
+
"尺寸: ",
|
|
771
|
+
l.width,
|
|
772
|
+
"px"
|
|
773
|
+
] }),
|
|
774
|
+
/* @__PURE__ */ a.jsx(
|
|
775
|
+
"input",
|
|
776
|
+
{
|
|
777
|
+
type: "range",
|
|
778
|
+
min: "200",
|
|
779
|
+
max: "600",
|
|
780
|
+
step: "50",
|
|
781
|
+
value: l.width,
|
|
782
|
+
onChange: (v) => R({ ...l, width: Number(v.target.value) }),
|
|
783
|
+
className: "qrcode-slider"
|
|
784
|
+
}
|
|
785
|
+
)
|
|
786
|
+
] }),
|
|
787
|
+
/* @__PURE__ */ a.jsxs("div", { className: "qrcode-setting-item", children: [
|
|
788
|
+
/* @__PURE__ */ a.jsxs("label", { children: [
|
|
789
|
+
"边距: ",
|
|
790
|
+
l.margin
|
|
791
|
+
] }),
|
|
792
|
+
/* @__PURE__ */ a.jsx(
|
|
793
|
+
"input",
|
|
794
|
+
{
|
|
795
|
+
type: "range",
|
|
796
|
+
min: "0",
|
|
797
|
+
max: "4",
|
|
798
|
+
step: "1",
|
|
799
|
+
value: l.margin,
|
|
800
|
+
onChange: (v) => R({ ...l, margin: Number(v.target.value) }),
|
|
801
|
+
className: "qrcode-slider"
|
|
802
|
+
}
|
|
803
|
+
)
|
|
804
|
+
] }),
|
|
805
|
+
/* @__PURE__ */ a.jsxs("div", { className: "qrcode-setting-item", children: [
|
|
806
|
+
/* @__PURE__ */ a.jsx("label", { children: "前景色" }),
|
|
807
|
+
/* @__PURE__ */ a.jsx(
|
|
808
|
+
"input",
|
|
809
|
+
{
|
|
810
|
+
type: "color",
|
|
811
|
+
value: l.color,
|
|
812
|
+
onChange: (v) => R({ ...l, color: v.target.value }),
|
|
813
|
+
className: "qrcode-color-picker"
|
|
814
|
+
}
|
|
815
|
+
)
|
|
816
|
+
] }),
|
|
817
|
+
/* @__PURE__ */ a.jsxs("div", { className: "qrcode-setting-item", children: [
|
|
818
|
+
/* @__PURE__ */ a.jsx("label", { children: "背景色" }),
|
|
819
|
+
/* @__PURE__ */ a.jsx(
|
|
820
|
+
"input",
|
|
821
|
+
{
|
|
822
|
+
type: "color",
|
|
823
|
+
value: l.bgColor,
|
|
824
|
+
onChange: (v) => R({ ...l, bgColor: v.target.value }),
|
|
825
|
+
className: "qrcode-color-picker"
|
|
826
|
+
}
|
|
827
|
+
)
|
|
828
|
+
] }),
|
|
829
|
+
/* @__PURE__ */ a.jsxs("div", { className: "qrcode-setting-item", children: [
|
|
830
|
+
/* @__PURE__ */ a.jsx("label", { children: "容错率" }),
|
|
831
|
+
/* @__PURE__ */ a.jsxs(
|
|
832
|
+
"select",
|
|
833
|
+
{
|
|
834
|
+
value: l.errorLevel,
|
|
835
|
+
onChange: (v) => R({ ...l, errorLevel: v.target.value }),
|
|
836
|
+
className: "qrcode-select",
|
|
837
|
+
children: [
|
|
838
|
+
/* @__PURE__ */ a.jsx("option", { value: "L", children: "L (7%)" }),
|
|
839
|
+
/* @__PURE__ */ a.jsx("option", { value: "M", children: "M (15%)" }),
|
|
840
|
+
/* @__PURE__ */ a.jsx("option", { value: "Q", children: "Q (25%)" }),
|
|
841
|
+
/* @__PURE__ */ a.jsx("option", { value: "H", children: "H (30%)" })
|
|
842
|
+
]
|
|
843
|
+
}
|
|
844
|
+
)
|
|
845
|
+
] })
|
|
846
|
+
] })
|
|
847
|
+
] })
|
|
848
|
+
] })
|
|
849
|
+
] });
|
|
850
|
+
}
|
|
851
|
+
const Er = {
|
|
852
|
+
id: "com.desktop-tool.plugin.qrcode",
|
|
853
|
+
name: "二维码生成器",
|
|
854
|
+
version: "1.0.0",
|
|
855
|
+
description: "强大的二维码生成工具,支持文本、链接等多种格式",
|
|
856
|
+
author: "Desktop Tool",
|
|
857
|
+
icon: "📱",
|
|
858
|
+
category: "工具",
|
|
859
|
+
permissions: []
|
|
860
|
+
};
|
|
861
|
+
export {
|
|
862
|
+
Rr as default,
|
|
863
|
+
Er as manifest
|
|
864
|
+
};
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.qrcode-plugin{display:flex;flex-direction:column;gap:20px;padding:20px;max-width:900px;margin:0 auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.qrcode-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.qrcode-header h2{margin:0;font-size:24px;color:#333}.qrcode-window-controls{display:flex;gap:8px}.qrcode-window-controls button{width:32px;height:32px;border:none;background:#f5f5f5;border-radius:6px;cursor:pointer;font-size:14px;transition:background .2s}.qrcode-window-controls button:hover{background:#e0e0e0}.qrcode-tabs{display:flex;gap:8px;border-bottom:2px solid #e0e0e0}.qrcode-tab{padding:10px 20px;background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;font-size:15px;font-weight:500;color:#666;transition:all .2s;margin-bottom:-2px}.qrcode-tab:hover{color:#06c}.qrcode-tab.active{color:#06c;border-bottom-color:#06c}.qrcode-content{display:flex;flex-direction:column;gap:20px}.qrcode-input-section{display:flex;flex-direction:column;gap:8px}.qrcode-input-section label{font-weight:500;color:#333;font-size:14px}.qrcode-textarea{width:100%;padding:12px;border:1px solid #ddd;border-radius:8px;font-size:14px;font-family:inherit;resize:vertical;transition:border-color .2s}.qrcode-textarea:focus{outline:none;border-color:#06c}.qrcode-error{padding:12px 16px;background:#ffe6e6;color:#dc3545;border-radius:8px;border:1px solid #ffc9c9;font-size:14px}.qrcode-preview-section{display:flex;justify-content:center}.qrcode-preview-card{display:flex;flex-direction:column;align-items:center;gap:16px;padding:24px;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);border-radius:16px;box-shadow:0 8px 24px #667eea4d}.qrcode-image{max-width:100%;height:auto;border-radius:8px;background:white;padding:16px}.qrcode-download-btn{padding:12px 24px;background:white;color:#667eea;border:none;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;transition:all .2s;box-shadow:0 2px 8px #0000001a}.qrcode-download-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.qrcode-settings{padding:20px;background:#f9f9f9;border-radius:12px}.qrcode-settings h3{margin:0 0 16px;font-size:16px;color:#333}.qrcode-settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.qrcode-setting-item{display:flex;flex-direction:column;gap:8px}.qrcode-setting-item label{font-size:13px;font-weight:500;color:#555}.qrcode-slider{width:100%;height:6px;border-radius:3px;background:#ddd;outline:none;-webkit-appearance:none}.qrcode-slider::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:#0066CC;cursor:pointer;transition:all .2s}.qrcode-slider::-webkit-slider-thumb:hover{transform:scale(1.2)}.qrcode-slider::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#0066CC;cursor:pointer;border:none}.qrcode-color-picker{width:60px;height:40px;border:1px solid #ddd;border-radius:6px;cursor:pointer;padding:2px}.qrcode-select{padding:8px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px;background:white;cursor:pointer}.qrcode-select:focus{outline:none;border-color:#06c}
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "desktop-tool-pl-qrcode",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "强大的二维码生成工具",
|
|
5
|
-
"keywords": [
|
|
5
|
+
"keywords": [
|
|
6
|
+
"desktop-tool-plugin",
|
|
7
|
+
"qrcode",
|
|
8
|
+
"二维码"
|
|
9
|
+
],
|
|
6
10
|
"author": "Desktop Tool",
|
|
7
11
|
"license": "MIT",
|
|
8
12
|
"type": "module",
|