Skip to content

Commit bb3bedd

Browse files
committed
fixed types finally?
1 parent 3885295 commit bb3bedd

File tree

6 files changed

+12
-5
lines changed

6 files changed

+12
-5
lines changed

.github/workflows/vue.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121
with:
22-
submodules: 'true'
22+
submodules: "true"
2323
- name: Cache Bun & build caches
2424
uses: actions/cache@v4
2525
with:
2626
path: |
2727
~/.bun/install/cache
28+
.nuxt
29+
.data
2830
node_modules
2931
key: ${{ runner.os }}-bun-${{ hashFiles('package.json','bun.lockb') }}-${{ github.run_id }}
3032
restore-keys: ${{ runner.os }}-bun-${{ hashFiles('package.json','bun.lockb') }}-

app/components/OgImage/Post.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<script setup lang="ts">
22
import type { CSSProperties } from "vue";
33
4+
import displayDocDates from "~/utils/display-doc-dates";
5+
import getCtfCategory from "~/utils/get-ctf-category";
6+
import guessArticleTitle from "~/utils/guess-article-title";
7+
import { computed } from "vue";
48
defineOptions({
59
inheritAttrs: false,
610
});
@@ -76,12 +80,11 @@ const background = computed<CSSProperties>(() => {
7680
};
7781
});
7882
79-
const siteConfig = useSiteConfig();
8083
const siteName = computed(() => {
81-
return props.siteName || siteConfig.name;
84+
return props.siteName || "";
8285
});
8386
const siteLogo = computed(() => {
84-
return props.siteLogo || siteConfig.logo || "/logo.png";
87+
return props.siteLogo || "/logo.png";
8588
});
8689
</script>
8790

app/utils/display-doc-dates.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import displayDatetime from './display-datetime'
2+
13
export default function displayDocDates(doc?: { created?: any, updated?: any }) {
24
if (!doc) return '';
35
const a = displayDatetime(doc.created);
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)