Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New release - release/components-w22 #11799

Merged
merged 24 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
1bc1a65
fix(i18n): add missing translations [CDS 3007]
aboungnaseng-ovhcloud May 20, 2024
d414f36
fix(rancher): disable refetch pooling on create page (#11361)
lionel95200x May 20, 2024
889326d
sync: master to develop
ovh-ux-cds May 21, 2024
8349b7e
sync: master to develop
ovh-ux-cds May 21, 2024
0029df4
fix(i18n): add missing translations [CDS 3010]
ovh-ux-cds May 21, 2024
3cdc752
docs: update CONTRIBUTORS and MAINTAINERS (#11764)
anooparveti May 22, 2024
4fa081e
fix(i18n): add missing translations [CDS 3011]
anooparveti May 22, 2024
ff19aaf
sync: master to develop
ovh-ux-cds May 23, 2024
b4fdd65
sync: master to develop
ovh-ux-cds May 23, 2024
5602131
sync: master to develop
ovh-ux-cds May 23, 2024
96a4555
fix(i18n): add missing translations [CDS 3013]
ovh-ux-cds May 23, 2024
4af99f8
feat(pci-rancher): add request tagger on each request (#11282)
lionel95200x May 23, 2024
b58e85e
fix(pack): set previous title to correct value for meetings
May 16, 2024
0862733
refactor(pci): remove users angularjs section
frenautvh May 16, 2024
ee6afa1
feat(ovh-order-tracking): remove info banner of bm delay
sachinrameshn May 20, 2024
f5bf926
fix(catalog): migrate e2e tests to BDD tests
Apr 22, 2024
2f64526
fix(pci.project): enable asian users to activate discovery project (#…
selm3n May 23, 2024
d78cd4a
feat(generator): update e2e test script
May 13, 2024
f3eb9fc
feat(*): Helpcenter GA - Migration to SNOW - batch 1 (#10974)
darsene May 23, 2024
759a310
feat(dedicated): missing guidance to reduce kyc upload issues (#11155)
MaximeBajeux May 23, 2024
dde7809
feat: create ng-ovh-chart component (#11356)
lizardK May 23, 2024
d5cadb5
feat(dedicated.vmware): onboarding page updates (#11611)
dectotam May 23, 2024
df4eb07
Revert "feat(*): Helpcenter GA - Migration to SNOW - batch 1 (#10974)"
ghyenne May 24, 2024
e13b754
fix(web): resolve subdomain record exist issue
sachinrameshn May 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 9 additions & 1 deletion CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ Adrien Carreira <adrien@xcid.fr>
AlvΓ©ric Alie
Alexandre G.-Raymond <alex@ndre.gr>
Alex Boungnaseng <alex.boungnaseng.ext@ovhcloud.com>
Amandine Dectot <amandine.dectot.ext@ovhcloud.com>
Antony Marion <antony.marion.ext@ovhcloud.com>
Anoop N <anoop.n@ovhcloud.com>
Antoine Leblanc <antoine.leblanc@ovhcloud.com>
Axel Peter
Benjamin Coenen
Benjamin Lepine
Benjamin Maisonnas <ben@wainei.net>
Benjamin Ziehms <benjaminherlin@gmail.com>
Camille Gicquel
Expand All @@ -28,7 +31,7 @@ Cheikh Kane Diallo
Chloe Renaud
Christophe Rannou
Cyril Biencourt <cyril.biencourt@ovhcloud.com>
Cyrille Bourgois <cyrille.bourgois@ovhcloud.com>
Cyrille Bourgois
Cyrille Meichel
David Arsène <david.arsene.ext@ovhcloud.com>
David Krolak <david.krolak@ovhcloud.com>
Expand Down Expand Up @@ -71,11 +74,13 @@ Mathieu Dupont
Mathieu Garcia <mathieu.garcia@ovhcloud.com>
Mathieu Tremblay
Matthias Lachevre <matthias.lachevre@ovhcloud.com>
Maxime Bajeux <maxime.bajeux.ext@ovhcloud.com>
Maxime Feron <maxime.feron@ovhcloud.com>
Mohammed Zahaf
Nicolas Baptista
Nicolas Pierre-Charles <nicolas.pierre-charles.ext@ovhcloud.com>
Nicolas Pennec
Omar Alkabouss Moussana <omar.alkabouss-moussana.ext@ovhcloud.com>
Pierre De Paepe <pierre.de-paepe@ovhcloud.com>
Pierre Gronlier <pierre@gronlier.fr>
Pierre Kuhner <pierre.kuhner@ovhcloud.com>
Expand All @@ -85,6 +90,8 @@ Ravindra Adireddy
RΓ©mi Collignon-Ducret
Romain Fougier
Sachin Ramesh <sachin.ramesh@ovhcloud.com>
Selmen Akrmi <selmen.akrmi.ext@ovhcloud.com>
Soufien Mhelhali <soufien.mhelhali.ext@ovhcloud.com>
Stephanie Moallic <stephanie.moallic@ovhcloud.com>
Steeve Vanderstocken <steeve.vanderstocken@ovhcloud.com>
Steven Guiheux <steven.guiheux+github@gmail.com>
Expand All @@ -94,6 +101,7 @@ Thibaut Rousseau <thibaut.rousseau.44@gmail.com>
Thomas SOΓ‹TE <thomas.soete@ovhcloud.com>
Varun Shivaprasad
Vikash Singh
Vincent Bonmarchand <vincent.bonmarchand.ext@ovhcloud.com>
Vincent Casse <vincent@casse.me>
Wassim DHIF <wassim.dhif@ovhcloud.com>
Yann Lojewski <yann.lojewski.ext@ovhcloud.com>
Expand Down
7 changes: 4 additions & 3 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@ Amandine Dectot <amandine.dectot.ext@ovhcloud.com>
Anoop N <anoop.n@ovhcloud.com>
Antony Marion <antony.marion.ext@ovhcloud.com>
Anthony Cavalloni <anthony.cavalloni@ovhcloud.com>
Baptiste Lemoine <baptiste.lemoine.ext@ovhcloud.com>
Benjamin LΓ©pine <benjamin.lepine.ext@ovhcloud.com>
Bruno Marques <bruno.marques.ext@ovhcloud.com>
Cyril Biencourt <cyril.biencourt@ovhcloud.com>
David Arsène <david.arsene.ext@ovhcloud.com>
Guillaume Hyenne <guillaume.hyenne@ovhcloud.com>
Jacques Larique <jacques.larique.ext@ovhcloud.com>
Lionel Bueno <lionel.bueno.ext@ovhcloud.com>
Maxime Bajeux <maxime.bajeux.ext@ovhcloud.com>
Nicolas Pierre-Charles <nicolas.pierre-charles.ext@ovhcloud.com>
Omar Alkabouss Moussana <omar.alkabouss-moussana.ext@ovhcloud.com>
Quentin Pavy <quentin.pavy.ext@ovhcloud.com>
Sachin Ramesh <sachin.ramesh@ovhcloud.com>
Soufien Mhelhali <soufien.mhelhali.ext@ovhcloud.com>
Steeve Vanderstocken <steeve.vanderstocken@ovhcloud.com>
Vincent Bonmarchand <vincent.bonmarchand.ext@ovhcloud.com>
Yann Lojewski <yann.lojewski.ext@ovhcloud.com>
29 changes: 29 additions & 0 deletions packages/components/ng-ovh-chart/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
BSD 3-Clause License

Copyright (c) 2013-present, OVH SAS
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the copyright holders nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
44 changes: 44 additions & 0 deletions packages/components/ng-ovh-chart/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# ng-ovh-chart

> ChartJS library wrapper for AngularJS.

## Install

```sh
$ yarn add @ovh-ux/ng-ovh-chart
```

## Usage

```js
import angular from 'angular';
import ngOvhChart from '@ovh-ux/ng-ovh-chart';

angular.module('myApp', [ngOvhChart]);
```

### Directive

_Example simple configuration_

```html
<div
data-chart
data-chartjs="$ctrl.chartJsConfig"
data-auto-reload="true"
></div>
```

## Test

```sh
$ yarn test
```

## Contributing

Always feel free to help out! Whether it's [filing bugs and feature requests](https://github.com/ovh/manager/issues/new) or working on some of the [open issues](https://github.com/ovh/manager/issues), our [contributing guide](https://github.com/ovh/manager/blob/master/CONTRIBUTING.md) will help get you started.

## License

[BSD-3-Clause](LICENSE) Β© OVH SAS
50 changes: 50 additions & 0 deletions packages/components/ng-ovh-chart/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"name": "@ovh-ux/ng-ovh-chart",
"version": "1.0.0",
"private": true,
"description": "ChartJS library wrapper for AngularJS",
"keywords": [
"angularjs",
"chart"
],
"homepage": "https://github.com/ovh/manager/tree/master/packages/components/ng-ovh-chart#readme",
"bugs": {
"url": "https://github.com/ovh/manager/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ovh/manager.git",
"directory": "packages/components/ng-ovh-chart"
},
"license": "BSD-3-Clause",
"author": "OVH SAS",
"type": "module",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"browser": "./dist/umd/ng-ovh-chart.js",
"files": [
"dist"
],
"scripts": {
"build": "rollup -c --environment BUILD:production",
"dev": "rollup -c --environment BUILD:development",
"dev:watch": "yarn run dev --watch",
"prepare": "yarn run build",
"start": "lerna exec --stream --scope='@ovh-ux/ng-ovh-chart' --include-dependencies -- yarn run build",
"start:dev": "lerna exec --stream --scope='@ovh-ux/ng-ovh-chart' --include-dependencies -- yarn run dev",
"start:watch": "lerna exec --stream --parallel --scope='@ovh-ux/ng-ovh-chart' --include-dependencies -- yarn run dev:watch"
},
"dependencies": {
"lodash": "^4.17.15"
},
"devDependencies": {
"@ovh-ux/component-rollup-config": "^13.0.1"
},
"peerDependencies": {
"angular": "~1.6",
"chart.js": "^4.4.2",
"chartjs-adapter-date-fns": "^3.0.0",
"chartjs-plugin-zoom": "^2.0.1",
"date-fns": "^2.24.0"
}
}
28 changes: 28 additions & 0 deletions packages/components/ng-ovh-chart/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import rollupConfig from '@ovh-ux/component-rollup-config';

const config = rollupConfig({
input: './src/index.js',
});

const outputs = [
config.es({
output: {
sourcemap: false,
},
}),
];

if (process.env.BUILD === 'production') {
outputs.push(config.cjs());
outputs.push(
config.umd({
output: {
globals: {
angular: 'angular',
},
},
}),
);
}

export default outputs;
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,19 @@ export const CHARTJS = {
},
options: {
scales: {
yAxes: [],
xAxes: [],
y: {},
x: {},
},
elements: {
point: {
radius: 0,
},
},
legend: {
position: 'bottom',
display: true,
plugins: {
legend: {
position: 'bottom',
display: true,
},
},
},
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import set from 'lodash/set';
import uniqueId from 'lodash/uniqueId';
import moment from 'moment';
import Chart from 'chart.js/dist/Chart';

import template from './chartjs.html';
import Chart from 'chart.js/auto';
import zoomPlugin from 'chartjs-plugin-zoom';
import 'chartjs-adapter-date-fns';
import template from './template.html';

export default /* @ngInject */ () => ({
restrict: 'A',
scope: {
pciChartjs: '=',
chartjs: '=',
utils: '=?',
autoReload: '=?',
},
Expand All @@ -17,38 +17,32 @@ export default /* @ngInject */ () => ({
template,
link(scope, element, attrs, controller) {
const canvas = element.children().get(0);
canvas.id = uniqueId('pciChartjs');
canvas.id = uniqueId('chartjs');
set(controller, 'ctx', canvas.getContext('2d'));
},
controller: /* @ngInject */ function directiveController($scope, $translate) {
const lang = $translate.use();
let language;
if (['en_GB', 'es_US', 'fr_CA'].includes(lang)) {
language = lang.toLowerCase().replace('_', '-');
} else {
[language] = lang.split('_');
}
moment.locale(language);
controller: /* @ngInject */ function directiveController($scope) {
Chart.register(zoomPlugin);

this.createChart = function createChart(data) {
if (this.chartInstance) {
this.chartInstance.destroy();
}
this.chartInstance = new Chart(this.ctx, data || this.pciChartjs);
this.chartInstance = new Chart(this.ctx, data || this.chartjs);
};

this.$onInit = function $onInit() {
if (this.autoReload) {
$scope.$watch('$ctrl.pciChartjs', (data) => {
$scope.$watch('$ctrl.chartjs', (data) => {
if (data) {
this.utils.refresh();
}
});

$scope.$watchCollection('$ctrl.pciChartjs.data.datasets', () => {
$scope.$watchCollection('$ctrl.chartjs.data.datasets', () => {
this.utils.refresh();
});

$scope.$watchCollection('$ctrl.pciChartjs.data', () => {
$scope.$watchCollection('$ctrl.chartjs.data', () => {
this.utils.refresh();
});
}
Expand All @@ -58,7 +52,7 @@ export default /* @ngInject */ () => ({
if (this.chartInstance) {
this.chartInstance.update();
} else {
this.createChart(this.pciChartjs);
this.createChart(this.chartjs);
}
},
};
Expand Down
Loading
Loading