Skip to content

Instantly share code, notes, and snippets.

Avatar

Israel Parra uno-de-piera

View GitHub Profile
View Index.js
<template>
<q-page class="flex flex-center">
{{ monthsAgo }}
</q-page>
</template>
<script>
export default {
name: 'PageIndex',
mounted () {
View TreeObject.js
{ id: 1, name: "Elemento 1", parentId: null }
View .htaccess
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?cursosdesarrolloweb.es [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]
View StatisticController.php
<?php
namespace App\Http\Controllers;
use App\Statistic;
class StatisticController extends Controller
{
public function stats() {
$period = request('period');
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 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 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/*"
}
You can’t perform that action at this time.