forked from FlowindAI/colormagic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4aaf77
commit a125b7f
Showing
13 changed files
with
99 additions
and
103 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 |
---|---|---|
@@ -1,24 +1,8 @@ | ||
<template> | ||
<div class="fixed bottom-0 right-0 mt-4 p-4 "> | ||
<div | ||
class="flex justify-end gap-2" | ||
> | ||
<!-- github star button --> | ||
<UButton | ||
label="Star on GitHub" | ||
icon="i-fa6-brands-github" | ||
size="lg" | ||
@click="onClick()" | ||
/> | ||
</div> | ||
</div> | ||
<!-- 整个组件可以注释掉或删除 --> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
// 保留类型导入以防其他地方使用 | ||
import { PlausibleEventName } from '~/layers/plausible/types'; | ||
function onClick(): void { | ||
void navigateTo('https://github.com/timb-103/colormagic', { external: true }); | ||
sendPlausibleEvent(PlausibleEventName.GITHUB_BUTTON_FLOATING_CLICKED); | ||
} | ||
</script> |
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
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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export default defineNuxtPlugin(() => { | ||
// 动态加载 Plausible 脚本 | ||
const script = document.createElement('script'); | ||
script.defer = true; | ||
script.dataset.domain = 'colormagic.club'; | ||
script.src = 'https://plausible.io/js/script.outbound-links.js'; | ||
document.head.appendChild(script); | ||
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.