@@ -6,7 +6,6 @@ import { HideEdgeNames, SETTINGS, SimplifyNodeNames } from "./Settings";
66import { EditorModeController } from "./editorMode" ;
77import { Theme , ThemeManager } from "./Theme" ;
88import { ShownLabels , ShownLabelsValue } from "./ShownLabels" ;
9- import hashJson from './hash.json'
109
1110@injectable ( )
1211export class SettingsUI extends AccordionUiExtension {
@@ -43,29 +42,13 @@ export class SettingsUI extends AccordionUiExtension {
4342 this . addBooleanSwitch ( grid , "Hide Edge Names" , this . hideEdgeNames ) ;
4443 this . addBooleanSwitch ( grid , "Simplify Node Names" , this . simplifyNodeNames ) ;
4544 this . addSwitch ( grid , "Read Only" , this . editorModeController , { true : "view" , false : "edit" } ) ;
46- contentElement . appendChild ( this . buildCommitHash ( ) )
4745 }
4846
4947 protected initializeHeaderContent ( headerElement : HTMLElement ) : void {
5048 headerElement . classList . add ( "settings-accordion-icon" ) ;
5149 headerElement . innerText = "Settings" ;
5250 }
5351
54- private buildCommitHash ( ) : HTMLElement {
55- const holder = document . createElement ( 'div' )
56- holder . id = 'hashHolder'
57- holder . innerHTML = 'Commit:'
58-
59- const link = document . createElement ( 'a' )
60- link . innerHTML = hashJson . hash . substring ( 0 , 6 )
61- link . href = `https://github.com/DataFlowAnalysis/OnlineEditor/tree/${ hashJson . hash } `
62- link . id = 'hash'
63- link . target = '_blank'
64-
65- holder . appendChild ( link )
66- return holder
67- }
68-
6952 private addBooleanSwitch ( container : HTMLElement , title : string , value : SettingsValue < boolean > ) : void {
7053 this . addSwitch < boolean > ( container , title , value , { true : true , false : false } ) ;
7154 }
0 commit comments