Skip to content

Commit

Permalink
Update react-onesignal
Browse files Browse the repository at this point in the history
  • Loading branch information
OneSignal committed Apr 3, 2023
1 parent 64d9c95 commit e6aa368
Show file tree
Hide file tree
Showing 26 changed files with 3,931 additions and 14,942 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/ask-question.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 🙋‍♂️ Ask a question
description: Tell us what's on your mind
title: "[question]: "
title: "[Question]: "
labels: ["triage"]
assignees:
- OneSignal/eng-developer-sdk
Expand Down
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,29 @@ body:
placeholder: The latest version of the SDK causes a runtime error.
validations:
required: true
- type: dropdown
id: browsers
attributes:
label: What browsers are you seeing the problem on?
multiple: true
options:
- Firefox
- Chrome (Chromium)
- Safari
- Microsoft Edge
- Opera
- Brave
- Other
validations:
required: true
- type: input
id: operating-system
attributes:
label: What operating system are you running?
description: Make sure to include the version.
placeholder: macOS Monterey 12.3.1
validations:
required: true
- type: textarea
id: reproduction-steps
attributes:
Expand Down Expand Up @@ -44,3 +67,4 @@ body:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: Shell

2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/general-feedback.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 📣 General feedback
description: Tell us what's on your mind
title: "[Bug]: "
title: "[Feedback]: "
labels: ["triage"]
assignees:
- OneSignal/eng-developer-sdk
Expand Down
File renamed without changes.
File renamed without changes.
384 changes: 320 additions & 64 deletions MigrationGuide.md

Large diffs are not rendered by default.

25 changes: 8 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
<h1 align="center">Welcome to react-onesignal 👋</h1>
<p>
<a href="https://www.npmjs.com/package/react-onesignal" target="_blank">
<img alt="Version" src="https://img.shields.io/npm/v/react-onesignal.svg">
</a>
<a href="https://github.com/OneSignal/react-onesignal#readme" target="_blank">
<img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />
</a>
<a href="https://github.com/OneSignal/react-onesignal/graphs/commit-activity" target="_blank">
<img alt="Maintenance" src="https://img.shields.io/badge/Maintained%3F-yes-green.svg" />
</a>
<a href="https://twitter.com/onesignal" target="_blank">
<img alt="Twitter: onesignal" src="https://img.shields.io/twitter/follow/onesignal.svg?style=social" />
</a>
<p align="center">
<img src="https://media.onesignal.com/cms/Website%20Layout/logo-red.svg"/>
<br/>
<br/>
<span style="color: grey !important">Showing web push notifications from Chrome, Safari, and Firefox</span>
</p>

> This is a JavaScript module that can be used to easily include [OneSignal](https://onesignal.com/) code in a website or app that uses React for its front-end codebase.
# React OneSignal
---

* 🏠 [Homepage](https://github.com/OneSignal/react-onesignal#readme)
* 🖤 [npm](https://www.npmjs.com/package/react-onesignal)
This is a JavaScript module that can be used to easily include [OneSignal](https://onesignal.com/) code in a website or app that uses React for its front-end codebase.

OneSignal is the world's leader for Mobile Push Notifications, Web Push, and In-App Messaging. It is trusted by 800k businesses to send 5 billion Push Notifications per day.

Expand Down
3 changes: 3 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

dev-ssl.crt
dev-ssl.key
38 changes: 7 additions & 31 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ In the project directory, you can run:
### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload when you make changes.\
You may also see any lint errors in the console.
The page will reload if you make edits.\
You will also see any lint errors in the console.

### `npm test`

Expand All @@ -31,40 +31,16 @@ See the section about [deployment](https://facebook.github.io/create-react-app/d

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can't go back!**
**Note: this is a one-way operation. Once you `eject`, you cant go back!**

If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
If you arent satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point youre on your own.

You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
You dont have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldnt feel obligated to use this feature. However we understand that this tool wouldnt be useful if you couldnt customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)

### Analyzing the Bundle Size

This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)

### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `npm run build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
Loading

0 comments on commit e6aa368

Please sign in to comment.