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
5
Merged
zshan2
requested to merge
assignment-3.0
into
master
4 years ago
Overview
0
Commits
5
Pipelines
0
Changes
5
Expand
0
0
Merge request reports
Viewing commit
dbea22c9
Prev
Next
Show latest version
5 files
+
110
−
30
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
dbea22c9
final commit
· dbea22c9
zshan2
authored
4 years ago
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