Skip to content

Commit

Permalink
Bring RVG.js into CardKit, update build and docs for React 17
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishutchinson committed May 3, 2021
1 parent 567ca52 commit 43c9218
Show file tree
Hide file tree
Showing 47 changed files with 33,059 additions and 974 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
The MIT License (MIT)
Copyright (c) 2016 Times Newspapers Limited
Copyright (c) 2016 Chris Hutchinson

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# CardKit

[![Join the chat at https://gitter.im/times/cardkit](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/times/cardkit?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

> A simple, powerful and fully configurable image editor for web browers and servers. Optional UI included.
CardKit has three main parts:
Expand All @@ -12,7 +10,7 @@ CardKit has three main parts:

Additionally, a base class allows you to create your own renderers. See more in the [Custom Renderers](#custom-renderers) section.

**For version 1, see the [`v1-master`](https://github.com/times/cardkit/tree/v1-master) branch**
**For version 1, see the [`v1-master`](https://github.com/chrishutchinson/cardkit/tree/v1-master) branch**

## Installation

Expand Down Expand Up @@ -74,11 +72,11 @@ renderer.renderUI("card");
<!-- Load in the CardKit and CardKitDOM Libraries -->
<script
type="text/javascript"
src="https://cdn.rawgit.com/times/cardkit/v2.0.6/dist/cardkit.js"
src="https://cdn.rawgit.com/chrishutchinson/cardkit/v2.0.6/dist/cardkit.js"
></script>
<script
type="text/javascript"
src="https://cdn.rawgit.com/times/cardkit/v2.0.6/dist/dom.js"
src="https://cdn.rawgit.com/chrishutchinson/cardkit/v2.0.6/dist/dom.js"
></script>

<!-- Your container element to render into -->
Expand Down
5 changes: 3 additions & 2 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ The files in here can be used in `<script>` tags in any HTML page. `React` and `

### Example

<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.2/react.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.2/react-dom.min.js"></script>
<script crossorigin src="https://unpkg.com/react@17/umd/react.production.min.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prop-types/15.7.2/prop-types.min.js" integrity="sha512-ssNhh7jlzc+K93ckIlSXFHHz6fSFv0l619WOv8xbFNRbFOujbasb42LVMOggDrQR1ScJncoWb+KAJx1uF3ipjw==" crossorigin="anonymous"></script>
<script type="text/javascript" src="/path/to/dist/cardkit.js"></script>
<script type="text/javascript" src="/path/to/dist/dom.js"></script>

Expand Down
8 changes: 4 additions & 4 deletions dist/dom.js

Large diffs are not rendered by default.

Loading

0 comments on commit 43c9218

Please sign in to comment.