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

Update data plotly asset path for LWC 3.8.4 + IGN data as objet #64

Merged
merged 3 commits into from
Jan 27, 2025

Conversation

nworr
Copy link
Collaborator

@nworr nworr commented Jan 23, 2025

Since LWC 3.8.4

data-plotly js file is named plotly-custom.min.js (3liz/lizmap-web-client@1311074)

Use proper Proxy Class

For IGN provider : add json_encode to data , since request content is no more "JSON parsed" on js side

@nworr nworr requested review from nboisteault and mdouchin January 23, 2025 15:47
@nworr nworr changed the title Update data plotly asset path for LWC 3.8.5 + IGN data as objet Update data plotly asset path for LWC 3.8.4 + IGN data as objet Jan 23, 2025
if (file_exists(jApp::wwwPath('assets/js/dataviz/plotly-custom.min.js'))) {
$js[] = $bp.'assets/js/dataviz/plotly-custom.min.js';
$js[] = $bp.'js/dataviz/dataviz.js';
}
if (file_exists(jApp::wwwPath('assets/js/dataviz/plotly-latest.min.js'))) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (file_exists(jApp::wwwPath('assets/js/dataviz/plotly-latest.min.js'))) {
elseif (file_exists(jApp::wwwPath('assets/js/dataviz/plotly-latest.min.js'))) {

@nworr nworr force-pushed the alti-profil-lwc8-5-plotly branch from b7975d5 to cf7f2ec Compare January 24, 2025 08:00
@nworr nworr force-pushed the alti-profil-lwc8-5-plotly branch from cf7f2ec to 3f7373a Compare January 24, 2025 08:04
@nworr
Copy link
Collaborator Author

nworr commented Jan 24, 2025

#55 may be related

Copy link
Collaborator

@Gustry Gustry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

altiProfil/classes/altiProfil.listener.php Outdated Show resolved Hide resolved
}else{
$errorMsg = "AltiProfil IGN wrong request";
\jLog::log($errorMsg);
return '{"error msg": "'.$data.'" }';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side note, but it would be nice to edit the docstring at the same time, to help IDE with functions, code quality, QA tools such as PHP Stan (later, not yet added I know) ;-)

Co-authored-by: Étienne Trimaille <[email protected]>
@nworr nworr merged commit c01d863 into arno974:master Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants