Skip to content

Instantly share code, notes, and snippets.

View angel-venchev-toptal's full-sized avatar

Angel Venchev angel-venchev-toptal

View GitHub Profile
[
{
"id": 14,
"order": 1,
"data": {
"records": [],
"outcome": {
"id": 2,
"title": "",
"text": "",
{
id: 1,
name: 'string - required/validate',
email: 'email - required/validate',
phoneNumber 'string',
theme: {
logo: { // File upload
id: 1,
storageKey: 'string',
extension: 'string',
MIME Type: application/x-www-form-urlencoded
grant_type: refresh_token
client_id: LifeDriveIdentityClient
client_secret: life-drive-identity-client-secret
refresh_token: 833281d3446ab91742e14860552c8df6389abddef9aa1bd8a6f213fbb14470ee
namespace LifeDrive.Core.DTOs.Feed
{
public class CompletedCardDto
{
public int Id { get; set; }
public CompletedQuestionDto CompletedQuestion { get; set; }
public CompletedFeedTaskDto CompletedTask { get; set; }
}
}
import React from 'react';
import { connect } from 'react-redux';
import { makeStyles } from '@material-ui/core/styles';
import { Box, Paper, Button, TextField } from '@material-ui/core';
import * as MainBarActionCreators from '../Reducers/main';
import * as ActionCreators from '../Reducers/Auth/login';
import * as ThunkActionCreators from '../Thunks/LoginThunk';
import { CircularProgress }from '@material-ui/core';
const useStyles = makeStyles(theme => ({
putFile(url: string, file: any) {
return new Promise<FileUploadResponse>((resolve, reject) => {
const xhr = new XMLHttpRequest()
xhr.onreadystatechange = function() {
if (xhr.readyState === 4) {
if (xhr.status === 200) {
resolve ({ok: true, status: xhr.status, message: xhr.responseText});
} else {
reject({ok: false, status: xhr.status, message: xhr.responseText});
}
import React from 'react';
import { Button, Box } from '@material-ui/core';
import { makeStyles } from '@material-ui/core/styles';
import CloudDownloadIcon from '@material-ui/icons/CloudDownload';
import CloudUploadIcon from '@material-ui/icons/CloudUpload';
import DeleteIcon from '@material-ui/icons/Delete';
import CoreService from '../../Services/CoreService';
import FileService from '../../Services/FileService';
const useStyles = makeStyles(theme => ({