Skip to content

Commit 0d5216d

Browse files
authored
Merge pull request #57 from add2cal/dev
Dev
2 parents b033116 + 681fbe8 commit 0d5216d

File tree

9 files changed

+1235
-940
lines changed

9 files changed

+1235
-940
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ representative at an online or offline event.
6060

6161
Instances of abusive, harassing, or otherwise unacceptable behavior may be
6262
reported to the community leaders responsible for enforcement at
63-
[INSERT CONTACT METHOD].
63+
contributing@add-to-calendar-pro.com.
6464
All complaints will be reviewed and investigated promptly and fairly.
6565

6666
All community leaders are obligated to respect the privacy and security of the

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Adhering to the following process is the best way to get your work included in t
7777

7878
```bash
7979
# Clone your fork of the repo
80-
git clone https://github.com/<your-username>/add-to-calendar-button-react.git
80+
git clone https://github.com/add2cal/add-to-calendar-button-react.git
8181
# Navigate to the newly cloned directory
8282
cd add-to-calendar-button-react
8383
# Assign the original repo to a remote called "upstream"

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
steps:
2424
- name: Checkout repository
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626

2727
- name: Initialize CodeQL
2828
uses: github/codeql-action/init@v2

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ jobs:
1111
test:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
1616
with:
17-
node-version: 16
17+
node-version: 20
1818
- run: npm ci
1919
- run: npm test
2020

2121
build-and-publish:
2222
needs: test
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v3
26-
- uses: actions/setup-node@v3
25+
- uses: actions/checkout@v4
26+
- uses: actions/setup-node@v4
2727
with:
28-
node-version: 16
28+
node-version: 20
2929
registry-url: https://registry.npmjs.org/
3030
cache: 'npm'
3131
- run: npm ci

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ jobs:
99
strategy:
1010
matrix:
1111
platform: [ubuntu-latest]
12-
node-version: ['18']
12+
node-version: ['18', '20']
1313
toolchain: [stable]
1414
runs-on: ${{ matrix.platform }}
1515
steps:
16-
- uses: actions/checkout@v3
17-
- uses: actions/setup-node@v3
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
1818
with:
1919
node-version: ${{ matrix.node-version }}
2020
- name: Run tests

README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
![Add to Calendar Button React Wrapper](https://github.com/add2cal/add-to-calendar-button-react/blob/main/assets/readme-header.png?raw=true)
22

33
![Version](https://img.shields.io/npm/v/add-to-calendar-button-react?style=for-the-badge&label=Version)
4-
[![Parent Script Version](https://img.shields.io/badge/Parent%20Script%20Version-v2.4.3-blue?style=for-the-badge)](https://github.com/add2cal/add-to-calendar-button)
4+
[![Parent Script Version](https://img.shields.io/badge/Parent%20Script%20Version-v2.5.0-blue?style=for-the-badge)](https://github.com/add2cal/add-to-calendar-button)
55
[![npm bundle size](https://img.shields.io/bundlephobia/minzip/add-to-calendar-button-react?style=for-the-badge)](https://www.npmjs.com/package/add-to-calendar-button-react)
66
[![npm Installations](https://img.shields.io/npm/dt/add-to-calendar-button-react?label=npm%20Installations&style=for-the-badge)](https://www.npmjs.com/package/add-to-calendar-button-react)
77

@@ -84,6 +84,22 @@ Simple and convenient integration of 1 or many buttons, optimized to be used as
8484

8585
<br />
8686

87+
## 🚀 Go PRO
88+
89+
- ics file generation and hosting for better compatibility.
90+
- RSVP, incl. automatic updates sent to attendees, GDPR features, and more.
91+
- More customization - all no-code.
92+
- API, webhooks, and more technical toys.
93+
- Share events among all kinds of channels - email, social media, ...
94+
95+
Check the details at [add-to-calendar-pro.com](https://add-to-calendar-pro.com)!
96+
97+
<br />
98+
99+
---
100+
101+
<br />
102+
87103
## 📦 Installation
88104

89105
Install the package using the following npm command:
@@ -106,11 +122,14 @@ import { AddToCalendarButton } from 'add-to-calendar-button-react';
106122

107123
Use the componet inside your code and declare any options as props. You will get warned about any type misconfiguration.
108124

125+
Calendar type options and time zone information are not required, but recommended.
126+
109127
```javascript
110128
<AddToCalendarButton
111129
name="Test-Event"
112130
startDate="2023-05-22"
113131
options={['Apple','Google','Yahoo','iCal']}
132+
timeZone="America/Los_Angeles"
114133
></AddToCalendarButton>
115134
```
116135

@@ -122,6 +141,14 @@ If you need to use the type explicitely, you can import it via:
122141
import type { AddToCalendarButtonType } from 'add-to-calendar-button-react';
123142
```
124143

144+
<br /><br />
145+
146+
When using the PRO version, you can keep it even shorter, as you would only need the proKey.
147+
148+
```javascript
149+
<AddToCalendarButton proKey="prokey-of-your-event"></AddToCalendarButton>
150+
```
151+
125152
<br />
126153

127154
### All options and hidden features

0 commit comments

Comments
 (0)