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 camelCase from 'camelcase' | |
| import { GraphQLResolveInfo } from 'graphql' | |
| import pluralize from 'pluralize' | |
| import { | |
| Arg, | |
| Authorized, | |
| Ctx, | |
| Info, | |
| Int, | |
| Mutation, |
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 graphqlFields, { ObjectFields } from 'graphql-fields' | |
| import { GraphQLResolveInfo } from 'graphql' | |
| import { Repository, getRepository, EntityMetadata } from 'typeorm' | |
| import { get, set } from 'lodash' | |
| interface Property { | |
| propertyName: string | |
| propertyPath: string | |
| } |
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
| { | |
| "kind": "Document", | |
| "definitions": [ | |
| { | |
| "kind": "OperationDefinition", | |
| "operation": "query", | |
| "variableDefinitions": [], | |
| "directives": [], | |
| "selectionSet": { | |
| "kind": "SelectionSet", |
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
| { | |
| "remove-empty-rulesets": true, | |
| "always-semicolon": true, | |
| "color-case": "lower", | |
| "block-indent": " ", | |
| "color-shorthand": true, | |
| "element-case": "lower", | |
| "eof-newline": true, | |
| "leading-zero": true, | |
| "quotes": "double", |
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="c($style.AnimationList, { | |
| list: type | |
| })"> | |
| <div v-for="i in 9" :class="$style.item" :key="i"> | |
| <component ref="items" :is="icon.is" :class="[$style.icon, $style[type]]" :icon="icon.icon"/> | |
| </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
| <template> | |
| <Slide> | |
| <SlidePreview slot="preview" | |
| v-bind="previewData" | |
| :display-blur-items="displayBlurItems" | |
| :animate-blur-items="animateBlurItems" | |
| @transitionend="removeWait('blurItems')"/> | |
| <SlideAbout v-bind="aboutData" :hide="hideText" | |
| @transitionend="removeWait('text')"/> | |
| </Slide> |
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 const waitImage = ref => | |
| new Promise((resolve, reject) => { | |
| ref.onload = (event) => { resolve(event); ref.onload = null }; | |
| ref.onerror = (event) => { reject(event); ref.onerror = null }; | |
| }); | |
| const createImage = str => Object.assign(document.createElement('img'), { src: str }); | |
| const waitImages = arrStr => Promise.all(arrStr.map(str => waitImage(createImage(str)))); | |
| const images = Array.from({ length: 10 }, (_, index) => `https://source.unsplash.com/random?v=${index}`) |
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="b({ loading: isLoading })" :style="style"> | |
| <ImgLoader class="image-handler__loader" v-if="isLoading"/> | |
| <img :src="image" v-bind="$attrs" ref="image"> | |
| </div> | |
| </template> | |
| <script> | |
| import ImgLoader from 'src/views/elements/ImgLoader'; | |
| export const waitImage = ref => |
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 checkAuth = (options) => (context) => { | |
| if (context.meta.auth) { | |
| context.headers.append('token', 'my super token') | |
| } | |
| } | |
| class BaseApi extends Apipie { | |
| constructor() { | |
| this.baseURL = 'http://localhost' | |
| this.beforeHooks = [checkAuth()]; |
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 gulp = require('gulp') | |
| const path = require('path') | |
| const browserSync = require('browser-sync') | |
| const $ = require('gulp-load-plugins')() | |
| const config = { | |
| autoprefixer: { | |
| browsers: ['> 5%', 'last 6 iOS versions'] | |
| }, | |
| browserConfig: { |