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> | |
<div class="container"> | |
<div class="flex"> | |
<slice-zone class="subtitle" | |
:slices="page.data.body1" | |
:resolver="resolver" /> | |
</div> | |
</div> | |
</template> |
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
export const state = () => ({ | |
snippets: Object, | |
isLoaded: false, | |
}) | |
export const actions = { | |
async loadSnippets({ commit }) { | |
const document = await this.$prismic.api.query( | |
this.$prismic.predicates.at("document.type", "snippet_type") | |
); |
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
import Vue from "vue"; | |
import VueGtag from "vue-gtag"; | |
Vue.use(VueGtag, { | |
config: { id: process.env.GID}, //measurement ID G-LL1HBDMH8D, | |
params: { | |
send_page_view: false | |
} | |
}); |
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
const { Keystone } = require('@keystonejs/keystone'); | |
const { Password, Text, Relationship, Checkbox } = require('@keystonejs/fields'); | |
const { GraphQLApp } = require('@keystonejs/app-graphql'); | |
const { AdminUIApp } = require('@keystonejs/app-admin-ui'); | |
const { NuxtApp } = require('@keystonejs/app-nuxt'); | |
const { MongooseAdapter: Adapter } = require('@keystonejs/adapter-mongoose'); | |
const PROJECT_NAME = 'key-app'; | |
const adapterConfig = { mongoUri: 'mongodb://localhost/key-app' }; | |
const { PasswordAuthStrategy } = require('@keystonejs/auth-password') |
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
// Run the following command in terminal | |
// This example based on Windows | |
docker run -it -p 1337:1337 -v e:\projec-name :/srv/app strapi/strapi |
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
//run the line in shell and try to push repo again | |
git config --global http.postBuffer 157286400 | |
git config --global http.postBuffer 524288000 | |
git push -u origin master | |
// |
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
const Prismic = require('@prismicio/client'); | |
... | |
modules: [ | |
'@nuxtjs/sitemap' | |
], | |
sitemap: { | |
hostname: process.env.sitemap_host, | |
cacheTime: 1000 * 60 * 60 * 2, | |
trailingSlash: true, |
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
const Prismic = require('@prismicio/client'); | |
... | |
modules: [ | |
'@nuxtjs/sitemap' | |
], | |
sitemap: { | |
hostname: process.env.sitemap_host, | |
cacheTime: 1000 * 60 * 60 * 2, | |
trailingSlash: true, |
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
//apply this fix where regular method fails | |
import { gql, ApolloServer } from "apollo-server-micro"; | |
import { PrismaClient } from "@prisma/client"; | |
import { | |
ApolloServerPluginLandingPageGraphQLPlayground, | |
ApolloServerPluginLandingPageDisabled, | |
} from "apollo-server-core"; | |
const prisma = new PrismaClient(); | |
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
/* Create a folder , api/graphql.ts (root of peoject) and paste the following code*/ | |
const express = require('express'); | |
const { ApolloServer, gql } = require('apollo-server-express'); | |
const {PrismaClient} = require("@prisma/client") | |
const prisma = new PrismaClient(); | |
const typeDefs = gql` | |
type Todo{ |