Skip to content

Commit

Permalink
chore: icon
Browse files Browse the repository at this point in the history
  • Loading branch information
nexmoe committed Apr 23, 2024
1 parent ebe7bf4 commit 467d0a7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
27 changes: 13 additions & 14 deletions components/module/Image.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@ const text = computed(() => extractTextFromHTML(props.module.content))
<template>
<div class="module shu-card p-3 space-y-4 flex flex-col justify-between">
<div class="space-y-4">
<div class="px-3 pt-1">
{{ formatDateTime(module.date) }}
<div class="flex flex-row items-center pt-1 gap-2 px-2">
<div class="w-5 h-5 block rounded-full overflow-hidden">
<LinkIcon :url="props.module.url" />
</div>
<div>
{{ formatDateTime(module.date) }}
</div>
</div>
<div v-if="props.module.image" class="shadow-sm max-h-96 rounded-xl relative overflow-hidden">
<NuxtImg
class="w-full" format="webp" :src="props.module!.image" :alt="module.title"
referrerpolicy="no-referrer" loading="lazy" width="420px"
/>
<NuxtImg class="w-full" format="webp" :src="props.module!.image" :alt="module.title"

Check warning on line 31 in components/module/Image.vue

View workflow job for this annotation

GitHub Actions / testCodebase

Expected a linebreak before this attribute
referrerpolicy="no-referrer" loading="lazy" width="420px" />

Check warning on line 32 in components/module/Image.vue

View workflow job for this annotation

GitHub Actions / testCodebase

Expected 1 line break before closing bracket, but no line breaks found
</div>
</div>
<div class="space-y-4 px-3 pb-3">
Expand All @@ -36,15 +39,11 @@ const text = computed(() => extractTextFromHTML(props.module.content))
<div v-if="!flow?.configNoContent && text !== ' '" class="line-clamp-3">
<div v-html="text" />
</div>
<div
v-if="!props.module.image || (props.module.platform?.length || 0) > 1"
class="flex flex-row items-center gap-1"
>
<div v-if="!props.module.image || (props.module.platform?.length || 0) > 1"

Check warning on line 42 in components/module/Image.vue

View workflow job for this annotation

GitHub Actions / testCodebase

Expected a linebreak before this attribute
class="flex flex-row items-center gap-1">

Check warning on line 43 in components/module/Image.vue

View workflow job for this annotation

GitHub Actions / testCodebase

Expected 1 line break before closing bracket, but no line breaks found
<template v-if="(props.module.platform?.length || 0) > 1">
<div
v-for="platform in props.module.platform" :key="platform" class="w-7 h-7 block"
@click="navigateTo(platform, { open: { target: '_blank' }, external: true })"
>
<div v-for="platform in props.module.platform" :key="platform" class="w-7 h-7 block"

Check warning on line 45 in components/module/Image.vue

View workflow job for this annotation

GitHub Actions / testCodebase

Expected a linebreak before this attribute
@click="navigateTo(platform, { open: { target: '_blank' }, external: true })">

Check warning on line 46 in components/module/Image.vue

View workflow job for this annotation

GitHub Actions / testCodebase

Expected 1 line break before closing bracket, but no line breaks found
<LinkIcon :url="platform" />
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion components/public/Tool.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ onUnmounted(() => {

<template>
<div
class="fixed flex flex-col text-2xl space-y-4 bottom-8 right-8 md:bottom-16 md:right-16"
class="fixed z-50 flex flex-col text-2xl space-y-4 bottom-8 right-8 md:bottom-16 md:right-16"
>
<transition name="fade">
<button
Expand Down
2 changes: 1 addition & 1 deletion server/middleware/update-site-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default eventHandler(async (e) => {

const config = await caller.config.get()

Check failure on line 7 in server/middleware/update-site-config.ts

View workflow job for this annotation

GitHub Actions / testCodebase

Expected indentation of 1 tab but found 4 spaces
// eslint-disable-next-line no-console

Check failure on line 8 in server/middleware/update-site-config.ts

View workflow job for this annotation

GitHub Actions / testCodebase

Expected indentation of 1 tab but found 4 spaces
console.log(config)
console.log(config.siteName)
// updateSiteConfig({
// name: config.siteName,
// description: config.siteDescription,
Expand Down

0 comments on commit 467d0a7

Please sign in to comment.