Skip to content

Commit

Permalink
#57 compatibility and delete unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcellino-Palerme committed Nov 15, 2024
1 parent ff32cc4 commit 40bfb23
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 89 deletions.
2 changes: 0 additions & 2 deletions lang/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
//
// SPDX-License-Identifier: MIT

import { addMolecule } from "~/server/api/molecule/functions";

export default {
button:{
addcompound: "Add reference",
Expand Down
185 changes: 98 additions & 87 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,92 +8,103 @@ import { defineNuxtConfig } from "nuxt/config";
import vuetify, { transformAssetUrls } from "vite-plugin-vuetify";

export default defineNuxtConfig({
runtimeConfig: {
// in dev
// be overridden by NUXT_URL_P2M2_API_PARSE environment variable
urlP2m2ApiParse: "http://p2m2ToolsApi:8080/p2m2tools/api/format/parse/",
// be overridden by NUXT_URL_P2M2_API_SNIF environment variable
urlP2m2ApiSnif: "http://p2m2ToolsApi:8080/p2m2tools/api/format/sniffer",
// be overridden by NUXT_PATH_SHARE environment variable
pathShare: "/shareFile",
public:{
// be overridden by NUXT_L_PARTNER environment variable
lPartner: "REPFR,INRAE,IGEPP,P2M2,BIA,IFPC,MTH",
}
},
$production: {
routeRules: {
"/**": { isr: true }
}
},
$development: {
routeRules: {
"/**": { isr: true }
}
},
modules: [
"@nuxt/ui",
"@nuxt/test-utils/module",
"@nuxtjs/eslint-module",
"@nuxtjs/i18n",
(_options, nuxt) => {
nuxt.hooks.hook("vite:extendConfig", (config) => {
// @ts-expect-error : directly from vuetify
config.plugins.push(vuetify({ autoImport: true }));
});
},
"@nuxt/test-utils/module"
],
typescript: {
typeCheck: false
},
i18n: {
defaultLocale: "fr-FR",
strategy: "no_prefix",
locales: [
{
code: "en-US",
name: "English (US)",
files: ["en-US.ts"]
},
{
code: "fr-FR",
name: "Français (France)",
files: ["fr-FR.ts"]
},
runtimeConfig: {
// in dev
// be overridden by NUXT_URL_P2M2_API_PARSE environment variable
urlP2m2ApiParse: "http://p2m2ToolsApi:8080/p2m2tools/api/format/parse/",
// be overridden by NUXT_URL_P2M2_API_SNIF environment variable
urlP2m2ApiSnif: "http://p2m2ToolsApi:8080/p2m2tools/api/format/sniffer",
// be overridden by NUXT_PATH_SHARE environment variable
pathShare: "/shareFile",
public:{
// be overridden by NUXT_L_PARTNER environment variable
lPartner: "REPFR,INRAE,IGEPP,P2M2,BIA,IFPC,MTH",
}
},

],
lazy: false,
langDir: "lang",
// customRoutes: "config", // disable custom route with page components
pages: {
index: {
"en-US": "/",
"fr-FR": "/",
},
calibCurve: {
"en-US": "/calibration_curve",
"fr-FR": "/gammes",
}
}
},
pages:true,
// thx: https://stackoverflow.com/a/77140279
app: {
head: {
link: [{ rel: "icon", href: "/p2m2.ico" }]
},
pageTransition: false,
layoutTransition: false
},
build: {
transpile: ["vuetify"],
},
vite: {
vue: {
template: {
transformAssetUrls,
},
},
},
$production: {
routeRules: {
"/**": { isr: true }
}
},

$development: {
routeRules: {
"/**": { isr: true }
}
},

modules: [
"@nuxt/ui",
"@nuxt/test-utils/module",
"@nuxtjs/eslint-module",
"@nuxtjs/i18n",
(_options, nuxt) => {
nuxt.hooks.hook("vite:extendConfig", (config) => {
// @ts-expect-error : directly from vuetify
config.plugins.push(vuetify({ autoImport: true }));
});
},
"@nuxt/test-utils/module"
],

typescript: {
typeCheck: false
},

i18n: {
defaultLocale: "fr-FR",
strategy: "no_prefix",
locales: [
{
code: "en-US",
name: "English (US)",
files: ["en-US.ts"]
},
{
code: "fr-FR",
name: "Français (France)",
files: ["fr-FR.ts"]
},

],
lazy: false,
langDir: "lang",
// customRoutes: "config", // disable custom route with page components
pages: {
index: {
"en-US": "/",
"fr-FR": "/",
},
calibCurve: {
"en-US": "/calibration_curve",
"fr-FR": "/gammes",
}
}
},

pages:true,

// thx: https://stackoverflow.com/a/77140279
app: {
head: {
link: [{ rel: "icon", href: "/p2m2.ico" }]
},
pageTransition: false,
layoutTransition: false
},

build: {
transpile: ["vuetify"],
},

vite: {
vue: {
template: {
transformAssetUrls,
},
},
},

compatibilityDate: "2024-11-15",
});

0 comments on commit 40bfb23

Please sign in to comment.