This file contains 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 models from '../models'; | |
import path from 'path'; | |
import fs from 'fs'; | |
import axios from 'axios'; // Import axios | |
import FormData from 'form-data'; // Import the form-data package | |
import { Op } from 'sequelize'; // Import Op from sequelize | |
// Function to upload a single image to S3 | |
const uploadSingleImage = async (imagePath: fs.PathLike) => { | |
const formData = new FormData(); |
This file contains 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
let breakingBadProimse = fetch("https://www.breakingbadapi.com/api/characters"); | |
breakingBadProimse | |
.then(function(res){ | |
return res.json(); | |
}) | |
.then(function(res){ | |
console.log(res) | |
}) | |
.catch(function(error){ | |
console.log(error) |
This file contains 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 from "react"; | |
import styles from "./Login.module.css"; | |
import data from "../../meta/metaData.json"; | |
export default function Login(props) { | |
const homePageContent = data.login.subContent; | |
const loginButtons = data.login.buttons; | |
console.log('isLogged', props.cb) | |
// onClick={fakeAsyncLogin} |
This file contains 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 { BrowserRouter, Routes, Route } from "react-router-dom"; | |
//Pages | |
import Login from "../pages/login/Login"; | |
import Onboarding from "../onboarding/Onboarding"; | |
import Error from "./Error"; | |
import PrivateRoute from "./Private_Route"; | |
import Dashboard from "../pages/Dashboard"; | |
import { useState } from "react"; |
This file contains 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 } from 'react'; | |
import { View, Text, StyleSheet, Dimensions} from 'react-native'; | |
export default class BookedDate extends Component { | |
constructor(props) { | |
super(props); | |
} | |
render() { | |
return ( | |
<View style={styles.container}> |
This file contains 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
const reducer = ( state = [],action) => { | |
if (action.type === 'split_string') { | |
return action.payload.split(''); | |
} else if (action.type === 'add_character') { | |
state.push(action.payload); | |
return state; | |
} | |
return state; | |
}; |
This file contains 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
const reducer = ( state = [],action) => { | |
if (action.type === 'split_string') { | |
return action.payload.split(''); | |
} | |
return state; | |
}; | |
const store = Redux.createStore(reducer); | |
store.getState(); |