-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates master
- Loading branch information
Showing
17 changed files
with
413 additions
and
148 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,5 @@ deploy: | |
skip_cleanup: true | ||
on: | ||
branch: development | ||
after_deploy: | ||
- curl -X POST $PINGOUT_URL/$PINGOUT_UUID/ping |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,177 @@ | ||
<template> | ||
<div class="container"/> | ||
<div> | ||
<Navbar/> | ||
<div class="row"> | ||
<sidebar class="col-md-2 sidebar"/> | ||
<div class="col col-md-10 content"> | ||
<div class="container-fluid"> | ||
<header> | ||
<h2> | ||
Meus Projetos | ||
</h2> | ||
<hr> | ||
<ul class="list-inline"> | ||
<li | ||
v-for="tag in getTags" | ||
:key="tag.id" | ||
class="list-inline-item"> | ||
<span class="badge badge-primary btn-blue"> | ||
{{ tag.slug }} | ||
</span> | ||
</li> | ||
</ul> | ||
</header> | ||
<hr> | ||
<div class="container"> | ||
<form> | ||
<div class="input-group input-group-sm"> | ||
<input | ||
type="text" | ||
class="form-control" | ||
placeholder="Pesquise por seus projetos"> | ||
<div class="input-group-append"> | ||
<button | ||
class="btn btn-green" | ||
@click="searchProject()"> | ||
<span class="fa fa-search"/> Buscar | ||
</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
<hr> | ||
<div v-if="getMyProjects.length == 0"> | ||
<b-jumbotron | ||
bg-variant="muted" | ||
class="text-muted"> | ||
<template | ||
slot="header"> | ||
Oooops | ||
</template> | ||
<template | ||
slot="lead"> | ||
Me parece que você ainda não possui nenhum projeto... | ||
</template> | ||
<p> | ||
Não se preocupe, você ainda pode criar um projeto e começar sua | ||
jornada conosco! | ||
</p> | ||
<router-link | ||
:to="{ name: 'CreateProject' }" | ||
class="btn btn-blue ml-auto"> | ||
<span class="fa fa-plus"/> Novo projeto | ||
</router-link> | ||
</b-jumbotron> | ||
</div> | ||
<section v-else> | ||
<div | ||
v-for="project in getMyProjects" | ||
:key="project.id" | ||
class="row"> | ||
<div | ||
class="card col col-md-6"> | ||
<h5 class="card-header"> | ||
{{ project.name }} | ||
</h5> | ||
<div class="card-body"> | ||
<p class="card-text"> | ||
{{ project.description }} | ||
</p> | ||
<!-- needs to link to the project --> | ||
<router-link | ||
:to="{ name: 'ProjectDetail' }" | ||
class="btn btn-sm btn-blue mr-auto"> | ||
<span class="fa fa-search"/> Visualizar | ||
</router-link> | ||
<button | ||
class="btn btn-danger btn-sm" | ||
@click="deleteProject()"> | ||
<span class="fa fa-trash"/> Excluir | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
<div class=""> | ||
<custom-footer/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { mapGetters } from "vuex" | ||
import Navbar from "@/components/Utils/Navbar" | ||
import Footer from "@/components/Utils/Footer" | ||
import Sidebar from "@/components/Utils/SideBar" | ||
import bJumbotron from "bootstrap-vue/es/components/jumbotron/jumbotron" | ||
export default { | ||
components: { | ||
Navbar, | ||
"custom-footer": Footer, | ||
"sidebar": Sidebar, | ||
"b-jumbotron":bJumbotron, | ||
}, | ||
data () { | ||
return { | ||
tags: "", | ||
project: "", | ||
projects: [], | ||
} | ||
}, | ||
computed: { | ||
...mapGetters({ | ||
currentUser: "currentUser", | ||
getTags: "getTags", | ||
getProjects: "getProjects", | ||
getMyProjects: "getMyProjects" | ||
}) | ||
}, | ||
beforeMount () { | ||
this.loadProjects() | ||
this.loadMyProjects() | ||
this.loadTags() | ||
}, | ||
methods: { | ||
loadProjects () { | ||
this.$store.dispatch("loadProjects") | ||
}, | ||
loadMyProjects () { | ||
this.$store.dispatch("loadMyProjects") | ||
}, | ||
loadTags () { | ||
this.$store.dispatch("loadTags") | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style> | ||
<style lang="scss" scoped> | ||
@import '../styles/base.scss'; | ||
.row { | ||
margin-left: 0; | ||
} | ||
section { | ||
margin: 5em auto; | ||
} | ||
.content { | ||
padding-left: 0; | ||
padding-right: 0; | ||
} | ||
.sidebar { | ||
padding-left: 0; | ||
} | ||
</style> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<template> | ||
<div/> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
</style> |
Oops, something went wrong.