chore: format all frontend files (#430)

This commit is contained in:
tecvan
2025-07-31 23:15:48 +08:00
committed by GitHub
parent 8b078ff013
commit 6995cec404
8787 changed files with 11975 additions and 10924 deletions

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {
useEffect,
useRef,

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export const enum EventNames {
BrowserUpgradeTipsVisible = 'browserUpgradeTipsVisible',
BrowserUpgradeClick = 'browserUpgradeClick',

View File

@@ -13,5 +13,5 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export { BrowserUpgradeWrap } from './components/browser-upgrade-wrap';

View File

@@ -13,5 +13,5 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/// <reference types='@coze-arch/bot-typings' />

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export function compareVersion(version1: string, version2: string): number {
// Split the version number string into an array of numbers, here use map (Number) to ensure conversion to numeric type
const parts1 = version1.split('.').map(Number);

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { detect, type Browser } from 'detect-browser';
import { compareVersion } from './compare-version';
@@ -98,8 +98,7 @@ const testPCVersion = () => {
return {
downloadUrl: IS_OVERSEA
? (INTERNATIONAL_BROWSER_DOWNLOAD_CONFIG[name] ??
INTERNATIONAL_CHROME_URL)
: (CN_BROWSER_DOWNLOAD_CONFIG[name] ?? CN_CHROME_URL),
? INTERNATIONAL_BROWSER_DOWNLOAD_CONFIG[name] ?? INTERNATIONAL_CHROME_URL
: CN_BROWSER_DOWNLOAD_CONFIG[name] ?? CN_CHROME_URL,
};
};

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export const isMobileFromUA = () => {
const { userAgent } = navigator;
// Check if it is a mobile device