Skip to content

Instantly share code, notes, and snippets.

View RichardSPrins's full-sized avatar
💻

Richard S Prins Jr. RichardSPrins

💻
View GitHub Profile
@RichardSPrins
RichardSPrins / LoginPage.js
Created January 27, 2021 20:11
Login Page
import * as React from "react";
import { useRouter, useSession } from "blitz";
import Layout from "app/layouts/Layout";
import { LoginForm } from "app/auth/components/LoginForm";
import { useCurrentUser } from "app/hooks/useCurrentUser"
const LoginPage = () => {
const session = useSession()
const handleLoginRedirect = (role) => {
$npm i
npm WARN deprecated core-js@1.2.7: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
> leveldown@1.7.2 install D:\Scott\Documents\Pumpt\pumpt\node_modules\leveldown
> prebuild-install || node-gyp rebuild
prebuild-install WARN install No prebuilt binaries found (target=10.16.3 runtime=node arch=x64 platform=win32)
D:\Scott\Documents\Pumpt\pumpt\node_modules\leveldown>if not defined npm_config_node_gyp (node "C:\Users\SCOTTP~1\AppData\Roaming\nvm\v10.16.3\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\SCOTTP~1\AppData\Roaming\nvm\v10.16.3\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
export const toggleApproval = async (id) => {
const token = localStorage.getItem('token')
const res = await axios.put(`${API_BASE_URL}${VERSION}${MATCHES}/${id}/approve`,null , {
headers: {
Authorization: `Bearer ${token}`
}
})
return res.data
}
**
* @apiDefine changePassParams
* @apiParam {String} oldPassword Old password
* @apiParam {String} newPassword New Password
* @apiParam {String} confirmPassword Also new Password
*
* @apiParamExample Body Params:
* {
* "oldPassword": "123456",
* "newPassword": "654321",
var logger = require('../helpers/logger')(module);
var generator = require('../helpers/generator');
var crypter = require('../helpers/crypter');
var errors = require('../constants/errors');
var mailer = require('../helpers/mailer');
var User = require('../models/user');
var async = require('async');
var PasswordService = function () {
var optionObj = {lean: true, new: true};
import React, {Component, PropTypes} from 'react';
import {Button} from 'react-bootstrap';
import moment from 'moment';
import ReactTable from 'react-table';
import {defaultFilterMethod, includesInsensitive} from 'utils/table';
import {initializer, selectors} from 'utils/resourcerizer';
import {connect} from 'react-redux';
import {USERS_NS} from 'constants/index';
@RichardSPrins
RichardSPrins / index.html
Created March 14, 2019 01:49
Practical JS - Watch and Code
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<h1>Hello Scott!</h1>