Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
address = args.address,
parameters = args.parameters,
options = { 'socket': socket, type:'WebSocket' }
if( address in __admin ) {
__admin[ address ]( parameters, options )
}else{
global.interface.handleMsgToClients( global.interface.livecodeServer, address, parameters )
}
})
});
// console.log( global.interface.websocketAdminIn )
global.interface.count++;
win = gui.Window.get();
Mousetrap.bind('command+o', function() { global.interface.openFile(); });
Mousetrap.bind('command+s', function() { global.interface.saveFile(); });
Mousetrap.bind('command+r', function() { win.reload(); });
Mousetrap.bind('command+d', function() { win.showDevTools(); });
Mousetrap.bind('command+escape', function() { win.isFullscreen = !win.isFullscreen });
$(window).on('load', function() {
win.moveTo(0,0);
win.resizeTo(1100, 500);
win.blur();
win.show();
});
}
// models
import Connection from './models/connection.js';
import Database from './models/database.js';
import Table from './models/table.js';
import Favorite from './models/favorite.js';
// components
import Databases from './components/databases/databases.jsx';
import Navbar from './components/navbar/navbar.jsx';
import Clusterbar from './components/clusterbar/clusterbar.jsx';
import Navtabs from './components/navtabs/navtabs.jsx';
import Tables from './components/tables/tables.jsx';
let { Route, DefaultRoute, RouteHandler, Link } = Router;
let win = gui.Window.get();
win.showDevTools();
win.y = window.screen.availTop;
win.x = window.screen.availLeft;
win.height = window.screen.availHeight;
win.width = window.screen.availWidth;
let App = React.createClass({
contextTypes: {
router: React.PropTypes.func
},
/*
* Lifecycle
*/
componentDidMount() {
abt = null,
splash = null,
request = require('request'),
winloaded = false;
// Get ID
//if(localStorage.getItem('fid') === undefined){
// localStorage.setItem('fid',uuid.v4());
//}
//var stats = ua('UA-49695003-4',localStorage.getItem('fid'));
win.on('show',function(){
winloaded = true;
});
splash = gui.Window.open('./splash.html',{
//frame: false,
toolbar: true,
width: 600,
height: 400,
transparent: true,
//show_in_taskbar: false,
icon: './lib/icons/fenix.png'
});
splash.show();
function() {
var gui = require('nw.gui'),
win = gui.Window.get(),
fs = require('fs');
var menu = new gui.Menu({
type: 'menubar'
});
function menuItem(submenu, options, shortcut) {
if (shortcut) {
keymage(shortcut, options.click, {preventDefault: true});
}
submenu.append(new gui.MenuItem(options));
}
function sepItem(submenu) {
submenu.append(new gui.MenuItem({
type: 'separator'
}));
}
var fileExplorerPage = require('nw.gui');
fileExplorerPage.Window.get().show();
var gui = require('nw.gui');
var fs = require('fs');
var path = require('path');
var ffmpeg = require('fluent-ffmpeg');
var exec = require('child_process').exec;
var ventana = gui.Window.get();
var app = angular.module('app');
app.controller('AppCtrl', function ($scope, $modal, Video, Paneles, Preferencias, Proyecto, Menu, $timeout) {
$scope.proyectos_recientes = Preferencias.data.proyectos_recientes;
$scope.sin_cuadros = true;
$scope.brillo = 50;
$scope.contraste = 50;
$scope.borrosidad = 0;
$scope.saturacion = 0;
$scope.capturar_habilitado = true;
$scope.tab_seleccionado = "tab1";
$scope.titulo = "Sin título";
$scope.sonido_habilitado = true;
$timeout(function () {
require('nw.gui').Window.get().window.location.reload();
}, wait, false);
}
var gui = require("nw.gui");
var win = gui.Window.get();
var app_version = gui.App.manifest.version;
var ua = require("universal-analytics");
var visitor = ua("UA-67011723-1");
var AutoLaunch = require("auto-launch");
var runatstartup = new AutoLaunch(
{
name: "Hot Gifs",
isHidden: "false"
});
var config = require("./config.json");
//Load user settings.