Skip to content

Commit 07171b3

Browse files
committed
refactor: fix eslint issues
1 parent 304a97c commit 07171b3

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

src/extensionsIntegrated/phoenix-pro/browser-context/image-gallery.js

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* Copyright (c) 2021 - present core.ai
33
* SPDX-License-Identifier: LicenseRef-Proprietary
44
*/
5-
/*global GLOBALS, LivePreviewView, proConstants, config, cssStyles, strings, icons, dismissUIAndCleanupState, customReturns*/
5+
/*global GLOBALS, LivePreviewView, proConstants, config, cssStyles,
6+
strings, icons, dismissUIAndCleanupState, customReturns*/
67

78
const DATA_BRACKETS_ID_ATTR = GLOBALS.DATA_BRACKETS_ID_ATTR;
89
const PHCODE_INTERNAL_ATTR = GLOBALS.PHCODE_INTERNAL_ATTR;
@@ -154,7 +155,9 @@ ImageRibbonGallery.prototype = {
154155
155156
<div class="phoenix-image-gallery-search-container">
156157
<div class="search-wrapper">
157-
<button class="search-icon" title="${strings.imageGallerySearchButton}">${icons.search}</button>
158+
<button class="search-icon" title="${strings.imageGallerySearchButton}">
159+
${icons.search}
160+
</button>
158161
<input
159162
type="text"
160163
placeholder="${strings.imageGallerySearchPlaceholder}"
@@ -163,12 +166,16 @@ ImageRibbonGallery.prototype = {
163166
</div>
164167
165168
<div class='phoenix-image-gallery-upload-container'>
166-
<button title="${strings.imageGallerySelectFromComputerTooltip}">${icons.selectImageFromComputer} ${strings.imageGallerySelectFromComputer}</button>
167-
<input type="file" class="phoenix-file-input" accept="image/*" style="display: none !important;">
169+
<button title="${strings.imageGallerySelectFromComputerTooltip}">
170+
${icons.selectImageFromComputer} ${strings.imageGallerySelectFromComputer}
171+
</button>
172+
173+
<input type="file" class="phoenix-file-input" accept="image/*">
168174
</div>
169175
170176
<div class='phoenix-image-gallery-right-buttons'>
171-
<button class='phoenix-image-gallery-download-folder-button' title="${strings.imageGallerySelectDownloadFolder}">
177+
<button class='phoenix-image-gallery-download-folder-button'
178+
title="${strings.imageGallerySelectDownloadFolder}">
172179
${icons.folderSettings}
173180
</button>
174181
@@ -394,7 +401,8 @@ ImageRibbonGallery.prototype = {
394401
this._clearCache();
395402
}
396403

397-
const apiUrl = `https://images.phcode.dev/api/images/search?q=${encodeURIComponent(searchQuery)}&per_page=10&page=${page}&safe=true`;
404+
const apiUrl = `https://images.phcode.dev/api/images/search?` +
405+
`q=${encodeURIComponent(searchQuery)}&per_page=10&page=${page}&safe=true`;
398406

399407
if (!append) {
400408
this._showLoading();

src/extensionsIntegrated/phoenix-pro/browser-css/image-gallery.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@
109109
}
110110
}
111111

112+
.phoenix-file-input {
113+
display: none !important;
114+
}
115+
112116
.phoenix-image-gallery-upload-container button {
113117
display: flex !important;
114118
align-items: center !important;

0 commit comments

Comments
 (0)