Skip to content

Navigation Menu

Sign in
Sign up

Commit fc89dcc

Browse files
Apply linting changes
1 parent e4c09e9 commit fc89dcc

4 files changed

Lines changed: 20 additions & 20 deletions

File tree

‎packages/sdks/snippets/angular-16-ssr/src/app/hero/hero.component.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ export class HeroComponent implements OnInit {
4040
this.productHero = data.content;
4141
});
4242
}
43-
}
43+
}

‎packages/sdks/snippets/angular-16/src/app/hero/hero.component.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ export class HeroComponent {
4343
},
4444
});
4545
}
46-
}
46+
}

‎packages/sdks/snippets/nuxt/pages/marketing-event.vue‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
<!-- pages/ProductHero.vue -->
2-
<template>
2+
<template>
33
<div>
44
<!-- Your nav goes here -->
55
<!-- Hero Section -->
66
<div v-if="productHero || isPreviewing()">
77
<Content :content="productHero" :model="MODEL" :apiKey="API_KEY" />
88
</div>
9-
<div v-else>
10-
404
11-
</div>
9+
<div v-else>404</div>
1210
<!-- The rest of your page goes here -->
1311
</div>
1412
</template>
@@ -29,5 +27,5 @@ const { data: productHero } = await useAsyncData('productHero', () =>
2927
apiKey: API_KEY,
3028
userAttributes: { urlPath: route.path },
3129
})
32-
)
33-
</script>
30+
);
31+
</script>

‎packages/sdks/snippets/vue/src/views/blueprints/Hero.vue‎

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
<!-- Hero.vue -->
22
<template>
3-
<div>
4-
<!-- Your nav goes here -->
5-
<div v-if="productHero || isPreviewing()">
6-
<Content :content="productHero" :model="MODEL" :apiKey="API_KEY" />
7-
</div>
8-
<div v-else>
9-
404
10-
</div>
11-
<!-- The rest of your page goes here -->
3+
<div>
4+
<!-- Your nav goes here -->
5+
<div v-if="productHero || isPreviewing()">
6+
<Content :content="productHero" :model="MODEL" :apiKey="API_KEY" />
127
</div>
13-
</template>
8+
<div v-else>404</div>
9+
<!-- The rest of your page goes here -->
10+
</div>
11+
</template>
1412

1513
<script setup lang="ts">
1614
import { ref, onMounted } from 'vue';
17-
import { Content, fetchOneEntry, isPreviewing, type BuilderContent } from '@builder.io/sdk-vue';
15+
import {
16+
Content,
17+
fetchOneEntry,
18+
isPreviewing,
19+
type BuilderContent,
20+
} from '@builder.io/sdk-vue';
1821
1922
const MODEL = 'collection-hero';
2023
const API_KEY = 'ee9f13b4981e489a9a1209887695ef2b';
@@ -31,4 +34,3 @@ onMounted(() => {
3134
});
3235
});
3336
</script>
34-

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /