Skip to content

Commit

Permalink
Merge branch 'BC-3844-vue3-webpack' of github.com:hpi-schul-cloud/nux…
Browse files Browse the repository at this point in the history
…t-client into BC-3844-vue3-webpack
  • Loading branch information
uidp committed Oct 17, 2023
2 parents b8e26fa + f8dc4b1 commit 473c5d2
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 63 deletions.
5 changes: 4 additions & 1 deletion src/components/administration/AdminMigrationSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
inset
density="compact"
class="ml-1"
color="primary"
data-testid="migration-mandatory-switch"
@update:model-value="
setMigrationMandatory(!oauthMigration.mandatorySince)
Expand Down Expand Up @@ -131,6 +132,7 @@
inset
density="compact"
class="ml-1"
color="primary"
data-testid="enable-sync-during-migration-switch"
@update:model-value="setSchoolFeatures"
/>
Expand All @@ -143,8 +145,9 @@
"
v-model="school.features.showOutdatedUsers"
inset
dense
density="compact"
class="ml-1"
color="primary"
data-testid="show-outdated-users-switch"
@update:model-value="setSchoolFeatures"
/>
Expand Down
6 changes: 3 additions & 3 deletions src/components/molecules/vRoomGroupAvatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
tabindex="-1"
/>
</v-card>
<div aria-hidden="true" class="justify-left mt-1 subtitle">
{{ data.title }}
</div>
</v-badge>
<div aria-hidden="true" class="mt-2 subtitle">
{{ data.title }}
</div>
</div>
</template>
<script>
Expand Down
1 change: 1 addition & 0 deletions src/components/organisms/Ldap/LdapClassesSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
inset
:label="$t('pages.administration.ldap.classes.activate.import')"
density="compact"
color="primary"
></v-switch>
<p class="title-class">
{{ $t("pages.administration.ldap.classes.path.subtitle") }}
Expand Down
112 changes: 53 additions & 59 deletions src/components/organisms/RoomAvatarIterator.vue
Original file line number Diff line number Diff line change
@@ -1,68 +1,62 @@
<template>
<v-data-iterator
:items="items"
:items-per-page="maxItems"
hide-default-footer
no-data-text=""
>
<template #default="props">
<v-container>
<v-row align="center">
<v-col
v-for="item in props.items"
:key="item.id"
class="d-flex justify-center ma-0 mt-1 mb-0.5 pa-0"
:cols="colCount"
>
<vRoomAvatar
:draggable="canDraggable"
class="room-avatar"
:item="item"
:size="itemSize"
:show-badge="true"
:condense-layout="condenseLayout"
@startDrag="$emit('startDrag', $event)"
></vRoomAvatar>
</v-col>
</v-row>
</v-container>
</template>
</v-data-iterator>
<v-container>
<v-row align="center">
<v-col
v-for="item in items"
:key="item.id"
class="d-flex justify-center ma-0 mt-1 mb-0.5 pa-0"
:cols="colCount"
>
<vRoomAvatar
:draggable="canDraggable"
class="room-avatar"
:item="item"
:size="itemSize"
:show-badge="true"
:condense-layout="condenseLayout"
@startDrag="$emit('startDrag', $event)"
></vRoomAvatar>
</v-col>
</v-row>
</v-container>
</template>

<script>
import { defineComponent } from "vue";
<script setup lang="ts">
import vRoomAvatar from "@/components/atoms/vRoomAvatar.vue";
// eslint-disable-next-line vue/require-direct-export
export default defineComponent({
components: {
vRoomAvatar,
type ItemType = {
id: string;
title: string;
shortTitle: string;
displayColor: string;
xPosition: number;
yPosition: number;
to: string;
};
defineProps({
items: {
type: Array<ItemType>,
default: () => [{}],
},
colCount: {
type: Number,
default: 4,
},
condenseLayout: {
type: Boolean,
},
itemSize: {
type: String,
default: "3em",
},
maxItems: {
type: Number,
default: 9,
},
props: {
items: {
type: Array,
default: () => [{}],
},
colCount: {
type: Number,
default: 4,
},
condenseLayout: {
type: Boolean,
},
itemSize: {
type: String,
default: "3em",
},
maxItems: {
type: Number,
default: 9,
},
canDraggable: {
type: Boolean,
},
canDraggable: {
type: Boolean,
},
emits: ["startDrag"],
});
defineEmits(["startDrag"]);
</script>

0 comments on commit 473c5d2

Please sign in to comment.