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 ReactBodyMovin from 'react-bodymovin'; | |
import NotFoundAnimation from './../animations/error-404.json'; | |
const NotFound = () => { | |
//constante de configuração do ReactBodyMovin | |
const bodyMovinOptions = { | |
loop: true, | |
autoplay: 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
import React from 'react'; | |
import ReactBodyMovin from 'react-bodymovin'; | |
import ErrorServerAnimation from './../animations/error-500.json'; | |
const ErrorServer = () => { | |
//constante de configuração do ReactBodyMovin | |
const bodyMovinOptions = { | |
loop: true, | |
autoplay: 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
npm i react-router-dom | |
npm i react-bodymovin |
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
create-react-app exemplo-react-bodymovin |
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
<?php | |
use yii\helpers\Url; | |
/* @var $this yii\web\View */ | |
?> | |
<h1 class="text text-center">Clientes</h1> | |
<a href="<?= Url::to(['clients/create']);?>" class="btn btn-success">Novo Cliente</a> | |
<table class="table"> | |
<thead> |
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
<?php | |
namespace app\controllers; | |
use app\models\Clients; | |
use yii\web\NotFoundHttpException; | |
class ClientsController extends \yii\web\Controller | |
{ | |
/** | |
* <b>actionIndex</b> Método responsável por realizar a listagem dos clientes | |
*/ | |
public function actionIndex() |
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
db.nomedacollection.drop() |
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
db.createCollection('myCollection') |
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
show collections |
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
db.createCollection('nome-da-collection') |