-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Currently, there are no ways for student developers to append messages for each of the repositories they would like to showcase using RepoSense. Let's move to implement a blurbs feature to allow individual student developers to showcase their contributions to their project.
- Loading branch information
1 parent
20526f4
commit f4cad78
Showing
41 changed files
with
1,300 additions
and
18 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,2 @@ | ||
https://github.com/reposense/testrepo-Alpha/tree/master | ||
Master branch of testrepo-Alpha |
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,5 @@ | ||
https://github.com/reposense/RepoSense/tree/cypress | ||
Cypress branch of RepoSense | ||
<!--repo-->------------------------------------ | ||
https://github.com/reposense/publish-RepoSense/tree/master | ||
Publishing branch of RepoSense |
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,11 @@ | ||
https://github.com/reposense/RepoSense/tree/cypress | ||
first blurb | ||
<!--repo-->------------------------------------ | ||
https://gitlab.com/reposense/testrepo-gitlab/-/tree/main | ||
unseen blurb | ||
<!--repo-->------------------------------------ | ||
https://github.com/reposense/publish-RepoSense/tree/master | ||
## third blurb in h2 markdown tag | ||
<!--repo-->------------------------------------ | ||
https://github.com/reposense/RepoSense-auth-helper/tree/master | ||
<h1>second blurb in h1 tag</h1> |
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 @@ | ||
describe('blurbs', () => { | ||
it('shows blurbs', () => { | ||
cy.get('.markdown.blurb') | ||
.first() | ||
.should('contain', 'first blurb'); | ||
|
||
cy.get('.markdown.blurb') | ||
.eq(1) | ||
.should('contain', 'second blurb'); | ||
|
||
cy.get('.markdown.blurb') | ||
.eq(2) | ||
.should('contain', 'third blurb'); | ||
}); | ||
|
||
it('has the correct number of valid blurbs', () => { | ||
cy.get('.markdown.blurb') | ||
.should('have.length', 3); | ||
}); | ||
|
||
it('processes markdown in blurbs', () => { | ||
cy.get('.markdown.blurb') | ||
.eq(1) | ||
.find('h1') | ||
.contains('second blurb in h1 tag'); | ||
}); | ||
|
||
it('processes html in blurbs', () => { | ||
cy.get('.markdown.blurb') | ||
.eq(2) | ||
.find('h2') | ||
.contains('third blurb in h2 markdown tag'); | ||
}); | ||
}); |
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,30 @@ | ||
<template lang="pug"> | ||
.markdown(v-html="parsedHtml", v-if="markdownText != ''") | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from 'vue'; | ||
import MarkdownIt from 'markdown-it'; | ||
export default defineComponent({ | ||
props: { | ||
markdownText: { | ||
type: String, | ||
required: true, | ||
}, | ||
}, | ||
computed: { | ||
parsedHtml() { | ||
const md = new MarkdownIt({ html: true }); | ||
return md.render(this.markdownText); | ||
}, | ||
}, | ||
}); | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.markdown { | ||
overflow-x: auto; | ||
padding: 0 1.5rem; | ||
} | ||
</style> |
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
Oops, something went wrong.