Skip to content

Commit

Permalink
Remove unused classes (#1363)
Browse files Browse the repository at this point in the history
Currently there exists some pug files which contain classes 
not referenced in any stylesheet or javascript code.

Removing unused classes would improve the readability of code.

Let's remove unused css classes from pug files.
  • Loading branch information
gerhean authored Dec 20, 2020
1 parent 10c1959 commit 0b7e276
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions frontend/src/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@ html

#tabs-wrapper(ref="tabWrapper", slot="right")
.tab-content.panel-padding
.tab-panes
v-authorship#tab-authorship.tab-pane(
.tab-pane
v-authorship#tab-authorship(
v-if="tabType === 'authorship'",
v-bind:key="generateKey(tabInfo.tabAuthorship)",
v-bind:info="tabInfo.tabAuthorship")
v-zoom#tab-zoom.tab-pane(
v-zoom#tab-zoom(
v-else-if="tabType === 'zoom'",
v-bind:key="generateKey(tabInfo.tabZoom)",
v-bind:info="tabInfo.tabZoom")
#tab-empty.tab-pane(v-else)
#tab-empty(v-else)
.title
h2 Welcome to this RepoSense report!
p The charts on the left show the contribution activities, grouped by repository and author.
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/static/css/panels.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
.tab-content {
display: flex;

.tab-panes {
.tab-pane {
text-align: left;
width: 100%;
}
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/summary.pug
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
form.summary-picker.mui-form--inline(onsubmit="return false;")
.summary-picker__section
.mui-textfield.search_box
input.summary-picker__search(type="text", v-on:change="updateFilterSearch", v-model="filterSearch")
input(type="text", v-on:change="updateFilterSearch", v-model="filterSearch")
label search
button.mui-btn.mui-btn--raised(type="button", v-on:click.prevent="resetFilterSearch") x
.mui-select.grouping
Expand Down Expand Up @@ -38,31 +38,31 @@
option(value="day") Day
option(value="week") Week
label granularity
.mui-textfield.summary-picker__date
.mui-textfield
input(v-if="isSafariBrowser", type="text", placeholder="yyyy-mm-dd",
v-bind:value="filterSinceDate", v-on:keyup.enter="updateTmpFilterSinceDate",
onkeydown="formatInputDateOnKeyDown(event)", oninput="appendDashInputDate(event)", maxlength=10)
input(v-else, type="date", name="since", v-bind:value="filterSinceDate", v-on:input="updateTmpFilterSinceDate",
v-bind:min="minDate", v-bind:max="filterUntilDate")
label since
.mui-textfield.summary-picker__date
.mui-textfield
input(v-if="isSafariBrowser", type="text", placeholder="yyyy-mm-dd",
v-bind:value="filterUntilDate", v-on:keyup.enter="updateTmpFilterUntilDate",
onkeydown="formatInputDateOnKeyDown(event)", oninput="appendDashInputDate(event)", maxlength=10)
input(v-else, type="date", name="until", v-bind:value="filterUntilDate", v-on:input="updateTmpFilterUntilDate",
v-bind:min="filterSinceDate", v-bind:max="maxDate")
label until
.mui-textfield.summary-picker__date
.mui-textfield
a(v-on:click="resetDateRange") Reset date range
.summary-picker__checkboxes.summary-picker__section
label.filter-breakdown
input.mui-checkbox.summary-picker__checkbox(type="checkbox", v-model="filterBreakdown",
input.mui-checkbox(type="checkbox", v-model="filterBreakdown",
v-on:change="setSummaryHash()")
span breakdown by file type
label.merge-group(
v-bind:style="filterGroupSelection === 'groupByNone' ? { opacity:0.5 } : { opacity:1.0 }"
)
input.summary-picker__checkbox.mui-checkbox(
input.mui-checkbox(
type="checkbox",
v-model="allGroupsMerged",
v-bind:disabled="filterGroupSelection === 'groupByNone'"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/tabs/authorship.pug
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
v-model="filterType",
v-on:change="indicateSearchBar(); updateSearchBarValue();"
)
.file-picker.mui-form--inline
.mui-form--inline
input#search(
type="search",
placeholder="Filter by glob",
Expand Down

0 comments on commit 0b7e276

Please sign in to comment.