Comparing version 0.1.6 to 0.1.7
@@ -0,1 +1,3 @@ | ||
vw.info("HERE") | ||
var Module= new core.VW.Module(__dirname) | ||
@@ -6,1 +8,2 @@ Module.loadConfigFile("core-modules.json") | ||
var icevw= module.exports= core.org.vox.icevw | ||
@@ -67,3 +67,3 @@ /******/ (function(modules) { // webpackBootstrap | ||
var uniqid = __webpack_require__(3); | ||
var Func = __webpack_require__(4).default; | ||
var Func = __webpack_require__(5).default; | ||
var $ = core.VW.Web.JQuery; | ||
@@ -76,5 +76,5 @@ var root = {}; | ||
var Icevw = function Icevw() { | ||
Icevw.constructor ? Icevw.constructor.apply(this, arguments) : Icevw.$super && Icevw.$super.constructor.apply(this, arguments); | ||
Icevw.$constructor ? Icevw.$constructor.apply(this, arguments) : Icevw.$superClass && Icevw.$superClass.apply(this, arguments); | ||
}; | ||
Icevw.constructor = function () { | ||
Icevw.$constructor = function () { | ||
this.url = 'http://localhost:49671'; | ||
@@ -123,2 +123,4 @@ this.uid = uniqid(); | ||
spars.push('app=' + args.app); | ||
spars.push('&'); | ||
spars.push('module=' + args.module); | ||
var iframe = self.iframe; | ||
@@ -193,23 +195,41 @@ iframe.attr('src', self.url + '/require?' + spars.join('')); | ||
/* 3 */ | ||
/***/ function(module, exports) { | ||
/***/ function(module, exports, __webpack_require__) { | ||
/* | ||
/* WEBPACK VAR INJECTION */(function(process) {/* | ||
(The MIT License) | ||
Copyright (c) 2014 Halász Ádám <mail@adamhalasz.com> | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
*/ | ||
// Unique Hexatridecimal ID Generator | ||
module.exports = function(){ | ||
var time = new Date().getTime(); | ||
while (time == new Date().getTime()); | ||
return new Date().getTime().toString(36); | ||
// Unique Hexatridecimal ID Generator | ||
// ================================================ | ||
// Dependencies | ||
// ================================================ | ||
var pid = process && process.pid ? process.pid.toString(36) : '' ; | ||
var mac = false ? require('macaddress').one(macHandler) : null ; | ||
var address = mac ? parseInt(mac.replace(/\:|\D+/gi, '')).toString(36) : '' ; | ||
// Exports | ||
// ================================================ | ||
module.exports = function(prefix){ return (prefix || '') + address + pid + now().toString(36); } | ||
module.exports.process = function(prefix){ return (prefix || '') + pid + now().toString(36); } | ||
module.exports.time = function(prefix){ return (prefix || '') + now().toString(36); } | ||
// Helpers | ||
// ================================================ | ||
function now(){ | ||
var time = new Date().getTime(); | ||
var last = now.last || time; | ||
return now.last = time > last ? time : last + 1; | ||
} | ||
function macHandler(error){ | ||
if(error) console.info('Info: No mac address - uniqid() falls back to uniqid.process().', error) | ||
if(pid == '') console.info('Info: No process.pid - uniqid.process() falls back to uniqid.time().') | ||
} | ||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) | ||
/***/ }, | ||
@@ -219,7 +239,20 @@ /* 4 */ | ||
/* WEBPACK VAR INJECTION */(function(global) { | ||
if(global.core && global.core.basic){ | ||
exports= module.exports= global.core.basic.get_process(); | ||
} | ||
else{ | ||
throw new Error("Debe cargar el archivo core.basic"); | ||
} | ||
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) | ||
/***/ }, | ||
/* 5 */ | ||
/***/ function(module, exports) { | ||
{ | ||
var Func = function Func() { | ||
Func.constructor ? Func.constructor.apply(this, arguments) : Func.$super && Func.$super.constructor.apply(this, arguments); | ||
Func.$constructor ? Func.$constructor.apply(this, arguments) : Func.$superClass && Func.$superClass.apply(this, arguments); | ||
}; | ||
Func.constructor = function (icevw, name, prefix) { | ||
Func.$constructor = function (icevw, name, prefix) { | ||
this.icevw = icevw; | ||
@@ -226,0 +259,0 @@ this.name = name; |
{ | ||
"name": "icevw", | ||
"description": "Ejecute código del lado cliente desde el navegador ", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"main":"./index", | ||
@@ -21,3 +21,3 @@ "license":"MIT", | ||
"type": "git", | ||
"url": "https://gitlab.com/voxsoftware/icevw" | ||
"url": "https://github.com/voxsoftware/icevw" | ||
}, | ||
@@ -28,4 +28,5 @@ "dependencies": { | ||
"uniqid": ">=1.0.0", | ||
"md5": "^2.1.0" | ||
"md5": "^2.1.0", | ||
"npm-registry": "^0.1.13" | ||
} | ||
} |
# Icevw | ||
**NOTA**: IceVW está en etapa de pruebas. Aún no se recomienda instalar. Se puede bajar solo con motivos de prueba | ||
Ejecute código del lado cliente desde el navegador. Hay ciertas tareas que los desarrolladores web deben hacer del lado cliente para acceder a ciertos recursos que son imposibles de acceder desde el navegador. Existen plugins como Java que permiten esto, pero son obsoletos y los navegadores los bloquean. | ||
@@ -12,21 +9,36 @@ | ||
### Instalación | ||
Primero instale [vox-core](https://www.npmjs.com/package/vox-core) | ||
Luego en Windows abra una ventana cmd modo administrador, y en Unix utilice sudo | ||
1. Instale primero [nodejs](https://nodejs.org) | ||
2. Luego instale [vox-core](https://www.npmjs.com/package/vox-core) | ||
3. Instale icevw | ||
4. Inicie icevw | ||
A continuación mostramos como realizar los pasos 2 a 4: | ||
**Windows** | ||
Abra una ventana **cmd** como administrador. | ||
```sh | ||
> $ vox -install -g icevw | ||
> npm install -g vox-core | ||
> vox -install -g icevw | ||
> icevw | ||
``` | ||
En Unix | ||
**Unix (Osx,Linux)** | ||
Abra la aplicación de **terminal** | ||
```sh | ||
> $ sudo vox -install -g icevw | ||
> sudo npm install -g vox-core | ||
> sudo vox -install -g icevw | ||
> icevw | ||
``` | ||
Es conocido que en Windows puede surgir problemas de escritura en la consola, por favor en las propiedades de cmd seleccione una fuente TrueType | ||
Es conocido que en Windows puede surgir problemas de escritura en la consola, por favor en las propiedades de **cmd** seleccione una fuente TrueType | ||
### Instrucciones de compilación | ||
### Instrucciones de compilación de interfaz gráfica | ||
**NOTA**: Esta información está incompleta. | ||
@@ -38,6 +50,8 @@ | ||
Recuerde que en Windows el comando **sudo** no va, y debe abrir el **cmd** como administrador | ||
```sh | ||
> $ vox -install -g vox-webcompiler | ||
> $ sudo vox -install -g vox-webcompiler | ||
> $ git clone https://github.com/voxsoftware/voxcss | ||
> $ git clone https://github.com/voxsoftware/icevw} | ||
> $ git clone https://github.com/voxsoftware/icevw | ||
> $ cd icevw | ||
@@ -44,0 +58,0 @@ > $ vwc -compile ../voxcss --out-dir org/vox/icevw/server/assets |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
93
60
5017672
5
48229
+ Addednpm-registry@^0.1.13
+ Addedajv@6.12.6(transitive)
+ Addedasn1@0.2.6(transitive)
+ Addedassert-plus@1.0.0(transitive)
+ Addedassign@0.1.7(transitive)
+ Addedasync@0.6.2(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedaws-sign2@0.7.0(transitive)
+ Addedaws4@1.13.2(transitive)
+ Addedback@1.0.2(transitive)
+ Addedbcrypt-pbkdf@1.0.2(transitive)
+ Addedcaseless@0.12.0(transitive)
+ Addedcolor@0.8.0(transitive)
+ Addedcolor-convert@0.5.3(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcolor-string@0.3.0(transitive)
+ Addedcolornames@0.0.2(transitive)
+ Addedcolorspace@1.0.1(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addedcore-util-is@1.0.2(transitive)
+ Addeddashdash@1.14.1(transitive)
+ Addeddebug@0.7.40.8.1(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addeddiagnostics@1.0.1(transitive)
+ Addedecc-jsbn@0.1.2(transitive)
+ Addedemits@1.0.23.0.0(transitive)
+ Addedenabled@1.0.2(transitive)
+ Addedenv-variable@0.0.6(transitive)
+ Addedeventemitter3@1.2.0(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextendible@0.1.1(transitive)
+ Addedextract-github@0.0.5(transitive)
+ Addedextsprintf@1.3.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedforever-agent@0.6.1(transitive)
+ Addedform-data@2.3.3(transitive)
+ Addedfusing@0.2.30.4.01.0.0(transitive)
+ Addedgetpass@0.1.7(transitive)
+ Addedgithulk@0.0.7(transitive)
+ Addedhar-schema@2.0.0(transitive)
+ Addedhar-validator@5.1.5(transitive)
+ Addedhttp-signature@1.2.0(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedisstream@0.1.2(transitive)
+ Addedjsbn@0.1.1(transitive)
+ Addedjson-schema@0.4.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedjson-stringify-safe@5.0.1(transitive)
+ Addedjsprim@1.4.2(transitive)
+ Addedkuler@0.0.0(transitive)
+ Addedlicenses@0.0.20(transitive)
+ Addedmana@0.1.41(transitive)
+ Addedmillisecond@0.1.2(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addednpm-registry@0.1.13(transitive)
+ Addedoauth-sign@0.9.0(transitive)
+ Addedperformance-now@2.1.0(transitive)
+ Addedpredefine@0.1.3(transitive)
+ Addedpsl@1.15.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedqs@6.5.3(transitive)
+ Addedrequest@2.88.2(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsemver@2.2.1(transitive)
+ Addedsshpk@1.18.0(transitive)
+ Addedtext-hex@0.0.0(transitive)
+ Addedtough-cookie@2.5.0(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addedtweetnacl@0.14.5(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addeduuid@3.4.0(transitive)
+ Addedverror@1.10.0(transitive)
+ Addedxtend@4.0.2(transitive)