Skip to content

Commit

Permalink
Url encode svg and ship it
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <[email protected]>
  • Loading branch information
skjnldsv committed Oct 28, 2022
1 parent 7939530 commit 47de0f2
Show file tree
Hide file tree
Showing 5 changed files with 4,884 additions and 2,721 deletions.
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
node_modules/
styles/
.github/
.git/
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ npm i -S @nextcloud/dialogs

```js
import { showMessage, showInfo, showSuccess, showWarning, showError } from '@nextcloud/dialogs'
import '@nextcloud/dialogs/styles/toast.scss'
import '@nextcloud/dialogs/dist/index.css'
```

Make sure that the `@nextcloud/dialogs/styles/toast.scss` file is included in your app to make sure that the toasts have a proper styling applied.
Make sure that the `@nextcloud/dialogs/dist/index.css` file is included in your app to make sure that the toasts have a proper styling applied.

If you using `@nextcloud/dialogs >= 2.0` you must configure svg loader in your project.
If you using `@nextcloud/dialogs >= 4.0` you don't need any svg or scss loader in you projects anymore.

There are different toast styles available, that are exposed in separate functions:

Expand Down
Loading

0 comments on commit 47de0f2

Please sign in to comment.