Skip to content

Commit

Permalink
Add User Token Profile, Profile itself
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianWagner2 committed Jul 4, 2021
2 parents 873d7b3 + 5c823d4 commit 4452bbe
Show file tree
Hide file tree
Showing 104 changed files with 621 additions and 69 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"getJsonForWorkflowRunsForRepository:" : "ng 5/22/2021 19:16",
"getLogsForRepository:logId:" : "BF 6/25/2021 17:13",
"mimeType" : "ng 5/14/2021 15:45",
"requestOn:" : "BF 6/26/2021 14:46" } }
"requestOn:" : "BF 6/26/2021 14:46" } }
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,9 @@
"newForRepository:" : "BF 5/21/2021 13:12" },
"instance" : {
"buildStatus" : "BF 6/25/2021 17:14",
"cache" : "ng 5/14/2021 16:53",
"cache:" : "ng 5/14/2021 16:53",
"clearCache" : "BF 5/21/2021 13:31",
"client" : "sw 5/28/2021 20:36",
"client:" : "BF 5/28/2021 20:38",
"initialize" : "ng 5/14/2021 18:18",
"latestWorkflowJson" : "BF 6/25/2021 17:25",
"parser" : "ng 5/14/2021 17:56",
"parser:" : "ng 5/14/2021 18:18",
"repository" : "ng 5/14/2021 17:19",
"repository:" : "ng 5/14/2021 17:20",
"repositoryJson" : "ng 5/22/2021 19:05",
"requireRepository" : "ng 5/22/2021 19:04",
"statusMessage" : "ng 5/22/2021 18:58",
"workflowsDictionary" : "ng 5/23/2021 12:05" } }
"statusMessage" : "ng 5/22/2021 18:58" } }
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
accessing
instance
instance

^ instance ifNil: [ instance := self new ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
initialization
new

instance
ifNil: [ ^ super new ]
ifNotNil: [ ^ self error: 'Do not use new, use instance instead' ]
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
accessing
repository: aString

repository: aString
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
accessing
token: aString

token: aString
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
action
update

update
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
accessing
usePro: aBoolean

usePro: aBoolean
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
accessing
usePro

^ false
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"class" : {
"instance" : "ClassTest 6/14/2021 21:01" },
"instance" : "ClassTest 7/3/2021 14:57",
"new" : "ClassTest 7/3/2021 14:47" },
"instance" : {
"buildStatus" : "ClassTest 5/29/2021 19:26",
"clearCache" : "ls 7/11/2019 18:54",
"repository" : "ClassTest 6/20/2021 16:41",
"repository:" : "ls 7/25/2019 14:17",
"repositoryJson" : "PS 6/22/2014 16:55",
"statusMessage" : "ls 7/11/2019 18:11",
"token" : "ClassTest 6/20/2021 16:41",
"token:" : "ls 7/25/2019 14:17",
"update" : "vxr 7/4/2019 13:42",
"usePro" : "ls 7/3/2019 17:16",
"usePro:" : "ls 7/25/2019 14:17" } }
"buildStatus" : "ClassTest 7/3/2021 14:27",
"clearCache" : "ClassTest 7/3/2021 14:27",
"repository" : "ClassTest 7/3/2021 14:28",
"repository:" : "ClassTest 7/3/2021 14:27",
"repositoryJson" : "ClassTest 7/3/2021 14:28",
"statusMessage" : "ClassTest 7/3/2021 14:29",
"token" : "ClassTest 7/3/2021 14:28",
"token:" : "ClassTest 7/3/2021 14:28",
"update" : "ClassTest 7/3/2021 14:28",
"usePro" : "ClassTest 7/3/2021 14:29",
"usePro:" : "ClassTest 7/3/2021 14:28" } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
initialization
new

instance
ifNil: [ ^ super new ]
ifNotNil: [ ^ self error: 'Do not use new, use instance instead' ]
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"class" : {
"instance" : "be 6/19/2019 17:44" },
"instance" : "be 6/19/2019 17:44",
"new" : "ClassTest 7/3/2021 14:47" },
"instance" : {
"active" : "ls 5/15/2019 19:50",
"active:" : "ClassTest 6/14/2021 20:38",
Expand Down
1 change: 1 addition & 0 deletions packages/AutoTDD-Core.package/ATDDProfile.class/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The ATDDProfile is a Singleton and contains the user's standard values.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
instance

^ instance ifNil: [ instance := self new ]
6 changes: 6 additions & 0 deletions packages/AutoTDD-Core.package/ATDDProfile.class/class/new.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
initialization
new

instance
ifNil: [ ^ super new ]
ifNotNil: [ ^ self error: 'Do not use new, use instance instead' ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
constants
tokenDictionary

^ IdentityDictionary
newFrom: {
#travisStatus -> self instance travisToken.
#gitHubAction -> self instance gitHubToken
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
gitHubToken: aString

gitHubToken := aString
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
gitHubToken

^ gitHubToken ifNil: [ gitHubToken := String empty ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
tokenFor: aSymbol

^ self class tokenDictionary at: aSymbol
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
travisToken: aString

travisToken := aString
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
travisToken

^ travisToken ifNil: [ travisToken := String empty ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"class" : {
"instance" : "ClassTest 7/2/2021 11:30",
"new" : "ClassTest 7/3/2021 14:47",
"tokenDictionary" : "ClassTest 7/2/2021 12:37" },
"instance" : {
"gitHubToken" : "ClassTest 7/2/2021 17:31",
"gitHubToken:" : "ClassTest 7/2/2021 11:33",
"tokenFor:" : "ClassTest 7/2/2021 12:38",
"travisToken" : "ClassTest 7/2/2021 17:31",
"travisToken:" : "ClassTest 7/2/2021 11:33" } }
16 changes: 16 additions & 0 deletions packages/AutoTDD-Core.package/ATDDProfile.class/properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"category" : "AutoTDD-Core",
"classinstvars" : [
"instance" ],
"classvars" : [
],
"commentStamp" : "ClassTest 7/2/2021 11:32",
"instvars" : [
"userName",
"gitHubToken",
"travisToken" ],
"name" : "ATDDProfile",
"pools" : [
],
"super" : "Object",
"type" : "normal" }
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ initialization
applyDefaultConfiguration

self
repository: ATDDNullDataSource new;
repository: ATDDNullDataSource instance;
name: self class defaultName
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"class" : {
},
"instance" : {
"applyDefaultConfiguration" : "sw 5/28/2021 18:03",
"applyDefaultConfiguration" : "ClassTest 7/2/2021 17:10",
"asString" : "ClassTest 5/28/2021 23:40",
"internalStatus" : "ClassTest 6/2/2021 17:54",
"internalStatus:" : "ClassTest 5/29/2021 19:42",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ buttonLabelDictionary
'runAll' -> 'Run All'.
'openOverview' -> 'Open Overview'.
'toggleSounds' -> 'Toggle Sounds'.
'openProfileEditor' -> 'Open Profile Editor'.

'createWatcher' -> 'Create Watcher'.
'pauseWatchers' -> 'Pause Watchers'.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ globalFunctionalityDictionary

^ OrderedDictionary
newFrom: {
(self playImage scaledToHeight: self largeImageHeight) -> #runAll.
(self pauseImage scaledToHeight: self largeImageHeight) -> #pauseAll.
(self resumeImage scaledToHeight: self largeImageHeight) -> #resumeAll.
(self playImage scaledToHeight: self largeImageHeight) -> #runAll.
(self overviewImage scaledToHeight: self largeImageHeight) -> #openOverview.
#soundsButtonImage -> #toggleSounds
#soundsButtonImage -> #toggleSounds.
(self profileImage scaledToHeight: self largeImageHeight) -> #openProfileEditor
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
images
overviewImageDark

^ (Form
extent: 64@64
depth: 32
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
accessing
profileImage

^ self isThemeButtonLight
ifTrue: [ self profileImageLight ]
ifFalse: [ self profileImageDark ]

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
building
openProfileEditor

^ ATDDProfileEditor open
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"addImageDark" : "BF 6/20/2021 20:44",
"addImageLight" : "BF 6/20/2021 20:44",
"baseTitle" : "ls 7/25/2019 07:39",
"buttonLabelDictionary" : "SK 6/27/2021 12:34",
"buttonLabelDictionary" : "ClassTest 7/2/2021 12:10",
"changed:" : "sw 5/25/2021 22:09",
"changedGitHubActions" : "ng 6/3/2021 15:04",
"changedTravisStatuses" : "ng 6/3/2021 15:05",
Expand All @@ -22,7 +22,7 @@
"gitHubActionListDictionary" : "ClassTest 5/30/2021 16:29",
"gitHubActionUIDictionary" : "sw 5/28/2021 11:54",
"globalButtonWidth" : "ClassTest 6/21/2021 11:55",
"globalFunctionalityDictionary" : "BF 6/26/2021 18:21",
"globalFunctionalityDictionary" : "ClassTest 7/2/2021 12:08",
"infoImage" : "BF 6/25/2021 22:54",
"infoImageDark" : "BF 6/25/2021 22:54",
"infoImageLight" : "BF 6/25/2021 22:54",
Expand All @@ -32,14 +32,17 @@
"largeImageHeight" : "BF 6/25/2021 23:06",
"open" : "ClassTest 6/11/2021 16:09",
"overviewImage" : "BF 6/20/2021 21:10",
"overviewImageDark" : "BF 6/20/2021 20:48",
"overviewImageDark" : "ClassTest 7/2/2021 15:47",
"overviewImageLight" : "BF 6/20/2021 20:47",
"pauseImage" : "BF 6/20/2021 21:16",
"pauseImageDark" : "BF 6/20/2021 21:15",
"pauseImageLight" : "BF 6/20/2021 21:14",
"playImage" : "BF 6/20/2021 21:16",
"playImageDark" : "BF 6/20/2021 21:15",
"playImageLight" : "BF 6/20/2021 21:15",
"profileImage" : "ClassTest 7/2/2021 11:11",
"profileImageDark" : "ClassTest 7/2/2021 11:10",
"profileImageLight" : "ClassTest 7/2/2021 11:10",
"registerInWorldMenu" : "SK 6/10/2021 11:43",
"removeImage" : "BF 6/20/2021 21:28",
"removeImageDark" : "BF 6/20/2021 21:27",
Expand Down Expand Up @@ -105,6 +108,7 @@
"openInfoForSelectedTestingEntitiesOfType:" : "sw 5/25/2021 23:29",
"openInfoForTestingEntity:" : "sw 5/25/2021 22:46",
"openOverview" : "ClassTest 6/11/2021 16:09",
"openProfileEditor" : "ClassTest 7/2/2021 12:12",
"openResultsForSelectedTestingEntitiesOfType:" : "sw 5/25/2021 23:29",
"openResultsForTestingEntity:" : "sw 5/25/2021 22:51",
"pauseAll" : "ClassTest 5/29/2021 00:13",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
constants
initialization
openForNewToAddTargetTo: aCollection

| model |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"defaultInputFieldHeight" : "vxr 6/20/2019 12:22",
"label" : "ls 7/25/2019 07:41",
"nameHelpLabel" : "vxr 6/19/2019 17:25",
"openForNewToAddTargetTo:" : "ng 6/4/2021 19:39",
"openForNewToAddTargetTo:" : "ClassTest 7/2/2021 15:48",
"testingEntityDictionary" : "ClassTest 5/30/2021 00:07" },
"instance" : {
"acceptTargetName" : "vxr 6/20/2019 11:48",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"nameHelpLabel" : "BF 5/21/2021 14:04",
"repositoryUrlHelpLabel" : "sw 5/25/2021 20:52",
"targetName" : "BF 5/21/2021 14:04",
"tokenHelpLabel" : "sw 5/25/2021 20:51",
"validSlug" : "BF 5/21/2021 14:07" },
"tokenHelpLabel" : "sw 5/25/2021 20:51" },
"instance" : {
"applyChanges" : "BF 6/18/2021 14:54",
"gitHubAction" : "sw 5/25/2021 19:21",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The ATDDProfileEditor is an editor to configure personal standard values.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
constants
defaultButtonHeight

^ Preferences standardButtonFont height * 3
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
constants
defaultExtent

^ 450 @ 120
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
constants
defaultInputFieldHeight

^ Preferences standardCodeFont height * 2 - 5
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
constants
gitHubTokenHelpLabel

^ 'default github token'
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
constants
label

^ 'Profile Editor for this Squeak Image'
11 changes: 11 additions & 0 deletions packages/AutoTDD-GUI.package/ATDDProfileEditor.class/class/open.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
initialization
open

| model |

model := self basicNew
initialize;
yourself.
ToolBuilder open: model.

^ model
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
constants
travisTokenHelpLabel

^ 'default travis token'
Loading

0 comments on commit 4452bbe

Please sign in to comment.