Skip to content

Commit

Permalink
Added new widget Importer.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Nov 4, 2024
1 parent d89e163 commit 43114be
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions widgets/importer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<script total>

exports.id = 'importer';
exports.name = 'Importer';
exports.author = 'Total.js';
exports.version = '1';
exports.preview = 'data:image/gif;base64,R0lGODdhLAHIAPcAAAOp9M/X3LC+xVXF9+X2/iKz9avi+7nFy5DK+bbm/Mns/Ty89g+t9fr7+8LN0nzS+mnM+Jrd+9bx/f7+/q7Y+0nB993j5jC49geq9MHq/Oz5/rvf+xmw9V/I+OD0/vP7/u3w8XHP+YfW+bne+9Xc4Ont70/C90O+9mTK+Ozw8fz+/7PAx9Tr/brn/PT29ze69oPU+XjR+bPl/KHe+uLn6h6y9VvH+Ce19gqr9Njy/ROu9fr9/23N+Y7Z+gaq9MXr/cXP1fL19r/p/MnS2L/K0PX8/1HE97zIzj+99try/v///9ng5NDv/dff4ka/9+/5/4HT+vj8/53d+mLJ+GbL+er4/kzC9xWv9aTg+/r+/7bCyTS59Tq79hyx9Qir9G/O+a/j+wSp9Cm29vz8/f3//7G/xSS09e/y9Pv9/1TF97vo/MPr/P3+/1nH+GvN+Qus9ITW+nPP+WHJ+DK69vL6/l7I+Bqx9cfs/e75/qDf/GjL+HvR+fn9/x+z9Rew9fT7/0fA9/f8/xCu9Nvz/lHD957e+/7//2PK+EG99lbG9yu29d7k573Jz9jf4rXl/OL1/hOv9US/97ro/O7x8wys9InX+vD6/jK49U3C90C+9oTV+sbs/Aqs9Amr9EbA9/f9/+Po6m7O+WDJ+Ci29k/D9zS69oDU+iW19drz/e/6/tXw/drg41LE98XQ1TK59nDO+UrB9xSv9X3S+UG+90O/9oPV+azj+9DY3NXx/Rux9e35/vj9/2fL+CK09YXV+YjW+kTA99rh5J/e+3LP+cbQ1dny/Si19Tq89je79mjM+PP7/1/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yE9+psahqGUp//nQjxMNWKWECTAi+tjHPhGaz6oGiCP74Ee+axYaQP2BjOEW4U9/7gMwhvIX5AwkIMIK1E9/UK2ACCTAhvv3z//++///ABiAAjiABFiABniACJiACriADNiADviAEBiBEjiBFFiBFniBGJiBGriBHNiBHviBIBiCIjiCJFiCJniCKJiCVhEQADs=';
exports.config = { url: '' };

exports.render = function(opt, next) {
next('<ui-import config="url:{0}"></ui-import>'.format(opt.config.url), true, true);
};

</script>

<settings>

<div class="padding">
<div class="m">
<ui-component name="input" path="?.url" config="required:1">URL address</ui-component>
</div>
</div>

<script>
exports.save = function(config, el) {
el.find('b').text(config.url);
};
</script>

</settings>

<body>
<div>URL address: <b>---</b></div>
</body>

0 comments on commit 43114be

Please sign in to comment.