Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ APP_PORT=8087
AWS_REGION=us-west-2
RTCSTATS_S3_BUCKET=jitsi-micros-rtcstats-server
RTCSTATS_METADATA_TABLE=rtcstats-meta-table-local
RTCSTATS_JWT_PUBLIC_KEY=
RTCSTATS_FILES_ENDPOINT=
USERS_FILE=.data/users.json

209 changes: 201 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "visualizer-server",
"version": "0.2.10",
"version": "0.3.5",
"description": "Visualize RTC stats data",
"repository": "https://github.com/8x8Cloud/rtc-visualizer",
"author": "8x8",
Expand Down Expand Up @@ -75,6 +75,7 @@
"dynamoose": "^2.6.0",
"express": "^4.17.1",
"express-basic-auth": "^1.2.0",
"jsonwebtoken": "^9.0.2",
"morgan": "^1.10.0",
"plotly.js-dist": "^2.22.0",
"react": "^17.0.2",
Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ REPOSITORY=${REPOSITORY_URL}:${VERSION}

echo Building tag image $REPOSITORY

docker build -t $REPOSITORY .
docker build --platform linux/amd64 -t $REPOSITORY .

if [[ ${SHOULD_PUSH_IMAGE} == true ]]
then
Expand Down
5 changes: 5 additions & 0 deletions src/client/app/config/actions-types.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { generateActions } from '../utils'

export default generateActions([
'SetConfig'
])
22 changes: 22 additions & 0 deletions src/client/app/config/actions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import Actions from './actions-types'

export const setConfig = (config) => ({
type: Actions.SetConfig,
payload: config
})

export const fetchConfig = () => {
return async (dispatch) => {
try {
const response = await fetch('/meet-external/rtc-visualizer/config')
if (!response.ok) {
throw new Error('Unable to fetch confiug data')
}

const config = await response.json()
dispatch(setConfig(config))
} catch (error) {
console.error('Error fetching config:', error)
}
}
}
Loading