Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@ name: CI
on:
push:
branches:
- master
- main
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v6
# https://github.com/actions/setup-node
- uses: actions/setup-node@v6
with:
node-version: 24
Expand All @@ -23,7 +21,7 @@ jobs:
- run: npm run build
- name: test
run: npm run test:ci
# https://github.com/codecov/codecov-action

- name: coverage
uses: codecov/codecov-action@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release
on:
workflow_run:
workflows: ['CI']
branches: [master]
branches: [main]
types: [completed]

permissions:
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<img src="https://raw.githubusercontent.com/openng-org/ngx-toastr/master/misc/documentation-assets/ngx-toastr-example.png" width="300" alt="Angular Toastr">
<img src="https://raw.githubusercontent.com/openng-org/ngx-toastr/main/misc/documentation-assets/ngx-toastr-example.png" width="300" alt="Angular Toastr">
<br>
<h1>@openng/ngx-toastr</h1>
<br>
Expand Down Expand Up @@ -49,7 +49,7 @@ npm install @openng/ngx-toastr --save
**step 1:** add css

- copy
[toast css](https://github.com/openng-org/ngx-toastr/blob/master/projects/ngx-toastr/src/lib/toastr.css)
[toast css](https://github.com/openng-org/ngx-toastr/blob/main/projects/ngx-toastr/src/lib/toastr.css)
to your project.
- If you are using sass you can import the css.

Expand Down Expand Up @@ -347,7 +347,7 @@ That's it! No animations.
## Using A Custom Toast

Create your toast component extending Toast see the demo's pink toast for an example
<https://github.com/openng-org/ngx-toastr/blob/master/src/app/pink-toast/pink-toast.component.ts>
<https://github.com/openng-org/ngx-toastr/blob/main/src/app/pink-toast/pink-toast.component.ts>

```typescript
import { ToastrModule } from '@openng/ngx-toastr';
Expand Down Expand Up @@ -377,7 +377,7 @@ ngOnInit() {
```

2. Change default icons (check, warning sign, etc)\
Overwrite the css background-image: <https://github.com/openng-org/ngx-toastr/blob/master/projects/ngx-toastr/src/lib/toastr.css>.
Overwrite the css background-image: <https://github.com/openng-org/ngx-toastr/blob/main/projects/ngx-toastr/src/lib/toastr.css>.
3. How do I use this in an ErrorHandler?\
See: <https://github.com/scttcper/ngx-toastr/issues/179>.
4. How can I translate messages?\
Expand Down
2 changes: 1 addition & 1 deletion src/app/footer/footer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Component, VERSION } from '@angular/core';
<footer class="footer mb-4 mt-5">
Angular {{ version }}
<br />
<a href="https://github.com/openng-org/ngx-toastr/blob/master/LICENSE">MIT license</a>
<a href="https://github.com/openng-org/ngx-toastr/blob/main/LICENSE">MIT license</a>
-
<a href="https://github.com/openng-org/ngx-toastr">Source</a>
</footer>
Expand Down
8 changes: 4 additions & 4 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@
<!-- Search Engine -->
<meta
name="image"
content="https://raw.githubusercontent.com/openng-org/ngx-toastr/master/misc/documentation-assets/ngx-toastr-example.png"
content="https://raw.githubusercontent.com/openng-org/ngx-toastr/main/misc/documentation-assets/ngx-toastr-example.png"
/>
<!-- Schema.org for Google -->
<meta itemprop="name" content="@openng/ngx-toastr" />
<meta
itemprop="image"
content="https://raw.githubusercontent.com/openng-org/ngx-toastr/master/misc/documentation-assets/ngx-toastr-example.png"
content="https://raw.githubusercontent.com/openng-org/ngx-toastr/main/misc/documentation-assets/ngx-toastr-example.png"
/>
<!-- Twitter -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="@openng/ngx-toastr" />
<meta
name="twitter:image:src"
content="https://raw.githubusercontent.com/openng-org/ngx-toastr/master/misc/documentation-assets/ngx-toastr-example.png"
content="https://raw.githubusercontent.com/openng-org/ngx-toastr/main/misc/documentation-assets/ngx-toastr-example.png"
/>
<!-- Open Graph general (Facebook, Pinterest & Google+) -->
<meta property="og:title" content="@openng/ngx-toastr" />
<meta
property="og:image"
content="https://raw.githubusercontent.com/openng-org/ngx-toastr/master/misc/documentation-assets/ngx-toastr-example.png"
content="https://raw.githubusercontent.com/openng-org/ngx-toastr/main/misc/documentation-assets/ngx-toastr-example.png"
/>
<meta property="og:url" content="https://ngx-toastr.vercel.app/" />
<meta property="og:site_name" content="@openng/ngx-toastr" />
Expand Down
Loading