-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: ui * chore: shadcn/ui * chore: header * chore: prose * chore: header responsive * chore: style * chore: optimize * chore: color * chore: pnpm lock * refactor: pnpm * chore: pnpm lock * chore: comment prisma * feat: add trpc * chore: trpc config * chore: delete pnpm lock * fix: eslint * chore: trpc * chore: deps * chore: pnpm lock * chore: pnpm lock core.autocrlf * chore(deps): up nuxt * chore: prisma migrate * fix: pnpm: Cannot read properties of null (reading '0') * fix: lint * fix: typecheck * chore(deps): up nuxt * chore * chore: config type * chore: comment seo * fix: lint
- Loading branch information
Showing
53 changed files
with
6,803 additions
and
3,295 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
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,78 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@layer base { | ||
:root { | ||
--background: 0 0% 100%; | ||
--foreground: 222.2 84% 4.9%; | ||
|
||
--muted: 210 40% 96.1%; | ||
--muted-foreground: 215.4 16.3% 46.9%; | ||
|
||
--popover: 0 0% 100%; | ||
--popover-foreground: 222.2 84% 4.9%; | ||
|
||
--card: 0 0% 100%; | ||
--card-foreground: 222.2 84% 4.9%; | ||
|
||
--border: 214.3 31.8% 91.4%; | ||
--input: 214.3 31.8% 91.4%; | ||
|
||
--primary: 222.2 47.4% 11.2%; | ||
--primary-foreground: 210 40% 98%; | ||
|
||
--secondary: 210 40% 96.1%; | ||
--secondary-foreground: 222.2 47.4% 11.2%; | ||
|
||
--accent: 210 40% 96.1%; | ||
--accent-foreground: 222.2 47.4% 11.2%; | ||
|
||
--destructive: 0 84.2% 60.2%; | ||
--destructive-foreground: 210 40% 98%; | ||
|
||
--ring: 222.2 84% 4.9%; | ||
|
||
--radius: 0.5rem; | ||
} | ||
|
||
.dark { | ||
--background: 222.2 84% 4.9%; | ||
--foreground: 210 40% 98%; | ||
|
||
--muted: 217.2 32.6% 17.5%; | ||
--muted-foreground: 215 20.2% 65.1%; | ||
|
||
--popover: 222.2 84% 4.9%; | ||
--popover-foreground: 210 40% 98%; | ||
|
||
--card: 222.2 84% 4.9%; | ||
--card-foreground: 210 40% 98%; | ||
|
||
--border: 217.2 32.6% 17.5%; | ||
--input: 217.2 32.6% 17.5%; | ||
|
||
--primary: 210 40% 98%; | ||
--primary-foreground: 222.2 47.4% 11.2%; | ||
|
||
--secondary: 217.2 32.6% 17.5%; | ||
--secondary-foreground: 210 40% 98%; | ||
|
||
--accent: 217.2 32.6% 17.5%; | ||
--accent-foreground: 210 40% 98%; | ||
|
||
--destructive: 0 62.8% 30.6%; | ||
--destructive-foreground: 210 40% 98%; | ||
|
||
--ring: 212.7 26.8% 83.9%; | ||
} | ||
} | ||
|
||
@layer base { | ||
* { | ||
@apply border-border; | ||
} | ||
body { | ||
@apply bg-background text-foreground; | ||
} | ||
} |
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,23 +1,25 @@ | ||
<script setup> | ||
const props = defineProps({ | ||
url: String, | ||
path: String, | ||
icon: String, | ||
color: String, | ||
tip: String, | ||
}) | ||
let res = {} | ||
if (props.path) { | ||
const { data } = await useFetch(`https://api.swo.moe/stats/${props.path}`) | ||
res = data | ||
<script setup lang="ts"> | ||
const props = defineProps<Props>() | ||
const iconMap = { | ||
github: 'mdi:github', | ||
telegram: 'mdi:telegram', | ||
medium: 'mdi:medium', | ||
twitter: 'mdi:twitter', | ||
bilibili: 'i-ri-bilibili-fill', | ||
} | ||
type IconKey = keyof typeof iconMap | ||
export interface Props { | ||
url: string | ||
icon: IconKey | ||
tip: string | ||
} | ||
</script> | ||
|
||
<template> | ||
<a :href="url" target="_blank" :title="props.tip"> | ||
<UTooltip :text="props.tip"> | ||
<UButton :aria-label="props.tip" size="xs" class="mr-2" :color="color" variant="outline" :ui="{ rounded: 'rounded-full' }">{{ | ||
props.tip }} {{ res.count ? `${res.count} 粉` : "" }}</UButton> | ||
</UTooltip> | ||
<a class="text-2xl text-gray-600 flex" :href="url" target="_blank" :title="props.tip"> | ||
<Icon :name="iconMap[props.icon]" /> | ||
</a> | ||
</template> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.