Diff
checker
टेक्स्ट
टेक्स्ट
छवियां
दस्तावेज़
Excel
फ़ोल्डर्स
Legal
Enterprise
डेस्कटॉप
मूल्य
साइन इन करें
Diffchecker डेस्कटॉप डाउनलोड करें
टेक्स्ट की तुलना करें
दो टेक्स्ट फ़ाइलों के बीच अंतर ढूंढें
उपकरण
इतिहास
रियल-टाइम एडिटर
अपरिवर्तित संक्षिप्त करें
लाइन रैप बंद
लेआउट
विभाजित
संयुक्त
परिवर्तन हाइलाइट करें
स्मार्ट
शब्द
अक्षर
सिंटैक्स हाइलाइटिंग
सिंटैक्स चुनें
अनदेखा करें
टेक्स्ट बदलें
पहले अंतर पर जाएँ
इनपुट संपादित करें
Diffchecker Desktop
Diffchecker चलाने का सबसे सुरक्षित तरीका। Diffchecker Desktop ऐप पाएं: आपके diffs कभी आपके कंप्यूटर से बाहर नहीं जाते!
Desktop पाएं
Untitled diff
बनाया गया
9 वर्ष पहले
Diff कभी समाप्त नहीं होता
साफ़
निर्यात करें
शेयर करें
समझाएं
1 हटाया गया
लाइनें
कुल
हटाया गया
अक्षर
कुल
हटाया गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
158 लाइनें
सभी को कॉपी करें
1 जोड़ा गया
लाइनें
कुल
जोड़ा गया
अक्षर
कुल
जोड़ा गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
158 लाइनें
सभी को कॉपी करें
'use babel';
'use babel';
import path from 'path';
import path from 'path';
import fs from 'fs';
import fs from 'fs';
import url from 'url';
import url from 'url';
import { BufferedProcess, CompositeDisposable } from 'atom';
import { BufferedProcess, CompositeDisposable } from 'atom';
import { remote } from 'electron';
import { remote } from 'electron';
import JSON5 from 'json5';
import JSON5 from 'json5';
const packagePath = atom.packages.resolvePackagePath('atom-live-server');
const packagePath = atom.packages.resolvePackagePath('atom-live-server');
const liveServer = path.join(packagePath, '/node_modules/live-server/live-server.js');
const liveServer = path.join(packagePath, '/node_modules/live-server/live-server.js');
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
const node = path.resolve(process.env.NODE_PATH, '
../../app/apm
/bin/node');
const node = path.resolve(process.env.NODE_PATH, '
/usr
/bin/node');
let serverProcess;
let serverProcess;
let disposeMenu;
let disposeMenu;
let noBrowser;
let noBrowser;
function addStartMenu() {
function addStartMenu() {
disposeMenu = atom.menu.add(
disposeMenu = atom.menu.add(
[{
[{
label: 'Packages',
label: 'Packages',
submenu : [{
submenu : [{
label: 'atom-live-server',
label: 'atom-live-server',
submenu : [{
submenu : [{
label: 'Start server',
label: 'Start server',
command: `atom-live-server:startServer`
command: `atom-live-server:startServer`
}]
}]
}]
}]
}]
}]
);
);
}
}
export default {
export default {
subscriptions: null,
subscriptions: null,
activate(state) {
activate(state) {
this.subscriptions = new CompositeDisposable();
this.subscriptions = new CompositeDisposable();
this.subscriptions.add(atom.commands.add('atom-workspace', {
this.subscriptions.add(atom.commands.add('atom-workspace', {
'atom-live-server:start-3000': () => this.startServer(3000),
'atom-live-server:start-3000': () => this.startServer(3000),
'atom-live-server:start-4000': () => this.startServer(4000),
'atom-live-server:start-4000': () => this.startServer(4000),
'atom-live-server:start-5000': () => this.startServer(5000),
'atom-live-server:start-5000': () => this.startServer(5000),
'atom-live-server:start-8000': () => this.startServer(8000),
'atom-live-server:start-8000': () => this.startServer(8000),
'atom-live-server:start-9000': () => this.startServer(9000),
'atom-live-server:start-9000': () => this.startServer(9000),
'atom-live-server:startServer': () => this.startServer(),
'atom-live-server:startServer': () => this.startServer(),
'atom-live-server:stopServer': () => this.stopServer()
'atom-live-server:stopServer': () => this.stopServer()
}));
}));
addStartMenu();
addStartMenu();
},
},
deactivate() {
deactivate() {
this.stopServer();
this.stopServer();
this.subscriptions.dispose();
this.subscriptions.dispose();
},
},
startServer(port = 3000) {
startServer(port = 3000) {
if (serverProcess) {
if (serverProcess) {
return;
return;
}
}
const targetPath = atom.project.getPaths()[0];
const targetPath = atom.project.getPaths()[0];
if (!targetPath) {
if (!targetPath) {
atom.notifications.addWarning('[Live Server] You haven\'t opened a Project, you must open one.')
atom.notifications.addWarning('[Live Server] You haven\'t opened a Project, you must open one.')
return;
return;
}
}
noBrowser = false;
noBrowser = false;
const args = [];
const args = [];
const stdout = output => {
const stdout = output => {
if (output.indexOf('Serving ') === 0) {
if (output.indexOf('Serving ') === 0) {
const serverUrl = output.split(' at ')[1];
const serverUrl = output.split(' at ')[1];
const port = url.parse(serverUrl).port;
const port = url.parse(serverUrl).port;
const disposeStartMenu = disposeMenu;
const disposeStartMenu = disposeMenu;
disposeMenu = atom.menu.add(
disposeMenu = atom.menu.add(
[{
[{
label: 'Packages',
label: 'Packages',
submenu : [{
submenu : [{
label: 'atom-live-server',
label: 'atom-live-server',
submenu : [{
submenu : [{
label: output.replace('Serving ', 'Stop '),
label: output.replace('Serving ', 'Stop '),
command: `atom-live-server:stopServer`
command: `atom-live-server:stopServer`
}]
}]
}]
}]
}]
}]
);
);
disposeStartMenu.dispose();
disposeStartMenu.dispose();
if (noBrowser) {
if (noBrowser) {
atom.notifications.addSuccess(`[Live Server] Live server started at ${serverUrl}.`);
atom.notifications.addSuccess(`[Live Server] Live server started at ${serverUrl}.`);
}
}
}
}
console.log(`[Live Server] ${output}`);
console.log(`[Live Server] ${output}`);
};
};
const exit = code => {
const exit = code => {
console.info(`[Live Server] Exited with code ${code}`);
console.info(`[Live Server] Exited with code ${code}`);
this.stopServer();
this.stopServer();
}
}
fs.open(path.join(targetPath, '.atom-live-server.json'), 'r', (err, fd) => {
fs.open(path.join(targetPath, '.atom-live-server.json'), 'r', (err, fd) => {
if (!err) {
if (!err) {
const userConfig = JSON5.parse(fs.readFileSync(fd, 'utf8'));
const userConfig = JSON5.parse(fs.readFileSync(fd, 'utf8'));
Object.keys(userConfig).forEach(key => {
Object.keys(userConfig).forEach(key => {
if (key === 'no-browser') {
if (key === 'no-browser') {
if (userConfig[key] === true) {
if (userConfig[key] === true) {
args.push(`--${key}`);
args.push(`--${key}`);
noBrowser = true;
noBrowser = true;
}
}
}
}
else if (key === 'root') {
else if (key === 'root') {
args.unshift(`${userConfig[key]}`)
args.unshift(`${userConfig[key]}`)
}
}
else {
else {
args.push(`--${key}=${userConfig[key]}`);
args.push(`--${key}=${userConfig[key]}`);
}
}
});
});
}
}
if (!args.length) {
if (!args.length) {
args.push(`--port=${port}`);
args.push(`--port=${port}`);
}
}
args.unshift(liveServer);
args.unshift(liveServer);
serverProcess = new BufferedProcess({
serverProcess = new BufferedProcess({
command: node,
command: node,
args,
args,
stdout,
stdout,
exit,
exit,
options: {
options: {
cwd: targetPath,
cwd: targetPath,
}
}
});
});
console.info(`[Live Server] live-server ${args.join(' ')}`);
console.info(`[Live Server] live-server ${args.join(' ')}`);
});
});
},
},
stopServer() {
stopServer() {
try {
try {
serverProcess.kill();
serverProcess.kill();
} catch (e) {
} catch (e) {
console.error(e);
console.error(e);
}
}
serverProcess = null;
serverProcess = null;
const disposeStopMenu = disposeMenu;
const disposeStopMenu = disposeMenu;
addStartMenu();
addStartMenu();
disposeStopMenu && disposeStopMenu.dispose();
disposeStopMenu && disposeStopMenu.dispose();
atom.notifications.addSuccess('[Live Server] Live server is stopped.');
atom.notifications.addSuccess('[Live Server] Live server is stopped.');
}
}
};
};
सेव किए गए Diffs
ऑरिजनल टेक्स्ट
फ़ाइल खोलें
'use babel'; import path from 'path'; import fs from 'fs'; import url from 'url'; import { BufferedProcess, CompositeDisposable } from 'atom'; import { remote } from 'electron'; import JSON5 from 'json5'; const packagePath = atom.packages.resolvePackagePath('atom-live-server'); const liveServer = path.join(packagePath, '/node_modules/live-server/live-server.js'); const node = path.resolve(process.env.NODE_PATH, '../../app/apm/bin/node'); let serverProcess; let disposeMenu; let noBrowser; function addStartMenu() { disposeMenu = atom.menu.add( [{ label: 'Packages', submenu : [{ label: 'atom-live-server', submenu : [{ label: 'Start server', command: `atom-live-server:startServer` }] }] }] ); } export default { subscriptions: null, activate(state) { this.subscriptions = new CompositeDisposable(); this.subscriptions.add(atom.commands.add('atom-workspace', { 'atom-live-server:start-3000': () => this.startServer(3000), 'atom-live-server:start-4000': () => this.startServer(4000), 'atom-live-server:start-5000': () => this.startServer(5000), 'atom-live-server:start-8000': () => this.startServer(8000), 'atom-live-server:start-9000': () => this.startServer(9000), 'atom-live-server:startServer': () => this.startServer(), 'atom-live-server:stopServer': () => this.stopServer() })); addStartMenu(); }, deactivate() { this.stopServer(); this.subscriptions.dispose(); }, startServer(port = 3000) { if (serverProcess) { return; } const targetPath = atom.project.getPaths()[0]; if (!targetPath) { atom.notifications.addWarning('[Live Server] You haven\'t opened a Project, you must open one.') return; } noBrowser = false; const args = []; const stdout = output => { if (output.indexOf('Serving ') === 0) { const serverUrl = output.split(' at ')[1]; const port = url.parse(serverUrl).port; const disposeStartMenu = disposeMenu; disposeMenu = atom.menu.add( [{ label: 'Packages', submenu : [{ label: 'atom-live-server', submenu : [{ label: output.replace('Serving ', 'Stop '), command: `atom-live-server:stopServer` }] }] }] ); disposeStartMenu.dispose(); if (noBrowser) { atom.notifications.addSuccess(`[Live Server] Live server started at ${serverUrl}.`); } } console.log(`[Live Server] ${output}`); }; const exit = code => { console.info(`[Live Server] Exited with code ${code}`); this.stopServer(); } fs.open(path.join(targetPath, '.atom-live-server.json'), 'r', (err, fd) => { if (!err) { const userConfig = JSON5.parse(fs.readFileSync(fd, 'utf8')); Object.keys(userConfig).forEach(key => { if (key === 'no-browser') { if (userConfig[key] === true) { args.push(`--${key}`); noBrowser = true; } } else if (key === 'root') { args.unshift(`${userConfig[key]}`) } else { args.push(`--${key}=${userConfig[key]}`); } }); } if (!args.length) { args.push(`--port=${port}`); } args.unshift(liveServer); serverProcess = new BufferedProcess({ command: node, args, stdout, exit, options: { cwd: targetPath, } }); console.info(`[Live Server] live-server ${args.join(' ')}`); }); }, stopServer() { try { serverProcess.kill(); } catch (e) { console.error(e); } serverProcess = null; const disposeStopMenu = disposeMenu; addStartMenu(); disposeStopMenu && disposeStopMenu.dispose(); atom.notifications.addSuccess('[Live Server] Live server is stopped.'); } };
परिवर्तित टेक्स्ट
फ़ाइल खोलें
'use babel'; import path from 'path'; import fs from 'fs'; import url from 'url'; import { BufferedProcess, CompositeDisposable } from 'atom'; import { remote } from 'electron'; import JSON5 from 'json5'; const packagePath = atom.packages.resolvePackagePath('atom-live-server'); const liveServer = path.join(packagePath, '/node_modules/live-server/live-server.js'); const node = path.resolve(process.env.NODE_PATH, '/usr/bin/node'); let serverProcess; let disposeMenu; let noBrowser; function addStartMenu() { disposeMenu = atom.menu.add( [{ label: 'Packages', submenu : [{ label: 'atom-live-server', submenu : [{ label: 'Start server', command: `atom-live-server:startServer` }] }] }] ); } export default { subscriptions: null, activate(state) { this.subscriptions = new CompositeDisposable(); this.subscriptions.add(atom.commands.add('atom-workspace', { 'atom-live-server:start-3000': () => this.startServer(3000), 'atom-live-server:start-4000': () => this.startServer(4000), 'atom-live-server:start-5000': () => this.startServer(5000), 'atom-live-server:start-8000': () => this.startServer(8000), 'atom-live-server:start-9000': () => this.startServer(9000), 'atom-live-server:startServer': () => this.startServer(), 'atom-live-server:stopServer': () => this.stopServer() })); addStartMenu(); }, deactivate() { this.stopServer(); this.subscriptions.dispose(); }, startServer(port = 3000) { if (serverProcess) { return; } const targetPath = atom.project.getPaths()[0]; if (!targetPath) { atom.notifications.addWarning('[Live Server] You haven\'t opened a Project, you must open one.') return; } noBrowser = false; const args = []; const stdout = output => { if (output.indexOf('Serving ') === 0) { const serverUrl = output.split(' at ')[1]; const port = url.parse(serverUrl).port; const disposeStartMenu = disposeMenu; disposeMenu = atom.menu.add( [{ label: 'Packages', submenu : [{ label: 'atom-live-server', submenu : [{ label: output.replace('Serving ', 'Stop '), command: `atom-live-server:stopServer` }] }] }] ); disposeStartMenu.dispose(); if (noBrowser) { atom.notifications.addSuccess(`[Live Server] Live server started at ${serverUrl}.`); } } console.log(`[Live Server] ${output}`); }; const exit = code => { console.info(`[Live Server] Exited with code ${code}`); this.stopServer(); } fs.open(path.join(targetPath, '.atom-live-server.json'), 'r', (err, fd) => { if (!err) { const userConfig = JSON5.parse(fs.readFileSync(fd, 'utf8')); Object.keys(userConfig).forEach(key => { if (key === 'no-browser') { if (userConfig[key] === true) { args.push(`--${key}`); noBrowser = true; } } else if (key === 'root') { args.unshift(`${userConfig[key]}`) } else { args.push(`--${key}=${userConfig[key]}`); } }); } if (!args.length) { args.push(`--port=${port}`); } args.unshift(liveServer); serverProcess = new BufferedProcess({ command: node, args, stdout, exit, options: { cwd: targetPath, } }); console.info(`[Live Server] live-server ${args.join(' ')}`); }); }, stopServer() { try { serverProcess.kill(); } catch (e) { console.error(e); } serverProcess = null; const disposeStopMenu = disposeMenu; addStartMenu(); disposeStopMenu && disposeStopMenu.dispose(); atom.notifications.addSuccess('[Live Server] Live server is stopped.'); } };
अंतर खोजें