generated from nhcarrigan/template
chore: fix lints and tests
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { testAchievementSound } from '$lib/sounds/achievement';
|
||||
import { invoke } from '@tauri-apps/api/core';
|
||||
import { testAchievementSound } from "$lib/sounds/achievement";
|
||||
import { invoke } from "@tauri-apps/api/core";
|
||||
|
||||
async function testSound() {
|
||||
testAchievementSound();
|
||||
@@ -9,12 +9,12 @@
|
||||
async function triggerAchievement() {
|
||||
// This will trigger an achievement that hasn't been unlocked yet
|
||||
try {
|
||||
await invoke('check_achievements', {
|
||||
eventType: 'message_sent',
|
||||
data: {}
|
||||
await invoke("check_achievements", {
|
||||
eventType: "message_sent",
|
||||
data: {},
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('Failed to trigger achievement:', error);
|
||||
console.error("Failed to trigger achievement:", error);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -38,8 +38,8 @@
|
||||
</button>
|
||||
|
||||
<p class="text-sm text-gray-600 dark:text-gray-400 mt-4">
|
||||
Click the first button to test just the sound effect.<br>
|
||||
Click the first button to test just the sound effect.<br />
|
||||
Click the second button to trigger a real achievement (if any are available to unlock).
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user