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
| actions: { | |
| fetchAllTodoAction ({ commit }) { | |
| return new Promise((resolve, reject) => { | |
| ApiHelper.todos() | |
| .then(response => { | |
| commit('fetchAllTodoMutation', response) | |
| resolve(response) | |
| }) | |
| .catch(error => { | |
| commit('failureTodoMutation') |
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> | |
| <v-container | |
| class="fill-height" | |
| fluid | |
| > | |
| <v-row | |
| align="center" | |
| justify="center" | |
| > | |
| <v-col |
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
| 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 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
| path: src/views/Search.vue | |
| <template> | |
| <TrendingRepo :searchString="language"/> | |
| </template> | |
| <script> | |
| import TrendingRepo from '../components/TrendingRepo' | |
| export default { |
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
| //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 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
| //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 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
| //path: src/views/Home.vue | |
| <template> | |
| <TrendingRepo :searchString="homeSearchString"/> | |
| </template> | |
| <script> | |
| import TrendingRepo from '../components/TrendingRepo' | |
| export default { | |
| data () { |
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
| export ZSH="/home/anoob/.oh-my-zsh" | |
| # Set name of the theme to load --- if set to "random", it will | |
| # load a random theme each time oh-my-zsh is loaded, in which case, | |
| # to know which specific one was loaded, run: echo $RANDOM_THEME | |
| # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes | |
| ZSH_THEME="agnoster" | |
| # Set list of themes to pick from when loading at random | |
| # Setting this variable when ZSH_THEME=random will cause zsh to load |
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
| 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 |