Diff
checker
テキスト
テキスト
画像
ドキュメント
Excel
フォルダ
Legal
Enterprise
デスクトップ
料金
ログイン
Diffchecker デスクトップのダウンロード
テキスト比較
2 つのテキスト ファイルの違いを見つける
ツール
履歴
ライブエディター
未変更行を折りたたむ
折り返しなし
レイアウト
分割
統合
比較精度
スマート
単語
文字
シンタックスハイライト
構文を選択
無視
テキスト変換
最初の差分へ移動
入力を編集
Diffchecker Desktop
Diffcheckerを実行する最も安全な方法。Diffchecker Desktopアプリを入手:あなたの差分はコンピューターから出ることはありません!
Desktopを入手
Untitled diff
作成日
7 年前
差分は期限切れになりません
クリア
エクスポート
共有
説明
5 削除
行
合計
削除
文字
合計
削除
この機能を引き続き使用するには、アップグレードしてください
Diff
checker
Pro
価格を見る
45 行
すべてコピー
13 追加
行
合計
追加
文字
合計
追加
この機能を引き続き使用するには、アップグレードしてください
Diff
checker
Pro
価格を見る
46 行
すべてコピー
import { inject as service } from "@ember-decorators/service";
import { inject as service } from "@ember-decorators/service";
コピー
コピー済み
コピー
コピー済み
import Component from '@
ember
/component';
import Component from '@
glimmer
/component';
import { action,
wrapComputed,
computed } from "@ember/object";
import { action,
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;
@tracked usages = null;
@tracked usages = null;
コピー
コピー済み
コピー
コピー済み
regex = false;
fileFilter = null;
@service codeSearch;
@service codeSearch;
get visibleUsages() {
get visibleUsages() {
return this.usages.slice(0, this.visibleUsageCount);
return this.usages.slice(0, this.visibleUsageCount);
}
}
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.usages = filterByFilePath(usages, this.
fileFilter);
this.
args.
addon.id,
this.
args.
query,
this.
args.
regex
);
this.usages = filterByFilePath(usages, this.
args.
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;
}
}
}
}
保存された差分
原文
ファイルを開く
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; } }
変更されたテキスト
ファイルを開く
import { inject as service } from "@ember-decorators/service"; import Component from '@glimmer/component'; import { action, 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; @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.args.addon.id, this.args.query, this.args.regex ); this.usages = filterByFilePath(usages, this.args.fileFilter); }).drop()) fetchUsages; @action toggleUsages() { this.showUsages = !this.showUsages; if (this.showUsages && this.usages === null) { this.fetchUsages.perform(); } } @action viewMore() { this.visibleUsageCount += 25; } }
違いを見つける