chore: format all frontend files (#430)
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import {
|
||||
useEffect,
|
||||
useRef,
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -13,5 +13,5 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
/// <reference types='@coze-arch/bot-typings' />
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user