Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • build
  • build-dev
  • build-test
  • dev
  • lint/testing-libraby-plugin
  • master
  • renovate/copy-webpack-plugin-13.x
  • renovate/couchdb-3.x
  • renovate/cozy-client-49.x
  • renovate/cozy-device-helper-3.x
  • renovate/cozy-flags-4.x
  • renovate/cozy-harvest-lib-32.x
  • renovate/cozy-harvest-lib-9.x
  • renovate/cozy-realtime-5.x
  • renovate/cozy-scripts-8.x
  • renovate/devdependencies-(non-major)
  • renovate/eslint-9.x
  • renovate/eslint-config-prettier-10.x
  • renovate/eslint-plugin-testing-library-7.x
  • renovate/major-react-monorepo
  • renovate/major-react-router-monorepo
  • renovate/major-typescript-eslint-monorepo
  • renovate/react-19.x
  • renovate/react-dom-19.x
  • renovate/react-inspector-6.x
  • renovate/sass-loader-16.x
  • 0.1.0
  • 0.1.1
  • 0.1.2
  • 0.1.6
  • 0.1.7
  • 1.0.2
  • 1.0.3
  • 1.0.5
  • 1.0.6
  • 1.0.7
  • 1.0.8
  • 1.0.9
  • 1.1.0
  • 1.2.0
  • 1.2.1
  • 1.2.4-beta.1
  • V1.11.0
  • v1.10.0
  • v1.10.1
  • v1.10.2
  • v1.12.0
  • v1.12.1
  • v1.2.0
  • v1.2.1
  • v1.2.2
  • v1.2.3
  • v1.2.4
  • v1.2.4-beta.1
  • v1.3.0
  • v1.4.0
  • v1.4.1
  • v1.4.2
  • v1.4.3
  • v1.4.4
  • v1.5.0
  • v1.5.1
  • v1.6.0
  • v1.6.1
  • v1.6.2
  • v1.6.3
  • v1.6.4
  • v1.6.5
  • v1.7.0
  • v1.7.1
  • v1.7.2
  • v1.7.3
  • v1.7.4
  • v1.8.0
  • v1.8.1
  • v1.8.2
  • v1.8.3
  • v1.9.0
  • v1.9.1
  • v1.9.2
  • v1.9.3
  • v1.9.4
  • v2.0.0
  • v2.0.1
  • v2.0.2
  • v2.1.0
  • v2.1.1
  • v2.2.0
  • v2.2.1
  • v2.2.2
  • v2.3.0
  • v2.3.1
  • v2.4.0
  • v2.5.0
  • v2.5.1
  • v2.6.0
  • v2.7.0
  • v2.7.1
  • v2.7.2
  • v2.8.0
  • v3.0.0
  • v3.1.0
  • v3.1.1
103 results

Target

Select target project
  • web-et-numerique/factory/llle_project/ecolyo
1 result
Select Git revision
  • build
  • build-dev
  • build-test
  • dev
  • lint/testing-libraby-plugin
  • master
  • renovate/copy-webpack-plugin-13.x
  • renovate/couchdb-3.x
  • renovate/cozy-client-49.x
  • renovate/cozy-device-helper-3.x
  • renovate/cozy-flags-4.x
  • renovate/cozy-harvest-lib-32.x
  • renovate/cozy-harvest-lib-9.x
  • renovate/cozy-realtime-5.x
  • renovate/cozy-scripts-8.x
  • renovate/devdependencies-(non-major)
  • renovate/eslint-9.x
  • renovate/eslint-config-prettier-10.x
  • renovate/eslint-plugin-testing-library-7.x
  • renovate/major-react-monorepo
  • renovate/major-react-router-monorepo
  • renovate/major-typescript-eslint-monorepo
  • renovate/react-19.x
  • renovate/react-dom-19.x
  • renovate/react-inspector-6.x
  • renovate/sass-loader-16.x
  • 0.1.0
  • 0.1.1
  • 0.1.2
  • 0.1.6
  • 0.1.7
  • 1.0.2
  • 1.0.3
  • 1.0.5
  • 1.0.6
  • 1.0.7
  • 1.0.8
  • 1.0.9
  • 1.1.0
  • 1.2.0
  • 1.2.1
  • 1.2.4-beta.1
  • V1.11.0
  • v1.10.0
  • v1.10.1
  • v1.10.2
  • v1.12.0
  • v1.12.1
  • v1.2.0
  • v1.2.1
  • v1.2.2
  • v1.2.3
  • v1.2.4
  • v1.2.4-beta.1
  • v1.3.0
  • v1.4.0
  • v1.4.1
  • v1.4.2
  • v1.4.3
  • v1.4.4
  • v1.5.0
  • v1.5.1
  • v1.6.0
  • v1.6.1
  • v1.6.2
  • v1.6.3
  • v1.6.4
  • v1.6.5
  • v1.7.0
  • v1.7.1
  • v1.7.2
  • v1.7.3
  • v1.7.4
  • v1.8.0
  • v1.8.1
  • v1.8.2
  • v1.8.3
  • v1.9.0
  • v1.9.1
  • v1.9.2
  • v1.9.3
  • v1.9.4
  • v2.0.0
  • v2.0.1
  • v2.0.2
  • v2.1.0
  • v2.1.1
  • v2.2.0
  • v2.2.1
  • v2.2.2
  • v2.3.0
  • v2.3.1
  • v2.4.0
  • v2.5.0
  • v2.5.1
  • v2.6.0
  • v2.7.0
  • v2.7.1
  • v2.7.2
  • v2.8.0
  • v3.0.0
  • v3.1.0
  • v3.1.1
103 results
Show changes
Commits on Source (4)
......@@ -86,14 +86,24 @@ const TermsView = () => {
onChange={handleGCUValidate}
checked={GCUValidation}
/>
<span
onClick={() => toggleCGUModal()}
dangerouslySetInnerHTML={{ __html: t('dataShare.validCGU') }}
/>
<span
onClick={() => toggleLegalNoticeModal()}
dangerouslySetInnerHTML={{ __html: t('dataShare.validLegal') }}
/>
<div>
<span
onClick={e => {
e.preventDefault()
toggleCGUModal()
}}
dangerouslySetInnerHTML={{ __html: t('dataShare.validCGU') }}
/>
<span
onClick={e => {
e.preventDefault()
toggleLegalNoticeModal()
}}
dangerouslySetInnerHTML={{
__html: t('dataShare.validLegal'),
}}
/>
</div>
</label>
</div>
<div className="terms-footer">
......
......@@ -137,22 +137,24 @@ exports[`TermsView component should be rendered correctly 1`] = `
onChange={[Function]}
type="checkbox"
/>
<span
dangerouslySetInnerHTML={
Object {
"__html": "dataShare.validCGU",
<div>
<span
dangerouslySetInnerHTML={
Object {
"__html": "dataShare.validCGU",
}
}
}
onClick={[Function]}
/>
<span
dangerouslySetInnerHTML={
Object {
"__html": "dataShare.validLegal",
onClick={[Function]}
/>
<span
dangerouslySetInnerHTML={
Object {
"__html": "dataShare.validLegal",
}
}
}
onClick={[Function]}
/>
onClick={[Function]}
/>
</div>
</label>
</div>
<div
......
@import 'src/styles/base/color';
@import 'src/styles/base/mixins';
@include checkBox();
.terms-wrapper {
padding: 0rem 1.5rem 0 1.5rem;
box-sizing: border-box;
......@@ -21,12 +23,15 @@
.terms-content {
max-width: 45rem;
margin: auto;
.action {
cursor: pointer;
color: $gold-shadow;
}
}
.dataShare-content-wrapper,
.dataShare-content-root {
width: inherit;
}
@include checkBox();
.terms-footer {
max-width: 45rem;
......@@ -43,12 +48,3 @@
}
}
}
button.action {
appearance: none;
cursor: pointer;
display: contents;
background: transparent;
border: none;
padding: 0;
color: $gold-shadow;
}
......@@ -645,7 +645,7 @@
"link1": "<a href=\"https://demarches.toodego.com/sve/proteger-mes-donnees-personnelles/\">https://demarches.toodego.com/sve/proteger-mes-donnees-personnelles/</a>",
"validDataConsent": "Je consens au traitement de mes données tel que décrit ci-dessus.",
"validCGU": "Je valide les <span class=\"action\">Conditions Générales d’Utilisation</span> ",
"validLegal": " du service et ai pris connaissance des <span class=\"action\"> Mentions Légales </span> de celui-ci.",
"validLegal": " du service et ai pris connaissance des <span class=\"action\">Mentions Légales</span> de celui-ci.",
"button_accept": "C'est parti !",
"accessibility": {
"button_accept": "Accepter les conditions générales d'utilisation"
......
......@@ -1111,20 +1111,6 @@ describe('dateChart service', () => {
)
expect(result).toEqual(1)
})
it('should return index -1 for year, 2024', () => {
const selectedDate: DateTime = DateTime.fromISO(
'2024-01-01T00:00:00.000Z',
{
zone: 'utc',
}
)
const result = dateChartService.defineDateIndex(
TimeStep.YEAR,
selectedDate
)
expect(result).toEqual(-1)
})
it('should return index 0 for month, 05-2020', () => {
const selectedDate: DateTime = DateTime.fromISO(
'2020-05-01T00:00:00.000Z',
......
......@@ -256,10 +256,10 @@ export default class DateChartService {
}
/**
* Return the date incremented in function of the timestep
* Return the chart index in function of the timestep and a given date
* @param {TimeStep} timeStep - current time step
* @param {DateTime} selectedDate - current selected date
* @returns {number} - incremented date
* @returns {number} - index
*/
public defineDateIndex(timeStep: TimeStep, selectedDate: DateTime): number {
const today = DateTime.local().setZone('utc', {
......@@ -267,11 +267,7 @@ export default class DateChartService {
})
switch (timeStep) {
case TimeStep.YEAR:
if (today.year >= selectedDate.year) {
return Math.trunc((today.year - selectedDate.year) / 5)
} else {
return Math.trunc((today.year - selectedDate.year) / 5) - 1
}
return Math.trunc((today.year - selectedDate.year) / 5)
case TimeStep.MONTH:
return today.year - selectedDate.year
case TimeStep.DAY:
......