Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Kemence
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Disappointment industries™
Kemence
Commits
b3ea7c50
Commit
b3ea7c50
authored
3 years ago
by
Tóth Miklós Tibor
Browse files
Options
Downloads
Patches
Plain Diff
Misc fixes
parent
b56ebbe7
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#30606
passed
3 years ago
Stage: build
Stage: package
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/jsMain/kotlin/gapi/Gapi.kt
+1
-0
1 addition, 0 deletions
src/jsMain/kotlin/gapi/Gapi.kt
src/jsMain/kotlin/pekstuff/PekNote.kt
+13
-4
13 additions, 4 deletions
src/jsMain/kotlin/pekstuff/PekNote.kt
src/jsMain/kotlin/pekstuff/Utils.kt
+3
-0
3 additions, 0 deletions
src/jsMain/kotlin/pekstuff/Utils.kt
with
17 additions
and
4 deletions
src/jsMain/kotlin/gapi/Gapi.kt
+
1
−
0
View file @
b3ea7c50
...
...
@@ -121,6 +121,7 @@ private fun inited() {
// Skip display of account chooser and consent dialog for an existing session.
tokenClient
.
requestAccessToken
(
js
(
"{prompt: ''}"
))
}
Unit
}
logOut
=
{
...
...
This diff is collapsed.
Click to expand it.
src/jsMain/kotlin/pekstuff/PekNote.kt
+
13
−
4
View file @
b3ea7c50
...
...
@@ -15,24 +15,33 @@ object PekNote {
.
toList
().
lastOrNull
()
as
?
HTMLAnchorElement
private
val
noteCnt
get
()
=
document
.
getElementById
(
"comment-textarea"
)
as
?
HTMLTextAreaElement
private
val
btn
get
()
=
document
.
querySelector
(
"#comment-container > div > form.edit_point_detail_comment > article.uk-comment > div.uk-clearfix > div.uk-float-right > input.uk-button"
)
as
?
HTMLInputElement
?:
document
.
querySelector
(
"#comment-container > div > form.new_point_detail_comment > article.uk-comment > div.uk-clearfix > div.uk-float-right > input.uk-button"
)
as
?
HTMLInputElement
fun
getNote
()
=
noteCnt
!!
.
value
suspend
fun
setNote
(
value
:
String
)
{
val
origCnt
=
noteCnt
val
edit
=
editBtn
if
(
edit
!=
null
)
{
edit
.
click
()
delay
(
1000
)
while
(
noteCnt
==
origCnt
)
{
delay
(
50
)
}
if
(
noteCnt
!!
.
value
==
value
)
{
}
val
realValue
=
value
.
ifBlank
{
"⠀"
}
if
(
noteCnt
!!
.
value
==
value
||
noteCnt
!!
.
value
==
realValue
)
{
return
}
noteCnt
!!
.
value
=
v
alue
noteCnt
!!
.
value
=
realV
alue
btn
!!
.
click
()
val
origBtn
=
btn
while
(
btn
==
origBtn
||
btn
!!
.
disabled
)
{
delay
(
50
)
}
}
suspend
fun
waitUntilLoaded
(
person
:
String
,
principle
:
String
)
{
val
expected
=
"$person - $principle"
while
(
noteName
!=
expected
)
{
delay
(
10
0
)
delay
(
5
0
)
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/jsMain/kotlin/pekstuff/Utils.kt
+
3
−
0
View file @
b3ea7c50
...
...
@@ -75,10 +75,13 @@ suspend fun PekTable.clear(
progress
:
(
Double
)
->
Unit
=
{}
)
{
progress
(
0.0
)
showComments
()
people
.
forEachIndexed
{
i
,
person
->
principles
.
forEachIndexed
{
j
,
principle
->
PekTable
[
person
,
principle
]
=
0
PekDelay
()
PekNote
.
waitUntilLoaded
(
person
,
principle
)
PekNote
.
setNote
(
""
)
progress
(
calcProgress
(
i
,
j
,
people
.
size
,
principles
.
size
))
}
...
...
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