Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
/ community-js Public archive

Source code of the @dgraph-io/community npm package

Notifications You must be signed in to change notification settings

dgraph-io/community-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@dgraph-io/community

Source code of the @dgraph-io/community npm package

This package isn't designed to be used by other projects, but we've published the source code in the spirit of transparency; educational purposes; sharing our best practices.

Features

  • creates CTA button
  • wraps mailchimp embeds in a more webapp-like API
    • also has little hacks to improve user experience in case of multiple domains
  • initializes analytics scripts
  • best good enough practices in code bundling and minification
  • published as a npm package to enable the power of unpkg.com

Usage

Add a script tag to your page somewhere after the </body> tag:

<script src="//unpkg.com/@dgraph-io/community"></script>
WARNING: be careful: it won't work if placed inside or before <body>!

About

Source code of the @dgraph-io/community npm package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •