Skip to content

Repository files navigation

SurviveJS Slides

  1. npm install
  2. npm run watch server (or npm run server) in one terminal
  3. npm start in another

Examples

Example Query

{
  theme(name: "survivejs") {
    primaryColor
    secondaryColor
    background
  }
  presentation(name: "intro-to-graphql") {
    slides {
      theme {
        primaryColor
        secondaryColor
        background
      }
      layout
      content {
        ... on TitleContent {
          title
          author
        }
        ... on SectionContent {
          title
        }
        ... on EmbedContent {
          title
          link
        }
        ... on MarkdownContent {
          title
          markup
        }
      }
    }
  }
}

Example Mutation

mutation {
  changePresentationTheme(
    presentationName: "intro-to-graphql"
    themeName: "survivejs"
  ) {
    name
    theme {
      name
    }
  }
}

Theme API

{
  themes {
    primaryColor
  }
  theme(name: "survivejs") {
    primaryColor
    secondaryColor
    background
  }
}

Presentation API

{
  presentations {
    name
  }
  presentation(name: "intro-to-graphql") {
    slides {
      theme {
        primaryColor
        secondaryColor
        background
      }
      layout
      content {
        ... on TitleContent {
          title
          author
        }
        ... on SectionContent {
          title
        }
        ... on EmbedContent {
          title
          link
        }
        ... on MarkdownContent {
          title
          markup
        }
      }
    }
  }
}

Variables

Query:

{
  theme(name: @themeName) {
    primaryColor
    secondaryColor
    background
  }
}

Variables:

{
  "themeName": "survivejs"
}

About

SurviveJS slides

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages