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
| name: E2E tests with detox | |
| on: | |
| pull_request: | |
| types: [opened, edited] | |
| jobs: | |
| test: | |
| runs-on: macos-latest | |
| timeout-minutes: 40 |
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 React, { useCallback, useMemo, useRef } from 'react'; | |
| import type { | |
| LayoutChangeEvent, | |
| StyleProp, | |
| TextStyle, | |
| ViewStyle, | |
| } from 'react-native'; | |
| import { Text, View, Animated, Easing, StyleSheet } from 'react-native'; | |
| function usePrevious(value: number): number { |
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 React, { useEffect } from "react"; | |
| import { View } from "react-native-cadana-components"; | |
| import Animated, { useSharedValue, useAnimatedProps, withTiming, withRepeat,Easing } from 'react-native-reanimated'; | |
| import Svg, { Path, G } from 'react-native-svg'; | |
| export default function Loading() { | |
| const radius1 = 24; // radius | |
| const radius2 = 17; // radius | |
| const radius3 = 10; // radius | |
| const duration = 3000; // duration of one full rotation |
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
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.0; | |
| contract MultiSigWallet { | |
| address[] public approvers; | |
| uint public quorum; | |
| // Transfer struct | |
| // Called by one of the approver addressese to suggest a transfer of tokens |
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
| from locust import HttpUser, between, task | |
| class WebsiteUser(HttpUser): | |
| wait_time = between(5, 10) | |
| @task | |
| def index(self): | |
| self.client.get("/") | |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.6.2"> | |
| <hashTree> | |
| <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true"> | |
| <boolProp name="TestPlan.functional_mode">false</boolProp> | |
| <boolProp name="TestPlan.tearDown_on_shutdown">false</boolProp> | |
| <boolProp name="TestPlan.serialize_threadgroups">false</boolProp> | |
| <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> | |
| <collectionProp name="Arguments.arguments"/> | |
| </elementProp> |
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 React, {Component, useEffect, useState} from 'react'; | |
| import {getAllCountries} from 'react-native-country-picker-modal' | |
| import { useDispatch, useSelector } from 'react-redux'; | |
| import { generalAction } from 'redux/actions/GeneralAction'; | |
| import LoginScreen from 'components/Screens/Auth/Login'; | |
| import PhonNumberModal from 'components/Screens/Auth/PhoneNumberModal'; | |
| import { GoogleSignin, statusCodes } from '@react-native-community/google-signin'; | |
| import { appleAuth, appleAuthAndroid } from '@invertase/react-native-apple-authentication'; | |
| import { isAndroid, randomString, toast } from 'helpers/Helper'; | |
| import enums from 'config/enums'; |
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
| 0xd4Ad62A2F37D5179298fA2C600c1B2a5d5B35743 |
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
| /** | |
| * @api {get} /v2/chatstory Get Users' ChatStory | |
| * @apiName Get ChatStory | |
| * @apiGroup ChatStory | |
| */ | |
| async getChatStory(req, res) { | |
| const { userId } = req.body; | |
| try { | |
| const pageOptions = super.getPaginationOptions(req); | |
| let totalChatStory = await ChatStory.countDocuments({isActive: true, publishedStatus: 'published'}); |
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
| /* istanbul ignore file */ | |
| import constants from '../config/constants.js'; | |
| import dotenv from 'dotenv'; | |
| dotenv.config(); | |
| const { | |
| FAILED, SUCCESS, HTTP_UNPROCESSABLE_ENTITY, | |
| HTTP_NOT_FOUND, HTTP_BAD_REQUEST, HTTP_CONFLICT, | |
| HTTP_FORBIDDEN, HTTP_OK, HTTP_UNAUTHORIZED | |
| } = constants; |
NewerOlder