forked from learningequality/kolibri
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #2 from indirectlylit/shared-icons
making a shared component and shared icon, reusable across the learn app
- Loading branch information
Showing
17 changed files
with
46 additions
and
159 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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
34 changes: 34 additions & 0 deletions
34
kolibri/plugins/learn/assets/src/vue/content-icon/index.vue
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,34 @@ | ||
<template> | ||
|
||
<img :src="src"> | ||
|
||
</template> | ||
|
||
|
||
<script> | ||
module.exports = { | ||
props: { | ||
progress: { | ||
type: String, | ||
default: 'unstarted', | ||
}, | ||
kind: { | ||
type: String, | ||
required: true, | ||
}, | ||
}, | ||
computed: { | ||
src() { | ||
// Note: dynamic requires should be used carefully because | ||
// they greedily add items to the webpack bundle. | ||
// See https://webpack.github.io/docs/context.html | ||
return require(`./content-icons/${this.progress}-${this.kind}.svg`); | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
|
||
<style lang="stylus" scoped></style> |
File renamed without changes
158 changes: 7 additions & 151 deletions
158
kolibri/plugins/learn/assets/src/vue/search-widget/search-card.vue
Large diffs are not rendered by default.
Oops, something went wrong.
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