-
Notifications
You must be signed in to change notification settings - Fork 747
fix(amazonq): remove the depedency of the CDN js script. #7587
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -148,6 +148,10 @@ export class CommonAuthViewProvider implements WebviewViewProvider { | |||
| const entrypoint = | ||||
| serverHostname !== undefined ? Uri.parse(serverHostname).with({ path: `/${this.source}` }) : scriptUri | ||||
|
|
||||
| // Get Vue.js from dist/libs directory | ||||
| const vueUri = Uri.joinPath(assetsPath, 'dist', 'libs', 'vue.min.js') | ||||
| const vueScript = webview.asWebviewUri(vueUri) | ||||
|
|
||||
| return ` | ||||
| <!DOCTYPE html> | ||||
| <html lang="en"> | ||||
|
|
@@ -158,7 +162,7 @@ export class CommonAuthViewProvider implements WebviewViewProvider { | |||
| <title>Base View Extension</title> | ||||
| </head> | ||||
| <body> | ||||
| <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/3.4.4/vue.global.prod.min.js"></script> | ||||
| <script src="${vueScript.toString()}"></script> | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does the version (3.4.4) matter? If the version changes, would it break?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think so, did local tested with the generated vsix for the amazon Q sign in and sign out, didn't see any issue for the login ux with vue.js file in aws-toolkit-vscode/packages/core/package.json Line 576 in bfdb0eb
|
||||
| <script> | ||||
| const vscode = acquireVsCodeApi(); | ||||
| </script> | ||||
|
|
||||
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.
please test both Q and toolkit
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.
verified both Q and toolkit can login of the generated vsix. following is the toolkit login, Q login pasted in the pr description
