- 
 
- 
  Notifications
 You must be signed in to change notification settings 
- Fork 511
feat: introduce donation links in update flow #2581
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
Conversation
d386d3c to
 491eca7  
 Compare
 
 1721908 to
 7eae0db  
 Compare
 
  
 
 arduino-ide-extension/src/browser/dialogs/version-welcome-dialog.tsx
 
 Outdated
 
 Show resolved
 Hide resolved
 
 7eae0db to
 19cb517  
 Compare
 
  
 
 arduino-ide-extension/src/browser/contributions/check-for-ide-updates.ts
 
 Outdated
 
 Show resolved
 Hide resolved
 
  
 
 arduino-ide-extension/src/browser/dialogs/version-welcome-dialog.tsx
 
 Outdated
 
 Show resolved
 Hide resolved
 
  
 
 arduino-ide-extension/src/browser/dialogs/ide-updater/ide-updater-dialog.tsx
 
 Outdated
 
 Show resolved
 Hide resolved
 
 19cb517 to
 45a8a1d  
 Compare
 
  
 
 arduino-ide-extension/src/browser/contributions/check-for-ide-updates.ts
 
 Outdated
 
 Show resolved
 Hide resolved
 
  
 
 arduino-ide-extension/src/browser/dialogs/ide-updater/ide-updater-dialog.tsx
 
 Outdated
 
 Show resolved
 Hide resolved
 
 df1d944 to
 19bf879  
 Compare
 
 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.
The IDE might want to purify the HTML here for security reasons. One can submit an executable translation that will be merged without notice. dompurify is already available from Theia's dependencies.
yarn why dompurify yarn why v1.21.1 [1/4] 🤔 Why do we have the module "dompurify"...? [2/4] 🚚 Initialising dependency graph... [3/4] 🔍 Finding dependency... [4/4] 🚡 Calculating file sizes... => Found "dompurify@2.4.7" info Reasons this module exists - "_project_#arduino-ide-extension#@theia#core" depends on it - Hoisted from "_project_#arduino-ide-extension#@theia#core#dompurify" info Disk size without dependencies: "740KB" info Disk size with unique dependencies: "740KB" info Disk size with transitive dependencies: "740KB" info Number of shared dependencies: 0 ✨ Done in 1.05s.
Pinning it in the package.json and purifying the HTML should not hurt. What do you think?
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.
I've changed this specific statement to use innerText instead of innerHTML which was unnecessary.
This should already pretty be safe but I might keep the sanitizer anyway
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.
Thanks Giacomo!
Show donate dialog after the first time a first IDE version is loaded
Pin same version of `dompurify` used in Theia
df0229c to
 08d83dc  
 Compare
 
 
 
 
 
 martin-eden
 
 
 
 commented
 Dec 9, 2024 
 
 
 
Open source is love!
I wonder who needs that feature? Lot of feature requests from end users?
What is next? Add tracking and ads to IDE?
Uh oh!
There was an error while loading. Please reload this page.
Motivation
IDEUpdaterDialogwith donate linkChange description
Other information
Reviewer checklist