flint-tools
Advanced tools
Comparing version 1.0.20 to 1.0.21
@@ -7,2 +7,3 @@ function flintRun_tools(node, opts, cb) { | ||
(function() { Flint.hotload('/Users/nw/flint/apps/tools/errors.js', function(exports) { | ||
'use strict';var tools = window._DT; | ||
var split = function split(s, i) {return [s.substring(0, i), s.substring(i, i + 1), s.substring(i + 1)];}; | ||
@@ -63,3 +64,3 @@ var propsMatch = /view\.props\./g; | ||
Flint.view("Errors", "528823583", function (view, on) { | ||
Flint.view("Errors", "-896829637", function (view, on) { | ||
var error = null; | ||
@@ -92,18 +93,15 @@ var compileError = null; | ||
window._DT.on('compile:error', function () { | ||
tools.on('compile:error', function () { | ||
view.update(runtimeError = null); | ||
view.update(compileError = window._DT.data.error); | ||
view.update(compileError = tools.data.error); | ||
setError();}); | ||
window._DT.on('runtime:error', function () { | ||
console.log("got runtime error", window._DT.data); | ||
// on multiple errors, prefer the first | ||
if (runtimeError) return; | ||
tools.on('runtime:error', function () { | ||
view.update(compileError = null); | ||
view.update(runtimeError = window._DT.data); | ||
view.update(runtimeError = tools.data); | ||
setError();}); | ||
window._DT.on('runtime:success', function () { | ||
tools.on('runtime:success', function () { | ||
view.update(runtimeError = null); | ||
@@ -113,3 +111,3 @@ setError();}); | ||
window._DT.on('compile:success', function () { | ||
tools.on('compile:success', function () { | ||
view.update(compileError = null); | ||
@@ -126,12 +124,18 @@ setError();}); | ||
return function () {return ( | ||
view.el(3966, "Flint.ErrorsWrapper", {view: view}, | ||
view.el(3967, "ErrorMessage", {error: error}) | ||
view.el(0, "Flint.ErrorsWrapper", {view: view}, | ||
view.el(1, "ErrorMessage", { | ||
error: error, | ||
runtime: runtimeError, | ||
compile: compileError}) | ||
));};}); | ||
));};}); | ||
Flint.view("ErrorMessage", "-2049881783", function (view, on) { | ||
Flint.view("ErrorMessage", "-1978997301", function (view, on) { | ||
var last = function last(arr) {return arr[arr.length - 1];}; | ||
var fileName = function fileName(url) {return url && last(url.split('/'));}; | ||
var getLine = function getLine(err) {return err && (err.line || err.loc && err.loc.line);}; | ||
var getLine = function getLine(err) {return err && (err.line || err.loc && err.loc.line) + ( | ||
view.props.runtime ? -1 : 0);}; | ||
var devHeight = 0; // 34 with bar | ||
@@ -228,5 +232,5 @@ var closedHeight = 55; | ||
return function () {return ( | ||
view.el(3968, "Flint.ErrorMessageWrapper", {view: view}, | ||
view.props.error && view.el(3969, "inner", {if: view.props.error}, | ||
view.el(3970, "where", null, | ||
view.el(2, "Flint.ErrorMessageWrapper", {view: view}, | ||
view.props.error && view.el(3, "inner", {if: view.props.error}, | ||
view.el(4, "where", null, | ||
fileName(view.props.error.file || view.props.error.fileName), | ||
@@ -236,8 +240,8 @@ line && ' line ' + line | ||
' ', | ||
view.el(3971, "errorTitle", null, | ||
view.el(5, "errorTitle", null, | ||
view.props.error.niceMessage || view.props.error.message, | ||
view.props.error.niceStack && | ||
view.el(3972, "niceStack", null, | ||
view.el(6, "niceStack", null, | ||
view.props.error.niceStack[0], | ||
view.el(3973, "errCol", null, view.props.error.niceStack[1]), | ||
view.el(7, "errCol", null, view.props.error.niceStack[1]), | ||
view.props.error.niceStack[2] | ||
@@ -263,9 +267,9 @@ ) | ||
return function () {return ( | ||
view.el(3974, "Flint.ErrorIconWrapper", {view: view}, | ||
view.el(3975, "svg", {viewBox: "0 0 27.963 27.963"}, | ||
view.el(3976, "path", {d: "M13.983,0C6.261,0,0.001,6.259,0.001,13.979c0,7.724,6.26,13.984,13.982,13.984s13.98-6.261,13.98-13.984\\n C27.963,6.259,21.705,0,13.983,0z M13.983,26.531c-6.933,0-12.55-5.62-12.55-12.553c0-6.93,5.617-12.548,12.55-12.548\\n c6.931,0,12.549,5.618,12.549,12.548C26.531,20.911,20.913,26.531,13.983,26.531z"}), | ||
view.el(8, "Flint.ErrorIconWrapper", {view: view}, | ||
view.el(9, "svg", {viewBox: "0 0 27.963 27.963"}, | ||
view.el(10, "path", {d: "M13.983,0C6.261,0,0.001,6.259,0.001,13.979c0,7.724,6.26,13.984,13.982,13.984s13.98-6.261,13.98-13.984\\n C27.963,6.259,21.705,0,13.983,0z M13.983,26.531c-6.933,0-12.55-5.62-12.55-12.553c0-6.93,5.617-12.548,12.55-12.548\\n c6.931,0,12.549,5.618,12.549,12.548C26.531,20.911,20.913,26.531,13.983,26.531z"}), | ||
view.el(3977, "polygon", {points: "15.579,17.158 16.191,4.579 11.804,4.579 12.414,17.158"}), | ||
view.el(3978, "path", {d: "M13.998,18.546c-1.471,0-2.5,1.029-2.5,2.526c0,1.443,0.999,2.528,2.444,2.528h0.056c1.499,0,2.469-1.085,2.469-2.528\\n C16.441,19.575,15.468,18.546,13.998,18.546z"}) | ||
view.el(11, "polygon", {points: "15.579,17.158 16.191,4.579 11.804,4.579 12.414,17.158"}), | ||
view.el(12, "path", {d: "M13.998,18.546c-1.471,0-2.5,1.029-2.5,2.526c0,1.443,0.999,2.528,2.444,2.528h0.056c1.499,0,2.469-1.085,2.469-2.528\\n C16.441,19.575,15.468,18.546,13.998,18.546z"}) | ||
@@ -276,3 +280,3 @@ ) | ||
(function() { Flint.hotload('/Users/nw/flint/apps/tools/main.js', function(exports) { | ||
Flint.view("Main", "-993837229", function (view, on) { | ||
"use strict";Flint.view("Main", "-993837229", function (view, on) { | ||
view.update(view.styles["$"] = function (_index) {return false || { | ||
@@ -287,9 +291,9 @@ position: 'absolute', | ||
return function () {return ( | ||
view.el(3979, "Flint.MainWrapper", {view: view}, | ||
view.el(3980, "Errors", null), | ||
view.el(3981, "Installer", null) | ||
view.el(13, "Flint.MainWrapper", {view: view}, | ||
view.el(14, "Errors", null), | ||
view.el(15, "Installer", null) | ||
));};});;return exports }) })(); | ||
(function() { Flint.hotload('/Users/nw/flint/apps/tools/modal.js', function(exports) { | ||
Flint.view("Modal", "-669865647", function (view, on) { | ||
"use strict";Flint.view("Modal", "-669865647", function (view, on) { | ||
view.update(view.styles["$"] = function (_index) {return false || { | ||
@@ -338,7 +342,7 @@ position: 'absolute', | ||
return function () {return ( | ||
view.el(3982, "Flint.ModalWrapper", {view: view}, | ||
view.el(3983, "modal", null, | ||
view.el(3984, "close", {onClick: view.props.onClose}, "X"), | ||
view.props.title && view.el(3985, "title", {if: view.props.title}, view.props.title), | ||
view.el(3986, "message", null, view.props.children) | ||
view.el(16, "Flint.ModalWrapper", {view: view}, | ||
view.el(17, "modal", null, | ||
view.el(18, "close", {onClick: view.props.onClose}, "X"), | ||
view.props.title && view.el(19, "title", {if: view.props.title}, view.props.title), | ||
view.el(20, "message", null, view.props.children) | ||
) | ||
@@ -348,3 +352,3 @@ | ||
(function() { Flint.hotload('/Users/nw/flint/apps/tools/npm/installer.js', function(exports) { | ||
var tools = window._DT; | ||
"use strict";var tools = window._DT; | ||
@@ -403,3 +407,3 @@ Flint.view("Installer", "444341844", function (view, on) { | ||
case 3:return error;break; | ||
case 4:return view.el(3987, "Versions", { | ||
case 4:return view.el(21, "Versions", { | ||
versions: versions, | ||
@@ -413,8 +417,8 @@ onSelect: selectVersion}); | ||
return function () {return ( | ||
view.el(3988, "Flint.InstallerWrapper", {view: view}, | ||
view.el(3989, "Modal", { | ||
view.el(22, "Flint.InstallerWrapper", {view: view}, | ||
view.el(23, "Modal", { | ||
open: state > 0, | ||
onClose: closeModal, | ||
title: title(state)}, | ||
false && state < 2 && view.el(3990, "InstallerLoading", {if: false && state < 2}), | ||
false && state < 2 && view.el(24, "InstallerLoading", {if: false && state < 2}), | ||
body(state) | ||
@@ -437,12 +441,12 @@ ) | ||
return function () {return ( | ||
view.el(3991, "Flint.InstallerLoadingWrapper", {view: view}, | ||
view.el(3992, "svg", {viewBox: "0 14 32 18", width: "32", height: "4", fill: "#f20", preserveAspectRatio: "none"}, | ||
view.el(3993, "path", {className: "first", opacity: "0.8", transform: "translate(0 0)", d: "M2 14 V18 H6 V14z"}, | ||
view.el(3994, "animateTransform", {attributeName: "transform", type: "translate", values: "0 0; 24 0; 0 0", dur: "2s", begin: "0", repeatCount: "indefinite", keySplines: "0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8", calcMode: "spline"}) | ||
view.el(25, "Flint.InstallerLoadingWrapper", {view: view}, | ||
view.el(26, "svg", {viewBox: "0 14 32 18", width: "32", height: "4", fill: "#f20", preserveAspectRatio: "none"}, | ||
view.el(27, "path", {className: "first", opacity: "0.8", transform: "translate(0 0)", d: "M2 14 V18 H6 V14z"}, | ||
view.el(28, "animateTransform", {attributeName: "transform", type: "translate", values: "0 0; 24 0; 0 0", dur: "2s", begin: "0", repeatCount: "indefinite", keySplines: "0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8", calcMode: "spline"}) | ||
), | ||
view.el(3995, "path", {className: "second", opacity: "0.5", transform: "translate(0 0)", d: "M0 14 V18 H8 V14z"}, | ||
view.el(3996, "animateTransform", {attributeName: "transform", type: "translate", values: "0 0; 24 0; 0 0", dur: "2s", begin: "0.1s", repeatCount: "indefinite", keySplines: "0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8", calcMode: "spline"}) | ||
view.el(29, "path", {className: "second", opacity: "0.5", transform: "translate(0 0)", d: "M0 14 V18 H8 V14z"}, | ||
view.el(30, "animateTransform", {attributeName: "transform", type: "translate", values: "0 0; 24 0; 0 0", dur: "2s", begin: "0.1s", repeatCount: "indefinite", keySplines: "0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8", calcMode: "spline"}) | ||
), | ||
view.el(3997, "path", {className: "third", opacity: "0.25", transform: "translate(0 0)", d: "M0 14 V18 H8 V14z"}, | ||
view.el(3998, "animateTransform", {attributeName: "transform", type: "translate", values: "0 0; 24 0; 0 0", dur: "2s", begin: "0.2s", repeatCount: "indefinite", keySplines: "0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8", calcMode: "spline"}) | ||
view.el(31, "path", {className: "third", opacity: "0.25", transform: "translate(0 0)", d: "M0 14 V18 H8 V14z"}, | ||
view.el(32, "animateTransform", {attributeName: "transform", type: "translate", values: "0 0; 24 0; 0 0", dur: "2s", begin: "0.2s", repeatCount: "indefinite", keySplines: "0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8", calcMode: "spline"}) | ||
) | ||
@@ -479,8 +483,8 @@ ) | ||
return function () {return ( | ||
view.el(3999, "Flint.VersionsWrapper", {view: view}, | ||
view.props.versions.__flintmap(function(_, _index) { return view.el(function() { return [_index, 4000] }, "version", {repeat: view.props.versions, onClick: function () {return view.props.onSelect(_);}}, | ||
view.el(4001, "inner", null, | ||
view.el(4002, "v", {key: 'v' + _index}, _.version), | ||
view.el(4003, "info", null, _.description), | ||
view.el(4004, "a", {href: _.homepage, target: "_blank"}, "Info") | ||
view.el(33, "Flint.VersionsWrapper", {view: view}, | ||
view.props.versions.__flintmap(function(_, _index) { return view.el(function() { return [_index, 34] }, "version", {repeat: view.props.versions, onClick: function () {return view.props.onSelect(_);}}, | ||
view.el(35, "inner", null, | ||
view.el(36, "v", {key: 'v' + _index}, _.version), | ||
view.el(37, "info", null, _.description), | ||
view.el(38, "a", {href: _.homepage, target: "_blank"}, "Info") | ||
) | ||
@@ -487,0 +491,0 @@ ) }) |
@@ -6,3 +6,3 @@ { | ||
"description": "tools", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"main": "", | ||
@@ -9,0 +9,0 @@ "scripts": {}, |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2178
1
295536