Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TER Modelzoo Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thomas Blanc
TER Modelzoo Frontend
Commits
ac0165a1
Commit
ac0165a1
authored
5 years ago
by
thomas.blanc.2@etu.univ-amu.fr
Browse files
Options
Downloads
Patches
Plain Diff
Small fixs
parent
7a07fd31
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/components/ModelCard.vue
+17
-14
17 additions, 14 deletions
src/components/ModelCard.vue
src/views/Account.vue
+1
-1
1 addition, 1 deletion
src/views/Account.vue
src/views/Model.vue
+15
-5
15 additions, 5 deletions
src/views/Model.vue
with
33 additions
and
20 deletions
src/components/ModelCard.vue
+
17
−
14
View file @
ac0165a1
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
<a
class=
"box"
v-on:click=
"onClick"
>
<a
class=
"box"
v-on:click=
"onClick"
>
<article
class=
"media"
>
<article
class=
"media"
>
<figure></figure>
<figure></figure>
</article>
<div
class=
"media-content"
>
<div
class=
"media-content"
>
<div
class=
"content"
>
<div
class=
"content"
>
<p>
<p>
...
@@ -17,6 +16,10 @@
...
@@ -17,6 +16,10 @@
</b-taglist>
</b-taglist>
</div>
</div>
</div>
</div>
<div
class=
"media-right"
>
<h2
class=
"title is-4"
>
{{
model
.
votes
}}
votes
</h2>
</div>
</article>
</a>
</a>
</
template
>
</
template
>
...
...
This diff is collapsed.
Click to expand it.
src/views/Account.vue
+
1
−
1
View file @
ac0165a1
...
@@ -48,7 +48,7 @@ export default {
...
@@ -48,7 +48,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
account
:
''
account
:
{}
}
}
},
},
async
mounted
()
{
async
mounted
()
{
...
...
This diff is collapsed.
Click to expand it.
src/views/Model.vue
+
15
−
5
View file @
ac0165a1
...
@@ -27,9 +27,16 @@
...
@@ -27,9 +27,16 @@
<small>
Last modification:
</small><strong>
{{
new
Date
(
model
.
modificationDate
).
toLocaleDateString
()
}}
</strong>
<small>
Last modification:
</small><strong>
{{
new
Date
(
model
.
modificationDate
).
toLocaleDateString
()
}}
</strong>
<br>
<br>
<br>
<br>
<b-button
type=
"is-primary"
size=
"is-medium"
icon-left=
"download"
@
click=
"downloadModel(model.id)"
>
<b-button
type=
"is-primary"
size=
"is-medium"
icon-left=
"download"
>
Download model
Download model
</b-button>
</b-button>
<a
class=
"button is-primary is-medium"
icon-left=
"download"
:href=
"downloadUrl"
download
>
Download model
</a>
<hr>
<hr>
<strong>
{{
model
.
customLayers
.
length
}}
customs layers
</strong>
<strong>
{{
model
.
customLayers
.
length
}}
customs layers
</strong>
<br>
<br>
...
@@ -72,7 +79,8 @@ export default {
...
@@ -72,7 +79,8 @@ export default {
model
:
''
,
model
:
''
,
isError
:
false
,
isError
:
false
,
isLoading
:
true
,
isLoading
:
true
,
isAuthor
:
false
isAuthor
:
false
,
downloadUrl
:
null
}
}
},
},
computed
:
{
computed
:
{
...
@@ -91,6 +99,8 @@ export default {
...
@@ -91,6 +99,8 @@ export default {
const
userRole
=
await
localStorage
.
getItem
(
'
user_role
'
)
const
userRole
=
await
localStorage
.
getItem
(
'
user_role
'
)
if
(
userRole
===
'
ROLE_ADMIN
'
)
this
.
isAuthor
=
true
if
(
userRole
===
'
ROLE_ADMIN
'
)
this
.
isAuthor
=
true
this
.
downloadUrl
=
this
.
$serverurl
+
'
models/download?id=
'
+
this
.
model
.
id
},
},
methods
:
{
methods
:
{
async
getModel
(
id
)
{
async
getModel
(
id
)
{
...
...
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