-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
accessing | ||
buildFromRemote: aJsonObject into: anSPBColumn | ||
|
||
| instance | | ||
instance := self newFrom: aJsonObject with: anSPBColumn. | ||
instance setCardColumn: anSPBColumn. | ||
^ instance. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
accessing | ||
buildNew: aDictionary into: anSPBColumn | ||
|
||
| instance cardJson boardProvider | | ||
boardProvider := anSPBColumn boardProvider. | ||
cardJson := boardProvider createCard: aDictionary into: anSPBColumn. | ||
instance := self newFrom: cardJson with: anSPBColumn. | ||
instance setCardColumnAtTop: anSPBColumn. | ||
^ instance. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
accessing | ||
newFrom: aJsonObject with: anSPBColumn | ||
|
||
^ self new | ||
id: (aJsonObject at: 'id'); | ||
boardProvider: anSPBColumn boardProvider; | ||
changeProvider: anSPBColumn changeProvider; | ||
setupMouseEvents; | ||
buildContent: (aJsonObject at: 'content_url'); | ||
buildUI; | ||
openInWorld; | ||
yourself. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
building | ||
accessing | ||
buildContent: aString | ||
|
||
| contentJson | | ||
contentJson := self boardProvider queryCardContent: aString. | ||
self card | ||
self | ||
title: (contentJson at: 'title'); | ||
description: (contentJson at: 'body'); | ||
issueId: (contentJson at: 'number'); | ||
assignees: ((contentJson at: 'assignees') collect: | ||
[:assigne | SPBAssignee newFrom: assigne]) asOrderedCollection; | ||
labels: (self buildLabels: (contentJson at: 'labels')). | ||
[:assignee | SPBAssignee newFrom: assignee]) asOrderedCollection; | ||
labels: ((contentJson at: 'labels') collect: [:label | SPBLabel newFrom: label]) asOrderedCollection. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
accessing | ||
buildUI | ||
|
||
self titleModel contents: self title. | ||
self | ||
updateAssigneeCount; | ||
updateLabelIcons; | ||
setCardHeight. | ||
self assigneeModel position: self position + self extent - self assigneeOffset. | ||
self resizeIndicatorFields. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
accessing | ||
setCardColumn: anSPBColumn | ||
|
||
self column: anSPBColumn. | ||
anSPBColumn addCard: self. | ||
anSPBColumn pasteup addMorph: self. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
accessing | ||
setCardColumnAtTop: anSPBColumn | ||
|
||
self column: anSPBColumn. | ||
anSPBColumn addCardToTop: self. | ||
anSPBColumn pasteup addMorph: self. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
accessing | ||
setupMouseEvents | ||
|
||
self on: #click send: #becomeActiveCard to: self. | ||
self on: #startDrag send: #startDragging to: self. |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
accessing | ||
boardProvider: anSPBGithubBoardProvider | ||
|
||
boardProvider := anSPBGithubBoardProvider. | ||
self cardBuilder boardProvider: anSPBGithubBoardProvider. | ||
boardProvider := anSPBGithubBoardProvider. |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
creation | ||
fetchAndBuildCards | ||
|
||
(self boardProvider queryCardsForColumn: self) asOrderedCollection | ||
do: [:cardJson | SPBCard buildFromRemote: cardJson into: self]. |
This file was deleted.