Skip to content

Commit

Permalink
Implemented: user id in statistics and add clipboard copy #88
Browse files Browse the repository at this point in the history
  • Loading branch information
rizen committed Apr 11, 2024
1 parent d9547f1 commit 846f665
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/change-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ outline: deep
* Added filesystem utils.
* Updated existing code to use filesystem utils.
* Implemented: add warning when someone generates web or rest without a record #91
* Implemented: user id in statistics and add clipboard copy #88

## 2024-04-10
* Implemented: filterQualifier: true should be in the examples for all relation ids #96
Expand Down
13 changes: 9 additions & 4 deletions pages/user/admin/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
@change="user.update()" />
</div>
<div class="mb-4">
<FormInput name="realName" v-model="user.props.realName" label="Real Name" @change="user.update()" />
<FormInput name="realName" v-model="user.props.realName" label="Real Name"
@change="user.update()" />
</div>

<div class="mb-4">
Expand All @@ -37,8 +38,8 @@
</div>

<div class="mb-4">
<FormSelect @change="user.update()" v-model="user.props.developer" :options="user.options?.developer"
label="Are you a software developer?" name="developer" />
<FormSelect @change="user.update()" v-model="user.props.developer"
:options="user.options?.developer" label="Are you a software developer?" name="developer" />
</div>

<div class="mb-4">
Expand All @@ -48,6 +49,10 @@
</FieldsetItem>

<FieldsetItem name="Statistics">
<div class="mb-4"><b>Id</b>: {{ user.props?.id }}
<CopyToClipboard :text="user.props.id" />
</div>

<div class="mb-4">
Created at {{ dt.formatDateTime(user.props.createdAt) }}
</div>
Expand All @@ -67,7 +72,7 @@
</FieldsetNav>
</client-only>
</template>

<script setup>
definePageMeta({
middleware: ['auth', 'admin']
Expand Down

0 comments on commit 846f665

Please sign in to comment.