- {title} + + {#each data.articles as { id, title } (id)} + + + {title} + - - Edit - - Delete article + + Edit + + Delete article - - Caution! - Deleting this article will irretrievably erase all data. - + + Caution! + Deleting this article will irretrievably erase all data. + - { - return async ({ update }) => { - await update(); - window.location.hash = "!"; - }; - }} - > - + { + return async ({ update }) => { + await update(); + window.location.hash = "!"; + }; + }} + > + - Delete article - - - - - {/each} + Delete article + + + + + {/each} +
- {username} ({permission_level}) + + {#each data.collaborators as { website_id, user_id, permission_level, user: { username } } (`${website_id}-${user_id}`)} + + + {username} ({permission_level}) + - - - Update collaborator + + + Update collaborator - { - return async ({ update }) => { - await update({ reset: false }); - window.location.hash = "!"; - }; - }} - > - + { + return async ({ update }) => { + await update({ reset: false }); + window.location.hash = "!"; + }; + }} + > + - - Permission level: - - 10 - View - 20 - Edit - 30 - Manage - - + + Permission level: + + 10 - View + 20 - Edit + 30 - Manage + + - Update collaborator - - - - Remove collaborator + Update collaborator + + + + Remove collaborator - Do you really want to remove the collaborator? + Do you really want to remove the collaborator? - { - return async ({ update }) => { - await update(); - window.location.hash = "!"; - }; - }} - > - + { + return async ({ update }) => { + await update(); + window.location.hash = "!"; + }; + }} + > + - Remove collaborator - - - - - {/each} + Remove collaborator + + + + + {/each} +