Enlève le site publicode

pull/445/head
Johan Girod 2019-01-08 19:20:51 +01:00
parent 3c0ee5e732
commit 72de05bde5
4 changed files with 2 additions and 53 deletions

View File

@ -14,9 +14,7 @@ const rewrite = basename => ({
app.use(
history({
rewrites: ['embauche', 'infrance', 'mon-entreprise', 'publicodes'].map(
rewrite
)
rewrites: ['embauche', 'infrance', 'mon-entreprise'].map(rewrite)
})
)

View File

@ -1,34 +0,0 @@
import RulePage from 'Components/RulePage'
import React, { Component } from 'react'
import { Route, Switch } from 'react-router-dom'
import 'Ui/index.css'
import Provider from '../../Provider'
import Route404 from '../embauche.gouv.fr/pages/Route404'
import RulesList from '../embauche.gouv.fr/pages/RulesList'
import ComparativeSimulation from 'Components/ComparativeSimulation'
class App extends Component {
render() {
return (
<Provider
basename="publicodes"
reduxMiddlewares={[]}>
<Switch>
<Route exact path="/" component={ComparativeSimulation} />
<Route path="/règle/:name" component={RulePage} />
<Route path="/règles" component={RulesList} />
<Route component={Route404} />
</Switch>
</Provider>
)
}
}
let devMode = process.env.NODE_ENV !== 'production'
export default (devMode
? do {
let { hot } = require('react-hot-loader')
hot(module)(App)
}
: App)

View File

@ -1,7 +0,0 @@
import React from 'react'
import { render } from 'react-dom'
import App from './App'
let anchor = document.querySelector('#js')
render(<App />, anchor)

View File

@ -26,7 +26,6 @@ module.exports = {
// To not introduce breaking into the iframe integration, we serve simulateur.js from a 'dist' subdirectory
'dist/simulateur': ['./source/sites/embauche.gouv.fr/iframe-script.js'],
publicodes: ['./source/sites/publi.codes/entry.js']
},
output: {
path: path.resolve('./dist/')
@ -65,14 +64,7 @@ module.exports = {
'Du status juridique à premier embauche, vous trouverez ici toutes les ressources nécessaires pour démarrer votre activité.',
filename: 'mon-entreprise.html'
}),
new HTMLPlugin({
template: 'index.html',
chunks: ['publicodes'],
title: 'publicodes ✍️',
description:
'Une base de connaissance ? Du code ? Les deux à la fois. Lancement imminent !',
filename: 'publicodes.html'
}),
new CopyPlugin([
'./manifest.webmanifest',
'./source/sites/embauche.gouv.fr/images/logo',