Skip to content
Snippets Groups Projects
Commit 91ebe309 authored by Konstantin Baierer's avatar Konstantin Baierer
Browse files

toggle and highlight non-compliant texts

parent 745445fc
No related branches found
No related tags found
No related merge requests found
...@@ -48,6 +48,7 @@ export default { ...@@ -48,6 +48,7 @@ export default {
tool.idx = tool_idx++ tool.idx = tool_idx++
tool.part_of = project.org_plus_name tool.part_of = project.org_plus_name
tool.official = project.official tool.official = project.official
tool.compliant_cli = project.compliant_cli
return tool return tool
})) }))
return all return all
...@@ -62,4 +63,7 @@ export default { ...@@ -62,4 +63,7 @@ export default {
</script> </script>
<style> <style>
.non-compliant {
background-color: #fcc;
}
</style> </style>
...@@ -4,9 +4,14 @@ ...@@ -4,9 +4,14 @@
<b-button v-b-toggle.processor-controls class="m-1">Toggle Controls</b-button> <b-button v-b-toggle.processor-controls class="m-1">Toggle Controls</b-button>
<b-collapse id="processor-controls"> <b-collapse id="processor-controls">
<b-container> <b-container>
<b-row>
<b-form-checkbox v-model="show_noncompliant" name="check-button" switch>
Non-compliant projects <b>({{ show_noncompliant ? "Show" : "Hide" }})</b>
</b-form-checkbox>
</b-row>
<b-row> <b-row>
<b-form-checkbox v-model="show_unofficial" name="check-button" switch> <b-form-checkbox v-model="show_unofficial" name="check-button" switch>
Unofficial processors <b>({{ checked ? "Show" : "hide" }})</b> Unofficial processors <b>({{ show_unofficial ? "Show" : "hide" }})</b>
</b-form-checkbox> </b-form-checkbox>
</b-row> </b-row>
<b-row> <b-row>
...@@ -54,6 +59,7 @@ export default { ...@@ -54,6 +59,7 @@ export default {
return { return {
step_filter: [], step_filter: [],
show_unofficial: true, show_unofficial: true,
show_noncompliant: true,
category_filter: {require: true}, category_filter: {require: true},
category_filter: [], category_filter: [],
} }
...@@ -75,6 +81,9 @@ export default { ...@@ -75,6 +81,9 @@ export default {
if (!(this.show_unofficial || tool.official)) { if (!(this.show_unofficial || tool.official)) {
return false return false
} }
if (!(this.show_noncompliant || project.compliant_cli)) {
return false
}
return true return true
}) })
}, },
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<b-card <b-card
tag="article" tag="article"
:title="processor.executable.replace('ocrd-', '')" :title="processor.executable.replace('ocrd-', '')"
class="mb-5" :class="`mb-5 ocrd-processor-list-item ${processor.compliant_cli ? 'compliant' : 'non-compliant'}`"
> >
<b-card-text> <b-card-text>
......
...@@ -4,9 +4,14 @@ ...@@ -4,9 +4,14 @@
<b-button v-b-toggle.project-controls class="m-1">Toggle Controls</b-button> <b-button v-b-toggle.project-controls class="m-1">Toggle Controls</b-button>
<b-collapse id="project-controls"> <b-collapse id="project-controls">
<b-container> <b-container>
<b-row>
<b-form-checkbox v-model="show_noncompliant" name="check-button" switch>
Non-compliant projects <b>({{ show_noncompliant ? "Show" : "Hide" }})</b>
</b-form-checkbox>
</b-row>
<b-row> <b-row>
<b-form-checkbox v-model="show_unofficial" name="check-button" switch> <b-form-checkbox v-model="show_unofficial" name="check-button" switch>
Unofficial projects <b>({{ checked ? "Show" : "hide" }})</b> Unofficial projects <b>({{ show_unofficial ? "Show" : "Hide" }})</b>
</b-form-checkbox> </b-form-checkbox>
</b-row> </b-row>
<b-row> <b-row>
...@@ -51,6 +56,7 @@ export default { ...@@ -51,6 +56,7 @@ export default {
return { return {
name_filter: '', name_filter: '',
show_unofficial: true, show_unofficial: true,
show_noncompliant: true,
tabIndex: 0, tabIndex: 0,
} }
}, },
...@@ -60,6 +66,9 @@ export default { ...@@ -60,6 +66,9 @@ export default {
if (!(this.show_unofficial || project.official)) { if (!(this.show_unofficial || project.official)) {
return false return false
} }
if (!(this.show_noncompliant || project.compliant_cli)) {
return false
}
return project.name.toLowerCase().includes(this.name_filter.toLowerCase()) return project.name.toLowerCase().includes(this.name_filter.toLowerCase())
}) })
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<b-card <b-card
:title="project.org_plus_name" :title="project.org_plus_name"
tag="article" tag="article"
class="mb-5 ocrd-project-list-item" :class="`mb-5 ocrd-project-list-item ${project.compliant_cli ? 'compliant' : 'non-compliant'}`"
> >
<b-card-text v-if="!modal"> <b-card-text v-if="!modal">
<b-button @click="$root.showModal('project', projectIndex)">Expand</b-button> <b-button @click="$root.showModal('project', projectIndex)">Expand</b-button>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<b-tab title="Git"> <b-tab title="Git">
<b-card-text> <b-card-text>
<p> <p>
<a href="`https://pypi.org/project/${ project.python.name }/`"> <img :src="`https://img.shields.io/pypi/v/${ project.python.name }.svg`" /> </a> <a v-if="project.python" href="`https://pypi.org/project/${ project.python.name }/`"> <img :src="`https://img.shields.io/pypi/v/${ project.python.name }.svg`" /> </a>
<!-- <a href="`https://travis-ci.org/${ project.org_plus_name }`"> <img :src="`https://travis-ci.org/${ project.org_plus_name }.svg?branch=master`" /> </a> --> <!-- <a href="`https://travis-ci.org/${ project.org_plus_name }`"> <img :src="`https://travis-ci.org/${ project.org_plus_name }.svg?branch=master`" /> </a> -->
<!-- <a href="`https://circleci.com/gh/${ project.org_plus_name }`"> <img :src="`https://circleci.com/gh/${ project.org_plus_name }.svg?style=svg`" /> </a> --> <!-- <a href="`https://circleci.com/gh/${ project.org_plus_name }`"> <img :src="`https://circleci.com/gh/${ project.org_plus_name }.svg?style=svg`" /> </a> -->
<!-- <a href="`https://hub.docker.com/r/ocrd/core/tags/`"> <img :src="`https://img.shields.io/docker/automated/ocrd/core.svg`" /> </a> --> <!-- <a href="`https://hub.docker.com/r/ocrd/core/tags/`"> <img :src="`https://img.shields.io/docker/automated/ocrd/core.svg`" /> </a> -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment