-
Notifications
You must be signed in to change notification settings - Fork 0
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
[ALS-5911] Api Page, Refactor #11
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
c926c3c
to
62e880f
Compare
[ALS-5911] Api Page refactor
62e880f
to
ee45535
Compare
}, | ||
}; | ||
|
||
export const domain = { |
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.
Not sure why this is here
|
||
<div class="flex justify-between items-center"> | ||
<span class="uuid">{data.cell}</span> | ||
<CopyButton {buttonText} itemToCopy={data.cell} classes={buttonClasses} /> |
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.
Classes works fine here. I did see a 'style' that could allow you to do <CopyButton class={...} />
But it looks kinda weird. (I was going to use it to pass a style down to the ThSort component.)
<script lang="ts">
let clazz = '';
export { clazz as class };
...
</script>
<button class={`whatever ${clazz}`} />
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 am fine with this pattern if you want to do stuff like that. I don't feel very strongly either way. One difference is that I made it an array, and if we called it class I think it would need to just be a string.
export interface User { | ||
uuid?: string; | ||
email?: string; | ||
privileges?: string[]; |
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.
Is everything in this interface optional, or are there some things we can guarantee, like at least an empty privileges array?
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 made it all optional for now, I think this is something we should revisit when we do the true login.
No description provided.