diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..c1d5bbb88 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: ci + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: corepack enable + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "pnpm" + - run: pnpm install + - run: pnpm nuxi prepare + - run: pnpm test diff --git a/components/content/Alert.vue b/components/content/Alert.vue index e03b97664..b5fdd242f 100644 --- a/components/content/Alert.vue +++ b/components/content/Alert.vue @@ -6,7 +6,7 @@ const props = defineProps({ title: { type: String }, icon: { type: String }, color: { type: String as PropType<(typeof uiColors)[number]> }, - to: { type: String }, + to: { type: String } }) const target = computed(() => (props.to?.startsWith('https://') ? '_blank' : '')) diff --git a/components/content/ReadMore.vue b/components/content/ReadMore.vue index 4ce1b5db7..1f3517c27 100644 --- a/components/content/ReadMore.vue +++ b/components/content/ReadMore.vue @@ -5,13 +5,13 @@ import { splitByCase, upperFirst } from 'scule' const props = defineProps({ to: { type: String, - required: true, + required: true }, title: { type: String, required: false, - default: '', - }, + default: '' + } }) const createBreadcrumb = (link: string = 'Missing link') => { @@ -24,7 +24,7 @@ const createBreadcrumb = (link: string = 'Missing link') => { .map((part) => splitByCase(part) .map((p) => upperFirst(p)) - .join(' '), + .join(' ') ) .join(' > ') .replace('Api', 'API') @@ -35,6 +35,8 @@ const computedTitle = computed(() => props.title || createBreadcrumb(pro