generated from hpi-swa-teaching/SWT-Demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
236 changed files
with
1,521 additions
and
263 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
Squello-Core.package/SPBAbstractBoardProvider.class/instance/addAssignee.toCard..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
assignees | ||
addAssignee: anSPBAssignee toCard: anSPBCard | ||
addAssignee: aSPBAssignee toCard: aSPBCard | ||
|
||
self subclassResponsibility. |
5 changes: 5 additions & 0 deletions
5
Squello-Core.package/SPBAbstractBoardProvider.class/instance/fetchCardsIntoColumns..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
cards | ||
fetchCardsIntoColumns: anOrderedCollection | ||
|
||
"anOrderedCollection => Collection of SPBColumn" | ||
^ self subclassResponsibility. |
4 changes: 4 additions & 0 deletions
4
Squello-Core.package/SPBAbstractBoardProvider.class/instance/queryBoardName.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
board | ||
queryBoardName | ||
|
||
^ self subclassResponsibility. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
Squello-Core.package/SPBAuthenticationForm.class/instance/resetCredentials.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
actions | ||
resetCredentials | ||
"Resets the username and token to nil to log out the user." | ||
|
||
SPBGithubAPI | ||
username: nil; | ||
token: nil. | ||
UserDialogBoxMorph inform: 'Credentials have been reset.' title: 'Logged out'. | ||
self changed: #close. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,11 @@ | ||
startup | ||
newWith: aString | ||
|
||
| instance authenticator | | ||
| instance | | ||
instance := self new. | ||
|
||
[instance parseRepoFromUrl: aString] | ||
on: Error do: [self errorParsingUrl. ^ self]. | ||
|
||
authenticator := SPBAuthenticator newWith: instance boardProvider. | ||
[authenticator authenticate] | ||
on: Error do: [^ self]. | ||
|
||
[instance loadProject: aString] | ||
on: Error do: [^ self]. | ||
"["instance loadProject: aString."] | ||
on: Error do: [self errorParsingUrl. ^ self]." | ||
|
||
instance buildAndOpen. | ||
^ instance. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
startup | ||
openFromPrompt: prompt | ||
|
||
[(prompt beginsWith: self localPrefix) | ||
ifTrue: [self openLocal: prompt] | ||
ifFalse: [self newWith: prompt.]] fork. | ||
|
4 changes: 0 additions & 4 deletions
4
Squello-Core.package/SPBBoard.class/class/openInBackground.st
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
Squello-Core.package/SPBBoard.class/instance/applyUserInterfaceTheme.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
initialize-release | ||
applyUserInterfaceTheme | ||
|
||
super applyUserInterfaceTheme. | ||
addColumnColumn ifNotNil: [ | ||
addColumnColumn color: ((self userInterfaceTheme get: #color for: SystemWindow) ifNil: [Color lightGray]). | ||
]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
accessing | ||
boardName | ||
|
||
boardName ifNil: [boardName := self boardProvider queryBoardName]. | ||
^ boardName. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
isLocal: aBoolean | ||
|
||
isLocal := aBoolean. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
accessing | ||
isLocal | ||
|
||
isLocal ifNil: [self isLocal: false]. | ||
^ isLocal. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
initialize-release | ||
makeLocal | ||
|
||
self isLocal: true. | ||
self boardProvider: SPBLocalBoardProvider new. |
8 changes: 8 additions & 0 deletions
8
Squello-Core.package/SPBBoard.class/instance/parseProjectFromUrl..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
initialize-release | ||
parseProjectFromUrl: aString | ||
|
||
(aString includesSubstring: '/orgs/') | ||
ifTrue: [self boardProvider: SPBGithubOrgBoardProvider new]. | ||
(aString includesSubstring: '/users/') | ||
ifTrue: [self boardProvider: SPBGithubUserBoardProvider new]. | ||
self boardProvider parseInputBoardUrl: aString. |
8 changes: 0 additions & 8 deletions
8
Squello-Core.package/SPBBoard.class/instance/parseRepoFromUrl..st
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
updating | ||
saveBoard | ||
|
||
SPBBoardSaver defaultSaver save: self as: self boardProvider repo. | ||
self isLocal | ||
ifTrue: [ | ||
SPBLandingPage changeRecentLocalBoards: self boardProvider repo. | ||
SPBBoardSaver defaultSaver save: self as: self boardProvider repo.] | ||
ifFalse: [ | ||
SPBLandingPage changeRecentGitHubBoards: { | ||
#name -> self boardName. | ||
#url -> self url. | ||
#repo -> self boardProvider repo} asDictionary. | ||
]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
url | ||
|
||
^ self boardProvider url. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
save/load | ||
load: anObject | ||
|
||
^ (self boards at: anObject ifAbsent: nil) veryDeepCopy. | ||
^ (self loadReadonly: anObject) veryDeepCopy. |
4 changes: 4 additions & 0 deletions
4
Squello-Core.package/SPBBoardSaver.class/instance/loadReadonly..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
save/load | ||
loadReadonly: anObject | ||
|
||
^ self boards at: anObject ifAbsent: nil. |
Oops, something went wrong.