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
| { | |
| "0": "en", | |
| "1": "fr", | |
| "2": "de", | |
| "3": "it", | |
| "4": "nl", | |
| "5": "sv", | |
| "6": "es", | |
| "7": "da", | |
| "8": "pt", |
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
| { | |
| "ar": 1, | |
| "bg": 2, | |
| "ca": 3, | |
| "zh-hans": 4, | |
| "cs": 5, | |
| "da": 6, | |
| "de": 7, | |
| "el": 8, | |
| "en": 9, |
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
| { | |
| "ar": 1, | |
| "bg": 2, | |
| "ca": 3, | |
| "zh-Hans": 4, | |
| "cs": 5, | |
| "da": 6, | |
| "de": 7, | |
| "el": 8, | |
| "en": 9, |
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
| { | |
| "theme": { | |
| "accentColor": { | |
| "inherit": "inherit", | |
| "current": "currentColor", | |
| "transparent": "transparent", | |
| "black": "#000", | |
| "white": "#fff", | |
| "slate": { | |
| "50": "#f8fafc", |
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
| @use "sass:math"; | |
| $type-size-root: 14px; | |
| $type-ratio: 7px / 6px; | |
| $type-names: ( | |
| 50: -2, | |
| 75: -1, | |
| 100: 0, | |
| 200: 1, | |
| 300: 2, |
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 validateDate(year, month, day) { | |
| const date = new Date(year, month, day); | |
| if (year !== date.getFullYear() || month !== date.getMonth() || day !== date.getDate()) { | |
| throw new Error('Invalid date'); | |
| } | |
| return date; | |
| } |
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
| { | |
| "languages": { | |
| "1c": { | |
| "aliases": [ | |
| "1c" | |
| ] | |
| }, | |
| "abnf": { | |
| "aliases": [ | |
| "abnf" |
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
| // GraphQL query | |
| const GetPhotos = gql` | |
| query GetPhotos { | |
| assets { | |
| id | |
| url | |
| width | |
| height | |
| } |
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
| /** @typedef {import("graphql-config").IGraphQLConfig} IGraphQLConfig */ | |
| const {loadEnvConfig} = require('@next/env'); | |
| loadEnvConfig(__dirname, true); | |
| /** @type IGraphQLConfig */ | |
| const config = { | |
| schema: process.env.GRAPHCMS_ENDPOINT, | |
| extensions: { |
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
| { | |
| "execMap": { | |
| "go": "go run {{filename}} || exit 1" | |
| }, | |
| "ext": "go" | |
| } |
NewerOlder