repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/issue5220-nwjc-buffer/arraybuffer.js
test/sanity/issue5220-nwjc-buffer/arraybuffer.js
out('arraybuffer-result', 'success:arraybuffer');
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/issue5220-nwjc-buffer/buffer.js
test/sanity/issue5220-nwjc-buffer/buffer.js
out('buffer-result', 'success:buffer');
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/issue5220-nwjc-buffer/ajax.js
test/sanity/issue5220-nwjc-buffer/ajax.js
out('ajax-result', 'success:ajax');
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/issue5220-nwjc-buffer/path.js
test/sanity/issue5220-nwjc-buffer/path.js
out('path-result', 'success:path');
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/issue4018-vm-crash/bug.js
test/sanity/issue4018-vm-crash/bug.js
window.onload = function() { var vm = require('vm'); var c = new vm.createContext({e: document.body}); var script = new vm.Script('e.style.background = "#4682B4"; e.innerHTML += "<p id=\'ret\'>success</p>"'); script.runInContext(c); };
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/module-bin/lib2.js
test/sanity/module-bin/lib2.js
class TestModule { foo(a) { return a + 42; } } export {TestModule};
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/module-bin/testmodule.js
test/sanity/module-bin/testmodule.js
import {TestModule} from "./lib.js"; var f = new TestModule(); document.getElementById('result').innerHTML = 'result: ' + f.foo(10); document.getElementById('source').innerHTML = "f.foo source: " + f.foo.toString();
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/manifest-js-main-inside/inside/index.js
test/sanity/manifest-js-main-inside/inside/index.js
nw.Window.open('index.html');
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/issue7239-worker-module/worker.js
test/sanity/issue7239-worker-module/worker.js
onmessage = (event) => { try { const addon = require('./build/Release/buffer_example'); const buffer = Buffer.from(event.data); for (var i = 0; i < 1000; i++) { var b = Buffer.from("CDE"); addon.rotate(b, i); } // synchronous, rotates each character by +13 var result = addon.rot...
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/issue6099-AdSense-trouble/index.js
test/sanity/issue6099-AdSense-trouble/index.js
(function () { "use strict"; let refreshBtn = document.getElementById("refresh"); let frameInfoDiv = document.getElementById("frameInfo"); refreshBtn.addEventListener("click", function () { frameInfoDiv.style.color = ""; try { let iframeWindow = document.querySelector("iframe").contentWindow; frameInfoD...
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/issue6099-AdSense-trouble/iframe.js
test/sanity/issue6099-AdSense-trouble/iframe.js
(function () { "use strict"; let refreshBtn = document.getElementById("refresh"); let iframeInfoDiv = document.getElementById("iframeInfo"); refreshBtn.addEventListener("click", function () { iframeInfoDiv.style.color = ""; try { iframeInfoDiv.innerText = "Top accessible: " + (!!window.top ? "true" : "fals...
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/esm/index.js
test/sanity/esm/index.js
console.log('index.js'); const logq = require('./logq.js'); (async () => { const test = await import('./test.mjs'); logq.append('index.js: typeof test=' + typeof test); logq.append('index.js: test object=' + JSON.stringify(test)); })();
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/esm/logq.js
test/sanity/esm/logq.js
'use strict'; const queue = []; const waitingResolvers = []; function append(item) { if (typeof item !== 'string') { throw new TypeError('Queue item must be a string.'); } if (waitingResolvers.length > 0) { const resolve = waitingResolvers.shift(); resolve(item); } else { queue.push(item); ...
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/new-win-policy/start.js
test/sanity/new-win-policy/start.js
var result = result ||[]; result.push('inject-js-start');
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/new-win-policy/end.js
test/sanity/new-win-policy/end.js
var result = result ||[]; result.push('inject-js-end');
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/react-devtools-extension/build/build.min.js
test/sanity/react-devtools-extension/build/build.min.js
!function e(t,n,o){function r(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return r(n?n:e)},c,c.ex...
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
true
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/react-devtools-extension/react-devtools/build/main.js
test/sanity/react-devtools-extension/react-devtools/build/main.js
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModu...
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/react-devtools-extension/react-devtools/build/panel.js
test/sanity/react-devtools-extension/react-devtools/build/panel.js
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModu...
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
true
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/react-devtools-extension/react-devtools/build/background.js
test/sanity/react-devtools-extension/react-devtools/build/background.js
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModu...
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/react-devtools-extension/react-devtools/build/inject.js
test/sanity/react-devtools-extension/react-devtools/build/inject.js
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModu...
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/react-devtools-extension/react-devtools/build/backend.js
test/sanity/react-devtools-extension/react-devtools/build/backend.js
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModu...
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
true
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/react-devtools-extension/react-devtools/build/contentScript.js
test/sanity/react-devtools-extension/react-devtools/build/contentScript.js
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModu...
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/issue4877-inject-webview/inject_start.js
test/sanity/issue4877-inject-webview/inject_start.js
var inject_start = 'success';
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/issue6324-extension_all_frame_true_exit/test_ext/bg.js
test/sanity/issue6324-extension_all_frame_true_exit/test_ext/bg.js
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/issue6324-extension_all_frame_true_exit/test_ext/cs.js
test/sanity/issue6324-extension_all_frame_true_exit/test_ext/cs.js
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/webview-node-neg/background.js
test/sanity/webview-node-neg/background.js
chrome.app.runtime.onLaunched.addListener(function() { chrome.app.window.create('window.html', { 'outerBounds': { 'width': 800, 'height': 600, 'minWidth': 320, 'minHeight': 320 } }); });
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/issue6504-indexedDB-open-crash/worker.js
test/sanity/issue6504-indexedDB-open-crash/worker.js
var request = indexedDB.open('test', 1); onmessage = (event) => { };
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/issue4791-injectstart-iframe/inject_start.js
test/sanity/issue4791-injectstart-iframe/inject_start.js
var inject_start = 'success';
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/manifest-default-inject/inject_end.js
test/sanity/manifest-default-inject/inject_end.js
opener.out('inject_end', 'success');
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/manifest-default-inject/inject_start.js
test/sanity/manifest-default-inject/inject_start.js
opener.out('inject_start', 'success');
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/worker-stream-wrap/worker.js
test/sanity/worker-stream-wrap/worker.js
try{ process.binding('stream_wrap'); postMessage('success'); } catch (e) { postMessage(e.message); }
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/app-getproxyforurl/bg.js
test/sanity/app-getproxyforurl/bg.js
(function(){ const http = require('http'); let id = 1; // Create an HTTP server var srv = http.createServer( (req, res) => { res.writeHead(200, {'Content-Type': 'text/plain'}); res.write('function FindProxyForURL(url, host) {\n'); res.write(' if (host == \'www.port3128.com\')\n'); res.write(' return \'PROX...
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/issue6001-devtools-open-crash/index.js
test/sanity/issue6001-devtools-open-crash/index.js
function test(){};
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/issue5980-aws-sdk-embedded-youtobe-video-crash/index.js
test/sanity/issue5980-aws-sdk-embedded-youtobe-video-crash/index.js
const sdk = require('aws-sdk'); nw.Window.open(`index.html`);
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/issue4521-notification-perm/server.js
test/sanity/issue4521-notification-perm/server.js
const http = require('http'); const url = require('url'); const fs = require('fs'); const path = require('path'); let svr = http.createServer(function (req, res) { console.log(`${req.method} ${req.url}`); // parse URL const parsedUrl = url.parse(req.url); // extract URL path let pathname = `.${parsedUrl.pat...
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/worker-msgloop/worker.js
test/sanity/worker-msgloop/worker.js
try { const dns = require('dns'); dns.lookup('nwjs.io', () => { postMessage('success'); }); } catch (e) { postMessage(e.message); }
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/require-path/test.js
test/sanity/require-path/test.js
exports.where = __dirname;
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/require-path/common.js
test/sanity/require-path/common.js
function output(id, msg) { var h1 = document.createElement('h1'); h1.innerHTML = msg; h1.setAttribute('id', id); document.body.appendChild(h1); } function success(id, msg) { output(id, 'success' + (msg ? ': ' + msg: '')); } function fail(id, msg) { output(id, 'fail' + (msg ? ': ' + msg: '')); }
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/require-path/public/test.js
test/sanity/require-path/public/test.js
exports.where = __dirname;
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/issue4791-injectend-iframe/inject_end.js
test/sanity/issue4791-injectend-iframe/inject_end.js
out('inject_end', 'success');
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/issue4131-form-post/server.js
test/sanity/issue4131-form-post/server.js
var http = require('http'); function startServer(cb) { var server = http.createServer(); let requests = 0; server.on('request', function(req, res) { console.log(req.url); if (req.url === '/post.html') { res.writeHead(200, {'Content-Type': 'text/html'}); res.write('<html><body>'); res.w...
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/child_process/worker.js
test/sanity/child_process/worker.js
process.on('message', function(msg) { process.send('success: message from worker'); });
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/manifest-inject-newwin/start.js
test/sanity/manifest-inject-newwin/start.js
var result = result ||[]; result.push('inject-js-start');
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/manifest-inject-newwin/end.js
test/sanity/manifest-inject-newwin/end.js
var result = result ||[]; result.push('inject-js-end');
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/cookie-lost-devtools-close/bg.js
test/sanity/cookie-lost-devtools-close/bg.js
(function(){ const http = require('http'); let id = 1; // Create an HTTP server var srv = http.createServer( (req, res) => { let headers = {'Content-Type': 'text/plain'}; let cookies = req.headers['cookie']; if (!cookies) { headers['Set-Cookie'] = ['sid=' + (id++)]; } res.writeHead(200, headers); res.e...
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/nwjc/mytest.js
test/sanity/nwjc/mytest.js
function mytest(a) { document.write("<p id='result'>" + (a + 42) + "</p>"); } function testinner(a) { function foo(a) { document.write("<p id='result3'>" + (a + 42) + "</p>"); } foo(a); }
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/issue4286-inject-start-end/inject_end.js
test/sanity/issue4286-inject-start-end/inject_end.js
opener.out('inject_end', 'success');
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/issue4286-inject-start-end/inject_start.js
test/sanity/issue4286-inject-start-end/inject_start.js
opener.out('inject_start', 'success');
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/issue7503-close/main.js
test/sanity/issue7503-close/main.js
function addButton(win) { let button = win.window.document.createElement("button"); button.id = "close"; button.innerHTML = "close NW.js"; button.onclick = function() { win.close(); }; win.window.document.getElementsByTagName("body")[0].appendChild(button); } var mainWindow; nw.Windo...
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/webview-node/background.js
test/sanity/webview-node/background.js
chrome.app.runtime.onLaunched.addListener(function() { chrome.app.window.create('window.html', { 'outerBounds': { 'width': 800, 'height': 600, 'minWidth': 320, 'minHeight': 320 } }); });
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/manifest-js-main/index.js
test/sanity/manifest-js-main/index.js
nw.Window.open('index.html');
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/sanity/native-module-buffer/index.js
test/sanity/native-module-buffer/index.js
'use strict'; const addon = require('./build/Release/buffer_example'); const buffer = Buffer.from("ABC"); for (var i = 0; i < 1000; i++) { var b = Buffer.from("CDE"); addon.rotate(b, i); } // synchronous, rotates each character by +13 var result = addon.rotate(buffer, 13); console.log(buffer.toString('ascii'));...
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/data/platform_apps/6212-crossdomain-screen/demo.js
test/data/platform_apps/6212-crossdomain-screen/demo.js
function chooseDesktopMedia(){ if(nw.Screen.Init){ nw.Screen.Init(); } nw.Screen.chooseDesktopMedia(["screen"],function(streamId){ if(streamId) { var conf = { mandatory: { chromeMediaSource: 'desktop', chromeMediaSourceId: s...
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/jsdriver/runtests.js
test/jsdriver/runtests.js
const { readdirSync } = require('fs'); const shell = require('shelljs'); const {default: PQueue} = require('p-queue'); const {chunksToLinesAsync, chomp} = require('@rauschma/stringio'); const {spawn} = require('child_process'); const path = require('path'); const fs = require('fs'); const util = require('util'); const ...
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/browser/issue6061-bincrash/index.js
test/browser/issue6061-bincrash/index.js
class DevClass { constructor() { //console.log("DevClass constructor") } } var devItem = new DevClass() console.log(devItem)
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/browser/inspector/1.js
test/browser/inspector/1.js
global.console.log('--> start'); const { Session } = require('node:inspector/promises'); const cons = require('node:inspector').console; const inspector = require('node:inspector'); var session; cons.log('--> loaded'); //inspector.open(9222); (async () => { try { cons.log('--> new session'); session = new ...
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/browser/issue8243-reload/store.js
test/browser/issue8243-reload/store.js
const getStorage = () => { if (typeof global !== 'undefined' && global.ls) { return global.ls; } throw new Error('localStorage is not available on the global object.'); }; const set = (key, value) => { const storage = getStorage(); storage.setItem(key, JSON.stringify(value)); }; const get = (key) => { ...
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/browser/issue4121-inpect-node-crash/test.js
test/browser/issue4121-inpect-node-crash/test.js
console.log('hello')
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/auto/common.js
test/auto/common.js
var path = require('path'); var fs = require('fs'); var assert = require('assert'); var os = require('os'); var child_process = require('child_process'); exports.testDir = path.dirname(__filename); exports.fixturesDir = path.join(exports.testDir, 'fixtures'); exports.libDir = path.join(exports.testDir, '../lib'); expo...
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/auto/fixtures/readdir/testing.js
test/auto/fixtures/readdir/testing.js
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
nwjs/nw.js
https://github.com/nwjs/nw.js/blob/90c8693ed8bcaf5f41db42eec810e56de36516b3/test/auto/node-readdir/readdir/testing.js
test/auto/node-readdir/readdir/testing.js
javascript
MIT
90c8693ed8bcaf5f41db42eec810e56de36516b3
2026-01-04T14:59:04.900678Z
false
typicode/husky
https://github.com/typicode/husky/blob/ec10d87dbb7e2fe83115b83fc72566f0e64dff2c/index.js
index.js
import c from 'child_process' import f, { readdir, writeFileSync as w } from 'fs' import p from 'path' let l = [ 'pre-commit', 'pre-merge-commit', 'prepare-commit-msg', 'commit-msg', 'post-commit', 'applypatch-msg', 'pre-applypatch', 'post-applypatch', 'pre-rebase', 'post-rewrite', 'post-checkout', 'post-merge', 'pre-...
javascript
MIT
ec10d87dbb7e2fe83115b83fc72566f0e64dff2c
2026-01-04T15:00:20.522525Z
false
typicode/husky
https://github.com/typicode/husky/blob/ec10d87dbb7e2fe83115b83fc72566f0e64dff2c/bin.js
bin.js
#!/usr/bin/env node import f, { writeFileSync as w } from 'fs' import i from './index.js' let p, a, n, s, o, d p = process a = p.argv[2] if (a == 'init') { n = 'package.json' s = f.readFileSync(n) o = JSON.parse(s) ;(o.scripts ||= {}).prepare = 'husky' w(n, JSON.stringify(o, 0, /\t/.test(s) ? '\t' : 2) + '\n') ...
javascript
MIT
ec10d87dbb7e2fe83115b83fc72566f0e64dff2c
2026-01-04T15:00:20.522525Z
false
typicode/husky
https://github.com/typicode/husky/blob/ec10d87dbb7e2fe83115b83fc72566f0e64dff2c/docs/sponsorkit.config.js
docs/sponsorkit.config.js
import { defineConfig, presets } from 'sponsorkit' export default defineConfig({ // includePrivate: true, tiers: [ { title: 'Past Sponsors', monthlyDollars: -1, preset: presets.xs, }, { title: 'Backers', preset: presets.base, }, { title: 'Sponsors', mon...
javascript
MIT
ec10d87dbb7e2fe83115b83fc72566f0e64dff2c
2026-01-04T15:00:20.522525Z
false
ryanhanwu/How-To-Ask-Questions-The-Smart-Way
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/fc6c538e5d833fc16f4ff99a36267c171fb84550/toc.js
toc.js
(function(window) { String.prototype.repeat = function(num) { return new Array(num + 1).join(this); }; var url = document.URL, headers = jQuery("article :header"), result; for (var i = 3; i < headers.length; i++) { //skip H1, history, and toc var header = headers[i], headerText = header.textContent.trim(...
javascript
MIT
fc6c538e5d833fc16f4ff99a36267c171fb84550
2026-01-04T15:00:23.883985Z
false
zenorocha/clipboard.js
https://github.com/zenorocha/clipboard.js/blob/899378dee9681dcf4cb3d702c23a3f3cd9f473d8/package.js
package.js
// Package metadata for Meteor.js. Package.describe({ name: 'zenorocha:clipboard', summary: 'Modern copy to clipboard. No Flash. Just 3kb.', version: '2.0.11', git: 'https://github.com/zenorocha/clipboard.js', }); Package.onUse(function (api) { api.addFiles('dist/clipboard.js', 'client'); });
javascript
MIT
899378dee9681dcf4cb3d702c23a3f3cd9f473d8
2026-01-04T15:00:24.792155Z
false
zenorocha/clipboard.js
https://github.com/zenorocha/clipboard.js/blob/899378dee9681dcf4cb3d702c23a3f3cd9f473d8/karma.conf.js
karma.conf.js
var webpackConfig = require('./webpack.config.js'); module.exports = function (karma) { karma.set({ plugins: [ 'karma-webpack', 'karma-chai', 'karma-sinon', 'karma-mocha', 'karma-chrome-launcher', ], frameworks: ['chai', 'sinon', 'mocha', 'webpack'], files: [ { p...
javascript
MIT
899378dee9681dcf4cb3d702c23a3f3cd9f473d8
2026-01-04T15:00:24.792155Z
false
zenorocha/clipboard.js
https://github.com/zenorocha/clipboard.js/blob/899378dee9681dcf4cb3d702c23a3f3cd9f473d8/webpack.config.js
webpack.config.js
const pkg = require('./package.json'); const path = require('path'); const webpack = require('webpack'); const UglifyJSPlugin = require('uglifyjs-webpack-plugin'); const production = process.env.NODE_ENV === 'production' || false; const banner = `clipboard.js v${pkg.version} https://clipboardjs.com/ Licensed MIT © Z...
javascript
MIT
899378dee9681dcf4cb3d702c23a3f3cd9f473d8
2026-01-04T15:00:24.792155Z
false
zenorocha/clipboard.js
https://github.com/zenorocha/clipboard.js/blob/899378dee9681dcf4cb3d702c23a3f3cd9f473d8/src/clipboard.js
src/clipboard.js
import Emitter from 'tiny-emitter'; import listen from 'good-listener'; import ClipboardActionDefault from './actions/default'; import ClipboardActionCut from './actions/cut'; import ClipboardActionCopy from './actions/copy'; /** * Helper function to retrieve attribute value. * @param {String} suffix * @param {Elem...
javascript
MIT
899378dee9681dcf4cb3d702c23a3f3cd9f473d8
2026-01-04T15:00:24.792155Z
false
zenorocha/clipboard.js
https://github.com/zenorocha/clipboard.js/blob/899378dee9681dcf4cb3d702c23a3f3cd9f473d8/src/actions/default.js
src/actions/default.js
import ClipboardActionCut from './cut'; import ClipboardActionCopy from './copy'; /** * Inner function which performs selection from either `text` or `target` * properties and then executes copy or cut operations. * @param {Object} options */ const ClipboardActionDefault = (options = {}) => { // Defines base pro...
javascript
MIT
899378dee9681dcf4cb3d702c23a3f3cd9f473d8
2026-01-04T15:00:24.792155Z
false
zenorocha/clipboard.js
https://github.com/zenorocha/clipboard.js/blob/899378dee9681dcf4cb3d702c23a3f3cd9f473d8/src/actions/copy.js
src/actions/copy.js
import select from 'select'; import command from '../common/command'; import createFakeElement from '../common/create-fake-element'; /** * Create fake copy action wrapper using a fake element. * @param {String} target * @param {Object} options * @return {String} */ const fakeCopyAction = (value, options) => { c...
javascript
MIT
899378dee9681dcf4cb3d702c23a3f3cd9f473d8
2026-01-04T15:00:24.792155Z
false
zenorocha/clipboard.js
https://github.com/zenorocha/clipboard.js/blob/899378dee9681dcf4cb3d702c23a3f3cd9f473d8/src/actions/cut.js
src/actions/cut.js
import select from 'select'; import command from '../common/command'; /** * Cut action wrapper. * @param {String|HTMLElement} target * @return {String} */ const ClipboardActionCut = (target) => { const selectedText = select(target); command('cut'); return selectedText; }; export default ClipboardActionCut;
javascript
MIT
899378dee9681dcf4cb3d702c23a3f3cd9f473d8
2026-01-04T15:00:24.792155Z
false
zenorocha/clipboard.js
https://github.com/zenorocha/clipboard.js/blob/899378dee9681dcf4cb3d702c23a3f3cd9f473d8/src/common/create-fake-element.js
src/common/create-fake-element.js
/** * Creates a fake textarea element with a value. * @param {String} value * @return {HTMLElement} */ export default function createFakeElement(value) { const isRTL = document.documentElement.getAttribute('dir') === 'rtl'; const fakeElement = document.createElement('textarea'); // Prevent zooming on iOS fa...
javascript
MIT
899378dee9681dcf4cb3d702c23a3f3cd9f473d8
2026-01-04T15:00:24.792155Z
false
zenorocha/clipboard.js
https://github.com/zenorocha/clipboard.js/blob/899378dee9681dcf4cb3d702c23a3f3cd9f473d8/src/common/command.js
src/common/command.js
/** * Executes a given operation type. * @param {String} type * @return {Boolean} */ export default function command(type) { try { return document.execCommand(type); } catch (err) { return false; } }
javascript
MIT
899378dee9681dcf4cb3d702c23a3f3cd9f473d8
2026-01-04T15:00:24.792155Z
false
zenorocha/clipboard.js
https://github.com/zenorocha/clipboard.js/blob/899378dee9681dcf4cb3d702c23a3f3cd9f473d8/test/clipboard.js
test/clipboard.js
import Clipboard from '../src/clipboard'; describe('Clipboard', () => { before(() => { global.button = document.createElement('button'); global.button.setAttribute('class', 'btn'); global.button.setAttribute('data-clipboard-text', 'foo'); document.body.appendChild(global.button); global.span = d...
javascript
MIT
899378dee9681dcf4cb3d702c23a3f3cd9f473d8
2026-01-04T15:00:24.792155Z
false
zenorocha/clipboard.js
https://github.com/zenorocha/clipboard.js/blob/899378dee9681dcf4cb3d702c23a3f3cd9f473d8/test/actions/default.js
test/actions/default.js
import ClipboardActionDefault from '../../src/actions/default'; describe('ClipboardActionDefault', () => { before(() => { global.input = document.createElement('input'); global.input.setAttribute('id', 'input'); global.input.setAttribute('value', 'abc'); document.body.appendChild(global.input); ...
javascript
MIT
899378dee9681dcf4cb3d702c23a3f3cd9f473d8
2026-01-04T15:00:24.792155Z
false
zenorocha/clipboard.js
https://github.com/zenorocha/clipboard.js/blob/899378dee9681dcf4cb3d702c23a3f3cd9f473d8/test/actions/copy.js
test/actions/copy.js
import ClipboardActionCopy from '../../src/actions/copy'; describe('ClipboardActionCopy', () => { before(() => { global.input = document.createElement('input'); global.input.setAttribute('id', 'input'); global.input.setAttribute('value', 'abc'); document.body.appendChild(global.input); global.pa...
javascript
MIT
899378dee9681dcf4cb3d702c23a3f3cd9f473d8
2026-01-04T15:00:24.792155Z
false
zenorocha/clipboard.js
https://github.com/zenorocha/clipboard.js/blob/899378dee9681dcf4cb3d702c23a3f3cd9f473d8/test/actions/cut.js
test/actions/cut.js
import ClipboardActionCut from '../../src/actions/cut'; describe('ClipboardActionCut', () => { before(() => { global.input = document.createElement('input'); global.input.setAttribute('id', 'input'); global.input.setAttribute('value', 'abc'); document.body.appendChild(global.input); global.parag...
javascript
MIT
899378dee9681dcf4cb3d702c23a3f3cd9f473d8
2026-01-04T15:00:24.792155Z
false
zenorocha/clipboard.js
https://github.com/zenorocha/clipboard.js/blob/899378dee9681dcf4cb3d702c23a3f3cd9f473d8/test/common/create-fake-element.js
test/common/create-fake-element.js
import createFakeElement from '../../src/common/create-fake-element'; describe('createFakeElement', () => { it('should define a fake element and set the position right style property', (done) => { // Set document direction document.documentElement.setAttribute('dir', 'rtl'); const el = createFakeElement...
javascript
MIT
899378dee9681dcf4cb3d702c23a3f3cd9f473d8
2026-01-04T15:00:24.792155Z
false
zenorocha/clipboard.js
https://github.com/zenorocha/clipboard.js/blob/899378dee9681dcf4cb3d702c23a3f3cd9f473d8/test/common/command.js
test/common/command.js
import select from 'select'; import command from '../../src/common/command'; describe('#command', () => { before(() => { global.stub = sinon.stub(document, 'execCommand'); global.input = document.createElement('input'); global.input.setAttribute('id', 'input'); global.input.setAttribute('value', 'abc...
javascript
MIT
899378dee9681dcf4cb3d702c23a3f3cd9f473d8
2026-01-04T15:00:24.792155Z
false
zenorocha/clipboard.js
https://github.com/zenorocha/clipboard.js/blob/899378dee9681dcf4cb3d702c23a3f3cd9f473d8/dist/clipboard.min.js
dist/clipboard.min.js
/*! * clipboard.js v2.0.11 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return n=...
javascript
MIT
899378dee9681dcf4cb3d702c23a3f3cd9f473d8
2026-01-04T15:00:24.792155Z
false
zenorocha/clipboard.js
https://github.com/zenorocha/clipboard.js/blob/899378dee9681dcf4cb3d702c23a3f3cd9f473d8/dist/clipboard.js
dist/clipboard.js
/*! * clipboard.js v2.0.11 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory);...
javascript
MIT
899378dee9681dcf4cb3d702c23a3f3cd9f473d8
2026-01-04T15:00:24.792155Z
false
qishibo/AnotherRedisDesktopManager
https://github.com/qishibo/AnotherRedisDesktopManager/blob/4c2b7a5f1074b619eb11ca19796d896c3a8e7098/.postcssrc.js
.postcssrc.js
// https://github.com/michael-ciniawsky/postcss-load-config module.exports = { "plugins": { "postcss-import": {}, "postcss-url": {}, "autoprefixer": {} } }
javascript
MIT
4c2b7a5f1074b619eb11ca19796d896c3a8e7098
2026-01-04T15:00:35.175153Z
false
qishibo/AnotherRedisDesktopManager
https://github.com/qishibo/AnotherRedisDesktopManager/blob/4c2b7a5f1074b619eb11ca19796d896c3a8e7098/src/storage.js
src/storage.js
import utils from './util'; const { randomString } = utils; export default { getSetting(key) { let settings = localStorage.getItem('settings'); settings = settings ? JSON.parse(settings) : {}; return key ? settings[key] : settings; }, saveSettings(settings) { settings = JSON.stringify(settings)...
javascript
MIT
4c2b7a5f1074b619eb11ca19796d896c3a8e7098
2026-01-04T15:00:35.175153Z
false
qishibo/AnotherRedisDesktopManager
https://github.com/qishibo/AnotherRedisDesktopManager/blob/4c2b7a5f1074b619eb11ca19796d896c3a8e7098/src/main.js
src/main.js
import Vue from 'vue'; import ElementUI from 'element-ui'; import 'font-awesome/css/font-awesome.css'; import App from './App'; import i18n from './i18n/i18n'; import bus from './bus'; import util from './util'; import storage from './storage'; import shortcut from './shortcut'; // vxe-table // import VxeUITable from ...
javascript
MIT
4c2b7a5f1074b619eb11ca19796d896c3a8e7098
2026-01-04T15:00:35.175153Z
false
qishibo/AnotherRedisDesktopManager
https://github.com/qishibo/AnotherRedisDesktopManager/blob/4c2b7a5f1074b619eb11ca19796d896c3a8e7098/src/bus.js
src/bus.js
import Vue from 'vue'; const eventHub = new Vue(); export default { $on(...event) { eventHub.$on(...event); }, $off(...event) { eventHub.$off(...event); }, $once(...event) { eventHub.$once(...event); }, $emit(...event) { eventHub.$emit(...event); }, };
javascript
MIT
4c2b7a5f1074b619eb11ca19796d896c3a8e7098
2026-01-04T15:00:35.175153Z
false
qishibo/AnotherRedisDesktopManager
https://github.com/qishibo/AnotherRedisDesktopManager/blob/4c2b7a5f1074b619eb11ca19796d896c3a8e7098/src/commands.js
src/commands.js
const adminCMD = { ACL: ['ACL CAT [categoryname]', 'ACL DELUSER username [username ...]', 'ACL DRYRUN username command [arg [arg ...]]', 'ACL GENPASS [bits]', 'ACL GETUSER username', 'ACL LIST', 'ACL LOAD', 'ACL LOG [count|RESET]', 'ACL SAVE', 'ACL SETUSER username [rule [rule ...]]', 'ACL USERS', 'ACL WHOAMI'], BG...
javascript
MIT
4c2b7a5f1074b619eb11ca19796d896c3a8e7098
2026-01-04T15:00:35.175153Z
false
qishibo/AnotherRedisDesktopManager
https://github.com/qishibo/AnotherRedisDesktopManager/blob/4c2b7a5f1074b619eb11ca19796d896c3a8e7098/src/redisClient.js
src/redisClient.js
import Redis from 'ioredis'; import { createTunnel } from 'tunnel-ssh'; import vue from '@/main.js'; import { remote } from 'electron'; import { writeCMD } from '@/commands.js'; const fs = require('fs'); const { sendCommand } = Redis.prototype; // redis command log Redis.prototype.sendCommand = function (...options)...
javascript
MIT
4c2b7a5f1074b619eb11ca19796d896c3a8e7098
2026-01-04T15:00:35.175153Z
false
qishibo/AnotherRedisDesktopManager
https://github.com/qishibo/AnotherRedisDesktopManager/blob/4c2b7a5f1074b619eb11ca19796d896c3a8e7098/src/addon.js
src/addon.js
import getopts from 'getopts'; import { ipcRenderer } from 'electron'; import bus from './bus'; import storage from './storage'; export default { setup() { // reload settings when init this.reloadSettings(); // init args start from cli this.bindCliArgs(); // bing href click this.openHrefInBro...
javascript
MIT
4c2b7a5f1074b619eb11ca19796d896c3a8e7098
2026-01-04T15:00:35.175153Z
false
qishibo/AnotherRedisDesktopManager
https://github.com/qishibo/AnotherRedisDesktopManager/blob/4c2b7a5f1074b619eb11ca19796d896c3a8e7098/src/shortcut.js
src/shortcut.js
import keymaster from 'keymaster'; import { ipcRenderer } from 'electron'; // enable shortcut in input, textarea, select keymaster.filter = e => true; // prevent ctrl+r keymaster('ctrl+r, ⌘+r', e => false); // minimize window keymaster('ctrl+h, ctrl+m, ⌘+m', (e) => { ipcRenderer.send('minimizeWindow'); return fa...
javascript
MIT
4c2b7a5f1074b619eb11ca19796d896c3a8e7098
2026-01-04T15:00:35.175153Z
false
qishibo/AnotherRedisDesktopManager
https://github.com/qishibo/AnotherRedisDesktopManager/blob/4c2b7a5f1074b619eb11ca19796d896c3a8e7098/src/util.js
src/util.js
export default { data: {}, get(name) { return this.data[name]; }, set(name, value) { this.data[name] = value; }, bufVisible(buf) { if (typeof buf === 'string') { return true; } return buf.equals(Buffer.from(buf.toString())); }, bufToString(buf, forceHex = false) { // if (t...
javascript
MIT
4c2b7a5f1074b619eb11ca19796d896c3a8e7098
2026-01-04T15:00:35.175153Z
false
qishibo/AnotherRedisDesktopManager
https://github.com/qishibo/AnotherRedisDesktopManager/blob/4c2b7a5f1074b619eb11ca19796d896c3a8e7098/src/i18n/i18n.js
src/i18n/i18n.js
import Vue from 'vue'; import VueI18n from 'vue-i18n'; import locale from 'element-ui/lib/locale'; import enLocale from 'element-ui/lib/locale/lang/en'; import zhLocale from 'element-ui/lib/locale/lang/zh-CN'; import zhTwLocale from 'element-ui/lib/locale/lang/zh-TW'; import trTrLocale from 'element-ui/lib/locale/lang...
javascript
MIT
4c2b7a5f1074b619eb11ca19796d896c3a8e7098
2026-01-04T15:00:35.175153Z
false
qishibo/AnotherRedisDesktopManager
https://github.com/qishibo/AnotherRedisDesktopManager/blob/4c2b7a5f1074b619eb11ca19796d896c3a8e7098/src/i18n/langs/ko.js
src/i18n/langs/ko.js
const ko = { message: { new_connection: '새 연결', refresh_connection: '새로고침', edit_connection: '연결 편집', duplicate_connection: '연결 복제', del_connection: '연결 삭제', close_connection: '연결 해제', add_new_line: '새 행 추가', dump_to_clipboard: '명령어 복사', redis_version: '레디스 버전', process_id: '프로...
javascript
MIT
4c2b7a5f1074b619eb11ca19796d896c3a8e7098
2026-01-04T15:00:35.175153Z
false
qishibo/AnotherRedisDesktopManager
https://github.com/qishibo/AnotherRedisDesktopManager/blob/4c2b7a5f1074b619eb11ca19796d896c3a8e7098/src/i18n/langs/tw.js
src/i18n/langs/tw.js
const tw = { message: { new_connection: '新增連線', refresh_connection: '重新整理', edit_connection: '編輯連線', duplicate_connection: '複製連接', del_connection: '刪除連線', close_connection: '關閉連線', add_new_line: '新增行', dump_to_clipboard: '複製為命令', redis_version: 'Redis 版本', process_id: '處理程序 ID'...
javascript
MIT
4c2b7a5f1074b619eb11ca19796d896c3a8e7098
2026-01-04T15:00:35.175153Z
false
qishibo/AnotherRedisDesktopManager
https://github.com/qishibo/AnotherRedisDesktopManager/blob/4c2b7a5f1074b619eb11ca19796d896c3a8e7098/src/i18n/langs/ua.js
src/i18n/langs/ua.js
const ua = { message: { new_connection: 'Нове з`єднання', refresh_connection: 'Оновити', edit_connection: 'Редагувати з`єднання', duplicate_connection: 'Копіювати підключення', del_connection: 'Видалити з`єднання', close_connection: 'Закрити з`єднання', add_new_line: 'Додати новий рядок', ...
javascript
MIT
4c2b7a5f1074b619eb11ca19796d896c3a8e7098
2026-01-04T15:00:35.175153Z
false
qishibo/AnotherRedisDesktopManager
https://github.com/qishibo/AnotherRedisDesktopManager/blob/4c2b7a5f1074b619eb11ca19796d896c3a8e7098/src/i18n/langs/pt.js
src/i18n/langs/pt.js
const pt = { message: { new_connection: 'Nova Conexão', refresh_connection: 'Atualizar', edit_connection: 'Editar Conexão', del_connection: 'Deletar Conexão', duplicate_connection: 'Copiar Conexão', close_connection: 'Encerrar Conexão', add_new_line: 'Adicionar nova linha', dump_to_cli...
javascript
MIT
4c2b7a5f1074b619eb11ca19796d896c3a8e7098
2026-01-04T15:00:35.175153Z
false
qishibo/AnotherRedisDesktopManager
https://github.com/qishibo/AnotherRedisDesktopManager/blob/4c2b7a5f1074b619eb11ca19796d896c3a8e7098/src/i18n/langs/es.js
src/i18n/langs/es.js
const es = { message: { new_connection: 'Nueva Conexión', refresh_connection: 'Refrescar', edit_connection: 'Editar Conexión', duplicate_connection: 'Copiar Conexión', del_connection: 'Eliminar Conexión', close_connection: 'Cerrar Conexión', add_new_line: 'Añadir Nueva Linea', dump_to_...
javascript
MIT
4c2b7a5f1074b619eb11ca19796d896c3a8e7098
2026-01-04T15:00:35.175153Z
false
qishibo/AnotherRedisDesktopManager
https://github.com/qishibo/AnotherRedisDesktopManager/blob/4c2b7a5f1074b619eb11ca19796d896c3a8e7098/src/i18n/langs/cn.js
src/i18n/langs/cn.js
const cn = { message: { new_connection: '新建连接', refresh_connection: '刷新', edit_connection: '编辑连接', duplicate_connection: '复制连接', del_connection: '删除连接', close_connection: '关闭连接', add_new_line: '添加新行', dump_to_clipboard: '复制为命令', redis_version: 'Redis版本', process_id: '进程ID', ...
javascript
MIT
4c2b7a5f1074b619eb11ca19796d896c3a8e7098
2026-01-04T15:00:35.175153Z
false
qishibo/AnotherRedisDesktopManager
https://github.com/qishibo/AnotherRedisDesktopManager/blob/4c2b7a5f1074b619eb11ca19796d896c3a8e7098/src/i18n/langs/de.js
src/i18n/langs/de.js
const de = { message: { new_connection: 'Neue Verbindung', refresh_connection: 'Aktualisieren', edit_connection: 'Verbindung bearbeiten', duplicate_connection: 'Verbindung kopieren', del_connection: 'Verbindung löschen', close_connection: 'Verbindung schließen', add_new_line: 'Neue Zeile h...
javascript
MIT
4c2b7a5f1074b619eb11ca19796d896c3a8e7098
2026-01-04T15:00:35.175153Z
false
qishibo/AnotherRedisDesktopManager
https://github.com/qishibo/AnotherRedisDesktopManager/blob/4c2b7a5f1074b619eb11ca19796d896c3a8e7098/src/i18n/langs/en.js
src/i18n/langs/en.js
const en = { message: { new_connection: 'New Connection', refresh_connection: 'Refresh', edit_connection: 'Edit Connection', duplicate_connection: 'Duplicate Connection', del_connection: 'Delete Connection', close_connection: 'Close Connection', add_new_line: 'Add New Line', dump_to_cl...
javascript
MIT
4c2b7a5f1074b619eb11ca19796d896c3a8e7098
2026-01-04T15:00:35.175153Z
false