Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dima Krasner
Sharkey
Commits
76b25618
Commit
76b25618
authored
3 years ago
by
syuilo
Browse files
Options
Downloads
Patches
Plain Diff
tweak ui
parent
89053d57
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/client/src/pages/admin/database.vue
+9
-22
9 additions, 22 deletions
packages/client/src/pages/admin/database.vue
packages/client/src/pages/settings/account-info.vue
+70
-80
70 additions, 80 deletions
packages/client/src/pages/settings/account-info.vue
with
79 additions
and
102 deletions
packages/client/src/pages/admin/database.vue
+
9
−
22
View file @
76b25618
<
template
>
<
FormBase
>
<
MkSpacer
:content-max=
"700"
:margin-min=
"16"
:margin-max=
"32"
>
<FormSuspense
v-slot=
"
{ result: database }" :p="databasePromiseFactory">
<FormGroup
v-for=
"table in database"
:key=
"table[0]"
>
<template
#label
>
{{
table
[
0
]
}}
</
template
>
<FormKeyValueView>
<
template
#key
>
Size
</
template
>
<
template
#value
>
{{
bytes
(
table
[
1
].
size
)
}}
</
template
>
</FormKeyValueView>
<FormKeyValueView>
<
template
#key
>
Records
</
template
>
<
template
#value
>
{{
number
(
table
[
1
].
count
)
}}
</
template
>
</FormKeyValueView>
</FormGroup>
<MkKeyValue
v-for=
"table in database"
:key=
"table[0]"
oneline
style=
"margin: 1em 0;"
>
<template
#key
>
{{
table
[
0
]
}}
</
template
>
<
template
#value
>
{{
bytes
(
table
[
1
].
size
)
}}
(
{{
number
(
table
[
1
].
count
)
}}
recs)
</
template
>
</MkKeyValue>
</FormSuspense>
</
FormBase
>
</
MkSpacer
>
</template>
<
script
lang=
"ts"
>
import
{
defineComponent
}
from
'
vue
'
;
import
FormSuspense
from
'
@/components/debobigego/suspense.vue
'
;
import
FormKeyValueView
from
'
@/components/debobigego/key-value-view.vue
'
;
import
FormLink
from
'
@/components/debobigego/link.vue
'
;
import
FormBase
from
'
@/components/debobigego/base.vue
'
;
import
FormGroup
from
'
@/components/debobigego/group.vue
'
;
import
FormSuspense
from
'
@/components/form/suspense.vue
'
;
import
MkKeyValue
from
'
@/components/key-value.vue
'
;
import
*
as
os
from
'
@/os
'
;
import
*
as
symbols
from
'
@/symbols
'
;
import
bytes
from
'
@/filters/bytes
'
;
...
...
@@ -31,10 +21,7 @@ import number from '@/filters/number';
export
default
defineComponent
({
components
:
{
FormSuspense
,
FormKeyValueView
,
FormBase
,
FormGroup
,
FormLink
,
MkKeyValue
,
},
emits
:
[
'
info
'
],
...
...
This diff is collapsed.
Click to expand it.
packages/client/src/pages/settings/account-info.vue
+
70
−
80
View file @
76b25618
<
template
>
<
FormBase
>
<
Form
KeyValue
View
>
<
div
class=
"_formRoot"
>
<
Mk
KeyValue>
<template
#key
>
ID
</
template
>
<
template
#value
><span
class=
"_monospace"
>
{{
$i
.
id
}}
</span></
template
>
</
Form
KeyValue
View
>
</
Mk
KeyValue>
<Form
Group
>
<
Form
KeyValue
View
>
<Form
Section
>
<
Mk
KeyValue>
<
template
#key
>
{{
$ts
.
registeredDate
}}
</
template
>
<
template
#value
><MkTime
:time=
"$i.createdAt"
mode=
"detail"
/></
template
>
</
Form
KeyValue
View
>
</Form
Group
>
</
Mk
KeyValue>
</Form
Section
>
<Form
Group
v-if=
"stats"
>
<Form
Section
v-if=
"stats"
>
<
template
#label
>
{{
$ts
.
statistics
}}
</
template
>
<
Form
KeyValue
View
>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
{{
$ts
.
notesCount
}}
</
template
>
<
template
#value
>
{{
number
(
stats
.
notesCount
)
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
{{
$ts
.
repliesCount
}}
</
template
>
<
template
#value
>
{{
number
(
stats
.
repliesCount
)
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
{{
$ts
.
renotesCount
}}
</
template
>
<
template
#value
>
{{
number
(
stats
.
renotesCount
)
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
{{
$ts
.
repliedCount
}}
</
template
>
<
template
#value
>
{{
number
(
stats
.
repliedCount
)
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
{{
$ts
.
renotedCount
}}
</
template
>
<
template
#value
>
{{
number
(
stats
.
renotedCount
)
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
{{
$ts
.
pollVotesCount
}}
</
template
>
<
template
#value
>
{{
number
(
stats
.
pollVotesCount
)
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
{{
$ts
.
pollVotedCount
}}
</
template
>
<
template
#value
>
{{
number
(
stats
.
pollVotedCount
)
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
{{
$ts
.
sentReactionsCount
}}
</
template
>
<
template
#value
>
{{
number
(
stats
.
sentReactionsCount
)
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
{{
$ts
.
receivedReactionsCount
}}
</
template
>
<
template
#value
>
{{
number
(
stats
.
receivedReactionsCount
)
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
{{
$ts
.
noteFavoritesCount
}}
</
template
>
<
template
#value
>
{{
number
(
stats
.
noteFavoritesCount
)
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
{{
$ts
.
followingCount
}}
</
template
>
<
template
#value
>
{{
number
(
stats
.
followingCount
)
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
{{
$ts
.
followingCount
}}
(
{{
$ts
.
local
}}
)
</
template
>
<
template
#value
>
{{
number
(
stats
.
localFollowingCount
)
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
{{
$ts
.
followingCount
}}
(
{{
$ts
.
remote
}}
)
</
template
>
<
template
#value
>
{{
number
(
stats
.
remoteFollowingCount
)
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
{{
$ts
.
followersCount
}}
</
template
>
<
template
#value
>
{{
number
(
stats
.
followersCount
)
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
{{
$ts
.
followersCount
}}
(
{{
$ts
.
local
}}
)
</
template
>
<
template
#value
>
{{
number
(
stats
.
localFollowersCount
)
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
{{
$ts
.
followersCount
}}
(
{{
$ts
.
remote
}}
)
</
template
>
<
template
#value
>
{{
number
(
stats
.
remoteFollowersCount
)
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
{{
$ts
.
pageLikesCount
}}
</
template
>
<
template
#value
>
{{
number
(
stats
.
pageLikesCount
)
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
{{
$ts
.
pageLikedCount
}}
</
template
>
<
template
#value
>
{{
number
(
stats
.
pageLikedCount
)
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
{{
$ts
.
driveFilesCount
}}
</
template
>
<
template
#value
>
{{
number
(
stats
.
driveFilesCount
)
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
{{
$ts
.
driveUsage
}}
</
template
>
<
template
#value
>
{{
bytes
(
stats
.
driveUsage
)
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
{{
$ts
.
reversiCount
}}
</
template
>
<
template
#value
>
{{
number
(
stats
.
reversiCount
)
}}
</
template
>
</
Form
KeyValue
View
>
</Form
Group
>
</
Mk
KeyValue>
</Form
Section
>
<Form
Group
>
<Form
Section
>
<
template
#label
>
{{
$ts
.
other
}}
</
template
>
<
Form
KeyValue
View
>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
emailVerified
</
template
>
<
template
#value
>
{{
$i
.
emailVerified
?
$ts
.
yes
:
$ts
.
no
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
twoFactorEnabled
</
template
>
<
template
#value
>
{{
$i
.
twoFactorEnabled
?
$ts
.
yes
:
$ts
.
no
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
securityKeys
</
template
>
<
template
#value
>
{{
$i
.
securityKeys
?
$ts
.
yes
:
$ts
.
no
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
usePasswordLessLogin
</
template
>
<
template
#value
>
{{
$i
.
usePasswordLessLogin
?
$ts
.
yes
:
$ts
.
no
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
isModerator
</
template
>
<
template
#value
>
{{
$i
.
isModerator
?
$ts
.
yes
:
$ts
.
no
}}
</
template
>
</
Form
KeyValue
View
>
<
Form
KeyValue
View
>
</
Mk
KeyValue>
<
Mk
KeyValue
oneline
style=
"margin: 1em 0;"
>
<
template
#key
>
isAdmin
</
template
>
<
template
#value
>
{{
$i
.
isAdmin
?
$ts
.
yes
:
$ts
.
no
}}
</
template
>
</
Form
KeyValue
View
>
</Form
Group
>
</
FormBase
>
</
Mk
KeyValue>
</Form
Section
>
</
div
>
</template>
<
script
lang=
"ts"
>
import
{
defineAsyncComponent
,
defineComponent
}
from
'
vue
'
;
import
FormSwitch
from
'
@/components/form/switch.vue
'
;
import
FormSelect
from
'
@/components/form/select.vue
'
;
import
FormLink
from
'
@/components/debobigego/link.vue
'
;
import
FormBase
from
'
@/components/debobigego/base.vue
'
;
import
FormGroup
from
'
@/components/debobigego/group.vue
'
;
import
FormButton
from
'
@/components/debobigego/button.vue
'
;
import
FormKeyValueView
from
'
@/components/debobigego/key-value-view.vue
'
;
import
FormSection
from
'
@/components/form/section.vue
'
;
import
MkKeyValue
from
'
@/components/key-value.vue
'
;
import
*
as
os
from
'
@/os
'
;
import
number
from
'
@/filters/number
'
;
import
bytes
from
'
@/filters/bytes
'
;
...
...
@@ -146,13 +141,8 @@ import * as symbols from '@/symbols';
export
default
defineComponent
({
components
:
{
FormBase
,
FormSelect
,
FormSwitch
,
FormButton
,
FormLink
,
FormGroup
,
FormKeyValueView
,
FormSection
,
MkKeyValue
,
},
emits
:
[
'
info
'
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment