Skip to content

Commit

Permalink
fix dufoli#117 replace text by icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Dufgui committed May 25, 2024
1 parent 8c7537b commit 3d4d9da
Showing 1 changed file with 35 additions and 16 deletions.
51 changes: 35 additions & 16 deletions addon/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,29 +374,48 @@ class App extends React.PureComponent {
h("div", {className: "main", id: "mainTabs"},
h(AllDataBox, {ref: "showAllDataBox", sfHost, showDetailsSupported: !inLightning && !inInspector, linkTarget, contextUrl, onContextRecordChange: this.onContextRecordChange, isFieldsPresent}),
h("div", {className: "slds-p-vertical_x-small slds-p-horizontal_x-small slds-border_bottom"},
h("div", {className: "slds-m-bottom_xx-small"},
h("a", {ref: "dataExportBtn", href: exportHref, target: linkTarget, className: "page-button slds-button slds-button_neutral"}, h("span", {}, "Data ", h("u", {}, "E"), "xport"))
),
h("div", {className: "slds-m-bottom_xx-small"},
h("a", {ref: "dataImportBtn", href: importHref, target: linkTarget, className: "page-button slds-button slds-button_neutral"}, h("span", {}, "Data ", h("u", {}, "I"), "mport"))
),
h("div", {className: "slds-m-bottom_xx-small"},
h("a", {ref: "apexRunnerBtn", href: apexRunnerHref, target: linkTarget, className: "page-button slds-button slds-button_neutral"}, h("span", {}, "Run Apex ", h("u", {}, "C"), "ode"))
h("div", {className: "slds-grid slds-gutters slds-grid_align-center"},
h("div", {className: "slds-col slds-size_6-of-12"},
h("a", {ref: "dataExportBtn", href: exportHref, target: linkTarget, className: "slds-button slds-button_icon slds-button_icon-border-filled slds-button_icon-large", title: "Data Export"},
h("svg", {className: "slds-button__icon_large"}, h("use", {xlinkHref: "symbols.svg#download"})),
h("span", {className: "slds-assistive-text"}, "Data Export"),
),
),
h("div", {className: "slds-col slds-size_6-of-12"},
h("a", {ref: "dataImportBtn", href: importHref, target: linkTarget, className: "slds-button slds-button_icon slds-button_icon-border-filled slds-button_icon-large", title: "Data Import"},
h("svg", {className: "slds-button__icon_large"}, h("use", {xlinkHref: "symbols.svg#upload"})),
h("span", {className: "slds-assistive-text"}, "Data Import"),
),
),
),
h("div", {className: "slds-m-bottom_xx-small"},
h("a", {ref: "streamingBtn", href: streamingHref, target: linkTarget, className: "page-button slds-button slds-button_neutral"}, h("span", {}, "Manage S", h("u", {}, "t"), "reaming"))
h("div", {className: "slds-grid slds-gutters slds-grid_align-center"},
h("div", {className: "slds-col slds-size_6-of-12"},
h("a", {ref: "apexRunnerBtn", href: apexRunnerHref, target: linkTarget, className: "slds-button slds-button_icon slds-button_icon-border-filled slds-button_icon-large", title: "Run Apex Code"},
h("svg", {className: "slds-button__icon_large"}, h("use", {xlinkHref: "symbols.svg#apex"})),
h("span", {className: "slds-assistive-text"}, "Run Apex Code"),
),
),
h("div", {className: "slds-col slds-size_6-of-12"},
h("a", {ref: "streamingBtn", href: streamingHref, target: linkTarget, className: "slds-button slds-button_icon slds-button_icon-border-filled slds-button_icon-large", title: "Manage Streaming"},
h("svg", {className: "slds-button__icon_large"}, h("use", {xlinkHref: "symbols.svg#broadcast"})),
h("span", {className: "slds-assistive-text"}, "Manage Streaming"),
),
),
),
h("div", {},
h("a", {ref: "limitsBtn", href: limitsHref, target: linkTarget, className: "page-button slds-button slds-button_neutral"}, h("span", {}, "Org ", h("u", {}, "L"), "imits"))
h("a", {ref: "limitsBtn", href: limitsHref, target: linkTarget, className: "slds-button slds-button_icon slds-button_icon-border-filled slds-button_icon-large", title: "Limits"},
h("svg", {className: "slds-button__icon_large"}, h("use", {xlinkHref: "symbols.svg#ban"})),
h("span", {className: "slds-assistive-text"}, "Limits"),
),
),
h("div", {className: "slds-p-vertical_x-small slds-p-horizontal_x-small slds-border_bottom"},
// Advanded features should be put below this line, and the layout adjusted so they are below the fold
h("div", {className: "slds-m-bottom_xx-small"},
h("a", {ref: "metaRetrieveBtn", href: "metadata-retrieve.html?" + hostArg, target: linkTarget, className: "page-button slds-button slds-button_neutral"}, h("span", {}, h("u", {}, "D"), "ownload Metadata"))
h("a", {ref: "a", href: "metadata-retrieve.html?" + hostArg, target: linkTarget, className: "slds-button slds-button_icon slds-button_icon-border-filled slds-button_icon-large", title: "Download Metadata"},
h("svg", {className: "slds-button__icon_large"}, h("use", {xlinkHref: "symbols.svg#package"})),
h("span", {className: "slds-assistive-text"}, "Download Metadata"),
),
h("div", {className: "slds-m-bottom_xx-small"},
h("a", {ref: "apiExploreBtn", href: "explore-api.html?" + hostArg, target: linkTarget, className: "page-button slds-button slds-button_neutral"}, h("span", {}, "E", h("u", {}, "x"), "plore API"))
h("a", {ref: "apiExploreBtn", href: "explore-api.html?" + hostArg, target: linkTarget, className: "slds-button slds-button_icon slds-button_icon-border-filled slds-button_icon-large", title: "Explore API"},
h("svg", {className: "slds-button__icon_large"}, h("use", {xlinkHref: "symbols.svg#description"})),
h("span", {className: "slds-assistive-text"}, "E", h("u", {}, "x"), "plore API"),
),
// Workaround for in Lightning the link to Setup always opens a new tab, and the link back cannot open a new tab.
inLightning && isInSetup && h("div", {className: "slds-m-bottom_xx-small"},
Expand Down

0 comments on commit 3d4d9da

Please sign in to comment.