Diff
checker
टेक्स्ट
टेक्स्ट
छवियां
दस्तावेज़
Excel
फ़ोल्डर्स
Legal
Enterprise
डेस्कटॉप
मूल्य
साइन इन करें
Diffchecker डेस्कटॉप डाउनलोड करें
टेक्स्ट की तुलना करें
दो टेक्स्ट फ़ाइलों के बीच अंतर ढूंढें
उपकरण
इतिहास
रियल-टाइम एडिटर
अपरिवर्तित संक्षिप्त करें
लाइन रैप बंद
लेआउट
विभाजित
संयुक्त
परिवर्तन हाइलाइट करें
स्मार्ट
शब्द
अक्षर
सिंटैक्स हाइलाइटिंग
सिंटैक्स चुनें
अनदेखा करें
टेक्स्ट बदलें
पहले अंतर पर जाएँ
इनपुट संपादित करें
Diffchecker Desktop
Diffchecker चलाने का सबसे सुरक्षित तरीका। Diffchecker Desktop ऐप पाएं: आपके diffs कभी आपके कंप्यूटर से बाहर नहीं जाते!
Desktop पाएं
Untitled diff
बनाया गया
7 वर्ष पहले
Diff कभी समाप्त नहीं होता
साफ़
निर्यात करें
शेयर करें
समझाएं
56 हटाए गए
लाइनें
कुल
हटाया गया
अक्षर
कुल
हटाया गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
62 लाइनें
सभी को कॉपी करें
39 जोड़े गए
लाइनें
कुल
जोड़ा गया
अक्षर
कुल
जोड़ा गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
46 लाइनें
सभी को कॉपी करें
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
import { inject as service } from
'
@ember
/service
'
;
import { inject as service } from
"
@ember
-decorators
/service
"
;
import Component from '@ember/component';
import Component from '@ember/component';
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
import {
computed } from
'
@ember/object
'
;
import {
action, wrapComputed,
computed } from
"
@ember/object
"
;
import { isEmpty } from '@ember/utils';
import { isEmpty } from '@ember/utils';
import { task } from 'ember-concurrency';
import { task } from 'ember-concurrency';
import { filterByFilePath } from '../utils';
import { filterByFilePath } from '../utils';
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
export default
Component.
extend
(
{
export default
class AddonSourceUsagesComponent
extend
s Component
{
visibleUsageCount
:
25
,
visibleUsageCount
=
25
;
showUsages
=
false
;
showUsages
:
false
,
usages
=
null
;
regex
=
false
;
usages
:
null
,
fileFilter
=
null
;
regex
:
false
,
fileFilter
:
null
,
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
codeSearch
: service(),
@service
codeSearch
;
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
visibleUsages:
computed('visibleUsageCount', 'usages'
, function
() {
@
computed('visibleUsageCount', 'usages'
)
get visibleUsages
() {
return this.usages.slice(0, this.visibleUsageCount);
return this.usages.slice(0, this.visibleUsageCount);
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
}
),
}
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
moreUsages:
computed('visibleUsageCount', 'usages'
, function
() {
@
computed('visibleUsageCount', 'usages'
)
get moreUsages
() {
return this.visibleUsageCount < this.usages.length;
return this.visibleUsageCount < this.usages.length;
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
}
),
}
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
fetchUsages:
task(function* () {
@(
task(function* () {
let usages = yield this.codeSearch.usages.perform(this.addon.id, this.query, this.regex);
let usages = yield this.codeSearch.usages.perform(this.addon.id, this.query, this.regex);
this.set('usages', filterByFilePath(usages, this.fileFilter));
this.set('usages', filterByFilePath(usages, this.fileFilter));
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
}).drop()
,
}).drop()
)
fetchUsages
;
actions: {
toggleUsages() {
this.toggleProperty('showUsages');
if (this.showUsages && this.usages === null) {
this.
fetchUsages
.perform();
}
},
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
viewMore
() {
@action
let newUsageCount =
this.
visibleUsageCount + 25;
toggleUsages
() {
this.
set('visibleUsageCount', newUsageCount
);
this.toggleProperty('showUsages');
if (
this.
showUsages && this.usages === null) {
this.
fetchUsages.perform(
);
}
}
}
}
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
});
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
fun
ction
filterByFilePath(usages, filterTerm) {
@a
ction
if (isEmpty(filterTerm)
) {
viewMore(
) {
return usages;
let newUsageCount = this.visibleUsageCount + 25;
}
this.set('visibleUsageCount', newUsageCount);
let filterRegex;
try {
filterRegex = new RegExp(filterTerm);
} catch(e) {
return [];
}
}
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
return usages.filter((usage) => {
return usage.filename.match(filterRegex);
});
}
}
सेव किए गए Diffs
ऑरिजनल टेक्स्ट
फ़ाइल खोलें
import { inject as service } from '@ember/service'; import Component from '@ember/component'; import { computed } from '@ember/object'; import { isEmpty } from '@ember/utils'; import { task } from 'ember-concurrency'; import { filterByFilePath } from '../utils'; export default Component.extend({ visibleUsageCount: 25, showUsages: false, usages: null, regex: false, fileFilter: null, codeSearch: service(), visibleUsages: computed('visibleUsageCount', 'usages', function() { return this.usages.slice(0, this.visibleUsageCount); }), moreUsages: computed('visibleUsageCount', 'usages', function() { return this.visibleUsageCount < this.usages.length; }), fetchUsages: task(function* () { let usages = yield this.codeSearch.usages.perform(this.addon.id, this.query, this.regex); this.set('usages', filterByFilePath(usages, this.fileFilter)); }).drop(), actions: { toggleUsages() { this.toggleProperty('showUsages'); if (this.showUsages && this.usages === null) { this.fetchUsages.perform(); } }, viewMore() { let newUsageCount = this.visibleUsageCount + 25; this.set('visibleUsageCount', newUsageCount); } } }); function filterByFilePath(usages, filterTerm) { if (isEmpty(filterTerm)) { return usages; } let filterRegex; try { filterRegex = new RegExp(filterTerm); } catch(e) { return []; } return usages.filter((usage) => { return usage.filename.match(filterRegex); }); }
परिवर्तित टेक्स्ट
फ़ाइल खोलें
import { inject as service } from "@ember-decorators/service"; import Component from '@ember/component'; import { action, wrapComputed, computed } from "@ember/object"; import { isEmpty } from '@ember/utils'; import { task } from 'ember-concurrency'; import { filterByFilePath } from '../utils'; export default class AddonSourceUsagesComponent extends Component { visibleUsageCount = 25; showUsages = false; usages = null; regex = false; fileFilter = null; @service codeSearch; @computed('visibleUsageCount', 'usages') get visibleUsages() { return this.usages.slice(0, this.visibleUsageCount); } @computed('visibleUsageCount', 'usages') get moreUsages() { return this.visibleUsageCount < this.usages.length; } @(task(function* () { let usages = yield this.codeSearch.usages.perform(this.addon.id, this.query, this.regex); this.set('usages', filterByFilePath(usages, this.fileFilter)); }).drop()) fetchUsages; @action toggleUsages() { this.toggleProperty('showUsages'); if (this.showUsages && this.usages === null) { this.fetchUsages.perform(); } } @action viewMore() { let newUsageCount = this.visibleUsageCount + 25; this.set('visibleUsageCount', newUsageCount); } }
अंतर खोजें