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.
|
||||
*/
|
||||
|
||||
|
||||
export type ItemType<T> = T extends (infer U)[] ? U : T;
|
||||
|
||||
export type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { shortcut_command } from '@coze-arch/bot-api/playground_api';
|
||||
|
||||
import { shortid } from '../uuid';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import {
|
||||
ZipIcon,
|
||||
VideoIcon,
|
||||
@@ -27,10 +27,7 @@ import {
|
||||
} from '@coze-common/chat-uikit';
|
||||
import { FILE_TYPE_CONFIG, FileTypeEnum } from '@coze-common/chat-core';
|
||||
import { I18n } from '@coze-arch/i18n';
|
||||
import {
|
||||
InputType,
|
||||
shortcut_command,
|
||||
} from '@coze-arch/bot-api/playground_api';
|
||||
import { InputType, shortcut_command } from '@coze-arch/bot-api/playground_api';
|
||||
|
||||
export type UploadItemType =
|
||||
| InputType.UploadImage
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { exhaustiveCheckSimple } from '@coze-common/chat-area-utils';
|
||||
|
||||
import { type UIMode } from '../shortcut-bar/types';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
export function isApiError(error: unknown): error is { name: 'ApiError' } {
|
||||
if (!error) {
|
||||
return false;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
// Stitching queries based on template_query and components
|
||||
export const getQueryFromTemplate = (
|
||||
templateQuery: string,
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import {
|
||||
shortcut_command,
|
||||
type ToolParams,
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
// Align the logic of card-builder generating ID, make a copy temporarily, and plan to use the underlying capabilities of card-buidler directly in the future
|
||||
import { nanoid, customAlphabet } from 'nanoid';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user