Skip to content

Commit

Permalink
Update nextdns extension (raycast#14298)
Browse files Browse the repository at this point in the history
  • Loading branch information
pernielsentikaer authored Sep 1, 2024
1 parent ba69251 commit 62c7c84
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions extensions/nextdns/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# NextDNS Changelog

## [Enhancement] - 2024-09-02

- Added allowd/blocked labels in `Search Logs`

## [Fix] - 2024-09-01

- Fixed a bug in the model name in `Search Logs` that caused a crash
Expand Down
10 changes: 9 additions & 1 deletion extensions/nextdns/src/logs.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Action, ActionPanel, Icon, List } from "@raycast/api";
import { Action, ActionPanel, Color, Icon, List } from "@raycast/api";
import { getLogs } from "./libs/api";
import { getIconById } from "./libs/utils";
import { Log } from "./types";
Expand All @@ -15,6 +15,14 @@ export default function Logs() {
title={log.domain}
icon={getIconById(log.domain)}
accessories={[
{
tag:
log.status === "blocked"
? { value: "Blocked", color: Color.Red }
: log.status === "allowed"
? { value: "Allowed", color: Color.Green }
: null,
},
{ tag: log.device ? log.device.name : "Unknown", tooltip: log.device ? log.device.model : "No model" },
{ date: date, tooltip: date.toLocaleDateString() },
]}
Expand Down

0 comments on commit 62c7c84

Please sign in to comment.