-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
working on some further courseware changes
- Loading branch information
Showing
6 changed files
with
390 additions
and
103 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,42 @@ | ||
<template> | ||
<div class="oc--ltiauth"> | ||
<template | ||
v-for="server in simple_config_list.server" | ||
> | ||
<!-- iterate over all opencast nodes for this server as well --> | ||
<iframe | ||
v-for="i in server.lti_num" | ||
v-bind:key="i" | ||
:src="authUrl(server.id, i - 1)"> | ||
</iframe> | ||
</template> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { mapGetters } from "vuex"; | ||
export default { | ||
name: "LtiAuth", | ||
computed: { | ||
...mapGetters(['simple_config_list', 'cid']), | ||
}, | ||
methods: { | ||
authUrl(config_id, num) { | ||
// check, if we are in a course | ||
if (this.cid) { | ||
return window.OpencastPlugin.AUTH_URL + '/' + num + '?config_id=' + config_id + '&cid=' + this.cid; | ||
} else { | ||
return window.OpencastPlugin.AUTH_URL + '/' + num + '?config_id=' + config_id; | ||
} | ||
} | ||
}, | ||
mounted() { | ||
this.$store.dispatch('simpleConfigListRead'); | ||
} | ||
} | ||
</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,19 @@ | ||
<template> | ||
<span> | ||
<studip-icon shape="tag" role="info"/> | ||
<span>{{ tag }}</span> | ||
</span> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'Tag', | ||
components: { | ||
}, | ||
props: ['tag'] | ||
} | ||
</script> |
Oops, something went wrong.