Skip to content

Commit

Permalink
fix(analytics): rename all "umami-data-event" to "data-umami-event"
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Aug 18, 2023
1 parent 6abe8c9 commit db009d5
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/components/clear-button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function ClearButton() {
onClick={clear}
className={actionButton({ theme })}
title="Clear all active sounds"
umami-data-event="Clear Button"
data-umami-event="Clear Button"
>
clear
</button>
Expand Down
10 changes: 5 additions & 5 deletions src/components/footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,28 +41,28 @@ export function Footer() {
<Info
href="https://github.com/mateusfg7/Noisekun/blob/master/LICENSE"
className="cursor-pointer"
umami-data-event="License Link"
data-umami-event="License Link"
>
<AiOutlineCopyrightCircle /> MIT License
</Info>
<Info
href="https://github.com/mateusfg7"
umami-data-event="Author Link"
data-umami-event="Author Link"
>
by <span className="font-bold">mateusfg7</span>
</Info>
</section>
<section className="flex flex-col gap-2 sm:gap-0">
<Info
href="https://github.com/mateusfg7/Noisekun"
umami-data-event="Repository Link"
data-umami-event="Repository Link"
>
<FiGithub /> Source
</Info>

<Info
href="https://github.com/mateusfg7/Noisekun/#credits"
umami-data-event="Credits Link"
data-umami-event="Credits Link"
>
<FiAward /> Credits
</Info>
Expand All @@ -71,7 +71,7 @@ export function Footer() {
<a
href={`https://github.com/mateusfg7/Noisekun/releases/tag/${packageJson.version}`}
className={version({ theme })}
umami-data-event="Version Link"
data-umami-event="Version Link"
>
{packageJson.version}
</a>
Expand Down
6 changes: 3 additions & 3 deletions src/components/header/combo-list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function ComboList() {
<Menu>
<Menu.Button
title="Toggle combo list"
umami-data-event="Open combo list"
data-umami-event="Open combo list"
disabled={isEmpty}
className={triggerButton({ theme })}
>
Expand Down Expand Up @@ -95,7 +95,7 @@ export function ComboList() {
<button
className={comboButton({ theme, active })}
onClick={() => updateCombo(combo.id)}
umami-data-event="Select combo"
data-umami-event="Select combo"
>
<span className="font-bold">{combo.name}</span>
</button>
Expand All @@ -109,7 +109,7 @@ export function ComboList() {
key={combo.id}
className={editButton({ theme })}
onClick={() => deleteCombo(combo.id)}
umami-data-event="Delete combo"
data-umami-event="Delete combo"
>
<span className="font-bold">{combo.name}</span>
<FiTrash />
Expand Down
2 changes: 1 addition & 1 deletion src/components/header/global-volume-controller/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function GlobalVolumeController() {
title="Enable/disable sound"
className={soundButton({ theme })}
onClick={toggleMuted}
umami-data-event="Mute/Unmute global volume"
data-umami-event="Mute/Unmute global volume"
>
{globalVolume >= 0.5 && <FiVolume2 size={25} />}
{globalVolume >= 0.25 && globalVolume < 0.5 && <FiVolume1 size={25} />}
Expand Down
6 changes: 3 additions & 3 deletions src/components/header/pomodoro/config-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function ConfigModal({
type="button"
onClick={openModal}
className={display({ theme })}
umami-data-event="Open pomodoro config"
data-umami-event="Open pomodoro config"
>
<div
title="Pomodoro timer"
Expand Down Expand Up @@ -120,14 +120,14 @@ export function ConfigModal({
<div className="flex justify-end gap-1">
<button
onClick={handleReset}
umami-data-event="Reset pomodoro config"
data-umami-event="Reset pomodoro config"
className="rounded-lg px-5 py-3 text-lg leading-none text-red-800 transition-colors hover:bg-red-800 hover:text-red-100"
>
Reset
</button>
<button
onClick={handleSave}
umami-data-event="Save pomodoro config"
data-umami-event="Save pomodoro config"
className="rounded-lg bg-green-100 px-5 py-3 text-lg leading-none text-green-950 transition-colors hover:bg-green-900 hover:text-green-100"
>
Save
Expand Down
4 changes: 2 additions & 2 deletions src/components/header/pomodoro/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export function Pomodoro() {
title="Reset Pomodoro timer"
onClick={resetTimer}
className={controlButton({ theme })}
umami-data-event="Reset pomodoro timer"
data-umami-event="Reset pomodoro timer"
>
<FiRotateCw />
</button>
Expand All @@ -117,7 +117,7 @@ export function Pomodoro() {
title="Toggle Pomodoro timer"
onClick={handleToggle}
className={controlButton({ theme })}
umami-data-event="Play/pause pomodoro timer"
data-umami-event="Play/pause pomodoro timer"
>
{isTicking ? <FiPause /> : <FiPlay />}
</button>
Expand Down
4 changes: 2 additions & 2 deletions src/components/header/theme-menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function ThemeMenu() {
<Menu.Button
title="Toggle theme menu"
className={triggerButton({ theme: currentTheme })}
umami-data-event="Open theme menu"
data-umami-event="Open theme menu"
>
<PiPaintBrushBroadBold size={22} />
</Menu.Button>
Expand Down Expand Up @@ -96,7 +96,7 @@ export function ThemeMenu() {
background: theme.id
})}
onClick={() => handleTheme(theme.id)}
umami-data-event={`Select ${theme.title} Theme`}
data-umami-event={`Select ${theme.title} Theme`}
>
{theme.title}
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/components/sound/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export const SoundButton: React.FC<SoundButtonProps> = ({ sound }) => {
<source src={sound.file.url} type={sound.file.type} />
</audio>
<button
umami-data-event={sound.title}
data-umami-event={sound.title}
className={iconContainer({ active: localSoundState.active, theme })}
onClick={() => setIsUpdatingSoundState(true)}
>
Expand Down

0 comments on commit db009d5

Please sign in to comment.