Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sp21-cs242-assignment3
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
zshan2
sp21-cs242-assignment3
Merge requests
!1
<Assignment-3.0>
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
<Assignment-3.0>
assignment-3.0
into
master
Overview
0
Commits
5
Pipelines
0
Changes
22
Merged
zshan2
requested to merge
assignment-3.0
into
master
4 years ago
Overview
0
Commits
5
Pipelines
0
Changes
22
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
dbea22c9
5 commits,
4 years ago
22 files
+
823
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
22
Search (e.g. *.vue) (Ctrl+P)
src/Components/DataGenerator.js
0 → 100644
+
23
−
0
Options
function
generateData
(
route
,
navigation
)
{
const
{
name
,
login
,
avatarUrl
,
bio
,
createdAt
,
email
,
websiteUrl
,
repositories
}
=
route
.
params
;
const
dataFile
=
{}
dataFile
[
'
navi
'
]
=
navigation
dataFile
[
'
nameContent
'
]
=
'
Name:
\n
'
+
name
dataFile
[
'
userNameContent
'
]
=
'
UserName
\n
:
'
+
login
dataFile
[
'
bioContent
'
]
=
'
Bio:
\n
'
+
bio
dataFile
[
'
createDate
'
]
=
'
Create at:
\n
'
+
createdAt
dataFile
[
'
emailContent
'
]
=
'
Email:
\n
'
+
email
dataFile
[
'
websiteLink
'
]
=
'
Website:
\n
'
+
websiteUrl
dataFile
[
'
repoCount
'
]
=
'
Repository count:
'
+
repositories
[
'
nodes
'
].
length
var
iconUrl
if
(
avatarUrl
!=
null
)
{
iconUrl
=
{
uri
:
avatarUrl
}
}
else
{
iconUrl
=
require
(
'
C:/Coding/cs242-assignment3/GitView/assets/default.png
'
)
}
dataFile
[
'
iconUrl
'
]
=
iconUrl
return
dataFile
}
module
.
exports
=
generateData
;
\ No newline at end of file
Loading