forked from bigbluebutton/bigbluebutton
-
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.
Merge remote-tracking branch 'bbb/v2.7.x-release' into HEAD
- Loading branch information
Showing
688 changed files
with
18,086 additions
and
5,957 deletions.
There are no files selected for viewing
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,20 @@ | ||
name: Merge branches | ||
on: | ||
workflow_call: | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Checkout ${{ github.event.pull_request.base.ref || 'master' }} | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.base.ref || '' }} | ||
fetch-depth: 0 # Fetch all history | ||
- name: Merge pr-${{ github.event.number }} into ${{ github.event.pull_request.base.ref }} | ||
if: github.event_name == 'pull_request' | ||
shell: bash | ||
run: | | ||
git config user.name "BBB Automated Tests" | ||
git config user.email "[email protected]" | ||
git config pull.rebase false | ||
git pull origin pull/${{ github.event.number }}/head:${{ github.head_ref }} |
Large diffs are not rendered by default.
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ on: | |
- 'develop' | ||
paths: | ||
- 'docs/**' | ||
- '.github/**' | ||
|
||
# Do not build the docs concurrently | ||
concurrency: | ||
|
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
100 changes: 100 additions & 0 deletions
100
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/TimerModel.scala
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,100 @@ | ||
package org.bigbluebutton.core.apps | ||
|
||
object TimerModel { | ||
def createTimer( | ||
model: TimerModel, | ||
stopwatch: Boolean = true, | ||
time: Int = 0, | ||
accumulated: Int = 0, | ||
track: String = "", | ||
): Unit = { | ||
model.stopwatch = stopwatch | ||
model.time = time | ||
model.accumulated = accumulated | ||
model.track = track | ||
} | ||
|
||
def reset(model: TimerModel, stopwatch: Boolean, time: Int, accumulated: Int, startedAt: Long, track: String) : Unit = { | ||
model.stopwatch = stopwatch | ||
model.time = time | ||
model.accumulated = accumulated | ||
model.startedAt = startedAt | ||
model.track = track | ||
model.endedAt = 0 | ||
} | ||
|
||
def setIsActive(model: TimerModel, active: Boolean): Unit = { | ||
model.isActive = active | ||
} | ||
|
||
def getIsACtive(model: TimerModel): Boolean = { | ||
model.isActive | ||
} | ||
|
||
def setStartedAt(model: TimerModel, timestamp: Long): Unit = { | ||
model.startedAt = timestamp | ||
} | ||
|
||
def getStartedAt(model: TimerModel): Long = { | ||
model.startedAt | ||
} | ||
|
||
def setAccumulated(model: TimerModel, accumulated: Int): Unit = { | ||
model.accumulated = accumulated | ||
} | ||
|
||
def getAccumulated(model: TimerModel): Int = { | ||
model.accumulated | ||
} | ||
|
||
def setRunning(model: TimerModel, running: Boolean): Unit = { | ||
model.running = running | ||
} | ||
|
||
def getRunning(model: TimerModel): Boolean = { | ||
model.running | ||
} | ||
|
||
def setStopwatch(model: TimerModel, stopwatch: Boolean): Unit = { | ||
model.stopwatch = stopwatch | ||
} | ||
|
||
def getStopwatch(model: TimerModel): Boolean = { | ||
model.stopwatch | ||
} | ||
|
||
def setTrack(model: TimerModel, track: String): Unit = { | ||
model.track = track | ||
} | ||
|
||
def getTrack(model: TimerModel): String = { | ||
model.track | ||
} | ||
|
||
def setTime(model: TimerModel, time: Int): Unit = { | ||
model.time = time | ||
} | ||
|
||
def getTime(model: TimerModel): Int = { | ||
model.time | ||
} | ||
|
||
def setEndedAt(model: TimerModel, timestamp: Long): Unit = { | ||
model.endedAt = timestamp | ||
} | ||
|
||
def getEndedAt(model: TimerModel): Long = { | ||
model.endedAt | ||
} | ||
} | ||
|
||
class TimerModel { | ||
private var startedAt: Long = 0 | ||
private var endedAt: Long = 0 | ||
private var accumulated: Int = 0 | ||
private var running: Boolean = false | ||
private var time: Int = 0 | ||
private var stopwatch: Boolean = true | ||
private var track: String = "" | ||
private var isActive: Boolean = false | ||
} |
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
Oops, something went wrong.