Create React App does not provide watching build mode oficially (#1070).
This script provides watching build mode for an external tool such as Chrome Extensions or Firebase app.
Create a React app.
Put the script into scripts/watch.js
.
import jsPDF from 'jspdf'; | |
import 'jspdf-autotable'; | |
const createPDF = (data) => { | |
const doc = new jsPDF({ orientation: 'landscape' }); | |
const body = data.map(item => { | |
return [ | |
item.pro_code, | |
item.pro_description, | |
item.pro_expiration ? new Date(item.pro_expiration).toLocaleDateString() : null, |
public class Startup | |
{ | |
public Startup(IConfiguration configuration) | |
{ | |
Configuration = configuration; | |
} | |
readonly string MyAllowSpecificOrigins = "_myAllowSpecificOrigins"; | |
public IConfiguration Configuration { get; } |
{ | |
"newLines": [ | |
{ | |
"identifier": "PT1.BILN.2130004", | |
"lotCode": null, | |
"itemType": 1, | |
"firstChildLine": null, | |
"parentLine": null, | |
"siblingLine": null, | |
"lastChildLine": null, |
#run with Powershell -ExecutionPolicy Bypass -file .\forwardports.ps1 | |
$remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '" | |
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'; | |
if( $found ){ | |
$remoteport = $matches[0]; | |
} else{ | |
echo "The Script Exited, the ip address of WSL 2 cannot be found"; | |
exit; | |
} |
SELECT | |
"class"."id" AS "class_id", | |
"class"."createdAt" AS "class_createdAt", | |
"class"."updatedAt" AS "class_updatedAt", | |
"class"."title" AS "class_title" | |
FROM | |
"class" "class" | |
INNER JOIN | |
"time_availability" "timeAvailability" |
Create React App does not provide watching build mode oficially (#1070).
This script provides watching build mode for an external tool such as Chrome Extensions or Firebase app.
Create a React app.
Put the script into scripts/watch.js
.
# mssql-agent-fts-ha-tools | |
# Maintainers: Microsoft Corporation (LuisBosquez and twright-msft on GitHub) | |
# GitRepo: https://github.com/Microsoft/mssql-docker | |
# Base OS layer: Latest Ubuntu LTS + mssql-server-linux (SQL Server engine + tools) | |
FROM microsoft/mssql-server-linux | |
#Install curl since it is needed to get repo config | |
# Get official Microsoft repository configuration | |
RUN export DEBIAN_FRONTEND=noninteractive && \ |
server { | |
server_name testdeploy.rocketseat.com.br; | |
location / { | |
proxy_pass http://127.0.0.1:3333; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection 'upgrade'; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; |
import { useState } from "react"; | |
import "./App.css"; | |
type TypographyProps = { | |
children: React.ReactNode; | |
size?: "small" | "large"; | |
}; | |
type ParagraphProps = { | |
color: string; |