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 Vue from 'vue' | |
import Router from 'vue-router' | |
Vue.use(Router) | |
const router = new Router({ | |
mode: 'history', | |
base: process.env.BASE_URL, | |
routes: [ | |
{ |
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 axios from 'axios'; | |
// import store from '@/store'; | |
const URL: string = 'http://127.0.0.1:8000/'; | |
const http = axios.create({ | |
baseURL: URL, | |
headers: { | |
'Authorization': `Bearer ${window.localStorage.getItem('_token')}`, | |
} | |
}); |
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 { GetterTree, ActionTree, MutationTree } from 'vuex'; | |
import { State } from '@/store/interfaces/Auth'; | |
import { http } from '@/utils/http.ts'; | |
// Se encarga de hacer las peticiones asincronas con axios | |
// Trae las constantes globales | |
import AuthTypes from '@/store/types/authTypes'; | |
const namespaced: boolean = true;; | |
const state: State = { |
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> | |
<!-- Post Content --> | |
<section class="container"> | |
<div class="row"> | |
<div class="col-lg-12 col-md-10 mx-auto"> | |
<blogContent/> | |
<blogContent/> | |
<blogContent/> |
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="home"> | |
<div class="wrapper fadeInDown"> | |
<div id="formContent"> | |
<!-- Tabs Titles --> | |
<!-- Icon --> | |
<div class="fadeIn first"> | |
<img :src="img" id="icon" alt="User Icon" /> | |
</div> |
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="home"> | |
<div class="wrapper fadeInDown"> | |
<div id="formContent"> | |
<!-- Tabs Titles --> | |
<!-- Icon --> | |
<div class="fadeIn first"> | |
<img :src="img" id="icon" alt="User Icon" /> | |
</div> |
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="container" style="max-with: 100vh;"> | |
<h1>Example vue with laravel and jwt</h1> | |
<div> | |
This project, show a little example of how run jwt from laravel to vuejs | |
Is a basic example, please, any question, let it in comments; or send tweet a @kevinmendez3096 | |
Follow me! | |
</div> | |
</div> | |
</template> |
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 { GetterTree, ActionTree, MutationTree } from 'vuex'; | |
import { State } from '@/store/interfaces/Blog.ts'; | |
// Establece los types de los modulos store | |
import blogTypes from '@/store/types/BlogTypes'; | |
const namespaced: boolean = true; | |
const state: State = { | |
blogs: [] |
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="hello"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-6"> | |
<h3>Agrega un nuevo blog</h3> | |
<div class="input-group mb-3"> | |
<input type="text" class="form-control" | |
placeholder="Escriba aquí la nueva tarea" | |
v-model="blog"> |