github.com/codeedu/imersao4
This file contains hidden or 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
:root{ | |
--text-primary:#000; | |
--bgPrimary:#fff; | |
--bgSecondary: #F9F9F9; | |
--pink: #0071bd; | |
--light-blue: #e6f7ff; | |
--border: #d9d9d9; | |
} |
This file contains hidden or 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 { useEffect, useState } from 'react'; | |
import { Flex, Select, Box, Text, Input, Spinner, Icon, Button } from '@chakra-ui/react'; | |
import { useRouter } from 'next/router'; | |
import { MdCancel } from 'react-icons/md'; | |
import Image from 'next/image'; | |
import { filterData, getFilterValues } from '../utils/filterData'; | |
import { baseUrl, fetchApi } from '../utils/fetchApi'; | |
import noresult from '../assets/images/noresult.svg'; |
This file contains hidden or 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 request = require('request-promise'); | |
const PORT = process.env.PORT || 5000; | |
const app = express(); | |
app.use(express.json()); | |
const returnScraperApiUrl = (apiKey) => `http://api.scraperapi.com?api_key=${apiKey}&autoparse=true`; |
This file contains hidden or 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
<html> | |
<head> | |
<link href="https://unpkg.com/video.js@7.13.1/dist/video-js.min.css" rel="stylesheet" /> | |
<script src="https://unpkg.com/video.js@7.13.1/dist/video.min.js"></script> | |
<script src="/videojs-contrib-eme.min.js"></script> | |
<script src="/uaparser.min.js"></script> | |
<script> | |
/* var userAgent = new UAParser(); | |
alert(JSON.stringify(userAgent.getBrowser())); */ | |
</script> |
This file contains hidden or 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
FROM node:14.15.4-slim | |
RUN mkdir -p /usr/share/man/man1 && \ | |
echo 'deb http://ftp.debian.org/debian stretch-backports main' | tee /etc/apt/sources.list.d/stretch-backports.list && \ | |
apt update && apt install -y \ | |
git \ | |
ca-certificates \ | |
zsh \ | |
curl \ | |
wget \ | |
fonts-powerline \ |
This file contains hidden or 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 { ChakraProvider } from '@chakra-ui/react' | |
import { ThemeProvider } from '@material-ui/core' | |
import { theme, themeMaterial } from './global/theme'; | |
import { Routers } from './routers' | |
import { PersistGate } from 'redux-persist/integration/react'; | |
import { Provider } from 'react-redux' | |
import { store, persistor } from './store' | |
const App: React.FC = () => { |
This file contains hidden or 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
module.exports = { | |
extends: '@loopback/eslint-config', | |
rules: { | |
'@typescript-eslint/no-explicit-any': 0, | |
'@typescript-eslint/naming-convention': [ | |
'error', | |
{ | |
selector: 'default', | |
format: ['camelCase', 'snake_case'], | |
}, |
The accompanying video for this tutorial is published on https://learn.alexchiri.com
Contents:
This file contains hidden or 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
<html> | |
<head> | |
<link href="https://vjs.zencdn.net/7.10.2/video-js.css" rel="stylesheet" /> | |
<script src="https://vjs.zencdn.net/7.10.2/video.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/videojs-contrib-eme@3.8.0/dist/videojs-contrib-eme.min.js"></script> | |
</head> | |
<body> | |
<video | |
id="player" |
OlderNewer