Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 13ed268 Author: Matt Aitken <matt@mattaitken.com> Date: Fri Oct 20 11:38:22 2023 +0100 Added all the tabler-icons to Storybook commit 62738d7 Author: Matt Aitken <matt@mattaitken.com> Date: Fri Oct 20 11:38:09 2023 +0100 Use the no-stroke version of the tabler-sprite so we can control the stroke width commit a1b7edd Author: Matt Aitken <matt@mattaitken.com> Date: Fri Oct 20 11:37:54 2023 +0100 Set the default width to 1.5, so they’re a bit thinner commit 69ba388 Author: Matt Aitken <matt@mattaitken.com> Date: Fri Oct 20 10:55:34 2023 +0100 Added a tabler icon to an events job catalog job commit eb3c5f6 Author: Matt Aitken <matt@mattaitken.com> Date: Fri Oct 20 10:53:40 2023 +0100 Moved the tabler sprite to the app and use an import. This means it’ll be cached and we can move it commit c24d76e Author: Chaturved Degloorkar <48447253+chaturrved@users.noreply.github.com> Date: Fri Oct 20 15:22:59 2023 +0530 feat: Add support for tabler-icons when using the icon for Tasks (#629) * Add support for tabler-icons * Changed the core update type from minor to a patch --------- Co-authored-by: Matt Aitken <matt@mattaitken.com>
- Loading branch information
1 parent
84af641
commit abc9737
Showing
9 changed files
with
4,887 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@trigger.dev/core": patch | ||
--- | ||
|
||
Updated icon documentation in runTasks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import { hasIcon } from "@trigger.dev/companyicons"; | ||
import { iconNames as namedIcons } from "~/components/primitives/NamedIcon"; | ||
import { tablerIcons } from "~/utils/tablerIcons"; | ||
|
||
export const isValidIcon = (icon?: string): boolean => { | ||
if (!icon) { | ||
return false; | ||
} | ||
return namedIcons.includes(icon) || hasIcon(icon); | ||
return namedIcons.includes(icon) || hasIcon(icon) || tablerIcons.has(icon); | ||
}; |
Oops, something went wrong.