@vuetify/vue-repl 1.4.0 → 1.4.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/{vue-repl.d.ts → repl.d.ts} +0 -0
- package/dist/style.css +2 -2
- package/dist/vue-repl.js +141 -149
- package/package.json +1 -1
|
File without changes
|
package/dist/style.css
CHANGED
|
@@ -726,8 +726,8 @@ pre[data-v-92411507] {
|
|
|
726
726
|
position: relative;
|
|
727
727
|
}
|
|
728
728
|
|
|
729
|
-
.iframe-container[data-v-
|
|
730
|
-
.iframe-container[data-v-
|
|
729
|
+
.iframe-container[data-v-8331ee9d],
|
|
730
|
+
.iframe-container[data-v-8331ee9d] iframe {
|
|
731
731
|
width: 100%;
|
|
732
732
|
height: 100%;
|
|
733
733
|
border: none;
|
package/dist/vue-repl.js
CHANGED
|
@@ -14187,177 +14187,168 @@ function requireXmlFold () {
|
|
|
14187
14187
|
|
|
14188
14188
|
var foldcode = {exports: {}};
|
|
14189
14189
|
|
|
14190
|
-
|
|
14191
|
-
|
|
14192
|
-
|
|
14193
|
-
if (hasRequiredFoldcode) return foldcode.exports;
|
|
14194
|
-
hasRequiredFoldcode = 1;
|
|
14195
|
-
(function (module, exports) {
|
|
14196
|
-
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
14197
|
-
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
14190
|
+
(function (module, exports) {
|
|
14191
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
14192
|
+
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
14198
14193
|
|
|
14199
|
-
|
|
14200
|
-
|
|
14201
|
-
|
|
14194
|
+
(function(mod) {
|
|
14195
|
+
mod(requireCodemirror());
|
|
14196
|
+
})(function(CodeMirror) {
|
|
14202
14197
|
|
|
14203
|
-
|
|
14204
|
-
|
|
14205
|
-
|
|
14206
|
-
|
|
14207
|
-
|
|
14208
|
-
|
|
14209
|
-
|
|
14210
|
-
|
|
14211
|
-
|
|
14212
|
-
|
|
14213
|
-
|
|
14214
|
-
|
|
14215
|
-
|
|
14216
|
-
|
|
14217
|
-
|
|
14218
|
-
|
|
14219
|
-
|
|
14220
|
-
|
|
14221
|
-
|
|
14222
|
-
|
|
14223
|
-
|
|
14224
|
-
|
|
14225
|
-
|
|
14226
|
-
|
|
14227
|
-
|
|
14198
|
+
function doFold(cm, pos, options, force) {
|
|
14199
|
+
if (options && options.call) {
|
|
14200
|
+
var finder = options;
|
|
14201
|
+
options = null;
|
|
14202
|
+
} else {
|
|
14203
|
+
var finder = getOption(cm, options, "rangeFinder");
|
|
14204
|
+
}
|
|
14205
|
+
if (typeof pos == "number") pos = CodeMirror.Pos(pos, 0);
|
|
14206
|
+
var minSize = getOption(cm, options, "minFoldSize");
|
|
14207
|
+
|
|
14208
|
+
function getRange(allowFolded) {
|
|
14209
|
+
var range = finder(cm, pos);
|
|
14210
|
+
if (!range || range.to.line - range.from.line < minSize) return null;
|
|
14211
|
+
if (force === "fold") return range;
|
|
14212
|
+
|
|
14213
|
+
var marks = cm.findMarksAt(range.from);
|
|
14214
|
+
for (var i = 0; i < marks.length; ++i) {
|
|
14215
|
+
if (marks[i].__isFold) {
|
|
14216
|
+
if (!allowFolded) return null;
|
|
14217
|
+
range.cleared = true;
|
|
14218
|
+
marks[i].clear();
|
|
14219
|
+
}
|
|
14220
|
+
}
|
|
14221
|
+
return range;
|
|
14222
|
+
}
|
|
14228
14223
|
|
|
14229
|
-
|
|
14230
|
-
|
|
14231
|
-
|
|
14232
|
-
|
|
14233
|
-
|
|
14234
|
-
|
|
14224
|
+
var range = getRange(true);
|
|
14225
|
+
if (getOption(cm, options, "scanUp")) while (!range && pos.line > cm.firstLine()) {
|
|
14226
|
+
pos = CodeMirror.Pos(pos.line - 1, 0);
|
|
14227
|
+
range = getRange(false);
|
|
14228
|
+
}
|
|
14229
|
+
if (!range || range.cleared || force === "unfold") return;
|
|
14235
14230
|
|
|
14236
|
-
|
|
14237
|
-
|
|
14238
|
-
|
|
14239
|
-
|
|
14240
|
-
|
|
14241
|
-
|
|
14242
|
-
|
|
14243
|
-
|
|
14244
|
-
|
|
14245
|
-
|
|
14246
|
-
|
|
14247
|
-
|
|
14248
|
-
|
|
14249
|
-
|
|
14250
|
-
|
|
14231
|
+
var myWidget = makeWidget(cm, options, range);
|
|
14232
|
+
CodeMirror.on(myWidget, "mousedown", function(e) {
|
|
14233
|
+
myRange.clear();
|
|
14234
|
+
CodeMirror.e_preventDefault(e);
|
|
14235
|
+
});
|
|
14236
|
+
var myRange = cm.markText(range.from, range.to, {
|
|
14237
|
+
replacedWith: myWidget,
|
|
14238
|
+
clearOnEnter: getOption(cm, options, "clearOnEnter"),
|
|
14239
|
+
__isFold: true
|
|
14240
|
+
});
|
|
14241
|
+
myRange.on("clear", function(from, to) {
|
|
14242
|
+
CodeMirror.signal(cm, "unfold", cm, from, to);
|
|
14243
|
+
});
|
|
14244
|
+
CodeMirror.signal(cm, "fold", cm, range.from, range.to);
|
|
14245
|
+
}
|
|
14251
14246
|
|
|
14252
|
-
|
|
14253
|
-
|
|
14247
|
+
function makeWidget(cm, options, range) {
|
|
14248
|
+
var widget = getOption(cm, options, "widget");
|
|
14254
14249
|
|
|
14255
|
-
|
|
14256
|
-
|
|
14257
|
-
|
|
14250
|
+
if (typeof widget == "function") {
|
|
14251
|
+
widget = widget(range.from, range.to);
|
|
14252
|
+
}
|
|
14258
14253
|
|
|
14259
|
-
|
|
14260
|
-
|
|
14261
|
-
|
|
14262
|
-
|
|
14263
|
-
|
|
14264
|
-
|
|
14265
|
-
|
|
14266
|
-
|
|
14267
|
-
|
|
14268
|
-
|
|
14254
|
+
if (typeof widget == "string") {
|
|
14255
|
+
var text = document.createTextNode(widget);
|
|
14256
|
+
widget = document.createElement("span");
|
|
14257
|
+
widget.appendChild(text);
|
|
14258
|
+
widget.className = "CodeMirror-foldmarker";
|
|
14259
|
+
} else if (widget) {
|
|
14260
|
+
widget = widget.cloneNode(true);
|
|
14261
|
+
}
|
|
14262
|
+
return widget;
|
|
14263
|
+
}
|
|
14269
14264
|
|
|
14270
|
-
|
|
14271
|
-
|
|
14272
|
-
|
|
14273
|
-
|
|
14265
|
+
// Clumsy backwards-compatible interface
|
|
14266
|
+
CodeMirror.newFoldFunction = function(rangeFinder, widget) {
|
|
14267
|
+
return function(cm, pos) { doFold(cm, pos, {rangeFinder: rangeFinder, widget: widget}); };
|
|
14268
|
+
};
|
|
14274
14269
|
|
|
14275
|
-
|
|
14276
|
-
|
|
14277
|
-
|
|
14278
|
-
|
|
14270
|
+
// New-style interface
|
|
14271
|
+
CodeMirror.defineExtension("foldCode", function(pos, options, force) {
|
|
14272
|
+
doFold(this, pos, options, force);
|
|
14273
|
+
});
|
|
14279
14274
|
|
|
14280
|
-
|
|
14281
|
-
|
|
14282
|
-
|
|
14283
|
-
|
|
14284
|
-
|
|
14275
|
+
CodeMirror.defineExtension("isFolded", function(pos) {
|
|
14276
|
+
var marks = this.findMarksAt(pos);
|
|
14277
|
+
for (var i = 0; i < marks.length; ++i)
|
|
14278
|
+
if (marks[i].__isFold) return true;
|
|
14279
|
+
});
|
|
14285
14280
|
|
|
14286
|
-
|
|
14287
|
-
|
|
14288
|
-
|
|
14289
|
-
|
|
14290
|
-
|
|
14291
|
-
|
|
14292
|
-
|
|
14293
|
-
|
|
14294
|
-
|
|
14295
|
-
|
|
14296
|
-
|
|
14297
|
-
|
|
14298
|
-
|
|
14299
|
-
|
|
14300
|
-
|
|
14301
|
-
|
|
14302
|
-
|
|
14303
|
-
|
|
14304
|
-
|
|
14305
|
-
|
|
14306
|
-
|
|
14281
|
+
CodeMirror.commands.toggleFold = function(cm) {
|
|
14282
|
+
cm.foldCode(cm.getCursor());
|
|
14283
|
+
};
|
|
14284
|
+
CodeMirror.commands.fold = function(cm) {
|
|
14285
|
+
cm.foldCode(cm.getCursor(), null, "fold");
|
|
14286
|
+
};
|
|
14287
|
+
CodeMirror.commands.unfold = function(cm) {
|
|
14288
|
+
cm.foldCode(cm.getCursor(), { scanUp: false }, "unfold");
|
|
14289
|
+
};
|
|
14290
|
+
CodeMirror.commands.foldAll = function(cm) {
|
|
14291
|
+
cm.operation(function() {
|
|
14292
|
+
for (var i = cm.firstLine(), e = cm.lastLine(); i <= e; i++)
|
|
14293
|
+
cm.foldCode(CodeMirror.Pos(i, 0), { scanUp: false }, "fold");
|
|
14294
|
+
});
|
|
14295
|
+
};
|
|
14296
|
+
CodeMirror.commands.unfoldAll = function(cm) {
|
|
14297
|
+
cm.operation(function() {
|
|
14298
|
+
for (var i = cm.firstLine(), e = cm.lastLine(); i <= e; i++)
|
|
14299
|
+
cm.foldCode(CodeMirror.Pos(i, 0), { scanUp: false }, "unfold");
|
|
14300
|
+
});
|
|
14301
|
+
};
|
|
14307
14302
|
|
|
14308
|
-
|
|
14309
|
-
|
|
14310
|
-
|
|
14311
|
-
|
|
14312
|
-
|
|
14313
|
-
|
|
14314
|
-
|
|
14315
|
-
|
|
14316
|
-
|
|
14303
|
+
CodeMirror.registerHelper("fold", "combine", function() {
|
|
14304
|
+
var funcs = Array.prototype.slice.call(arguments, 0);
|
|
14305
|
+
return function(cm, start) {
|
|
14306
|
+
for (var i = 0; i < funcs.length; ++i) {
|
|
14307
|
+
var found = funcs[i](cm, start);
|
|
14308
|
+
if (found) return found;
|
|
14309
|
+
}
|
|
14310
|
+
};
|
|
14311
|
+
});
|
|
14317
14312
|
|
|
14318
|
-
|
|
14319
|
-
|
|
14320
|
-
|
|
14321
|
-
|
|
14322
|
-
|
|
14323
|
-
|
|
14324
|
-
|
|
14313
|
+
CodeMirror.registerHelper("fold", "auto", function(cm, start) {
|
|
14314
|
+
var helpers = cm.getHelpers(start, "fold");
|
|
14315
|
+
for (var i = 0; i < helpers.length; i++) {
|
|
14316
|
+
var cur = helpers[i](cm, start);
|
|
14317
|
+
if (cur) return cur;
|
|
14318
|
+
}
|
|
14319
|
+
});
|
|
14325
14320
|
|
|
14326
|
-
|
|
14327
|
-
|
|
14328
|
-
|
|
14329
|
-
|
|
14330
|
-
|
|
14331
|
-
|
|
14332
|
-
|
|
14321
|
+
var defaultOptions = {
|
|
14322
|
+
rangeFinder: CodeMirror.fold.auto,
|
|
14323
|
+
widget: "\u2194",
|
|
14324
|
+
minFoldSize: 0,
|
|
14325
|
+
scanUp: false,
|
|
14326
|
+
clearOnEnter: true
|
|
14327
|
+
};
|
|
14333
14328
|
|
|
14334
|
-
|
|
14329
|
+
CodeMirror.defineOption("foldOptions", null);
|
|
14335
14330
|
|
|
14336
|
-
|
|
14337
|
-
|
|
14338
|
-
|
|
14339
|
-
|
|
14340
|
-
|
|
14341
|
-
|
|
14342
|
-
|
|
14343
|
-
|
|
14331
|
+
function getOption(cm, options, name) {
|
|
14332
|
+
if (options && options[name] !== undefined)
|
|
14333
|
+
return options[name];
|
|
14334
|
+
var editorOptions = cm.options.foldOptions;
|
|
14335
|
+
if (editorOptions && editorOptions[name] !== undefined)
|
|
14336
|
+
return editorOptions[name];
|
|
14337
|
+
return defaultOptions[name];
|
|
14338
|
+
}
|
|
14344
14339
|
|
|
14345
|
-
|
|
14346
|
-
|
|
14347
|
-
|
|
14348
|
-
|
|
14340
|
+
CodeMirror.defineExtension("foldOption", function(options, name) {
|
|
14341
|
+
return getOption(this, options, name);
|
|
14342
|
+
});
|
|
14343
|
+
});
|
|
14349
14344
|
} ());
|
|
14350
|
-
return foldcode.exports;
|
|
14351
|
-
}
|
|
14352
|
-
|
|
14353
|
-
requireFoldcode();
|
|
14354
14345
|
|
|
14355
14346
|
(function (module, exports) {
|
|
14356
14347
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
14357
14348
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
14358
14349
|
|
|
14359
14350
|
(function(mod) {
|
|
14360
|
-
mod(requireCodemirror(),
|
|
14351
|
+
mod(requireCodemirror(), foldcode.exports);
|
|
14361
14352
|
})(function(CodeMirror) {
|
|
14362
14353
|
|
|
14363
14354
|
CodeMirror.defineOption("foldGutter", false, function(cm, val, old) {
|
|
@@ -15369,6 +15360,7 @@ if (window.__app__) window.__app__.unmount()
|
|
|
15369
15360
|
} catch (e) {
|
|
15370
15361
|
runtimeError.value = e.message;
|
|
15371
15362
|
}
|
|
15363
|
+
console.log(runtimeError.value);
|
|
15372
15364
|
}
|
|
15373
15365
|
return (_ctx, _cache) => {
|
|
15374
15366
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
@@ -15389,9 +15381,9 @@ if (window.__app__) window.__app__.unmount()
|
|
|
15389
15381
|
}
|
|
15390
15382
|
});
|
|
15391
15383
|
|
|
15392
|
-
const
|
|
15384
|
+
const Preview_vue_vue_type_style_index_0_scoped_8331ee9d_lang = '';
|
|
15393
15385
|
|
|
15394
|
-
const Preview = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
15386
|
+
const Preview = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-8331ee9d"]]);
|
|
15395
15387
|
|
|
15396
15388
|
const _hoisted_1 = { class: "output-container" };
|
|
15397
15389
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|