Moved to a repo at https://github.com/Geczy/coolify-migration
(see YouTube channel for individual videos)
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 fetch from 'isomorphic-unfetch' | |
import { ApolloClient } from 'apollo-client' | |
import { ApolloLink } from 'apollo-link' | |
import { createHttpLink } from 'apollo-link-http' | |
import { InMemoryCache, NormalizedCacheObject } from 'apollo-cache-inmemory' | |
import { AccountsGraphQLClient } from '@accounts/graphql-client' | |
import { AccountsClientPassword } from '@accounts/client-password' | |
import { AccountsClient } from '@accounts/client' | |
import { accountsLink } from '@accounts/apollo-link' | |
import { tokenStorage } from './token-storage' |
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 { ApolloServer, gql } from 'apollo-server-micro'; | |
const typeDefs = gql` | |
type Query { | |
sayHello: String | |
} | |
`; | |
const resolvers = { | |
Query: { |
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 PropTypes from 'prop-types'; | |
type Omit<T, K> = Pick<T, Exclude<keyof T, K>>; | |
type Defined<T> = T extends undefined ? never : T; | |
/** | |
* Get the type that represents the props with the defaultProps included. | |
* | |
* Alternatively, we could have done something like this: |
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
//////////// | |
// MIXINS // | |
//////////// | |
/*------------------------------------*\ | |
FONTS | |
\*------------------------------------*/ | |
/*--General--*/ |
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
<?php | |
function ross_menu_link__menu_block__menu_social(array $variables) { | |
$element = $variables['element']; | |
$sub_menu = ''; | |
if ($element['#below']) { | |
$sub_menu = drupal_render($element['#below']); | |
} | |
$element['#localized_options']['html'] = TRUE; |