2021-05-16 06:53:29 +00:00
|
|
|
require("dotenv").config()
|
|
|
|
|
|
2020-10-21 06:50:32 +00:00
|
|
|
// Common options
|
2020-03-24 02:19:09 +00:00
|
|
|
export const options = {
|
2020-08-13 11:20:02 +00:00
|
|
|
name: "Hoppscotch",
|
2021-03-14 15:15:57 +00:00
|
|
|
shortDescription: "Open source API development ecosystem",
|
2021-05-17 05:55:50 +00:00
|
|
|
description:
|
|
|
|
|
"Helps you create requests faster, saving precious time on development.",
|
2020-03-24 07:06:37 +00:00
|
|
|
loading: {
|
2021-06-12 16:46:17 +00:00
|
|
|
color: "var(--accent-color)",
|
|
|
|
|
background: "var(--primary-color)",
|
2020-08-13 11:20:02 +00:00
|
|
|
},
|
|
|
|
|
app: {
|
|
|
|
|
background: "#202124",
|
|
|
|
|
},
|
|
|
|
|
social: {
|
2021-04-23 11:38:17 +00:00
|
|
|
twitter: "@hoppscotch_io",
|
2020-03-24 07:06:37 +00:00
|
|
|
},
|
2020-02-24 18:44:50 +00:00
|
|
|
}
|
2020-10-21 06:50:32 +00:00
|
|
|
|
2019-08-24 03:06:57 +00:00
|
|
|
export default {
|
2020-10-21 06:50:32 +00:00
|
|
|
// Disable server-side rendering (https://go.nuxtjs.dev/ssr-mode)
|
2020-09-22 17:06:37 +00:00
|
|
|
ssr: false,
|
2020-10-21 06:50:32 +00:00
|
|
|
|
|
|
|
|
// Target (https://go.nuxtjs.dev/config-target)
|
|
|
|
|
target: "static",
|
|
|
|
|
|
|
|
|
|
// Default: localhost
|
2020-08-23 13:17:57 +00:00
|
|
|
server: {
|
2020-10-21 06:50:32 +00:00
|
|
|
host: "0.0.0.0",
|
2020-08-23 13:17:57 +00:00
|
|
|
},
|
2020-10-21 06:50:32 +00:00
|
|
|
|
|
|
|
|
// Global page headers (https://go.nuxtjs.dev/config-head)
|
2019-08-24 03:06:57 +00:00
|
|
|
head: {
|
2019-11-28 15:11:52 +00:00
|
|
|
meta: [
|
2019-09-04 06:49:17 +00:00
|
|
|
{
|
2020-02-25 02:06:23 +00:00
|
|
|
name: "keywords",
|
2019-11-28 15:11:52 +00:00
|
|
|
content:
|
2020-08-13 11:20:02 +00:00
|
|
|
"hoppscotch, hopp scotch, hoppscotch online, hoppscotch app, postwoman, postwoman chrome, postwoman online, postwoman for mac, postwoman app, postwoman for windows, postwoman google chrome, postwoman chrome app, get postwoman, postwoman web, postwoman android, postwoman app for chrome, postwoman mobile app, postwoman web app, api, request, testing, tool, rest, websocket, sse, graphql, socketio",
|
2019-09-04 06:49:17 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-02-25 02:06:23 +00:00
|
|
|
name: "X-UA-Compatible",
|
|
|
|
|
content: "IE=edge, chrome=1",
|
2019-09-04 06:49:17 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-02-25 02:06:23 +00:00
|
|
|
itemprop: "name",
|
2020-06-21 05:56:19 +00:00
|
|
|
content: `${options.name} • ${options.shortDescription}`,
|
2019-09-04 06:49:17 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-02-25 02:06:23 +00:00
|
|
|
itemprop: "description",
|
2020-03-24 02:19:09 +00:00
|
|
|
content: options.description,
|
2019-09-04 06:49:17 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-02-25 02:06:23 +00:00
|
|
|
itemprop: "image",
|
2020-11-11 03:25:44 +00:00
|
|
|
content: `${process.env.BASE_URL}/banner.jpg`,
|
2019-09-04 06:49:17 +00:00
|
|
|
},
|
2019-08-24 03:06:57 +00:00
|
|
|
// Add to homescreen for Chrome on Android. Fallback for PWA (handled by nuxt)
|
2019-09-04 06:49:17 +00:00
|
|
|
{
|
2020-02-25 02:06:23 +00:00
|
|
|
name: "application-name",
|
2020-03-24 02:19:09 +00:00
|
|
|
content: options.name,
|
2019-09-04 06:49:17 +00:00
|
|
|
},
|
2019-08-24 03:06:57 +00:00
|
|
|
// Windows phone tile icon
|
2019-09-04 06:49:17 +00:00
|
|
|
{
|
2020-02-25 02:06:23 +00:00
|
|
|
name: "msapplication-TileImage",
|
2020-08-23 11:33:49 +00:00
|
|
|
content: `/icon.png`,
|
2019-09-04 06:49:17 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-02-25 02:06:23 +00:00
|
|
|
name: "msapplication-TileColor",
|
2020-08-13 11:20:02 +00:00
|
|
|
content: options.app.background,
|
2019-09-04 06:49:17 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-02-25 02:06:23 +00:00
|
|
|
name: "msapplication-tap-highlight",
|
|
|
|
|
content: "no",
|
2019-09-04 06:49:17 +00:00
|
|
|
},
|
2019-08-24 03:06:57 +00:00
|
|
|
],
|
|
|
|
|
},
|
2020-10-21 06:50:32 +00:00
|
|
|
|
|
|
|
|
// Customize the progress-bar color (https://nuxtjs.org/api/configuration-loading/#customizing-the-progress-bar)
|
2019-09-04 06:49:17 +00:00
|
|
|
loading: {
|
2020-09-22 17:06:37 +00:00
|
|
|
color: options.loading.color,
|
2020-03-05 01:18:10 +00:00
|
|
|
continuous: true,
|
2019-09-04 06:49:17 +00:00
|
|
|
},
|
2020-10-21 06:50:32 +00:00
|
|
|
|
|
|
|
|
// Customize the loading indicator (https://nuxtjs.org/api/configuration-loading-indicator)
|
2019-10-11 08:53:07 +00:00
|
|
|
loadingIndicator: {
|
2020-02-25 02:06:23 +00:00
|
|
|
name: "pulse",
|
2020-08-13 11:20:02 +00:00
|
|
|
color: options.loading.color,
|
|
|
|
|
background: options.loading.background,
|
2019-10-11 08:53:07 +00:00
|
|
|
},
|
2020-10-21 06:50:32 +00:00
|
|
|
|
|
|
|
|
// Global CSS (https://go.nuxtjs.dev/config-css)
|
2021-02-25 16:08:12 +00:00
|
|
|
css: ["~/assets/scss/styles.scss", "~/assets/scss/themes.scss"],
|
2020-10-21 06:50:32 +00:00
|
|
|
|
|
|
|
|
// Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins)
|
2020-12-01 15:51:13 +00:00
|
|
|
plugins: [
|
2021-07-02 05:01:29 +00:00
|
|
|
"~/plugins/v-tippy",
|
2020-12-01 15:51:13 +00:00
|
|
|
"~/plugins/vuex-persist",
|
2021-03-23 15:18:14 +00:00
|
|
|
"~/plugins/vue-rx",
|
2021-05-03 13:18:24 +00:00
|
|
|
"~/plugins/vue-apollo",
|
2020-12-01 15:51:13 +00:00
|
|
|
{ src: "~/plugins/web-worker", ssr: false },
|
|
|
|
|
],
|
2020-10-21 06:50:32 +00:00
|
|
|
|
|
|
|
|
// Auto import components (https://go.nuxtjs.dev/config-components)
|
2020-08-13 11:20:02 +00:00
|
|
|
components: true,
|
2020-10-21 06:50:32 +00:00
|
|
|
|
|
|
|
|
// Modules for dev and build (recommended) (https://go.nuxtjs.dev/config-modules)
|
2020-05-12 02:57:58 +00:00
|
|
|
buildModules: [
|
2020-10-21 06:50:32 +00:00
|
|
|
// https://github.com/nuxt-community/pwa-module
|
2020-05-12 02:57:58 +00:00
|
|
|
"@nuxtjs/pwa",
|
2021-05-17 05:55:50 +00:00
|
|
|
// https://github.com/nuxt-community/eslint-module
|
|
|
|
|
"@nuxtjs/eslint-module",
|
|
|
|
|
// https://github.com/nuxt-community/stylelint-module
|
|
|
|
|
"@nuxtjs/stylelint-module",
|
2020-10-21 06:50:32 +00:00
|
|
|
// https://github.com/nuxt-community/analytics-module
|
2020-05-12 02:57:58 +00:00
|
|
|
"@nuxtjs/google-analytics",
|
2020-10-21 06:50:32 +00:00
|
|
|
// https://github.com/nuxt-community/gtm-module
|
2020-05-12 02:57:58 +00:00
|
|
|
"@nuxtjs/gtm",
|
2021-06-25 23:44:27 +00:00
|
|
|
// https://github.com/windicss/windicss
|
|
|
|
|
"nuxt-windicss",
|
2020-10-21 06:50:32 +00:00
|
|
|
// https://github.com/nuxt-community/color-mode-module
|
2020-09-22 17:06:37 +00:00
|
|
|
"@nuxtjs/color-mode",
|
2021-07-03 13:14:58 +00:00
|
|
|
// https://github.com/nuxt-community/svg-module
|
|
|
|
|
"@nuxtjs/svg",
|
2021-02-25 16:08:12 +00:00
|
|
|
// https: //github.com/nuxt-community/google-fonts-module
|
|
|
|
|
"@nuxtjs/google-fonts",
|
2021-03-23 15:18:14 +00:00
|
|
|
// https://github.com/nuxt/typescript
|
|
|
|
|
"@nuxt/typescript-build",
|
2021-05-16 06:53:29 +00:00
|
|
|
// https://github.com/nuxt-community/dotenv-module
|
|
|
|
|
"@nuxtjs/dotenv",
|
2021-07-18 04:33:52 +00:00
|
|
|
// https://github.com/nuxt-community/composition-api
|
|
|
|
|
"@nuxtjs/composition-api/module",
|
2020-05-12 02:57:58 +00:00
|
|
|
],
|
2020-10-21 06:50:32 +00:00
|
|
|
|
|
|
|
|
// Modules (https://go.nuxtjs.dev/config-modules)
|
2019-08-24 03:06:57 +00:00
|
|
|
modules: [
|
2020-10-21 06:50:32 +00:00
|
|
|
// https://github.com/nuxt-community/axios-module
|
2020-05-10 06:40:17 +00:00
|
|
|
"@nuxtjs/axios",
|
2020-05-12 02:57:58 +00:00
|
|
|
// https://github.com/nuxt-community/modules/tree/master/packages/toast
|
2020-05-10 06:40:17 +00:00
|
|
|
"@nuxtjs/toast",
|
2020-10-21 06:50:32 +00:00
|
|
|
// https://github.com/nuxt-community/i18n-module
|
2020-05-12 02:57:58 +00:00
|
|
|
"nuxt-i18n",
|
2020-10-21 06:50:32 +00:00
|
|
|
// https://github.com/nuxt-community/robots-module
|
2020-05-10 06:40:17 +00:00
|
|
|
"@nuxtjs/robots",
|
2020-10-21 06:50:32 +00:00
|
|
|
// https://github.com/nuxt-community/sitemap-module
|
2020-08-13 11:20:02 +00:00
|
|
|
"@nuxtjs/sitemap",
|
2019-08-24 03:06:57 +00:00
|
|
|
],
|
2021-05-17 05:55:50 +00:00
|
|
|
|
2020-10-21 06:50:32 +00:00
|
|
|
// PWA module configuration (https://pwa.nuxtjs.org/setup)
|
2019-09-29 13:21:43 +00:00
|
|
|
pwa: {
|
|
|
|
|
meta: {
|
2020-11-28 11:53:10 +00:00
|
|
|
name: `${options.name} - ${options.shortDescription}`,
|
|
|
|
|
description: options.description,
|
2020-08-13 11:20:02 +00:00
|
|
|
ogHost: process.env.BASE_URL,
|
2020-11-28 11:53:10 +00:00
|
|
|
ogImage: `${process.env.BASE_URL}/banner.jpg`,
|
2020-03-24 07:06:37 +00:00
|
|
|
twitterCard: "summary_large_image",
|
2020-08-13 11:20:02 +00:00
|
|
|
twitterSite: options.social.twitter,
|
|
|
|
|
twitterCreator: options.social.twitter,
|
|
|
|
|
theme_color: options.app.background,
|
2019-09-29 13:21:43 +00:00
|
|
|
},
|
2020-08-23 11:33:49 +00:00
|
|
|
manifest: {
|
|
|
|
|
name: options.name,
|
|
|
|
|
short_name: options.name,
|
|
|
|
|
description: options.shortDescription,
|
2021-03-10 23:51:58 +00:00
|
|
|
start_url: "/?source=pwa",
|
2020-08-23 11:33:49 +00:00
|
|
|
background_color: options.app.background,
|
|
|
|
|
},
|
2019-09-29 13:21:43 +00:00
|
|
|
},
|
2020-10-21 06:50:32 +00:00
|
|
|
|
2021-05-17 05:55:50 +00:00
|
|
|
// ESLint module configuration (https://github.com/nuxt-community/eslint-module)
|
|
|
|
|
eslint: {
|
2021-06-30 09:23:15 +00:00
|
|
|
fix: true,
|
2021-06-30 17:23:48 +00:00
|
|
|
emitWarning: true,
|
2021-05-17 11:41:58 +00:00
|
|
|
quiet: true,
|
2021-05-17 05:55:50 +00:00
|
|
|
},
|
|
|
|
|
|
2020-10-21 06:50:32 +00:00
|
|
|
// Toast module configuration (https://github.com/nuxt-community/modules/tree/master/packages/toast)
|
2019-09-28 09:33:16 +00:00
|
|
|
toast: {
|
2020-02-25 02:06:23 +00:00
|
|
|
position: "bottom-center",
|
2019-10-20 00:57:47 +00:00
|
|
|
duration: 3000,
|
2020-02-24 18:44:50 +00:00
|
|
|
keepOnHover: true,
|
2019-09-28 09:33:16 +00:00
|
|
|
},
|
2020-10-21 06:50:32 +00:00
|
|
|
|
|
|
|
|
// Google Analytics module configuration (https://github.com/nuxt-community/analytics-module)
|
2019-09-28 09:33:16 +00:00
|
|
|
googleAnalytics: {
|
2020-08-29 17:40:06 +00:00
|
|
|
id: process.env.GA_ID,
|
2019-09-28 09:33:16 +00:00
|
|
|
},
|
2020-10-21 06:50:32 +00:00
|
|
|
|
|
|
|
|
// Google Tag Manager module configuration (https://github.com/nuxt-community/gtm-module)
|
2020-03-24 02:19:09 +00:00
|
|
|
gtm: {
|
2020-08-29 17:40:06 +00:00
|
|
|
id: process.env.GTM_ID,
|
2020-03-24 02:19:09 +00:00
|
|
|
},
|
2020-10-21 06:50:32 +00:00
|
|
|
|
|
|
|
|
// Sitemap module configuration (https://github.com/nuxt-community/sitemap-module)
|
2019-10-02 07:10:47 +00:00
|
|
|
sitemap: {
|
2021-05-16 08:40:39 +00:00
|
|
|
hostname: process.env.BASE_URL || "https://hoppscotch.io",
|
2019-10-02 07:10:47 +00:00
|
|
|
},
|
2020-10-21 06:50:32 +00:00
|
|
|
|
|
|
|
|
// Robots module configuration (https://github.com/nuxt-community/robots-module)
|
2019-11-03 06:06:41 +00:00
|
|
|
robots: {
|
2020-02-25 02:06:23 +00:00
|
|
|
UserAgent: "*",
|
|
|
|
|
Disallow: "",
|
|
|
|
|
Allow: "/",
|
2020-11-11 03:25:44 +00:00
|
|
|
Sitemap: `${process.env.BASE_URL}/sitemap.xml`,
|
2019-11-03 06:06:41 +00:00
|
|
|
},
|
2020-10-21 06:50:32 +00:00
|
|
|
|
2021-02-25 16:08:12 +00:00
|
|
|
// Google Fonts module configuration (https://github.com/nuxt-community/google-fonts-module)
|
|
|
|
|
googleFonts: {
|
2021-07-10 13:15:39 +00:00
|
|
|
display: "block",
|
2021-02-25 16:08:12 +00:00
|
|
|
families: {
|
2021-07-25 20:03:32 +00:00
|
|
|
Inter: [400, 500, 600, 700, 800],
|
2021-07-10 13:15:39 +00:00
|
|
|
"Material+Icons": true,
|
2021-02-25 16:08:12 +00:00
|
|
|
"Roboto+Mono": true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
2020-10-21 06:50:32 +00:00
|
|
|
// i18n module configuration (https://github.com/nuxt-community/i18n-module)
|
2019-11-27 08:45:11 +00:00
|
|
|
i18n: {
|
2019-11-28 15:11:52 +00:00
|
|
|
locales: [
|
|
|
|
|
{
|
2020-02-25 02:06:23 +00:00
|
|
|
code: "en",
|
|
|
|
|
name: "English",
|
|
|
|
|
iso: "en-US",
|
2020-03-12 02:17:59 +00:00
|
|
|
file: "en-US.json",
|
2021-07-02 05:01:29 +00:00
|
|
|
country: "US",
|
2019-11-27 08:45:11 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-02-25 02:06:23 +00:00
|
|
|
code: "es",
|
|
|
|
|
name: "Español",
|
|
|
|
|
iso: "es-ES",
|
2020-03-12 02:17:59 +00:00
|
|
|
file: "es-ES.json",
|
2021-07-02 05:01:29 +00:00
|
|
|
country: "ES",
|
2019-11-27 15:49:59 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-02-25 02:06:23 +00:00
|
|
|
code: "fr",
|
|
|
|
|
name: "Français",
|
|
|
|
|
iso: "fr-FR",
|
2020-03-12 02:17:59 +00:00
|
|
|
file: "fr-FR.json",
|
2021-07-02 05:01:29 +00:00
|
|
|
country: "FR",
|
2019-11-27 17:33:02 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-02-25 02:06:23 +00:00
|
|
|
code: "fa",
|
|
|
|
|
name: "Farsi",
|
|
|
|
|
iso: "fa-IR",
|
2020-03-12 02:17:59 +00:00
|
|
|
file: "fa-IR.json",
|
2021-07-02 05:01:29 +00:00
|
|
|
country: "IR",
|
2019-11-27 23:01:34 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-02-25 02:06:23 +00:00
|
|
|
code: "pt",
|
2020-05-05 11:27:41 +00:00
|
|
|
name: "Português",
|
|
|
|
|
iso: "pt-PT",
|
|
|
|
|
file: "pt-PT.json",
|
2021-07-02 05:01:29 +00:00
|
|
|
country: "PT",
|
2020-05-05 11:27:41 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
code: "pt-br",
|
2020-02-25 02:06:23 +00:00
|
|
|
name: "Português Brasileiro",
|
|
|
|
|
iso: "pt-BR",
|
2020-03-12 02:17:59 +00:00
|
|
|
file: "pt-BR.json",
|
2021-07-02 05:01:29 +00:00
|
|
|
country: "BR",
|
2019-11-28 01:38:31 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-02-25 02:06:23 +00:00
|
|
|
code: "cn",
|
|
|
|
|
name: "简体中文",
|
|
|
|
|
iso: "zh-CN",
|
2020-03-12 02:17:59 +00:00
|
|
|
file: "zh-CN.json",
|
2021-07-02 05:01:29 +00:00
|
|
|
country: "CN",
|
2019-11-28 02:51:42 +00:00
|
|
|
},
|
2020-05-05 11:27:41 +00:00
|
|
|
{
|
|
|
|
|
code: "tw",
|
|
|
|
|
name: "繁體中文",
|
|
|
|
|
iso: "zh-TW",
|
|
|
|
|
file: "zh-TW.json",
|
2021-07-02 05:01:29 +00:00
|
|
|
country: "TW",
|
2020-05-05 11:27:41 +00:00
|
|
|
},
|
2019-11-28 02:51:42 +00:00
|
|
|
{
|
2020-02-25 02:06:23 +00:00
|
|
|
code: "id",
|
|
|
|
|
name: "Bahasa Indonesia",
|
|
|
|
|
iso: "id-ID",
|
2020-03-12 02:17:59 +00:00
|
|
|
file: "id-ID.json",
|
2021-07-02 05:01:29 +00:00
|
|
|
country: "ID",
|
2019-11-30 21:39:58 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-02-25 02:06:23 +00:00
|
|
|
code: "tr",
|
|
|
|
|
name: "Türkçe",
|
|
|
|
|
iso: "tr-TR",
|
2020-03-12 02:17:59 +00:00
|
|
|
file: "tr-TR.json",
|
2021-07-02 05:01:29 +00:00
|
|
|
country: "TR",
|
2019-12-12 22:35:59 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-02-25 02:06:23 +00:00
|
|
|
code: "de",
|
|
|
|
|
name: "Deutsch",
|
|
|
|
|
iso: "de-DE",
|
2020-03-12 02:17:59 +00:00
|
|
|
file: "de-DE.json",
|
2021-07-02 05:01:29 +00:00
|
|
|
country: "DE",
|
2019-12-13 06:34:59 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-02-25 02:06:23 +00:00
|
|
|
code: "ja",
|
|
|
|
|
name: "日本語",
|
|
|
|
|
iso: "ja-JP",
|
2020-03-12 02:17:59 +00:00
|
|
|
file: "ja-JP.json",
|
2021-07-02 05:01:29 +00:00
|
|
|
country: "JP",
|
2020-02-24 18:44:50 +00:00
|
|
|
},
|
2020-02-25 03:21:33 +00:00
|
|
|
{
|
|
|
|
|
code: "ko",
|
|
|
|
|
name: "한국어",
|
|
|
|
|
iso: "ko-KR",
|
2020-03-12 02:17:59 +00:00
|
|
|
file: "ko-KR.json",
|
2021-07-02 05:01:29 +00:00
|
|
|
country: "KR",
|
2020-03-04 06:50:47 +00:00
|
|
|
},
|
2021-05-15 13:23:12 +00:00
|
|
|
{
|
|
|
|
|
code: "in",
|
|
|
|
|
name: "हिंदी",
|
|
|
|
|
iso: "in-IN",
|
|
|
|
|
file: "in-IN.json",
|
2021-07-02 05:01:29 +00:00
|
|
|
country: "IN",
|
2021-05-15 13:23:12 +00:00
|
|
|
},
|
2020-10-05 01:37:02 +00:00
|
|
|
{
|
|
|
|
|
code: "bn",
|
|
|
|
|
name: "Bengali",
|
|
|
|
|
iso: "bn-BD",
|
|
|
|
|
file: "bn-BD.json",
|
2021-07-02 05:01:29 +00:00
|
|
|
country: "BD",
|
2020-10-05 01:37:02 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
code: "ml",
|
2020-11-30 02:46:16 +00:00
|
|
|
name: "മലയാളം",
|
2020-10-05 01:37:02 +00:00
|
|
|
iso: "ml-ML",
|
|
|
|
|
file: "ml-ML.json",
|
2021-07-02 05:01:29 +00:00
|
|
|
country: "ML",
|
2020-10-05 01:37:02 +00:00
|
|
|
},
|
2020-10-15 06:07:33 +00:00
|
|
|
{
|
|
|
|
|
code: "vi",
|
|
|
|
|
name: "Vietnamese",
|
|
|
|
|
iso: "vi-VN",
|
|
|
|
|
file: "vi-VN.json",
|
2021-07-02 05:01:29 +00:00
|
|
|
country: "VN",
|
2020-10-15 06:07:33 +00:00
|
|
|
},
|
2020-11-30 02:46:16 +00:00
|
|
|
{
|
|
|
|
|
code: "nl",
|
|
|
|
|
name: "Dutch",
|
|
|
|
|
iso: "nl-BE",
|
|
|
|
|
file: "nl-BE.json",
|
2021-07-02 05:01:29 +00:00
|
|
|
country: "BE",
|
2020-11-30 02:46:16 +00:00
|
|
|
},
|
2021-05-15 13:23:12 +00:00
|
|
|
{
|
|
|
|
|
code: "nb",
|
|
|
|
|
name: "Norwegian (Bokmål)",
|
|
|
|
|
iso: "nb-NO",
|
|
|
|
|
file: "nb-NO.json",
|
2021-07-02 05:01:29 +00:00
|
|
|
country: "NO",
|
2021-05-15 13:23:12 +00:00
|
|
|
},
|
2019-11-27 08:45:11 +00:00
|
|
|
],
|
2020-02-25 02:06:23 +00:00
|
|
|
defaultLocale: "en",
|
2020-01-14 15:43:41 +00:00
|
|
|
vueI18n: {
|
2020-02-25 02:06:23 +00:00
|
|
|
fallbackLocale: "en",
|
2020-01-14 15:43:41 +00:00
|
|
|
},
|
2019-11-27 08:45:11 +00:00
|
|
|
lazy: true,
|
2020-02-25 02:06:23 +00:00
|
|
|
langDir: "lang/",
|
2020-08-25 16:25:23 +00:00
|
|
|
detectBrowserLanguage: {
|
|
|
|
|
alwaysRedirect: true,
|
|
|
|
|
fallbackLocale: "en",
|
|
|
|
|
},
|
2019-11-27 08:45:11 +00:00
|
|
|
},
|
2020-10-21 06:50:32 +00:00
|
|
|
|
2021-07-09 17:19:45 +00:00
|
|
|
// https://github.com/nuxt-community/color-mode-module
|
|
|
|
|
colorMode: {
|
|
|
|
|
classSuffix: "",
|
|
|
|
|
},
|
|
|
|
|
|
2020-10-21 06:50:32 +00:00
|
|
|
// Build Configuration (https://go.nuxtjs.dev/config-build)
|
2019-08-24 03:06:57 +00:00
|
|
|
build: {
|
2021-07-01 16:39:11 +00:00
|
|
|
transpile: ["three"],
|
2020-10-21 06:50:32 +00:00
|
|
|
// You can extend webpack config here
|
2020-12-11 00:29:29 +00:00
|
|
|
extend(config, { isDev, isClient }) {
|
2020-08-13 11:20:02 +00:00
|
|
|
// Sets webpack's mode to development if `isDev` is true.
|
2020-12-11 00:29:29 +00:00
|
|
|
if (isDev) {
|
2020-08-13 11:20:02 +00:00
|
|
|
config.mode = "development"
|
|
|
|
|
}
|
2021-06-27 18:54:16 +00:00
|
|
|
|
2020-05-10 07:06:40 +00:00
|
|
|
config.node = {
|
|
|
|
|
fs: "empty",
|
|
|
|
|
}
|
2020-12-01 15:51:13 +00:00
|
|
|
|
2020-12-11 00:29:29 +00:00
|
|
|
if (isClient) {
|
2020-12-01 15:51:13 +00:00
|
|
|
config.module.rules.unshift({
|
|
|
|
|
test: /\.worker\.(c|m)?js$/i,
|
|
|
|
|
use: { loader: "worker-loader" },
|
|
|
|
|
exclude: /(node_modules)/,
|
|
|
|
|
})
|
2021-06-27 18:54:16 +00:00
|
|
|
|
2020-12-09 05:11:05 +00:00
|
|
|
config.module.rules.push({
|
|
|
|
|
test: /\.md$/i,
|
|
|
|
|
use: { loader: "raw-loader" },
|
|
|
|
|
exclude: /(node_modules)/,
|
|
|
|
|
})
|
2021-01-22 01:34:02 +00:00
|
|
|
|
2021-07-01 16:39:11 +00:00
|
|
|
config.module.rules.push({
|
|
|
|
|
test: /\.geojson$/i,
|
|
|
|
|
use: { loader: "json-loader" },
|
|
|
|
|
exclude: /(node_modules)/,
|
|
|
|
|
})
|
|
|
|
|
|
2021-01-22 01:34:02 +00:00
|
|
|
config.module.rules.push({
|
|
|
|
|
test: /\.mjs$/,
|
|
|
|
|
include: /node_modules/,
|
2021-02-25 16:08:12 +00:00
|
|
|
type: "javascript/auto",
|
2021-01-22 01:34:02 +00:00
|
|
|
})
|
2021-04-12 15:50:25 +00:00
|
|
|
|
|
|
|
|
config.module.rules.push({
|
|
|
|
|
test: /\.js$/,
|
|
|
|
|
include: /(node_modules)/,
|
2021-05-17 05:55:50 +00:00
|
|
|
exclude: /(node_modules)\/(ace-builds)|(@firebase)/,
|
2021-04-12 15:50:25 +00:00
|
|
|
loader: "babel-loader",
|
|
|
|
|
options: {
|
|
|
|
|
plugins: [
|
|
|
|
|
"@babel/plugin-proposal-class-properties",
|
|
|
|
|
"@babel/plugin-proposal-nullish-coalescing-operator",
|
|
|
|
|
"@babel/plugin-proposal-optional-chaining",
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
})
|
2020-12-01 15:51:13 +00:00
|
|
|
}
|
2020-05-10 07:06:40 +00:00
|
|
|
},
|
2020-08-13 11:20:02 +00:00
|
|
|
parallel: true,
|
|
|
|
|
cache: true,
|
|
|
|
|
// hardSource: true,
|
2019-08-24 03:24:43 +00:00
|
|
|
},
|
2020-10-21 06:50:32 +00:00
|
|
|
|
|
|
|
|
// Generate configuration (https://nuxtjs.org/api/configuration-generate)
|
2019-08-24 03:24:43 +00:00
|
|
|
generate: {
|
2020-02-24 18:44:50 +00:00
|
|
|
fallback: true,
|
2019-08-24 16:20:19 +00:00
|
|
|
},
|
2021-05-16 07:23:40 +00:00
|
|
|
|
|
|
|
|
// dotenv configuration (https://github.com/nuxt-community/dotenv-module)
|
|
|
|
|
env: {
|
|
|
|
|
GA_ID: process.env.GA_ID,
|
|
|
|
|
GTM_ID: process.env.GTM_ID,
|
|
|
|
|
API_KEY: process.env.API_KEY,
|
|
|
|
|
AUTH_DOMAIN: process.env.AUTH_DOMAIN,
|
|
|
|
|
DATABASE_URL: process.env.DATABASE_URL,
|
|
|
|
|
PROJECT_ID: process.env.PROJECT_ID,
|
|
|
|
|
STORAGE_BUCKET: process.env.STORAGE_BUCKET,
|
|
|
|
|
MESSAGING_SENDER_ID: process.env.MESSAGING_SENDER_ID,
|
|
|
|
|
APP_ID: process.env.APP_ID,
|
|
|
|
|
MEASUREMENT_ID: process.env.MEASUREMENT_ID,
|
|
|
|
|
BASE_URL: process.env.BASE_URL,
|
|
|
|
|
},
|
2021-07-01 16:39:11 +00:00
|
|
|
|
|
|
|
|
// Router configuration (https://nuxtjs.org/api/configuration-router)
|
|
|
|
|
router: {
|
2021-07-04 16:59:37 +00:00
|
|
|
linkExactActiveClass: "active",
|
2021-07-01 16:39:11 +00:00
|
|
|
},
|
2020-02-24 18:44:50 +00:00
|
|
|
}
|