This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://gist.github.com/Klerith/85fe516a31580bd2b9d6090002ee3d24 | |
import 'package:flutter/material.dart'; | |
import 'package:image_picker/image_picker.dart'; | |
import 'package:gemini_chat/config/theme/app_theme.dart'; | |
import 'package:gemini_chat/presentation/widgets/chat/custom_bottom_input.dart'; | |
const imageArtStyles = [ | |
'Realista', | |
'Acuarela', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { GoogleGenAI } from '@google/genai'; | |
const fileMimeTypesByExtension = { | |
jpg: 'image/jpg', | |
jpeg: 'image/jpeg', | |
png: 'image/png', | |
gif: 'image/gif', | |
svg: 'image/svg+xml', | |
pdf: 'application/pdf', | |
doc: 'application/msword', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:io'; | |
import 'package:flutter/material.dart'; | |
import 'package:gemini_chat/config/theme/app_theme.dart'; | |
import 'package:flutter_chat_types/flutter_chat_types.dart' as types; | |
import 'package:image_picker/image_picker.dart'; | |
class CustomBottomInput extends StatefulWidget { | |
final Function(types.PartialText, {List<XFile> images}) onSend; | |
final Function()? onAttachmentPressed; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export enum Plan { | |
BASIC = 'basic', | |
PRO = 'pro', | |
PREMIUM = 'premium', | |
ENTERPRISE = 'enterprise', | |
} | |
export interface Client { | |
id: string; // C1-12345 | |
name: string; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Test, TestingModule } from '@nestjs/testing'; | |
import { INestApplication, ValidationPipe } from '@nestjs/common'; | |
import { getRepositoryToken } from '@nestjs/typeorm'; | |
import * as request from 'supertest'; | |
import { Repository } from 'typeorm'; | |
import { AppModule } from '../../../src/app.module'; | |
import { User } from '../../../src/auth/entities/user.entity'; | |
import { validate } from 'uuid'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Test, TestingModule } from '@nestjs/testing'; | |
import { INestApplication, ValidationPipe } from '@nestjs/common'; | |
import * as request from 'supertest'; | |
import { getRepositoryToken } from '@nestjs/typeorm'; | |
import { Repository } from 'typeorm'; | |
import { AppModule } from '../../../src/app.module'; | |
import { User } from '../../../src/auth/entities/user.entity'; | |
const testingUser = { |
NewerOlder