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

DRAFT: Introduction of templates #105

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

GregHolmes
Copy link

No description provided.

@GregHolmes GregHolmes self-assigned this Jun 27, 2024
}

const otherMembers = await space.members.getOthers()
document.getElementById('avatars').style.width = calculateTotalWidth(otherMembers)

Choose a reason for hiding this comment

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

319 lines of code in an example IMHO feels too long. What are your thoughts here?

);
};

export default Avatars;

Choose a reason for hiding this comment

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

I understand we want less files, and I am on board with this, but now we have very long files that are harder to understand. Given these examples are meant to be read and understood by devs, I am concerned this is too complicated.

Copy link
Contributor

Choose a reason for hiding this comment

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

I would suggest using typescript, I think it's a standard now and our ICP would expect code samples in typescript

examples/vanilla-avatar-stack-2/script.js Outdated Show resolved Hide resolved
examples/vanilla-avatar-stack-2/script.js Outdated Show resolved Hide resolved
examples/vanilla-avatar-stack-2/script.js Outdated Show resolved Hide resolved
examples/vanilla-avatar-stack-2/script.js Outdated Show resolved Hide resolved
examples/vanilla-avatar-stack-2/script.js Outdated Show resolved Hide resolved
examples/vanilla-avatar-stack-2/script.js Outdated Show resolved Hide resolved
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.

4 participants