Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scientia
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
Service Desk
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
Zhige Yu
scientia
Commits
8505c3e5
Commit
8505c3e5
authored
4 years ago
by
danieldeng2
Browse files
Options
Downloads
Patches
Plain Diff
Change year to 2021
parent
18432481
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/pages/ModuleResources/index.tsx
+1
-0
1 addition, 0 deletions
src/components/pages/ModuleResources/index.tsx
src/components/pages/StandardView/index.tsx
+1
-1
1 addition, 1 deletion
src/components/pages/StandardView/index.tsx
with
2 additions
and
1 deletion
src/components/pages/ModuleResources/index.tsx
+
1
−
0
View file @
8505c3e5
...
@@ -53,6 +53,7 @@ class ModuleResources extends React.Component<ResourcesProps, ResourceState> {
...
@@ -53,6 +53,7 @@ class ModuleResources extends React.Component<ResourcesProps, ResourceState> {
let
resourceArr
:
Resource
[]
=
[];
let
resourceArr
:
Resource
[]
=
[];
data
.
json
().
then
((
json
)
=>
{
data
.
json
().
then
((
json
)
=>
{
console
.
log
(
`data:
${
data
}
`
);
for
(
const
key
in
json
)
{
for
(
const
key
in
json
)
{
let
resource
=
json
[
key
];
let
resource
=
json
[
key
];
resourceArr
.
push
({
resourceArr
.
push
({
...
...
This diff is collapsed.
Click to expand it.
src/components/pages/StandardView/index.tsx
+
1
−
1
View file @
8505c3e5
...
@@ -82,7 +82,7 @@ const StandardView: React.FC<StandardViewProps> = ({
...
@@ -82,7 +82,7 @@ const StandardView: React.FC<StandardViewProps> = ({
path
=
"/modules/:id/resources/:scope?"
path
=
"/modules/:id/resources/:scope?"
render
=
{
(
props
)
=>
(
render
=
{
(
props
)
=>
(
<
ModuleResources
<
ModuleResources
year
=
"
1819
"
year
=
"
2021
"
moduleID
=
{
props
.
match
.
params
.
id
}
moduleID
=
{
props
.
match
.
params
.
id
}
scope
=
{
props
.
match
.
params
.
scope
}
scope
=
{
props
.
match
.
params
.
scope
}
/>
/>
...
...
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