-
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.
* Upgrade packages to Nuxt 3 * Enable corepack for yarn 4 in CI pipeline * Migrate header and footer to Nuxt 3 * Update error handling page * Update layout and content render page * Update ImageGallery, InlinePicture and SogLink * Update map and timeline * Remove layouts and simplify content rendering * Make components used in content global * Fix background color * Update YARN packages * Use public files instead of imported assets * Deliver content in defaultLocale if localization is not available * Fix external content component * Exceptionless locale fallback * Fix SogMap * Fix SogTimeline * Update CI and remove testComponent * Fix peer dependencies * Remove dynamic fallback page listing on error 404 * Limit concurrency in prerendering * Optimize menu for nested pages
- Loading branch information
1 parent
a849a31
commit 101407d
Showing
41 changed files
with
14,777 additions
and
13,047 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -70,6 +70,8 @@ typings/ | |
|
||
# nuxt.js build output | ||
.nuxt | ||
.nitro | ||
.output | ||
|
||
# Nuxt generate | ||
dist | ||
|
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,38 @@ | ||
<template> | ||
<div class="flex flex-col min-h-screen"> | ||
<DesktopMenu :items="menu.items" class="hidden md:block" /> | ||
<MobileMenu :items="menu.items" class="block md:hidden" /> | ||
<NuxtPage class="flex-grow"/> | ||
<SogFooter | ||
:items="footer.items" | ||
:social-icons="footer.socialIcons" | ||
:awards="footer.awards" | ||
/> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { useData } from '@/types/composables' | ||
const { locale } = useI18n() | ||
const i18nHead = useLocaleHead({ addSeoAttributes: true }) | ||
useHead({ | ||
htmlAttrs: { | ||
lang: locale.value, | ||
}, | ||
title: i18nHead.value.title, | ||
meta: [ | ||
{ | ||
hid: 'description', | ||
name: 'description', | ||
content: i18nHead.value.description, | ||
}, | ||
], | ||
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }], | ||
}) | ||
const menu = await useData(`menu-${locale.value}`, () => queryContent(locale.value, 'menu').findOne(), {watch: [locale]}) | ||
const footer = await useData(`footer-${locale.value}`, () => queryContent(locale.value, 'footer').findOne(), {watch: [locale]}) | ||
</script> |
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,62 @@ | ||
<template> | ||
<div class="flex items-center h-full"> | ||
<!-- Protection --> | ||
<div | ||
v-if="!contentAccepted" | ||
class="w-full md:w-1/2 lg:w-1/2 p-4 my-auto mx-auto border border-gray-400" | ||
> | ||
<div class="pb-4"> | ||
{{ props.message }} | ||
</div> | ||
<div class="w-full flex items-center justify-center"> | ||
<input | ||
type="button" | ||
class="button" | ||
:value="t('accept')" | ||
@click="contentAccepted = true" | ||
> | ||
</div> | ||
</div> | ||
|
||
<!-- IFrame --> | ||
<iframe | ||
v-if="contentAccepted" | ||
ref="myIframe" | ||
:src="props.url" | ||
:width="props.width" | ||
:height="props.height" | ||
title="Iframe Example" | ||
:scrolling="scrollBar === 'yes' ? '' : 'no'" | ||
class="border border-gray-400 my-0 mx-auto" | ||
/> | ||
</div> | ||
</template> | ||
<script setup lang="ts"> | ||
const props = defineProps({ | ||
url: { | ||
type: String, | ||
required: true, | ||
}, | ||
width: { | ||
type: String, | ||
default: '100%', | ||
}, | ||
height: { | ||
type: String, | ||
default: '1024px', | ||
}, | ||
message: { | ||
type: String, | ||
required: true, | ||
}, | ||
scrollBar: { | ||
type: String, | ||
default: 'yes', | ||
}, | ||
}) | ||
const { t } = useI18n() | ||
const contentAccepted = useState('externalContent', () => false) | ||
</script> |
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
Oops, something went wrong.