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 BigCalendar from 'react-big-calendar'; | |
import moment from 'moment'; | |
import 'react-big-calendar/lib/css/react-big-calendar.css'; | |
import axios from 'axios' | |
import logo from './logo.svg'; | |
import './App.css'; | |
moment.locale('en-GB'); | |
BigCalendar.momentLocalizer(moment); | |
class App extends Component { |
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
var mysql = require('mysql') | |
require('dotenv').config({path: __dirname + '/process.env'}) | |
var con = mysql.createPool({ | |
connectionLimit: 100, | |
host: process.env.DB_HOST, | |
user: process.env.DB_USER, | |
password: process.env.DB_PASS, | |
port: '8889', |
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
[{"id":830,"start":1518417309,"end":1518420909,"title":"this is a long event isnt that righttt","body":"","multi":0,"allDay":false,"extension_id":2},{"id":831,"start":1518680109,"end":1518683709,"title":"830","body":"","multi":0,"allDay":false,"extension_id":2}] |
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
[{"id":830,"start":1518417309,"end":1518420909,"title":"this is a long event isnt that righttt","body":"","multi":0,"allDay":false,"extension_id":2},{"id":831,"start":1518680109,"end":1518683709,"title":"830","body":"","multi":0,"allDay":false,"extension_id":2}] |
NewerOlder