-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
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'))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (file_exists(jApp::wwwPath('assets/js/dataviz/plotly-latest.min.js'))) { | |
elseif (file_exists(jApp::wwwPath('assets/js/dataviz/plotly-latest.min.js'))) { |
b7975d5
to
cf7f2ec
Compare
cf7f2ec
to
3f7373a
Compare
#55 may be related |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
}else{ | ||
$errorMsg = "AltiProfil IGN wrong request"; | ||
\jLog::log($errorMsg); | ||
return '{"error msg": "'.$data.'" }'; |
There was a problem hiding this comment.
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]>
Since LWC 3.8.4
data-plotly
js file is namedplotly-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