Merge branch 'main' into docker-versions
This commit is contained in:
@@ -12,8 +12,9 @@ jobs:
|
|||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Cache Docker layers
|
- name: Cache Docker layers
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
@@ -42,13 +43,14 @@ jobs:
|
|||||||
type=raw,value=${{ env.version }}
|
type=raw,value=${{ env.version }}
|
||||||
type=raw,value=latest
|
type=raw,value=latest
|
||||||
|
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: driaug/plunk:latest
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
cache-from: type=local,src=/tmp/.buildx-cache
|
cache-from: type=local,src=/tmp/.buildx-cache
|
||||||
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
|
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
|
||||||
|
|||||||
@@ -65,7 +65,12 @@ export default function Index() {
|
|||||||
<div>
|
<div>
|
||||||
<p className={"font-medium text-neutral-600"}>Bounce Rate</p>
|
<p className={"font-medium text-neutral-600"}>Bounce Rate</p>
|
||||||
<p className={"text-2xl font-semibold text-neutral-800"}>
|
<p className={"text-2xl font-semibold text-neutral-800"}>
|
||||||
<>{((analytics.emails.bounced / analytics.emails.total) * 100).toFixed(2)}%</>
|
<>
|
||||||
|
{Number.isNaN((analytics.emails.bounced / analytics.emails.total) * 100)
|
||||||
|
? 0
|
||||||
|
: ((analytics.emails.bounced / analytics.emails.total) * 100).toFixed(2)}
|
||||||
|
%
|
||||||
|
</>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className={"flex flex-1 justify-end"}>
|
<div className={"flex flex-1 justify-end"}>
|
||||||
@@ -123,7 +128,12 @@ export default function Index() {
|
|||||||
<div>
|
<div>
|
||||||
<p className={"font-medium text-neutral-600"}>Spam Rate</p>
|
<p className={"font-medium text-neutral-600"}>Spam Rate</p>
|
||||||
<p className={"text-2xl font-semibold text-neutral-800"}>
|
<p className={"text-2xl font-semibold text-neutral-800"}>
|
||||||
<>{((analytics.emails.complaint / analytics.emails.total) * 100).toFixed(2)}%</>
|
<>
|
||||||
|
{Number.isNaN((analytics.emails.complaint / analytics.emails.total) * 100)
|
||||||
|
? 0
|
||||||
|
: ((analytics.emails.complaint / analytics.emails.total) * 100).toFixed(2)}
|
||||||
|
%
|
||||||
|
</>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className={"flex flex-1 justify-end"}>
|
<div className={"flex flex-1 justify-end"}>
|
||||||
|
|||||||
Reference in New Issue
Block a user