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 tap from 'tap' | |
| import qs from 'querystring' | |
| import uuid from 'uuid/v4' | |
| import bcrypt from 'bcrypt' | |
| import { app } from '../../app' | |
| import config from '../../config' | |
| const { domain, knexOptions, jwtExpiration } = config | |
| const baseUri = 'api' |
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 { auth } from './specs' | |
| (async () => { | |
| // Unit tests | |
| try { | |
| const { authToken } = await auth() | |
| } catch (err) { | |
| throw err | |
| } |
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
| " Prettier | |
| let g:prettier#config#print_width = 65 | |
| let g:prettier#config#bracket_spacing = 'true' | |
| let g:prettier#config#semi = 'false' | |
| let g:prettier#config#single_quote = 'true' | |
| let g:prettier#config#trailing_comma = 'none' | |
| let g:prettier#autoformat = 0 | |
| autocmd BufWritePre *.js,*.jsx,*.mjs,*.vue,*.css,*.less,*.scss,*.json,*.graphql,*.md,*.vue,*.yaml,*.html PrettierAsync |
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
| .slide-fade-enter-active { | |
| transition: all 0.3s cubic-bezier(1, 0, 0, 1); | |
| } | |
| .slide-fade-leave-active { | |
| } | |
| .slide-fade-enter, | |
| .slide-fade-leave-to { | |
| transform: translateX(-30%); | |
| opacity: 0; | |
| } |
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 { expect } from 'chai' | |
| import { spy } from 'sinon' | |
| import { shallowMount, createLocalVue } from '@vue/test-utils' | |
| import VueRouter from 'vue-router' | |
| import Vuex from 'vuex' | |
| import Sidenav from '@/components/SideNav.vue' | |
| const localVue = createLocalVue() | |
| localVue.use(Vuex) | |
| localVue.use(VueRouter) |
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
| const trigger = `CREATE TRIGGER post_vector_update BEFORE INSERT OR UPDATE ON "users" FOR EACH ROW EXECUTE PROCEDURE tsvector_update_trigger("post_text", 'pg_catalog.english', ${searchFields.join(', ')})` |
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
| [bar/i3wmthemer_bar] | |
| width = 100% | |
| height = 27 | |
| radius = 0 | |
| fixed-center = true | |
| monitor = HDMI-1-1 | |
| background = #1f1f1f | |
| foreground = #c6c6c6 |
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
| set $mod Mod4 | |
| new_window pixel 1 | |
| new_float normal | |
| hide_edge_borders none | |
| bindsym $mod+u border none | |
| bindsym $mod+y border pixel 1 | |
| bindsym $mod+n border normal |
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
| class TermStream extends Duplex { | |
| constructor(vm) { | |
| super() | |
| this.result = '' | |
| this.$terminal = vm.$terminal | |
| this.$vm = vm | |
| this.encoding = vm.encoding || 'utf-8' | |
| if (!this.$terminal) { | |
| throw new TypeError('VueTerm instance only') |
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
| async show (id) { | |
| const [ shown ] = await this.knex | |
| .select( | |
| 'items.id', | |
| 'items.title', | |
| 'items.fulfilled', | |
| 'items.description', | |
| 'items.image', | |
| 'items.url', | |
| 'items.updated_at', |