Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgiakatos committed Nov 8, 2024
1 parent 663b2f2 commit 5c6df4d
Show file tree
Hide file tree
Showing 102 changed files with 874 additions and 2,873 deletions.
6 changes: 1 addition & 5 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ onBeforeUnmount(() => {
</script>

<template>
<QLayout
id="app"
view="hHh LpR fff"
>
<QLayout id="app" view="hHh LpR fff">
<Header />
<QPageContainer>
<RouterView />
Expand Down Expand Up @@ -114,5 +111,4 @@ onBeforeUnmount(() => {
#IHR_last-element {
height: 50px;
}
</style>
11 changes: 2 additions & 9 deletions src/components/DateTimePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,8 @@ const textColor = computed(() => {
</script>

<template>
<QIcon
name="fas fa-calendar-day"
class="cursor-pointer"
:class="textColor"
>
<QPopupProxy
id="popupid"
v-model="show"
>
<QIcon name="fas fa-calendar-day" class="cursor-pointer" :class="textColor">
<QPopupProxy id="popupid" v-model="show">
<QDate
v-model="qTimeModel"
:mask="mask"
Expand Down
18 changes: 5 additions & 13 deletions src/components/Feedback.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,22 @@ const showFeedbackDialog = ref(false)
<QDialog v-model="showFeedbackDialog">
<QCard>
<QCardSection>
<div class="text-h6">
Give Feedback
</div>
<div class="text-h6">Give Feedback</div>
</QCardSection>
<QCardSection>
<div>
Please share your feedback to improve our report pages. You can either:
<ul>
<li>
Send your feedback by email to
<a
href="mailto:[email protected]"
target="_blank"
>[email protected]</a>
<a href="mailto:[email protected]" target="_blank">[email protected]</a>
</li>
<li>
Join our
<a
href="https://join.slack.com/t/internethealthreport/shared_invite/zt-19d4e48py-~oirVwkINe01gTVEF3o4Kw"
>Slack workspace</a>
>Slack workspace</a
>
and send your feedback as a direct message or in the #ihr-website channel
</li>
<li>
Expand All @@ -49,11 +45,7 @@ const showFeedbackDialog = ref(false)
</div>
</QCardSection>
<QCardActions align="right">
<QBtn
v-close-popup
flat
label="Close"
/>
<QBtn v-close-popup flat label="Close" />
</QCardActions>
</QCard>
</QDialog>
Expand Down
158 changes: 40 additions & 118 deletions src/components/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,146 +6,84 @@ import { version } from '../../package.json'
</script>

<template>
<QFooter
elevated
primary
class="IHR_footer text-white text-center"
style="z-index: 999"
>
<QFooter elevated primary class="IHR_footer text-white text-center" style="z-index: 999">
<div class="IHR_footer_contents">
<div class="IHR_fsection">
<div
class=""
style="max-width: 400px"
>
<div class="" style="max-width: 400px">
<div>
<QBtn
round
dense
flat
:ripple="false"
no-caps
>
<QBtn round dense flat :ripple="false" no-caps>
<RouterLink :to="Tr.i18nRoute({ name: 'home' })">
<img
src="@/assets/imgs/ihr_logo.svg"
class="ihr-logo"
>
<img src="@/assets/imgs/ihr_logo.svg" class="ihr-logo" />
</RouterLink>
<a
:href="`https://github.com/InternetHealthReport/ihr-website/releases/tag/v${version}`"
class=""
target="_blank"
>
<QBadge
color="red"
floating
>v{{ version }}</QBadge>
<QBadge color="red" floating>v{{ version }}</QBadge>
</a>
</QBtn>
<div class="text-weight-bold text-h5 q-mt-sm">
Internet Health Report
</div>
<div class="text-weight-bold text-h5 q-mt-sm">Internet Health Report</div>
</div>
<div class="IHR_external-links">
<div class="row nowrap justify-evenly">
<a
href="https://x.com/ihr_alerts"
class=""
target="_blank"
>
<QIcon
name="fab fa-square-x-twitter"
class="inline-block"
/>
<a href="https://x.com/ihr_alerts" class="" target="_blank">
<QIcon name="fab fa-square-x-twitter" class="inline-block" />
</a>
<a
href="https://github.com/InternetHealthReport"
class=""
target="_blank"
>
<QIcon
name="fab fa-github-square"
class="inline-block"
/>
<a href="https://github.com/InternetHealthReport" class="" target="_blank">
<QIcon name="fab fa-github-square" class="inline-block" />
</a>
<a
href="mailto:[email protected]"
class=""
target="_blank"
>
<QIcon
name="fas fa-envelope-square"
class="inline-block"
/>
<a href="mailto:[email protected]" class="" target="_blank">
<QIcon name="fas fa-envelope-square" class="inline-block" />
</a>
</div>
</div>
</div>
</div>
<div class="IHR_fsection">
<div
class="IHR_sitemap"
style="max-width: 700px"
>
<div class="IHR_sitemap" style="max-width: 700px">
<ul>
<li class="text-weight-bold links-title text-capitalize">
{{ $t('footer.reportPages.title') }}
</li>
<li>
<RouterLink :to="Tr.i18nRoute({ name: 'global-report' })">
{{
$t('footer.reportPages.global')
}}
{{ $t('footer.reportPages.global') }}
</RouterLink>
</li>
<li>
<RouterLink :to="Tr.i18nRoute({ name: 'country', params: { cc: null } })">
{{
$t('footer.reportPages.country')
}}
{{ $t('footer.reportPages.country') }}
</RouterLink>
</li>
<li>
<RouterLink :to="Tr.i18nRoute({ name: 'network', params: { id: null } })">
{{
$t('footer.reportPages.network')
}}
{{ $t('footer.reportPages.network') }}
</RouterLink>
</li>
<li>
<RouterLink :to="Tr.i18nRoute({ name: 'hostname', params: { id: null } })">
{{
$t('footer.reportPages.hostName')
}}
{{ $t('footer.reportPages.hostName') }}
</RouterLink>
</li>
<li>
<RouterLink :to="Tr.i18nRoute({ name: 'tag', params: { id: null } })">
{{
$t('footer.reportPages.tag')
}}
{{ $t('footer.reportPages.tag') }}
</RouterLink>
</li>
<li>
<RouterLink :to="Tr.i18nRoute({ name: 'rank', params: { rank: null } })">
{{
$t('footer.reportPages.rank')
}}
{{ $t('footer.reportPages.rank') }}
</RouterLink>
</li>
<li>
<RouterLink :to="Tr.i18nRoute({ name: 'rov' })">
{{
$t('footer.reportPages.rov')
}}
{{ $t('footer.reportPages.rov') }}
</RouterLink>
</li>
<li>
<RouterLink :to="Tr.i18nRoute({ name: 'covid19' })">
{{
$t('footer.reportPages.covid19')
}}
{{ $t('footer.reportPages.covid19') }}
</RouterLink>
</li>
</ul>
Expand All @@ -157,23 +95,17 @@ import { version } from '../../package.json'
</li>
<li>
<RouterLink :to="Tr.i18nRoute({ name: 'documentation' })">
{{
$t('footer.about.title')
}}
{{ $t('footer.about.title') }}
</RouterLink>
</li>
<li>
<RouterLink :to="Tr.i18nRoute({ name: 'documentation', hash: '#AS-dependency' })">
{{
$t('footer.documentation.analysisModules')
}}
{{ $t('footer.documentation.analysisModules') }}
</RouterLink>
</li>
<li>
<RouterLink :to="Tr.i18nRoute({ name: 'documentation', hash: '#REST-API' })">
{{
$t('footer.documentation.dataAccess')
}}
{{ $t('footer.documentation.dataAccess') }}
</RouterLink>
</li>
</ul>
Expand All @@ -184,38 +116,28 @@ import { version } from '../../package.json'
</RouterLink>
</li>
<li>
<RouterLink
:to="Tr.i18nRoute({ name: 'documentation', hash: '#Acknowledgements' })"
>
<RouterLink :to="Tr.i18nRoute({ name: 'documentation', hash: '#Acknowledgements' })">
{{ $t('footer.about.acknowledgments') }}
</RouterLink>
</li>
<li>
<RouterLink :to="Tr.i18nRoute({ name: 'documentation', hash: '#Data-policy' })">
{{
$t('footer.about.datapolicy')
}}
{{ $t('footer.about.datapolicy') }}
</RouterLink>
</li>
</ul>
</div>
</div>
</div>
<div class="IHR_fsection">
<div
class="row items-center IHR_license-section"
style="max-width: 800px"
>
<div class="row items-center IHR_license-section" style="max-width: 800px">
<div class="col-3">
<a
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/4.0/"
target="_blank"
><img
alt="Creative Commons License"
style="border-width: 0"
src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png"
></a>
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank"
><img
alt="Creative Commons License"
style="border-width: 0"
src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png"
/></a>
</div>
<div class="col-9 text-caption text-center q-pa-sm">
<span
Expand All @@ -224,18 +146,18 @@ import { version } from '../../package.json'
property="dct:title"
rel="dct:type"
>
Internet Health Report</span>
Internet Health Report</span
>
is licensed under a
<a
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/4.0/"
target="_blank"
>Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>. Permissions beyond the scope of this license may be available at
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank"
>Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a
>. Permissions beyond the scope of this license may be available at
<a
xmlns:cc="http://creativecommons.org/ns#"
href="mailto:[email protected]"
rel="cc:morePermissions"
>[email protected]</a>.
>[email protected]</a
>.
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit 5c6df4d

Please sign in to comment.