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 { gql } from "@apollo/client"; | |
const GET_ARTICLE = gql` | |
query getArticles( | |
$pageSize: Int = 100 | |
$page: Int = 0 | |
$sort: [String] = ["createdAt:desc"] | |
$filters: ArticleFiltersInput = {} | |
) { | |
articles( |
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 { printSchema } = require("graphql"); | |
module.exports = { | |
plugin: (schema, documents, config) => { | |
const theSchema = printSchema(schema).replaceAll("`", ""); | |
return [ | |
"const typeDefs = /* GraphQL */ `", | |
theSchema, | |
"`;", | |
"export default typeDefs;", |
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 { makeExecutableSchema } from "@graphql-tools/schema"; | |
import typeDefs from "./typedefs"; | |
import mockArticle from "~/graphql/mock/article"; | |
const executableSchema = makeExecutableSchema({ | |
typeDefs, | |
resolvers: { | |
Query: { | |
articles: () => mockArticle, |
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 { ApolloClient, InMemoryCache } from "@apollo/client"; | |
import { SchemaLink } from "@apollo/client/link/schema"; | |
import schema from "~/graphql/graphql-executable"; | |
const GraphQLClient = new ApolloClient({ | |
cache: new InMemoryCache(), | |
link: new SchemaLink({ schema }), | |
}); | |
export default GraphQLClient; |
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 rootImageFolder = './images/'; | |
function cleanNaming(directory) { | |
return directory.replace(/\d{1,}\s/g, '').replaceAll(/-\s/g, '').replaceAll(/\s/g, '-').toLowerCase(); | |
} | |
function renameImage(source, exportName) { | |
fs.rename(source, exportName, function(err) { | |
if ( err ) console.log('ERROR: ' + err); | |
log(clc.blue("Rename cover")) |
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": "collectionType", | |
"collectionName": "snacks", | |
"info": { | |
"singularName": "snack", | |
"pluralName": "snacks", | |
"displayName": "Snack", | |
"description": "" | |
}, | |
"options": { |
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
{ | |
"homepage": { | |
"tagline": "Stand With Ukraine", | |
"subtag": "Spread love, not war.", | |
"intro": "Stand with Ukraine Art is a way for anyone to show their support to Ukraine in a digital way on Social Network.\n We want peace, not war.", | |
"createYourOwn": "Create your own 🇺🇦❤️ " | |
}, | |
"navigation": { | |
"information": "Information", | |
"help": "How can I help?" |
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
function eventFire(el, etype){ | |
if (el.fireEvent) { | |
el.fireEvent('on' + etype); | |
} else { | |
var evObj = document.createEvent('Events'); | |
evObj.initEvent(etype, true, false); | |
el.dispatchEvent(evObj); | |
} | |
} |
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
/** | |
* Author: Julien Henrotte @julien_he | |
* Company: UltraSuperNew http://ultrasupernew.com/ | |
*/ | |
/** | |
* Modules | |
*/ | |
const Scene = require('Scene'); | |
const FaceTracking = require('FaceTracking'); |
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
{ | |
"hosting": { | |
"public": "dist/public", | |
"rewrites": [ | |
{ | |
"source": "**/**", | |
"function": "app-next" | |
} | |
], | |
"predeploy": "yarn build-public" |
NewerOlder