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
actions: { | |
fetchAllTodoAction ({ commit }) { | |
return new Promise((resolve, reject) => { | |
ApiHelper.todos() | |
.then(response => { | |
commit('fetchAllTodoMutation', response) | |
resolve(response) | |
}) | |
.catch(error => { | |
commit('failureTodoMutation') |
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
<template> | |
<v-container | |
class="fill-height" | |
fluid | |
> | |
<v-row | |
align="center" | |
justify="center" | |
> | |
<v-col |
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
path: src/components/toolBar.vue | |
<template> | |
<v-toolbar dark color="primary"> | |
<v-toolbar-title class="white--text"> | |
<v-btn @click="redirectToHome" icon> | |
<v-icon medium>home</v-icon> | |
</v-btn>GitHub Graphql | |
</v-toolbar-title> | |
<v-spacer></v-spacer> |
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
path: src/views/Search.vue | |
<template> | |
<TrendingRepo :searchString="language"/> | |
</template> | |
<script> | |
import TrendingRepo from '../components/TrendingRepo' | |
export default { |
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
//src/components/TrendingRepo.vue | |
<template> | |
<v-container grid-list-md text-xs-center> | |
<div v-if="$apollo.loading"> | |
<v-progress-circular | |
:size="70" | |
:width="7" | |
color="primary" | |
indeterminate |
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
//src/queries/trendingRepoDetailsQuery.js | |
import gql from 'graphql-tag' | |
export const TRENDING_REPO_DETAILS_QUERY = gql` | |
query SearchMostTop10Star($queryString: String!) { | |
search(query: $queryString, type: REPOSITORY, first: 40) { | |
edges { | |
node { | |
... on Repository { | |
owner { |
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
//path: src/views/Home.vue | |
<template> | |
<TrendingRepo :searchString="homeSearchString"/> | |
</template> | |
<script> | |
import TrendingRepo from '../components/TrendingRepo' | |
export default { | |
data () { |
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
require 'rails_helper' | |
RSpec.describe TodosController, :type => :controller do | |
describe "GET #index" do | |
#describe "POST #create" do | |
#describe "GET #show" do | |
#describe "PATCH #update" do (or PUT #update) | |
#describe "DELETE #destroy" do | |
#describe "GET #new" do |