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

Fix 5204 Use standard syntax for web code sample when loading the appwrite script #336

Conversation

spontaneouscombustion
Copy link

What does this PR do?

fixes the sample web code to use the standard syntax instead of self-closing syntax when loading the appwrite script

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)

Related PRs and Issues

appwrite/appwrite#5204

Have you read the Contributing Guidelines on issues?

Yes

@vercel
Copy link

vercel bot commented Mar 10, 2023

@spontaneouscombustion is attempting to deploy a commit to the appwrite Team on Vercel.

A member of the Team first needs to authorize it.

@x0samnan
Copy link

@spontaneouscombustion This PR right now is breaking the build and probably can't be merged as it as. Please, check this and try to fix it.

@spontaneouscombustion
Copy link
Author

sorry. i am not familiar with svelte. I just noticed about the script end tag on the same file. that maybe the cause of this build issue. added commit to fix it.

@x0samnan
Copy link

LGTM!
@stnguyen90 Can you have a look at this PR?

Copy link
Contributor

@stnguyen90 stnguyen90 left a comment

Choose a reason for hiding this comment

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

Great PR! 🤯 We left some comments during the review, please check them out.

@@ -14,7 +14,7 @@

const example1 = `import { Client } from 'appwrite';`;
const example2 =
`<script src="https://cdn.jsdelivr.net/npm/appwrite@${$versions['client-web']}" />
`<script src="https://cdn.jsdelivr.net/npm/appwrite@${$versions['client-web']}"></script` + `>`
Copy link
Contributor

Choose a reason for hiding this comment

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

There's a problem that's causing a build error. Please make sure the console builds successfully.

@spontaneouscombustion
Copy link
Author

removed excess backtick.

@TorstenDittmann
Copy link
Contributor

@spontaneouscombustion looks good, can you run the formatter and we can merge then 👍🏻

@x0samnan
Copy link

@spontaneouscombustion Follow along this and the issue will be fixed and will be ready to merge.

@TorstenDittmann
Copy link
Contributor

@spontaneouscombustion Follow along this and the issue will be fixed and will be ready to merge.

You can just run npm run format on our repo

@stnguyen90 stnguyen90 self-requested a review March 27, 2023 17:42
Copy link
Contributor

@stnguyen90 stnguyen90 left a comment

Choose a reason for hiding this comment

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

@spontaneouscombustion please see Torsten's comment.

@stnguyen90
Copy link
Contributor

@spontaneouscombustion please run npm run format to fix the linting problem.

@stnguyen90
Copy link
Contributor

Closing due to inactivity.

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.

🐛 Bug Report: Web code sample uses self-closing syntax for script tag
4 participants