Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Письменов Дмитрий Иванович
/
yourroomads
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ffa2f3e0
authored
Jun 24, 2021
by
Евгений
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Вывел баллы
1 parent
477b8faf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
app/Http/Controllers/TokensController.php
resources/js/Pages/Tokens/Index.vue
app/Http/Controllers/TokensController.php
View file @
ffa2f3e
...
...
@@ -31,6 +31,7 @@ class TokensController extends Controller
'login'
=>
$token
->
login
,
'type'
=>
$token
->
type
,
'api'
=>
$token
->
api
,
'limit'
=>
$token
->
limit
,
];
}),
]);
...
...
resources/js/Pages/Tokens/Index.vue
View file @
ffa2f3e
...
...
@@ -21,6 +21,7 @@
<tr
class=
"text-left font-bold"
>
<th
class=
"px-6 pt-6 pb-4"
>
Login
</th>
<th
class=
"px-6 pt-6 pb-4"
>
АПИ
</th>
<th
class=
"px-6 pt-6 pb-4"
>
Баллы
</th>
<th
class=
"px-6 pt-6 pb-4"
colspan=
"2"
>
Тип
</th>
</tr>
<tr
v-for=
"token in tokens.data"
:key=
"token.id"
class=
"hover:bg-gray-100 focus-within:bg-gray-100"
>
...
...
@@ -36,6 +37,11 @@
</td>
<td
class=
"border-t"
>
<inertia-link
class=
"px-6 py-4 flex items-center"
:href=
"route('token.edit', token.id)"
tabindex=
"-1"
>
{{
token
.
limit
}}
</inertia-link>
</td>
<td
class=
"border-t"
>
<inertia-link
class=
"px-6 py-4 flex items-center"
:href=
"route('token.edit', token.id)"
tabindex=
"-1"
>
{{
types
[
token
.
type
]
}}
</inertia-link>
</td>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment