shevchenko 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/shevchenko.js +120 -31
- package/dist/cjs/shevchenko.js.map +1 -1
- package/dist/es/shevchenko.js +120 -31
- package/dist/es/shevchenko.js.map +1 -1
- package/dist/umd/shevchenko.min.js +2 -2
- package/dist/umd/shevchenko.min.js.map +1 -1
- package/nuxt/.eslintrc.json +27 -0
- package/nuxt/.prettierrc.json +6 -0
- package/nuxt/README.md +27 -0
- package/nuxt/app.config.ts +3 -0
- package/nuxt/app.vue +5 -0
- package/nuxt/assets/img/shevchenko_pixelized_304x304.jpg +0 -0
- package/nuxt/assets/img/shevchenko_pixelized_304x304.png +0 -0
- package/nuxt/assets/img/shevchenko_pixelized_608x608.jpg +0 -0
- package/nuxt/assets/style/main.scss +3 -0
- package/nuxt/components/about-modal.vue +58 -0
- package/nuxt/components/api-spec.vue +25 -0
- package/nuxt/components/contact-me-button.vue +11 -0
- package/nuxt/components/contact-me-modal.vue +63 -0
- package/nuxt/components/copy-button.vue +38 -0
- package/nuxt/components/declension-demo.vue +32 -0
- package/nuxt/components/declension-form.vue +91 -0
- package/nuxt/components/declension-preview.vue +170 -0
- package/nuxt/components/declension-results.vue +116 -0
- package/nuxt/components/error-404.vue +15 -0
- package/nuxt/components/github-issue-count.vue +18 -0
- package/nuxt/components/how-it-works.vue +51 -0
- package/nuxt/components/installation-instructions.vue +33 -0
- package/nuxt/components/library-docs.vue +27 -0
- package/nuxt/components/page-copyright.vue +15 -0
- package/nuxt/components/page-footer.vue +32 -0
- package/nuxt/components/page-header.vue +4 -0
- package/nuxt/components/preview-banner.vue +32 -0
- package/nuxt/components/share-links.vue +108 -0
- package/nuxt/components/top-nav-bar.vue +165 -0
- package/nuxt/components/ukrainian-flag.vue +37 -0
- package/nuxt/components/usage-example.vue +32 -0
- package/nuxt/composables/declension.ts +81 -0
- package/nuxt/composables/page-i18n.ts +11 -0
- package/nuxt/composables/page-meta.ts +5 -0
- package/nuxt/composables/route-utils.ts +17 -0
- package/nuxt/config.ts +20 -0
- package/nuxt/error.vue +25 -0
- package/nuxt/layouts/default.vue +5 -0
- package/nuxt/locales/en-US.json +60 -0
- package/nuxt/locales/uk-UA.json +62 -0
- package/nuxt/nuxt.config.ts +99 -0
- package/nuxt/package-lock.json +19524 -0
- package/nuxt/package.json +37 -0
- package/nuxt/pages/en-US/index.vue +41 -0
- package/nuxt/pages/index.vue +68 -0
- package/nuxt/plugins/i18n.ts +26 -0
- package/nuxt/public/.nojekyll +0 -0
- package/nuxt/public/CNAME +1 -0
- package/nuxt/public/android-icon-144x144.png +0 -0
- package/nuxt/public/android-icon-192x192.png +0 -0
- package/nuxt/public/android-icon-36x36.png +0 -0
- package/nuxt/public/android-icon-48x48.png +0 -0
- package/nuxt/public/android-icon-72x72.png +0 -0
- package/nuxt/public/android-icon-96x96.png +0 -0
- package/nuxt/public/apple-icon-114x114.png +0 -0
- package/nuxt/public/apple-icon-120x120.png +0 -0
- package/nuxt/public/apple-icon-144x144.png +0 -0
- package/nuxt/public/apple-icon-152x152.png +0 -0
- package/nuxt/public/apple-icon-180x180.png +0 -0
- package/nuxt/public/apple-icon-57x57.png +0 -0
- package/nuxt/public/apple-icon-60x60.png +0 -0
- package/nuxt/public/apple-icon-72x72.png +0 -0
- package/nuxt/public/apple-icon-76x76.png +0 -0
- package/nuxt/public/apple-icon-precomposed.png +0 -0
- package/nuxt/public/apple-icon.png +0 -0
- package/nuxt/public/browserconfig.xml +2 -0
- package/nuxt/public/favicon-16x16.png +0 -0
- package/nuxt/public/favicon-32x32.png +0 -0
- package/nuxt/public/favicon-96x96.png +0 -0
- package/nuxt/public/favicon.ico +0 -0
- package/nuxt/public/manifest.json +41 -0
- package/nuxt/public/ms-icon-144x144.png +0 -0
- package/nuxt/public/ms-icon-150x150.png +0 -0
- package/nuxt/public/ms-icon-310x310.png +0 -0
- package/nuxt/public/ms-icon-70x70.png +0 -0
- package/nuxt/public/preview-608x608.jpg +0 -0
- package/nuxt/scripts/postgenerate.js +7 -0
- package/nuxt/scripts/publish.js +7 -0
- package/nuxt/server/plugins/google-tag-manager.js +37 -0
- package/nuxt/tsconfig.json +11 -0
- package/package.json +3 -2
- package/src/resources/inflector/rules.json +118 -30
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
const appConfig = useAppConfig();
|
|
3
|
+
|
|
4
|
+
const usageExample = `
|
|
5
|
+
const anthroponym = {
|
|
6
|
+
gender: 'male', // or 'female'
|
|
7
|
+
firstName: 'Тарас',
|
|
8
|
+
middleName: 'Григорович',
|
|
9
|
+
lastName: 'Шевченко'
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const result = shevchenko.inVocative(anthroponym);
|
|
13
|
+
|
|
14
|
+
console.log(result); // { gender: "male", firstName: "Тарасе", middleName: "Григоровичу", lastName: "Шевченку" }
|
|
15
|
+
`;
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<div id="usage-example" class="card my-3">
|
|
20
|
+
<div class="card-body">
|
|
21
|
+
<h5 class="card-title mb-3">
|
|
22
|
+
{{ $t('usageExample') }}
|
|
23
|
+
<small
|
|
24
|
+
><a :href="appConfig.library.runKitUrl" target="_blank">
|
|
25
|
+
{{ $t('action.tryItOut') }}
|
|
26
|
+
</a></small
|
|
27
|
+
>
|
|
28
|
+
</h5>
|
|
29
|
+
<pre class="mb-0">{{ usageExample.trim() }}</pre>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</template>
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { createSharedComposable } from '@vueuse/core';
|
|
2
|
+
import { reactive } from 'vue';
|
|
3
|
+
import {
|
|
4
|
+
Anthroponym,
|
|
5
|
+
Gender,
|
|
6
|
+
inNominative,
|
|
7
|
+
inGenitive,
|
|
8
|
+
inDative,
|
|
9
|
+
inAccusative,
|
|
10
|
+
inAblative,
|
|
11
|
+
inLocative,
|
|
12
|
+
inVocative,
|
|
13
|
+
} from 'shevchenko';
|
|
14
|
+
|
|
15
|
+
export const shevchenkoAnthroponym: Anthroponym = {
|
|
16
|
+
gender: Gender.Male,
|
|
17
|
+
lastName: 'Шевченко',
|
|
18
|
+
firstName: 'Тарас',
|
|
19
|
+
middleName: 'Григорович',
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export interface DeclensionResults {
|
|
23
|
+
nominativeCase: Anthroponym;
|
|
24
|
+
genitiveCase: Anthroponym;
|
|
25
|
+
dativeCase: Anthroponym;
|
|
26
|
+
accusativeCase: Anthroponym;
|
|
27
|
+
ablativeCase: Anthroponym;
|
|
28
|
+
locativeCase: Anthroponym;
|
|
29
|
+
vocativeCase: Anthroponym;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Returns true if the given anthroponym is correctly defined.
|
|
34
|
+
* Returns false otherwise.
|
|
35
|
+
*/
|
|
36
|
+
export function isDefinedAnthroponym(
|
|
37
|
+
anthroponym: Partial<Anthroponym>,
|
|
38
|
+
): anthroponym is Anthroponym {
|
|
39
|
+
return Boolean(
|
|
40
|
+
anthroponym.gender &&
|
|
41
|
+
Object.values(Gender).includes(anthroponym.gender) &&
|
|
42
|
+
(anthroponym.firstName || anthroponym.middleName || anthroponym.lastName),
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export const useDeclension = createSharedComposable((predefinedAnthroponym: Anthroponym) => {
|
|
47
|
+
let anthroponym: Anthroponym = reactive({
|
|
48
|
+
gender: Gender.Male,
|
|
49
|
+
lastName: '',
|
|
50
|
+
firstName: '',
|
|
51
|
+
middleName: '',
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
let initialAnthroponym: Anthroponym = reactive(shevchenkoAnthroponym);
|
|
55
|
+
if (isDefinedAnthroponym(predefinedAnthroponym)) {
|
|
56
|
+
initialAnthroponym = reactive(predefinedAnthroponym);
|
|
57
|
+
anthroponym = reactive(predefinedAnthroponym);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const declensionResults: DeclensionResults = reactive({
|
|
61
|
+
nominativeCase: inNominative(initialAnthroponym),
|
|
62
|
+
genitiveCase: inGenitive(initialAnthroponym),
|
|
63
|
+
dativeCase: inDative(initialAnthroponym),
|
|
64
|
+
accusativeCase: inAccusative(initialAnthroponym),
|
|
65
|
+
ablativeCase: inAblative(initialAnthroponym),
|
|
66
|
+
locativeCase: inLocative(initialAnthroponym),
|
|
67
|
+
vocativeCase: inVocative(initialAnthroponym),
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
function inflect(): void {
|
|
71
|
+
declensionResults.nominativeCase = inNominative(anthroponym);
|
|
72
|
+
declensionResults.genitiveCase = inGenitive(anthroponym);
|
|
73
|
+
declensionResults.dativeCase = inDative(anthroponym);
|
|
74
|
+
declensionResults.accusativeCase = inAccusative(anthroponym);
|
|
75
|
+
declensionResults.ablativeCase = inAblative(anthroponym);
|
|
76
|
+
declensionResults.locativeCase = inLocative(anthroponym);
|
|
77
|
+
declensionResults.vocativeCase = inVocative(anthroponym);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return { anthroponym, declensionResults, inflect };
|
|
81
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useI18n } from 'vue-i18n';
|
|
2
|
+
import type { LocaleName } from '~/plugins/i18n';
|
|
3
|
+
|
|
4
|
+
export interface PageI18nOptions {
|
|
5
|
+
locale: LocaleName;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const usePageI18n = (options: PageI18nOptions) => {
|
|
9
|
+
const { locale } = useI18n();
|
|
10
|
+
locale.value = options.locale;
|
|
11
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import config from '../config';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Builds the absolute page URL for the given path.
|
|
5
|
+
*/
|
|
6
|
+
export const buildPageUrl = (fullPath = '') => config.website.url + fullPath;
|
|
7
|
+
|
|
8
|
+
export const useRouteUtils = () => {
|
|
9
|
+
const route = useRoute();
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The absolute URL of the current page.
|
|
13
|
+
*/
|
|
14
|
+
const pageUrl = computed(() => buildPageUrl(route.fullPath));
|
|
15
|
+
|
|
16
|
+
return { buildPageUrl, pageUrl };
|
|
17
|
+
};
|
package/nuxt/config.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// const baseUrl = 'https://tooleks.github.io/shevchenko-js';
|
|
2
|
+
const baseUrl = 'https://shevchenko-js.tooleks.com';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
website: {
|
|
6
|
+
url: baseUrl,
|
|
7
|
+
email: 'tooleks@gmail.com',
|
|
8
|
+
},
|
|
9
|
+
library: {
|
|
10
|
+
name: 'shevchenko',
|
|
11
|
+
releaseYear: 2017,
|
|
12
|
+
npmUrl: 'https://www.npmjs.com/package/shevchenko',
|
|
13
|
+
gitHubUrl: 'https://github.com/tooleks/shevchenko-js',
|
|
14
|
+
gitHubStatsUrl: 'https://api.github.com/repos/tooleks/shevchenko-js',
|
|
15
|
+
issuesUrl: 'https://github.com/tooleks/shevchenko-js/issues',
|
|
16
|
+
licenseUrl: 'https://github.com/tooleks/shevchenko-js/blob/master/LICENSE',
|
|
17
|
+
runKitUrl: 'https://runkit.com/tooleks/shevchenko',
|
|
18
|
+
cdnUrl: 'https://unpkg.com/shevchenko',
|
|
19
|
+
},
|
|
20
|
+
};
|
package/nuxt/error.vue
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed } from 'vue';
|
|
3
|
+
import { useI18n } from 'vue-i18n';
|
|
4
|
+
import { usePageMeta } from './composables/page-meta';
|
|
5
|
+
|
|
6
|
+
const { t: $t } = useI18n();
|
|
7
|
+
const { buildPageTitle } = usePageMeta();
|
|
8
|
+
|
|
9
|
+
const pageTitle = computed(() => {
|
|
10
|
+
const title = $t('error404.pageTitle').toString();
|
|
11
|
+
return buildPageTitle(title);
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
useHead({
|
|
15
|
+
title: pageTitle,
|
|
16
|
+
});
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<template>
|
|
20
|
+
<NuxtLayout name="default">
|
|
21
|
+
<PageHeader />
|
|
22
|
+
<Error404 />
|
|
23
|
+
<PageFooter />
|
|
24
|
+
</NuxtLayout>
|
|
25
|
+
</template>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"action.close": "Close",
|
|
3
|
+
"action.copy": "Copy",
|
|
4
|
+
"action.write": "Write",
|
|
5
|
+
"action.inflect": "Inflect",
|
|
6
|
+
"action.inflect.inAblativeCase": "Inflect in ablative grammatical case",
|
|
7
|
+
"action.inflect.inAccusativeCase": "Inflect in accusative grammatical case",
|
|
8
|
+
"action.inflect.inDativeCase": "Inflect in dative grammatical case",
|
|
9
|
+
"action.inflect.inGenitiveCase": "Inflect in genitive grammatical case",
|
|
10
|
+
"action.inflect.inLocativeCase": "Inflect in locative grammatical case",
|
|
11
|
+
"action.inflect.inNominativeCase": "Inflect in nominative grammatical case",
|
|
12
|
+
"action.inflect.inVocativeCase": "Inflect in vocative grammatical case",
|
|
13
|
+
"action.send": "Send",
|
|
14
|
+
"action.share.onFacebook": "Share on Facebook",
|
|
15
|
+
"action.share.onLinkedIn": "Share on LinkedIn",
|
|
16
|
+
"action.share.onTwitter": "Share on Twitter",
|
|
17
|
+
"action.tryItOut": "Try it out",
|
|
18
|
+
"anthroponym.firstName": "First Name",
|
|
19
|
+
"anthroponym.lastName": "Last Name",
|
|
20
|
+
"anthroponym.middleName": "Middle (Patronymic) Name",
|
|
21
|
+
"app.name": "JavaScript library for declension of Ukrainian anthroponyms",
|
|
22
|
+
"browser": "Browser",
|
|
23
|
+
"action.contactMe": "Contact Me",
|
|
24
|
+
"contactMe.recipientEmail": "Email address",
|
|
25
|
+
"contactMe.modalTitle": "Contact Me",
|
|
26
|
+
"contactMe.modalMessage": "Please feel free to contact me via email if you have any questions or suggestions.",
|
|
27
|
+
"contactMe.messageSubject": "shevchenko - Contact Me",
|
|
28
|
+
"demo": "Demo",
|
|
29
|
+
"demo.message": "Of declension of Ukrainian first names, last names, and middle (patronymic) names",
|
|
30
|
+
"documentation": "Documentation",
|
|
31
|
+
"feedback": "Feedback",
|
|
32
|
+
"foundBug": "Found a bug?",
|
|
33
|
+
"gender": "Gender",
|
|
34
|
+
"gender.female": "Female",
|
|
35
|
+
"gender.male": "Male",
|
|
36
|
+
"grammaticalCase": "Grammatical Case",
|
|
37
|
+
"grammaticalCase.ablative": "Ablative",
|
|
38
|
+
"grammaticalCase.accusative": "Accusative",
|
|
39
|
+
"grammaticalCase.dative": "Dative",
|
|
40
|
+
"grammaticalCase.genitive": "Genitive",
|
|
41
|
+
"grammaticalCase.locative": "Locative",
|
|
42
|
+
"grammaticalCase.nominative": "Nominative",
|
|
43
|
+
"grammaticalCase.vocative": "Vocative",
|
|
44
|
+
"howItWorks": "How It Works?",
|
|
45
|
+
"declensionForm.instructionMessage": "Fill in the name of the person in a nominative case.",
|
|
46
|
+
"declensionForm.copyMessage": "Use the buttons below to copy the declension results.",
|
|
47
|
+
"installation": "Installation",
|
|
48
|
+
"issueReport": "Issue Report",
|
|
49
|
+
"language": "Language",
|
|
50
|
+
"license": "License",
|
|
51
|
+
"links": "Links",
|
|
52
|
+
"locale.en-US": "English",
|
|
53
|
+
"locale.uk-UA": "Українська",
|
|
54
|
+
"usageExample": "Usage Example",
|
|
55
|
+
"error404.pageTitle": "404 Error",
|
|
56
|
+
"error404.instructionMessage": "The requested page was not found",
|
|
57
|
+
"action.backToHome": "Navigate to home page",
|
|
58
|
+
"declension.anthroponym": "Declension {lastName} {firstName} {middleName}",
|
|
59
|
+
"action.copyLink": "Copy link address"
|
|
60
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"action.close": "Закрити",
|
|
3
|
+
"action.copy": "Скопіювати",
|
|
4
|
+
"action.write": "Написати",
|
|
5
|
+
"action.inflect": "Провідміняти",
|
|
6
|
+
"action.inflect.inAblativeCase": "Провідміняти в орудному відмінку",
|
|
7
|
+
"action.inflect.inAccusativeCase": "Провідміняти в знахідному відмінку",
|
|
8
|
+
"action.inflect.inDativeCase": "Провідміняти в давальному відмінку",
|
|
9
|
+
"action.inflect.inGenitiveCase": "Провідміняти в родовому відмінку",
|
|
10
|
+
"action.inflect.inLocativeCase": "Провідміняти в місцевому відмінку",
|
|
11
|
+
"action.inflect.inNominativeCase": "Провідміняти в називному відмінку",
|
|
12
|
+
"action.inflect.inVocativeCase": "Провідміняти в кличному відмінку",
|
|
13
|
+
"action.send": "Надіслати",
|
|
14
|
+
"action.share.onFacebook": "Поділитися через Facebook",
|
|
15
|
+
"action.share.onLinkedIn": "Поділитися через LinkedIn",
|
|
16
|
+
"action.share.onTwitter": "Поділитися через Twitter",
|
|
17
|
+
"action.tryItOut": "Спробувати",
|
|
18
|
+
"anthroponym.firstName": "Ім'я",
|
|
19
|
+
"anthroponym.lastName": "Прізвище",
|
|
20
|
+
"anthroponym.middleName": "По батькові",
|
|
21
|
+
"app.name": "JavaScript бібліотека для відмінювання українських антропонімів",
|
|
22
|
+
"browser": "Браузер",
|
|
23
|
+
"action.contactMe": "Написати автору",
|
|
24
|
+
"about.modalTitle": "Про {appName}",
|
|
25
|
+
"about.modalMessage": "Спільна розробка Толочка Олександра Валерійовича та учительки української мови та літератури Толочко Тетяни Григорівни.",
|
|
26
|
+
"contactMe.modalTitle": "Написати автору",
|
|
27
|
+
"contactMe.recipientEmail": "Електронна пошта",
|
|
28
|
+
"contactMe.modalMessage": "Зв'яжіться зі мною за допомогою email, якщо у вас виникли будь-які питання чи пропозиції.",
|
|
29
|
+
"contactMe.messageSubject": "shevchenko - Зворотній зв'язок",
|
|
30
|
+
"demo": "Демонстрація",
|
|
31
|
+
"demo.message": "Відмінювання українських прізвищ, імен та по батькові",
|
|
32
|
+
"documentation": "Документація",
|
|
33
|
+
"feedback": "Зворотній зв'язок",
|
|
34
|
+
"foundBug": "Знайшли помилку?",
|
|
35
|
+
"gender": "Стать",
|
|
36
|
+
"gender.female": "Жінка",
|
|
37
|
+
"gender.male": "Чоловік",
|
|
38
|
+
"grammaticalCase": "Граматичний відмінок",
|
|
39
|
+
"grammaticalCase.ablative": "Орудний (ким/чим?)",
|
|
40
|
+
"grammaticalCase.accusative": "Знахідний (кого/що?)",
|
|
41
|
+
"grammaticalCase.dative": "Давальний (кому/чому?)",
|
|
42
|
+
"grammaticalCase.genitive": "Родовий (кого/чого?)",
|
|
43
|
+
"grammaticalCase.locative": "Місцевий (при кому/чому?)",
|
|
44
|
+
"grammaticalCase.nominative": "Називний (хто/що?)",
|
|
45
|
+
"grammaticalCase.vocative": "Кличний",
|
|
46
|
+
"howItWorks": "Принцип роботи",
|
|
47
|
+
"declensionForm.instructionMessage": "Введіть стать, прізвище, ім'я та по батькові особи в називному відмінку однини.",
|
|
48
|
+
"declensionForm.copyMessage": "Використовуйте кнопки нижче, щоб скопіювати результати відмінювання.",
|
|
49
|
+
"installation": "Встановлення",
|
|
50
|
+
"issueReport": "Звіт про помилку",
|
|
51
|
+
"language": "Мова",
|
|
52
|
+
"license": "Ліцензія",
|
|
53
|
+
"links": "Посилання",
|
|
54
|
+
"locale.en-US": "English",
|
|
55
|
+
"locale.uk-UA": "Українська",
|
|
56
|
+
"usageExample": "Приклад використання",
|
|
57
|
+
"error404.pageTitle": "Помилка 404",
|
|
58
|
+
"error404.instructionMessage": "Сторінки за заданою адресою не існує",
|
|
59
|
+
"action.backToHome": "Перейти на головну сторінку",
|
|
60
|
+
"declension.anthroponym": "Відмінювання {lastName} {firstName} {middleName}",
|
|
61
|
+
"action.copyLink": "Скопіювати адресу посилання"
|
|
62
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { buildPageUrl } from './composables/route-utils';
|
|
2
|
+
|
|
3
|
+
// https://v3.nuxtjs.org/api/configuration/nuxt.config
|
|
4
|
+
export default defineNuxtConfig({
|
|
5
|
+
css: ['~/assets/style/main.scss'],
|
|
6
|
+
app: {
|
|
7
|
+
head: {
|
|
8
|
+
charset: 'utf-8',
|
|
9
|
+
meta: [
|
|
10
|
+
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
|
11
|
+
{ name: 'msapplication-TileColor', content: '#ffffff' },
|
|
12
|
+
{ name: 'msapplication-TileImage', content: buildPageUrl('/ms-icon-144x144.png') },
|
|
13
|
+
{ name: 'theme-color', content: '#ffffff' },
|
|
14
|
+
],
|
|
15
|
+
link: [
|
|
16
|
+
{ rel: 'apple-touch-icon', sizes: '57x57', href: buildPageUrl('/apple-icon-57x57.png') },
|
|
17
|
+
{ rel: 'apple-touch-icon', sizes: '60x60', href: buildPageUrl('/apple-icon-60x60.png') },
|
|
18
|
+
{ rel: 'apple-touch-icon', sizes: '72x72', href: buildPageUrl('/apple-icon-72x72.png') },
|
|
19
|
+
{ rel: 'apple-touch-icon', sizes: '76x76', href: buildPageUrl('/apple-icon-76x76.png') },
|
|
20
|
+
{
|
|
21
|
+
rel: 'apple-touch-icon',
|
|
22
|
+
sizes: '114x114',
|
|
23
|
+
href: buildPageUrl('/apple-icon-114x114.png'),
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
rel: 'apple-touch-icon',
|
|
27
|
+
sizes: '120x120',
|
|
28
|
+
href: buildPageUrl('/apple-icon-120x120.png'),
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
rel: 'apple-touch-icon',
|
|
32
|
+
sizes: '144x144',
|
|
33
|
+
href: buildPageUrl('/apple-icon-144x144.png'),
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
rel: 'apple-touch-icon',
|
|
37
|
+
sizes: '152x152',
|
|
38
|
+
href: buildPageUrl('/apple-icon-152x152.png'),
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
rel: 'apple-touch-icon',
|
|
42
|
+
sizes: '180x180',
|
|
43
|
+
href: buildPageUrl('/apple-icon-180x180.png'),
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
rel: 'icon',
|
|
47
|
+
type: 'image/png',
|
|
48
|
+
sizes: '192x192',
|
|
49
|
+
href: buildPageUrl('/android-icon-192x192.png'),
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
rel: 'icon',
|
|
53
|
+
type: 'image/png',
|
|
54
|
+
sizes: '32x32',
|
|
55
|
+
href: buildPageUrl('/favicon-32x32.png'),
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
rel: 'icon',
|
|
59
|
+
type: 'image/png',
|
|
60
|
+
sizes: '96x96',
|
|
61
|
+
href: buildPageUrl('/favicon-96x96.png'),
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
rel: 'icon',
|
|
65
|
+
type: 'image/png',
|
|
66
|
+
sizes: '16x16',
|
|
67
|
+
href: buildPageUrl('/favicon-16x16.png'),
|
|
68
|
+
},
|
|
69
|
+
{ rel: 'manifest', href: buildPageUrl('/manifest.json') },
|
|
70
|
+
{
|
|
71
|
+
rel: 'stylesheet',
|
|
72
|
+
href: 'https://cdn.jsdelivr.net/npm/bootstrap@4.2.1/dist/css/bootstrap.min.css',
|
|
73
|
+
integrity: 'sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS',
|
|
74
|
+
crossorigin: 'anonymous',
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
script: [
|
|
78
|
+
{ src: 'https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.26.0/polyfill.min.js' },
|
|
79
|
+
{ src: 'https://use.fontawesome.com/2c801adbe2.js' },
|
|
80
|
+
{
|
|
81
|
+
src: 'https://code.jquery.com/jquery-3.3.1.slim.min.js',
|
|
82
|
+
integrity: 'sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo',
|
|
83
|
+
crossorigin: 'anonymous',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
src: 'https://cdn.jsdelivr.net/npm/popper.js@1.14.6/dist/umd/popper.min.js',
|
|
87
|
+
integrity: 'sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut',
|
|
88
|
+
crossorigin: 'anonymous',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
src: 'https://cdn.jsdelivr.net/npm/bootstrap@4.2.1/dist/js/bootstrap.min.js',
|
|
92
|
+
integrity: 'sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k',
|
|
93
|
+
crossorigin: 'anonymous',
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
modules: ['@vueuse/nuxt'],
|
|
99
|
+
});
|