Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Papermerge.Js
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
Container 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
Jonas Leder
Papermerge.Js
Commits
a7360f4c
Commit
a7360f4c
authored
3 years ago
by
Eugen Ciur
Browse files
Options
Downloads
Patches
Plain Diff
add basic 3 models: node, folder, document
parent
ee6d74f3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/models/document.js
+8
-3
8 additions, 3 deletions
app/models/document.js
app/models/folder.js
+11
-0
11 additions, 0 deletions
app/models/folder.js
app/models/node.js
+8
-0
8 additions, 0 deletions
app/models/node.js
with
27 additions
and
3 deletions
app/models/document.js
+
8
−
3
View file @
a7360f4c
import
Model
,
{
attr
}
from
'
@ember-data/model
'
;
import
{
attr
}
from
'
@ember-data/model
'
;
import
NodeModel
from
"
./node
"
;
export
default
class
DocumentModel
extends
Model
{
@
attr
title
;
export
default
class
DocumentModel
extends
NodeModel
{
@
attr
image
;
get
type
()
{
return
'
document
'
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/models/folder.js
0 → 100644
+
11
−
0
View file @
a7360f4c
import
{
attr
}
from
'
@ember-data/model
'
;
import
NodeModel
from
"
./node
"
;
export
default
class
FolderModel
extends
NodeModel
{
get
type
()
{
return
'
folder
'
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/models/node.js
0 → 100644
+
8
−
0
View file @
a7360f4c
import
Model
,
{
attr
}
from
'
@ember-data/model
'
;
export
default
class
NodeModel
extends
Model
{
@
attr
title
;
@
attr
parent
;
@
attr
type
;
}
\ No newline at end of file
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