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 { useLocation, useNavigate } from 'react-router-dom';
|
||||
|
||||
import { renderHook } from '@testing-library/react';
|
||||
@@ -72,7 +72,9 @@ describe('useCheckLogin', () => {
|
||||
renderHook(() => useCheckLogin({ needLogin: true }));
|
||||
|
||||
expect(mockNavigate).toBeCalledWith(
|
||||
`${signPath}?${signRedirectKey}=${encodeURIComponent(`${mockLocation.pathname}${mockLocation.search}`)}`,
|
||||
`${signPath}?${signRedirectKey}=${encodeURIComponent(
|
||||
`${mockLocation.pathname}${mockLocation.search}`,
|
||||
)}`,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { useLocation, useNavigate } from 'react-router-dom';
|
||||
|
||||
import { useCheckLoginBase } from '@coze-foundation/account-base';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
export {
|
||||
getUserInfo,
|
||||
getLoginStatus,
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { vi, describe, it, expect, beforeEach } from 'vitest';
|
||||
import { passport } from '@coze-studio/api-schema';
|
||||
import { passportApi } from '../index';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { type UserUpdateProfileRequest } from '@coze-studio/api-schema/passport';
|
||||
import { passport } from '@coze-studio/api-schema';
|
||||
import { resetUserStore, type UserInfo } from '@coze-foundation/account-base';
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
|
||||
import { vi, describe, it, expect, beforeEach } from 'vitest';
|
||||
import {
|
||||
refreshUserInfo,
|
||||
|
||||
@@ -13,6 +13,6 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
export const signPath = '/sign';
|
||||
export const signRedirectKey = 'redirect';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
/* eslint-disable @coze-arch/use-error-in-catch */
|
||||
import {
|
||||
refreshUserInfoBase,
|
||||
|
||||
Reference in New Issue
Block a user