Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
crlssn committed Nov 21, 2024
1 parent 3827d88 commit edf0bce
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: npm run format
shell: bash

- name: Check for uncommitted changes
- name: Check for uncommitted formatting changes
run: |
if [[ $(git status --porcelain) ]]; then
echo "Code is not properly formatted. Please run 'npm run format'."
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/rpc/v1/exercise.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (h *exerciseHandler) Delete(ctx context.Context, req *connect.Request[v1.De
return connect.NewResponse(&v1.DeleteExerciseResponse{}), nil
}

func (h *exerciseHandler) List(ctx context.Context, req *connect.Request[v1.ListExercisesRequest]) (*connect.Response[v1.ListExercisesResponse], error) { //nolint:dupl
func (h *exerciseHandler) List(ctx context.Context, req *connect.Request[v1.ListExercisesRequest]) (*connect.Response[v1.ListExercisesResponse], error) {
log := h.log.With(xzap.FieldRPC(apiv1connect.ExerciseServiceListProcedure))
log.Info("request received")

Expand Down
2 changes: 1 addition & 1 deletion apps/backend/rpc/v1/routine.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (h *routineHandler) Delete(ctx context.Context, req *connect.Request[v1.Del
return connect.NewResponse(&v1.DeleteRoutineResponse{}), nil
}

func (h *routineHandler) List(ctx context.Context, req *connect.Request[v1.ListRoutinesRequest]) (*connect.Response[v1.ListRoutinesResponse], error) { //nolint:dupl
func (h *routineHandler) List(ctx context.Context, req *connect.Request[v1.ListRoutinesRequest]) (*connect.Response[v1.ListRoutinesResponse], error) {
log := h.log.With(xzap.FieldRPC(apiv1connect.RoutineServiceListProcedure))
log.Info("request received")

Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/views/Workouts/ViewWorkout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const fetchWorkout = async () => {
}
const fetchExercises = async () => {
const exerciseIDs: string[] = [];
const exerciseIDs: string[] = []
workout.value?.exerciseSets.forEach((exerciseSet) => {
exerciseIDs.push(exerciseSet.exerciseId)
})
Expand Down Expand Up @@ -56,7 +56,7 @@ const getExercise = (id: string) => {
<li v-for="exerciseSet in workout?.exerciseSets" :key="exerciseSet.exerciseId">
<p class="font-medium mb-2">{{ getExercise(exerciseSet.exerciseId)?.name }}</p>
<p v-for="(set, index) in exerciseSet.sets" :key="index" class="text-sm mb-1">
<span class="font-medium">Set {{ index+1}}:</span> {{ set.reps }} x {{ set.weight }} kg
<span class="font-medium">Set {{ index + 1 }}:</span> {{ set.reps }} x {{ set.weight }} kg
</p>
</li>
</ul>
Expand All @@ -69,6 +69,6 @@ h6 {
@apply text-xs font-medium text-gray-600 mb-2 uppercase;
}
li {
@apply block px-4 py-5
@apply block px-4 py-5;
}
</style>

0 comments on commit edf0bce

Please sign in to comment.