Skip to content

Commit

Permalink
Merge pull request #22502 from nextcloud/fix/12302/oauth2_table
Browse files Browse the repository at this point in the history
Pimp Oauth2 table
  • Loading branch information
rullzer authored Aug 31, 2020
2 parents 5fb1d8d + 5659e69 commit 8c9f3a5
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 18 deletions.
2 changes: 1 addition & 1 deletion apps/oauth2/js/oauth2.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/oauth2/js/oauth2.js.map

Large diffs are not rendered by default.

18 changes: 7 additions & 11 deletions apps/oauth2/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,8 @@
<table v-if="clients.length > 0" class="grid">
<thead>
<tr>
<th id="headerName" scope="col">
{{ t('oauth2', 'Name') }}
</th>
<th id="headerRedirectUri" scope="col">
{{ t('oauth2', 'Redirection URI') }}
</th>
<th id="headerClientIdentifier" scope="col">
{{ t('oauth2', 'Client Identifier') }}
</th>
<th id="headerSecret" scope="col">
{{ t('oauth2', 'Secret') }}
<th id="headerContent">

</th>
<th id="headerRemove">
&nbsp;
Expand Down Expand Up @@ -127,3 +118,8 @@ export default {
},
}
</script>
<style scoped>
table {
max-width: 800px;
}
</style>
29 changes: 24 additions & 5 deletions apps/oauth2/src/components/OAuthItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,26 @@
-->
<template>
<tr>
<td>{{ name }}</td>
<td>{{ redirectUri }}</td>
<td><code>{{ clientId }}</code></td>
<td><code>{{ renderedSecret }}</code><a class="icon-toggle has-tooltip" :title="t('oauth2', 'Show client secret')" @click="toggleSecret" /></td>
<td>
<table class="inline">
<tr>
<td>{{ t('oauth2', 'Name') }}</td>
<td>{{ name }}</td>
</tr>
<tr>
<td>{{ t('oauth2', 'Redirection URI') }}</td>
<td>{{ redirectUri }}</td>
</tr>
<tr>
<td>{{ t('oauth2', 'Client Identifier') }}</td>
<td><code>{{ clientId }}</code></td>
</tr>
<tr>
<td>{{ t('oauth2', 'Secret') }}</td>
<td><code>{{ renderedSecret }}</code><a class="icon-toggle has-tooltip" :title="t('oauth2', 'Show client secret')" @click="toggleSecret" /></td>
</tr>
</table>
</td>
<td class="action-column">
<span><a class="icon-delete has-tooltip" :title="t('oauth2', 'Delete')" @click="$emit('delete', id)" /></span>
</td>
Expand Down Expand Up @@ -79,6 +95,9 @@ export default {
td code {
display: inline-block;
vertical-align: middle;
padding: 3px;
}
table.inline td {
border: none;
padding: 5px;
}
</style>

0 comments on commit 8c9f3a5

Please sign in to comment.