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
<template> | |
<div class="cmp" v-if="id"> | |
{{ id }} | |
</div> | |
</template> | |
<script> | |
import {createNamespacedHelpers} from 'vuex'; | |
const { mapActions, mapState } = createNamespacedHelpers( | |
"users" |
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 CodeIgniter\Controller; | |
use Jenssegers\Blade\Blade; | |
class BaseController extends Controller | |
{ | |
protected $blade; | |
public function __construct () { |
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; | |
class HomeController extends BaseController | |
{ | |
public function index () { | |
return $this->blade->render('home', ['name' => 'Cursosdesarrolloweb']); | |
} | |
} |
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
Hola {{ $name }} |
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
<script> | |
import navigationMixin from '@/mixins/navigation'; | |
export default { | |
name: "guest", | |
mixins: [navigationMixin], | |
} | |
</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
storageRef.child(`/products/${fileId}`).getDownloadURL().then(url => { | |
let product = firebase.firestore().collection('products').doc(id); | |
return product.update({ | |
url: url, | |
file_id: fileId | |
}); | |
}); |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "PublicReadGetObject", | |
"Effect": "Allow", | |
"Principal": "*", | |
"Action": "*", | |
"Resource": "arn:aws:s3:::sls-course-dev/*" | |
} |
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
<template> | |
<div id="e3" style="width: 500px; max-width: 600px"> | |
<v-toolbar color="pink"> | |
<v-toolbar-side-icon></v-toolbar-side-icon> | |
<v-toolbar-title>Formulario de posts</v-toolbar-title> | |
<v-spacer></v-spacer> | |
</v-toolbar> | |
<v-card> |
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\Http\Controllers; | |
use App\Statistic; | |
class StatisticController extends Controller | |
{ | |
public function stats() { | |
$period = request('period'); |
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\Http\Controllers; | |
use App\Statistic; | |
class StatisticController extends Controller | |
{ | |
public function stats() { | |
$period = request('period'); | |
$statistics = Statistic::select('columns') |