Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Kotahi
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Omo Oaiya
Kotahi
Commits
2fb27add
Commit
2fb27add
authored
7 years ago
by
Alf Eaton
Browse files
Options
Downloads
Patches
Plain Diff
Continue adding events
parent
36b99104
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/components/VersionsList.js
+1
-1
1 addition, 1 deletion
app/components/VersionsList.js
stories/data/projects/submitted.js
+31
-1
31 additions, 1 deletion
stories/data/projects/submitted.js
stories/index.js
+9
-0
9 additions, 0 deletions
stories/index.js
with
41 additions
and
2 deletions
app/components/VersionsList.js
+
1
−
1
View file @
2fb27add
...
...
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
import
VersionActions
from
'
./VersionActions
'
import
*
as
date
from
'
../lib/date
'
import
*
as
sort
from
'
../lib/sort
'
import
'
.
./components
/Versions.css
'
import
'
./Versions
List
.css
'
const
sortByVersion
=
sort
.
descending
(
'
version
'
)
...
...
This diff is collapsed.
Click to expand it.
stories/data/projects/submitted.js
+
31
−
1
View file @
2fb27add
...
...
@@ -38,5 +38,35 @@ export default {
}
}
},
declarations
:
{}
declarations
:
{
human
:
false
,
newTaxon
:
false
,
financialDisclosure
:
'
There were no financial conflicts
'
},
events
:
[
{
id
:
'
event-1
'
,
type
:
'
created
'
,
date
:
'
2017-06-01T12:00:00Z
'
,
user
:
{
id
:
'
user-foo
'
,
username
:
'
foo
'
// TODO: populate this later?
}
},
{
id
:
'
event-2
'
,
type
:
'
title:update
'
,
date
:
'
2017-06-01T13:00:00Z
'
,
user
:
{
id
:
'
user-foo
'
,
username
:
'
foo
'
},
changes
:
{
title
:
{
from
:
'
The old title
'
,
to
:
'
The new title
'
}
}
}
]
}
This diff is collapsed.
Click to expand it.
stories/index.js
+
9
−
0
View file @
2fb27add
...
...
@@ -15,6 +15,7 @@ import versions from './data/versions'
import
DeclarationAnswers
from
'
../app/components/DeclarationAnswers
'
import
DeclarationQuestions
from
'
../app/components/DeclarationQuestions
'
import
EventsList
from
'
../app/components/EventsList
'
import
Project
from
'
../app/components/Project
'
import
ProjectActions
from
'
../app/components/ProjectActions
'
import
ProjectList
from
'
../app/components/ProjectList
'
...
...
@@ -123,6 +124,14 @@ storiesOf('Editors', module)
<EditorList project={projects.submitted} roles={projects.submitted.roles.editor}/>
))
storiesOf(
'
Events
List
'
, module)
.add(
'
project
'
, () => (
<div>
<EventsList project={projects.submitted}
events={projects.submitted.events}/>
</div>
))
storiesOf(
'
Navigation
'
, module)
.add(
'
anonymous
'
, () => (
<Navigation appName="xpub"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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