Skip to content

Instantly share code, notes, and snippets.

Israel Parra uno-de-piera

Block or report user

Report or block uno-de-piera

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Component.vue
<template>
<div>{{ lastLogin }}
</template>
<script>
export default {
computed: {
lastLogin () {
return this.$options.filters.formatDate(this.user.LastLogin)
}
View Component.vue
<template>
<div>{{ user.LastLogin | formatDate }}</div>
</template>
View Filters.js
Vue.filter('formatDate', function(value) {
if (value) {
return moment(String(value)).format('DD/MM/YYYY hh:mm:ss')
}
return 'N/A';
});
View StatisticController.php
<?php
namespace App\Http\Controllers;
use App\Statistic;
class StatisticController extends Controller
{
public function stats() {
$period = request('period');
$statistics = Statistic::select('columns')
View StatisticController.php
<?php
namespace App\Http\Controllers;
use App\Statistic;
class StatisticController extends Controller
{
public function stats() {
$period = request('period');
View posts.vue
<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>
View policy.json
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "*",
"Resource": "arn:aws:s3:::sls-course-dev/*"
}
View upload.js
storageRef.child(`/products/${fileId}`).getDownloadURL().then(url => {
let product = firebase.firestore().collection('products').doc(id);
return product.update({
url: url,
file_id: fileId
});
});
View guest.vue
<script>
import navigationMixin from '@/mixins/navigation';
export default {
name: "guest",
mixins: [navigationMixin],
}
</script>
You can’t perform that action at this time.