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
"use client" | |
import React, { useEffect, useState } from 'react'; | |
import { getDaysInMonth, getDay, getWeek, getWeekOfMonth } from 'date-fns'; | |
import { Box } from '@mui/material'; | |
const KalenderBox = ({ children, item }) => { | |
return <Box sx={{ width: '12%', m: 1, borderWidth: 1, borderStyle: 'solid', borderColor: item?.udenfor ? 'aqua' : 'blue', color: item?.udenfor ? 'aqua' : 'black' }}> | |
{children} | |
</Box> | |
} |
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 { Formik, Field, Form, ErrorMessage } from 'formik'; | |
import * as Yup from 'yup'; | |
import config from '../../helpers/config' | |
const male = (props) => ( | |
<input className="my-custom-input" type="radio" value="male" name="gender" {...props} /> | |
); | |
const female = (props) => ( |
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 { FormErrors } from './FormErrors'; | |
import DatePicker from "react-datepicker"; | |
import "react-datepicker/dist/react-datepicker.css"; | |
export class AdminPage extends React.Component { | |
constructor(props){ | |
super(props); | |
this.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 handleOrdersPost = (req, res, db) => { | |
const { customerId, orderStatus, productId, quantity, price} = req.body; | |
if (!customerId || !orderStatus || !productId || !quantity || !price) { | |
return res.status(400).json('incorrect form submission'); | |
} | |
db.transaction(trx =>{ | |
trx.insert({ | |
customerId: customerId, | |
orderStatus: orderStatus, |
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'; | |
class Signin extends React.Component { | |
constructor(props){ | |
super(props); | |
this.state = { | |
signInEmail: '', | |
signInPassword: '' | |
} | |
console.log(props); |
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 express = require('express'); | |
const bodyParser = require('body-parser'); | |
const bcrypt = require('bcrypt-nodejs'); | |
const cors = require('cors'); | |
const knex = require('knex'); | |
const db = knex({ | |
client: 'mysql', | |
connection: { | |
host : '127.0.0.1', |
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 Clarifai from 'clarifai'; | |
import Navigation from './components/Navigation/Navigation'; | |
import FaceRecognition from './components/FaceRecognition/FaceRecognition'; | |
import Logo from './components/Logo/Logo'; | |
import Register from './components/Register/Register'; | |
import Signin from './components/Signin/Signin'; | |
import ImageLinkForm from './components/ImageLinkForm/ImageLinkForm'; | |
import Rank from './components/Rank/Rank' | |
import ParticleAnimation from 'react-particle-animation' |
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
public class CustomAdapter extends BaseAdapter { | |
Context context; | |
List<Products> valueList; | |
public CustomAdapter(List<Products> listValue, Context context) | |
{ | |
this.context = context; | |
this.valueList = listValue; | |
} |
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
<?php | |
class DB_Functions { | |
private $conn; | |
// constructor | |
function __construct() { | |
require_once 'DB_Connect.php'; |
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
<?php | |
class DB_Connect { | |
private $conn; | |
// Connecting to database | |
public function connect() { | |
require_once 'include/Config.php'; | |
// Connecting to mysql database | |
$this->conn = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_DATABASE); |
NewerOlder