Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
jxtxzzw
resume
Commits
88e0b9f6
Verified
Commit
88e0b9f6
authored
Feb 24, 2021
by
jxtxzzw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
course
Signed-off-by:
jxtxzzw
<
jxtxzzw@126.com
>
parent
07699e88
Pipeline
#266
passed with stages
in 9 minutes and 6 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
67 additions
and
0 deletions
+67
-0
assets/data-sample/course.json
assets/data-sample/course.json
+26
-0
assets/lang/en.json
assets/lang/en.json
+1
-0
assets/lang/zh.json
assets/lang/zh.json
+1
-0
assets/reader.js
assets/reader.js
+1
-0
components/Navigation.vue
components/Navigation.vue
+3
-0
pages/course.vue
pages/course.vue
+35
-0
No files found.
assets/data-sample/course.json
0 → 100644
View file @
88e0b9f6
[
{
"id"
:
"1"
,
"course"
:
"Foundations of Computer System"
,
"university"
:
"Carnegie Mellon University"
,
"score"
:
null
,
"max_score"
:
null
,
"grade"
:
"A"
},
{
"id"
:
"2"
,
"course"
:
"计算机组成原理"
,
"university"
:
"华东师范大学"
,
"score"
:
3.9
,
"max_score"
:
4.0
,
"grade"
:
null
},
{
"id"
:
"3"
,
"course"
:
"Another Course"
,
"university"
:
"另一所学校"
,
"score"
:
80
,
"max_score"
:
100
,
"grade"
:
"A-"
}
]
assets/lang/en.json
View file @
88e0b9f6
...
...
@@ -23,6 +23,7 @@
"publication"
:
"Publication"
,
"honor"
:
"Honor"
,
"exhibit"
:
"Exhibit"
,
"course"
:
"Course"
,
"exam"
:
"Exam"
,
"coding"
:
"Coding Problem"
,
"technique"
:
"Technique"
,
...
...
assets/lang/zh.json
View file @
88e0b9f6
...
...
@@ -23,6 +23,7 @@
"publication"
:
"出版"
,
"honor"
:
"荣誉榜"
,
"exhibit"
:
"陈列室"
,
"course"
:
"课程"
,
"exam"
:
"考试成绩"
,
"coding"
:
"编程题"
,
"technique"
:
"技术栈"
,
...
...
assets/reader.js
View file @
88e0b9f6
...
...
@@ -36,3 +36,4 @@ export const footprint = require('./data/footprint.json')
export
const
exam
=
require
(
'
./data/exam.json
'
)
export
const
income
=
require
(
'
./data/income.json
'
)
export
const
advancedIncome
=
require
(
'
./data/advanced_income.json
'
)
export
const
course
=
require
(
'
./data/course.json
'
)
components/Navigation.vue
View file @
88e0b9f6
...
...
@@ -45,6 +45,9 @@
<Icon
type=
"md-school"
/>
{{
$t
(
'
navigation.skill
'
)
}}
</
template
>
<MenuItem
name=
"course"
to=
"course"
>
{{ $t('navigation.course') }}
</MenuItem>
<MenuItem
name=
"exam"
to=
"exam"
>
{{ $t('navigation.exam') }}
</MenuItem>
...
...
pages/course.vue
0 → 100644
View file @
88e0b9f6
<
template
>
<div>
<span
v-for=
"c in course"
:key=
"c.id"
style=
"margin-right: 20px"
>
<Badge
:text=
"getShowText(c.score, c.max_score, c.grade)"
type=
"success"
>
<Tag
type=
"dot"
color=
"primary"
>
{{
`${c.course
}
(${c.university
}
)`
}}
<
/Tag
>
<
/Badge
>
<
/span
>
<
/div
>
<
/template
>
<
script
>
import
{
course
}
from
'
assets/reader
'
export
default
{
name
:
'
Course
'
,
data
()
{
return
{
course
,
}
}
,
methods
:
{
getShowText
(
score
,
maxScore
,
grade
)
{
let
text
=
''
if
(
score
!=
null
&&
score
>
0
)
{
text
+=
` ${score
}
/${maxScore
}
`
}
if
(
grade
!=
null
)
{
text
+=
` ${grade
}
`
}
return
text
}
,
}
,
}
<
/script
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment