-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #491 from ChicagoWorldcon/development
1.6.2-rc1
- Loading branch information
Showing
20 changed files
with
328 additions
and
57 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
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,24 @@ | ||
# Produce a schedule suitable for Conclar | ||
class ScheduleController < ApplicationController | ||
skip_before_action :check_up, :authenticate_person!, only: [:index, :participants] | ||
|
||
def index | ||
sessions = ReportsService.scheduled_sessions | ||
|
||
render json: ActiveModel::Serializer::CollectionSerializer.new( | ||
sessions, | ||
serializer: Conclar::SessionSerializer | ||
), | ||
content_type: 'application/json' | ||
end | ||
|
||
def participants | ||
participants = ReportsService.scheduled_people | ||
|
||
render json: ActiveModel::Serializer::CollectionSerializer.new( | ||
participants, | ||
serializer: Conclar::ParticipantSerializer | ||
), | ||
content_type: 'application/json' | ||
end | ||
end |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<template> | ||
<v-select :options="formatNames" @input="$emit('input', $event)" :value="value" class="w-100"></v-select> | ||
</template> | ||
|
||
<script> | ||
import { formatModel as model } from "@/store/format.store" | ||
import { FETCH } from "@/store/model.store"; | ||
export default { | ||
name: "FormatSelectForSearch", | ||
props: ['value'], | ||
computed: { | ||
formatNames() { | ||
let vals = this.$store.getters['jv/get']({_jv: { type: model }}) | ||
return Object.values(vals).map(a => a.name).sort((a, b)=> a < b ? -1 : 1 ) | ||
} | ||
}, | ||
mounted() { | ||
this.$store.dispatch(FETCH, {model}); | ||
} | ||
} | ||
</script> |
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,21 @@ | ||
<template> | ||
<v-select :options="roomNames" @input="$emit('input', $event)" :value="value" class="w-100"></v-select> | ||
</template> | ||
|
||
<script> | ||
import { roomModel as model } from "@/store/room.store" | ||
import { FETCH } from "@/store/model.store"; | ||
export default { | ||
name: "RoomSelectForSearch", | ||
props: ['value'], | ||
computed: { | ||
roomNames() { | ||
return Object.values(this.$store.getters['jv/get']({_jv: { type: model }})).map(a => a.name).sort((a, b)=> a < b ? -1 : 1 ) | ||
} | ||
}, | ||
mounted() { | ||
this.$store.dispatch(FETCH, {model}); | ||
} | ||
} | ||
</script> |
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.