🐛 corrige l'affichage de l'editeur dans le studio

pull/974/head
Johan Girod 2020-04-10 15:06:33 +02:00
parent 643aac67f6
commit 5d74d44d39
4 changed files with 8 additions and 1 deletions

View File

@ -95,6 +95,7 @@
"i18n:rules:translate": "node source/scripts/i18n/translate-rules.js",
"i18n:ui:check": "yarn run i18next && node source/scripts/i18n/check-missing-UI-translation",
"i18n:ui:translate": "rm -rf source/locales/static-analysis-fr.json && yarn run i18next && node source/scripts/i18n/translate-ui.js",
"publicodes:serve": "PORT=5002 serve --config serve.publicodes.json --no-clipboard",
"mon-entreprise:serve": "PORT=5000 serve --config serve.mon-entreprise.json --no-clipboard",
"mon-entreprise:test": "cypress open --browser chromium",
"mycompanyinfrance:serve": "PORT=5001 serve --config serve.infrance.json --no-clipboard",

4
serve.publicodes.json Normal file
View File

@ -0,0 +1,4 @@
{
"rewrites": [{ "source": "**", "destination": "publicodes.html" }],
"public": "dist"
}

View File

@ -145,7 +145,6 @@ function evaluate(
}
const evaluation = evaluate(node.explanation.rule)
console.log(evaluation)
const temporalValue = evaluation.temporalValue
const evaluationWithRegularisation = groupByYear(
temporalValue as Temporal<Evaluation<number>>

View File

@ -1,4 +1,6 @@
const { map } = require('ramda')
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
const prod = require('./webpack.prod.js')
const {
commonLoaders,
@ -19,6 +21,7 @@ module.exports = {
},
plugins: [
...HTMLPlugins({ injectTrackingScript: true }),
new MonacoWebpackPlugin(),
new EnvironmentPlugin({
EN_SITE: '/infrance${path}',
FR_SITE: '/mon-entreprise${path}'