Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xpub-elife
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
There was a problem fetching the latest pipeline status.
Show more breadcrumbs
xpub
xpub-elife
Commits
1817ef66
Commit
1817ef66
authored
7 years ago
by
Tamlyn Rhodes
Browse files
Options
Downloads
Patches
Plain Diff
feat(data): minimal config for manuscript data model
parent
b52670cb
No related branches found
No related tags found
1 merge request
!21
feat(data): minimal config for manuscript data model
Pipeline
#6005
passed with stages
in 4 minutes and 21 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/default.js
+22
-0
22 additions, 0 deletions
config/default.js
config/validations.js
+8
-0
8 additions, 0 deletions
config/validations.js
with
30 additions
and
0 deletions
config/default.js
+
22
−
0
View file @
1817ef66
...
...
@@ -15,6 +15,28 @@ module.exports = {
port
:
3000
,
logger
,
uploads
:
'
uploads
'
,
typeDefs
:
`
type Manuscript {
id: ID!
title: String!
source: String!
metadata: SubmissionMeta!
}
type SubmissionMeta {
author: Author
correspondingAuthor: Author
# more submission form stuff goes in here
}
type Author {
firstName: String
lastName: String
email: String
institution: String
}
`
,
},
'
pubsweet-client
'
:
{
API_ENDPOINT
:
'
/api
'
,
...
...
This diff is collapsed.
Click to expand it.
config/validations.js
+
8
−
0
View file @
1817ef66
const
Joi
=
require
(
'
joi
'
)
module
.
exports
=
{
fragment
:
[
{
fragmentType
:
Joi
.
valid
(
'
manuscript
'
).
required
(),
title
:
Joi
.
string
().
required
(),
source
:
Joi
.
string
(),
metadata
:
Joi
.
any
(),
},
],
user
:
{
// make these core fields optional
email
:
Joi
.
string
().
email
(),
...
...
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