parallax/jsPDF

Modernize Source Code Examples

Open

#2.930 geöffnet am 24. Sept. 2020

Auf GitHub ansehen
 (13 Kommentare) (3 Reaktionen) (0 zugewiesene Personen)JavaScript (28.280 Stars) (4.596 Forks)batch import
difficulty:beginnerhacktoberfesthelp wantedpersistent

Beschreibung

JsPDF has a lot of code examples that haven't been looked at for quite some time and some of them are outdated.

Have a look at the examples and modernize them:

  • Use recent ES6 code
  • Add one or two TypeScript examples
  • Use jsPDF@2.x.x API
  • delete unused files
  • delete the examples/css folder and load required CSS libraries from a CDN
  • delete jquery (examples/js/jquery) and replace it with modern browser APIs
  • reduce code duplication in html files (styles)

Bonus: Add small examples for the three major UI frameworks: VueJs, Angular, and React. Setup the initial applications with @vue/cli, create-react-app, and @angular/cli then add jsPDF.

Contributor Guide