1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-24 15:49:46 +02:00

Prepare for collection board type, refactoring, update dependencies

This commit is contained in:
Maksim Eltyshev 2020-08-04 01:32:46 +05:00
parent 402645bc99
commit 30ed77af59
190 changed files with 2144 additions and 1817 deletions

View file

@ -7,6 +7,7 @@ export default class extends Model {
static fields = {
id: attr(),
type: attr(),
position: attr(),
name: attr(),
isFetching: attr({

View file

@ -22,16 +22,16 @@ export default class extends Model {
isAllActionsFetched: attr({
getDefault: () => false,
}),
listId: fk({
to: 'List',
as: 'list',
relatedName: 'cards',
}),
boardId: fk({
to: 'Board',
as: 'board',
relatedName: 'cards',
}),
listId: fk({
to: 'List',
as: 'list',
relatedName: 'cards',
}),
coverAttachmentId: oneToOne({
to: 'Attachment',
as: 'coverAttachment',

View file

@ -2,8 +2,8 @@ import User from './User';
import Project from './Project';
import ProjectMembership from './ProjectMembership';
import Board from './Board';
import List from './List';
import Label from './Label';
import List from './List';
import Card from './Card';
import Task from './Task';
import Attachment from './Attachment';
@ -15,8 +15,8 @@ export {
Project,
ProjectMembership,
Board,
List,
Label,
List,
Card,
Task,
Attachment,