-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #282 from InseeFr/acceptance
Change to version 3.0.17
- Loading branch information
Showing
21 changed files
with
894 additions
and
1,507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,21 @@ The documentation can be found in the [docs](https://github.com/InseeFr/Bauhaus/ | |
|
||
## How to start | ||
|
||
The application is tested on Node.js 14 and 16. | ||
|
||
``` | ||
git clone [email protected]:InseeFr/Bauhaus.git | ||
cd Bauhaus | ||
yarn | ||
yarn build-insee | ||
yarn start | ||
``` | ||
|
||
## Issues | ||
|
||
If you are using, you should install the following dependency. | ||
|
||
``` | ||
yarn global add windows-build-tools | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 8 additions & 1 deletion
9
app/src/js/applications/classifications/visualization/controls.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 17 additions & 2 deletions
19
app/src/js/applications/classifications/visualization/controls.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,25 @@ | ||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
import Controls from './controls'; | ||
import { Provider } from 'react-redux'; | ||
import { MemoryRouter } from 'react-router-dom'; | ||
import configureStore from 'redux-mock-store'; | ||
import Controls from './controls'; | ||
|
||
const mockStore = configureStore([]); | ||
const store = mockStore({ | ||
users: { results: { stamp: 'stamp' } }, | ||
app: { secondLang: true, auth: { type: '', user: { roles: [] } } }, | ||
}); | ||
|
||
describe('classification-visualization-controls', () => { | ||
it('renders without crashing', () => { | ||
render(<Controls />, { wrapper: MemoryRouter }); | ||
render( | ||
<Provider store={store}> | ||
<Controls classification={{}} publish={() => {}} /> | ||
</Provider>, | ||
{ | ||
wrapper: MemoryRouter, | ||
} | ||
); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import btnD from './generic/btn'; | ||
const dictionary = { | ||
errorTitle: {fr:"Erreur",en:"Error"}, | ||
langs: { | ||
fr: 'Français', | ||
en: 'English', | ||
|
@@ -80,8 +81,8 @@ const dictionary = { | |
}, | ||
|
||
errorBody: { | ||
fr: 'Veuillez contacter :DR59-SINL-Equipe-maintenance-RMeS', | ||
en: 'Please contact :DR59-SINL-Equipe-maintenance-RMeS', | ||
fr: 'Veuillez contacter l\'équipe RMéS [email protected]', | ||
en: 'Please contact the team RMéS [email protected]', | ||
}, | ||
exportTitle: { | ||
fr: 'Export', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -245,11 +245,10 @@ const dictionary = { | |
return `<p>Bonjour,</p> | ||
<p>Vous trouverez ci-joint la description du concept « <b> | ||
${prefLabelLg1} | ||
</b> » ${inseeText} extraite de la base RMéS-Concepts.</p> | ||
</b> » ${inseeText} extraite de la base RMéS-Bauhaus Concepts.</p> | ||
${validText} | ||
<p>Pour toute demande concernant ce concept merci de répondre via la boîte fonctionnelle :DG75-Administration RMéS <a href="mailto:[email protected]">[email protected]<a>.</p> | ||
<p>Pour toute demande concernant ce concept, merci d’utiliser la boîte fonctionnelle <a href="mailto:[email protected]">[email protected]<a>.</p> | ||
<p>L'équipe RMéS<br/> | ||
Insee - DG<br/> | ||
DMCSI - Unité Qualité</p>`; | ||
}, | ||
en: (params) => { | ||
|
@@ -296,11 +295,10 @@ const dictionary = { | |
return `<p>Bonjour,</p> | ||
<p>Vous trouverez ci-joint la composition de la collection de concepts « <b> | ||
${prefLabelLg1} | ||
</b> » ${inseeText} extraite de la base RMéS-Concepts.</p> | ||
</b> » ${inseeText} extraite de la base RMéS-Bauhaus Concepts.</p> | ||
${validText} | ||
<p>Pour toute demande concernant cette collection merci de répondre via la boîte fonctionnelle :DG75 RMéS-Concepts et définitions.</p> | ||
<p>Pour toute demande concernant cette collection, merci d’utiliser la boîte fonctionnelle <a href="mailto:[email protected]">[email protected]<a>.</p> | ||
<p>L'équipe RMéS<br/> | ||
Insee - DG<br/> | ||
DMCSI - Unité Qualité</p>`; | ||
}, | ||
en: (params) => { | ||
|
Oops, something went wrong.