🚚 The bookmarklet has moved to https://github.com/bramus/mastodon-profile-redirect/
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 gql from 'graphql-tag' | |
import { print } from 'graphql/language/printer' | |
import richTextFragment from './contentModules/richText.gql' | |
import logoBlockFragment from './contentModules/logoBlock.gql' | |
import embedBlockFragment from './contentModules/embedBlock.gql' | |
import videoBlockFragment from './contentModules/videoBlock.gql' | |
import imageCollageFragment from './contentModules/imageCollage.gql' | |
import imageGridFragment from './contentModules/imageGrid.gql' | |
import slideshowBlockFragment from './contentModules/slideshowBlock.gql' | |
import singleImageFragment from './contentModules/singleImage.gql' |
When working with Web-to-Lead forms, you might run into a situation where you'd like to integrate the form with your frontend framework (React, Vue, Angular, etc...). This can be accomplished quite easily using whatever HTTP library you're most comfortable with.
To demonstrate this, let's take a look at an example Web-to-Lead form, and the JavaScript required to post Leads to a SFDC org.
<html lang="en">
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
<?php | |
use craft\elements\db\EntryQuery; | |
use craft\elements\Entry; | |
use modules\appmodule\transformers\ProductTransformer; | |
use rias\scout\IndexSettings; | |
use rias\scout\ScoutIndex; | |
use Tightenco\Collect\Support\Collection; | |
$indexPrefix = getenv('ALGOLIA_INDEX_PREFIX') ?: CRAFT_ENVIRONMENT . '_'; |
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
include: 'https://gitlab.com/gitlab-cd/ssh-template/raw/master/ssh.yml' | |
# Install build dependencies. | |
.build: | |
image: node:12.8 | |
variables: | |
YARN_CACHE_DIR: '.ci/yarn-cache' | |
script: | |
# Some build dependencies |
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 { createHttpLink } = require('apollo-link-http'); | |
const fetch = require('node-fetch'); | |
const store = require('store'); | |
const sourceNodes = require('gatsby/dist/utils/source-nodes'); | |
require('dotenv').config(); | |
const craftGqlUrl = process.env.CRAFT_GQL_URL; | |
const craftGqlToken = process.env.CRAFT_GQL_TOKEN; | |
module.exports = { |
- Open the console https://console.cloud.google.com
- If you haven't already, setup your Cloud billing account
- From the drop down at the top of the screen, create new project for your client, e.g.
my-client
- Make a note of the
Project number
on the project Home screen (Craft refers to this as theProject ID
) - In the sidebar go to APIs & Services > Credentials, click the
+ Create credentials
button and choose theService Account
type
- Set account name to
craft-cms
or similar - Set role to
Owner
- Save
- Click on the newly created service account email to edit it, then click the
Keys
tab and clickAdd key
>Create new key
and select theJSON
format
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
// Server API makes it possible to hook into various parts of Gridsome | |
// on server-side and add custom data to the GraphQL data layer. | |
// Learn more: https://gridsome.org/docs/server-api | |
// Changes here requires a server restart. | |
// To restart press CTRL + C in terminal and run `gridsome develop` | |
const { setContext } = require('apollo-link-context') | |
const { HttpLink } = require('apollo-link-http') | |
const { |
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
- webpack.config.js | |
- postcss.config.js | |
- config.js | |
- addons.js |
- Control Panel Body Classes plugin
- Control Panel JavaScript plugin
- Control Panel CSS plugin
NewerOlder