nuxt.config.js (hoppscotch-2.0.0) | : | nuxt.config.js (hoppscotch-2.1.0) | ||
---|---|---|---|---|
skipping to change at line 58 | skipping to change at line 58 | |||
{ | { | |||
itemprop: "name", | itemprop: "name", | |||
content: `${options.name} • ${options.shortDescription}`, | content: `${options.name} • ${options.shortDescription}`, | |||
}, | }, | |||
{ | { | |||
itemprop: "description", | itemprop: "description", | |||
content: options.description, | content: options.description, | |||
}, | }, | |||
{ | { | |||
itemprop: "image", | itemprop: "image", | |||
content: `${process.env.BASE_URL}/banner.jpg`, | content: `${process.env.BASE_URL}/banner.png`, | |||
}, | }, | |||
// Add to homescreen for Chrome on Android. Fallback for PWA (handled by n uxt) | // Add to homescreen for Chrome on Android. Fallback for PWA (handled by n uxt) | |||
{ | { | |||
name: "application-name", | name: "application-name", | |||
content: options.name, | content: options.name, | |||
}, | }, | |||
// Windows phone tile icon | // Windows phone tile icon | |||
{ | { | |||
name: "msapplication-TileImage", | name: "msapplication-TileImage", | |||
content: `/icon.png`, | content: `/icon.png`, | |||
skipping to change at line 101 | skipping to change at line 101 | |||
background: options.loading.background, | background: options.loading.background, | |||
}, | }, | |||
// Global CSS (https://go.nuxtjs.dev/config-css) | // Global CSS (https://go.nuxtjs.dev/config-css) | |||
css: ["~/assets/scss/styles.scss", "~/assets/scss/themes.scss"], | css: ["~/assets/scss/styles.scss", "~/assets/scss/themes.scss"], | |||
// Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins) | // Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins) | |||
plugins: [ | plugins: [ | |||
"~/plugins/v-tippy", | "~/plugins/v-tippy", | |||
"~/plugins/v-focus", | "~/plugins/v-focus", | |||
"~/plugins/v-textarea", | ||||
"~/plugins/vue-apollo", | "~/plugins/vue-apollo", | |||
"~/plugins/crisp", | "~/plugins/crisp", | |||
{ src: "~/plugins/web-worker", ssr: false }, | { src: "~/plugins/web-worker", ssr: false }, | |||
], | ], | |||
// Auto import components (https://go.nuxtjs.dev/config-components) | // Auto import components (https://go.nuxtjs.dev/config-components) | |||
components: true, | components: true, | |||
// Modules for dev and build (recommended) (https://go.nuxtjs.dev/config-modul es) | // Modules for dev and build (recommended) (https://go.nuxtjs.dev/config-modul es) | |||
buildModules: [ | buildModules: [ | |||
// https://github.com/nuxt-community/pwa-module | // https://github.com/nuxt-community/pwa-module | |||
"@nuxtjs/pwa", | "@nuxtjs/pwa", | |||
// https://github.com/nuxt-community/stylelint-module | // https://github.com/nuxt-community/stylelint-module | |||
"@nuxtjs/stylelint-module", | "@nuxtjs/stylelint-module", | |||
// https://github.com/nuxt-community/eslint-module | ||||
"@nuxtjs/eslint-module", | ||||
// https://github.com/nuxt-community/analytics-module | // https://github.com/nuxt-community/analytics-module | |||
"@nuxtjs/google-analytics", | "@nuxtjs/google-analytics", | |||
// https://github.com/nuxt-community/gtm-module | // https://github.com/nuxt-community/gtm-module | |||
"@nuxtjs/gtm", | "@nuxtjs/gtm", | |||
// https://github.com/windicss/windicss | // https://github.com/windicss/windicss | |||
"nuxt-windicss", | "nuxt-windicss", | |||
// https://github.com/nuxt-community/color-mode-module | // https://github.com/nuxt-community/color-mode-module | |||
"@nuxtjs/color-mode", | "@nuxtjs/color-mode", | |||
// https://github.com/nuxt-community/svg-module | // https://github.com/nuxt-community/svg-module | |||
"@nuxtjs/svg", | "@nuxtjs/svg", | |||
// https: //github.com/nuxt-community/google-fonts-module | // https: //github.com/nuxt-community/google-fonts-module | |||
"@nuxtjs/google-fonts", | "@nuxtjs/google-fonts", | |||
// https://github.com/nuxt/typescript | // https://github.com/nuxt/typescript | |||
["@nuxt/typescript-build", { typeCheck: false }], | ["@nuxt/typescript-build", { typeCheck: false }], | |||
// https://github.com/nuxt-community/dotenv-module | // https://github.com/nuxt-community/dotenv-module | |||
"@nuxtjs/dotenv", | "@nuxtjs/dotenv", | |||
// https://github.com/nuxt-community/composition-api | // https://github.com/nuxt-community/composition-api | |||
"@nuxtjs/composition-api/module", | "@nuxtjs/composition-api/module", | |||
// https://github.com/antfu/unplugin-vue2-script-setup | // https://github.com/antfu/unplugin-vue2-script-setup | |||
"unplugin-vue2-script-setup/nuxt", | "unplugin-vue2-script-setup/nuxt", | |||
"~/modules/emit-volar-types.ts", | ||||
], | ], | |||
// Modules (https://go.nuxtjs.dev/config-modules) | // Modules (https://go.nuxtjs.dev/config-modules) | |||
modules: [ | modules: [ | |||
// https://github.com/nuxt-community/axios-module | // https://github.com/nuxt-community/axios-module | |||
"@nuxtjs/axios", | "@nuxtjs/axios", | |||
// https://github.com/nuxt-community/modules/tree/master/packages/toast | // https://github.com/nuxt-community/modules/tree/master/packages/toast | |||
"@nuxtjs/toast", | "@nuxtjs/toast", | |||
// https://github.com/nuxt-community/i18n-module | // https://github.com/nuxt-community/i18n-module | |||
"@nuxtjs/i18n", | "@nuxtjs/i18n", | |||
skipping to change at line 157 | skipping to change at line 161 | |||
// https://github.com/nuxt-community/sitemap-module | // https://github.com/nuxt-community/sitemap-module | |||
"@nuxtjs/sitemap", | "@nuxtjs/sitemap", | |||
], | ], | |||
// PWA module configuration (https://pwa.nuxtjs.org/setup) | // PWA module configuration (https://pwa.nuxtjs.org/setup) | |||
pwa: { | pwa: { | |||
meta: { | meta: { | |||
name: `${options.name} - ${options.shortDescription}`, | name: `${options.name} - ${options.shortDescription}`, | |||
description: options.description, | description: options.description, | |||
ogHost: process.env.BASE_URL, | ogHost: process.env.BASE_URL, | |||
ogImage: `${process.env.BASE_URL}/banner.jpg`, | ogImage: `${process.env.BASE_URL}/banner.png`, | |||
twitterCard: "summary_large_image", | twitterCard: "summary_large_image", | |||
twitterSite: options.social.twitter, | twitterSite: options.social.twitter, | |||
twitterCreator: options.social.twitter, | twitterCreator: options.social.twitter, | |||
theme_color: options.app.background, | theme_color: options.app.background, | |||
}, | }, | |||
manifest: { | manifest: { | |||
name: options.name, | name: options.name, | |||
short_name: options.name, | short_name: options.name, | |||
description: options.shortDescription, | description: options.shortDescription, | |||
start_url: "/?source=pwa", | start_url: "/?source=pwa", | |||
skipping to change at line 184 | skipping to change at line 188 | |||
fix: true, | fix: true, | |||
emitWarning: true, | emitWarning: true, | |||
quiet: true, | quiet: true, | |||
}, | }, | |||
// Toast module configuration (https://github.com/nuxt-community/modules/tree/ master/packages/toast) | // Toast module configuration (https://github.com/nuxt-community/modules/tree/ master/packages/toast) | |||
toast: { | toast: { | |||
position: "bottom-center", | position: "bottom-center", | |||
duration: 3000, | duration: 3000, | |||
keepOnHover: true, | keepOnHover: true, | |||
singleton: true, | // singleton: true, | |||
}, | }, | |||
// Google Analytics module configuration (https://github.com/nuxt-community/an alytics-module) | // Google Analytics module configuration (https://github.com/nuxt-community/an alytics-module) | |||
googleAnalytics: { | googleAnalytics: { | |||
id: process.env.GA_ID, | id: process.env.GA_ID, | |||
}, | }, | |||
// Google Tag Manager module configuration (https://github.com/nuxt-community/ gtm-module) | // Google Tag Manager module configuration (https://github.com/nuxt-community/ gtm-module) | |||
gtm: { | gtm: { | |||
id: process.env.GTM_ID, | id: process.env.GTM_ID, | |||
skipping to change at line 216 | skipping to change at line 220 | |||
Allow: "/", | Allow: "/", | |||
Sitemap: `${process.env.BASE_URL}/sitemap.xml`, | Sitemap: `${process.env.BASE_URL}/sitemap.xml`, | |||
}, | }, | |||
// Google Fonts module configuration (https://github.com/nuxt-community/google -fonts-module) | // Google Fonts module configuration (https://github.com/nuxt-community/google -fonts-module) | |||
googleFonts: { | googleFonts: { | |||
display: "block", | display: "block", | |||
families: { | families: { | |||
Inter: [400, 500, 600, 700, 800], | Inter: [400, 500, 600, 700, 800], | |||
"Material+Icons": true, | "Material+Icons": true, | |||
"Roboto+Mono": true, | "Roboto+Mono": [400, 500], | |||
}, | }, | |||
}, | }, | |||
// i18n module configuration (https://github.com/nuxt-community/i18n-module) | // i18n module configuration (https://github.com/nuxt-community/i18n-module) | |||
i18n: { | i18n: { | |||
locales: languages, | locales: languages, | |||
defaultLocale: "en", | defaultLocale: "en", | |||
vueI18n: { | vueI18n: { | |||
fallbackLocale: "en", | fallbackLocale: "en", | |||
}, | }, | |||
skipping to change at line 282 | skipping to change at line 286 | |||
config.module.rules.push({ | config.module.rules.push({ | |||
test: /\.mjs$/, | test: /\.mjs$/, | |||
include: /node_modules/, | include: /node_modules/, | |||
type: "javascript/auto", | type: "javascript/auto", | |||
}) | }) | |||
config.module.rules.push({ | config.module.rules.push({ | |||
test: /\.js$/, | test: /\.js$/, | |||
include: /(node_modules)/, | include: /(node_modules)/, | |||
exclude: /(node_modules)\/(ace-builds)|(@firebase)/, | exclude: /(node_modules)\/(@firebase)/, | |||
loader: "babel-loader", | loader: "babel-loader", | |||
options: { | options: { | |||
plugins: [ | plugins: [ | |||
"@babel/plugin-proposal-class-properties", | "@babel/plugin-proposal-class-properties", | |||
"@babel/plugin-proposal-nullish-coalescing-operator", | "@babel/plugin-proposal-nullish-coalescing-operator", | |||
"@babel/plugin-proposal-optional-chaining", | "@babel/plugin-proposal-optional-chaining", | |||
], | ], | |||
}, | }, | |||
}) | }) | |||
} | } | |||
End of changes. 8 change blocks. | ||||
5 lines changed or deleted | 9 lines changed or added |