Diff
checker
Texto
Texto
Imagens
Documentos
Excel
Pastas
Legal
Enterprise
Aplicativo para desktop
Preços
Fazer login
Baixar o Diffchecker Desktop
Comparar texto
Encontre a diferença entre dois arquivos de texto
Ferramentas
Histórico
Editor live
Recolher inalteradas
Sem quebra de linha
Layout
Dividido
Unificado
Nível de detalhe
Inteligente
Palavra
Caractere
Realce de sintaxe
Escolher sintaxe
Ignorar
Transformar texto
Ir à primeira mudança
Editar entrada
Diffchecker Desktop
A maneira mais segura de usar o Diffchecker. Obtenha o aplicativo Diffchecker Desktop: seus diffs nunca saem do seu computador!
Obter Desktop
Untitled diff
Criado
há 7 anos
O diff nunca expira
Limpar
Exportar
Compartilhar
Explicar
6 remoções
Linhas
Total
Removido
Caracteres
Total
Removido
Para continuar usando este recurso, atualize para
Diff
checker
Pro
Ver preços
47 linhas
Copiar tudo
2 adições
Linhas
Total
Adicionado
Caracteres
Total
Adicionado
Para continuar usando este recurso, atualize para
Diff
checker
Pro
Ver preços
45 linhas
Copiar tudo
import { inject as service } from "@ember-decorators/service";
import { inject as service } from "@ember-decorators/service";
import Component from '@ember/component';
import Component from '@ember/component';
import { action, wrapComputed, 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 class AddonSourceUsagesComponent extends Component {
export default class AddonSourceUsagesComponent extends Component {
@tracked visibleUsageCount = 25;
@tracked visibleUsageCount = 25;
@tracked showUsages = false;
@tracked showUsages = false;
Copiar
Copiado
Copiar
Copiado
@tracked usages = null;
Copiar
Copiado
Copiar
Copiado
usages = null;
regex = false;
regex = false;
fileFilter = null;
fileFilter = null;
@service codeSearch;
@service codeSearch;
Copiar
Copiado
Copiar
Copiado
@computed('usages')
get visibleUsages() {
get visibleUsages() {
return this.usages.slice(0, this.visibleUsageCount);
return this.usages.slice(0, this.visibleUsageCount);
}
}
Copiar
Copiado
Copiar
Copiado
@computed('usages')
get moreUsages() {
get moreUsages() {
return this.visibleUsageCount < this.usages.length;
return this.visibleUsageCount < this.usages.length;
}
}
@(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);
Copiar
Copiado
Copiar
Copiado
this.
set('
usages
',
filterByFilePath(usages, this.fileFilter)
)
;
this.
usages
=
filterByFilePath(usages, this.fileFilter)
;
}).drop())
}).drop())
fetchUsages;
fetchUsages;
@action
@action
toggleUsages() {
toggleUsages() {
this.showUsages = !this.showUsages;
this.showUsages = !this.showUsages;
if (this.showUsages && this.usages === null) {
if (this.showUsages && this.usages === null) {
this.fetchUsages.perform();
this.fetchUsages.perform();
}
}
}
}
@action
@action
viewMore() {
viewMore() {
this.visibleUsageCount += 25;
this.visibleUsageCount += 25;
}
}
}
}
Diferenças salvas
Texto original
Abrir arquivo
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 { @tracked visibleUsageCount = 25; @tracked showUsages = false; usages = null; regex = false; fileFilter = null; @service codeSearch; @computed('usages') get visibleUsages() { return this.usages.slice(0, this.visibleUsageCount); } @computed('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.showUsages = !this.showUsages; if (this.showUsages && this.usages === null) { this.fetchUsages.perform(); } } @action viewMore() { this.visibleUsageCount += 25; } }
Texto alterado
Abrir arquivo
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 { @tracked visibleUsageCount = 25; @tracked showUsages = false; @tracked usages = null; regex = false; fileFilter = null; @service codeSearch; get visibleUsages() { return this.usages.slice(0, this.visibleUsageCount); } 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.usages = filterByFilePath(usages, this.fileFilter); }).drop()) fetchUsages; @action toggleUsages() { this.showUsages = !this.showUsages; if (this.showUsages && this.usages === null) { this.fetchUsages.perform(); } } @action viewMore() { this.visibleUsageCount += 25; } }
Encontrar Diferença