From ef1b927861f9a949aed20341144ffb5bfd42f038 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Mon, 19 Sep 2022 11:22:21 +1000 Subject: Removing the web client --- javascript/app/components/identifier-name.js | 61 ---------------------------- 1 file changed, 61 deletions(-) delete mode 100644 javascript/app/components/identifier-name.js (limited to 'javascript/app/components/identifier-name.js') diff --git a/javascript/app/components/identifier-name.js b/javascript/app/components/identifier-name.js deleted file mode 100644 index 4b01b03..0000000 --- a/javascript/app/components/identifier-name.js +++ /dev/null @@ -1,61 +0,0 @@ -import Ember from 'ember'; -import {goToDefinition} from '../utils/go-to-definition'; - -export default Ember.Component.extend({ - store : Ember.inject.service('store'), - name : Ember.computed('identifierElement',function() { - const element = this.get('identifierElement'); - if(element) { - return element.innerText; - } - }), - style : Ember.computed('identifierElement',function() { - const element = this.get('identifierElement'); - if(element) { - return new Ember.String.htmlSafe("color:"+element.style.color); - } - }), - locationInfo : Ember.computed('identifierInfo','identifierOccurrence',function() { - if(this.get('identifierOccurrence.sort.tag') === "ModuleId") { - return this.get('identifierOccurrence.sort.contents'); - } else { - return this.get('identifierInfo.locationInfo'); - } - }), - location : Ember.computed('locationInfo',function() { - const loc = this.get('locationInfo'); - if(loc) { - if(loc.tag === "ExactLocation") { - return loc.modulePath; - } else if(loc.tag === "ApproximateLocation") { - if(loc.entity === "Mod") { - return loc.packageId.name + "-" + loc.packageId.version; - } else { - return loc.packageId.name + "-" + loc.packageId.version + " " + loc.moduleName; - } - } else { - return loc.contents; - } - } else { - return ""; - } - }), - isExternalIdentifier : Ember.computed('identifierInfo',function () { - return (this.get('identifierInfo.sort') === "External"); - }), - actions : { - goToDefinition (event) { - goToDefinition(this.get('store'), - this.get('locationInfo'), - event.which, - this.get('currentLineNumber')); - return false; - }, - findReferences (identifierInfo,currentPackageId) { - this.get('findReferences')(currentPackageId, - identifierInfo.externalId, - identifierInfo.demangledOccName, - identifierInfo.locationInfo); - } - } -}); -- cgit v1.2.3