Skip to content

Commit

Permalink
[pre-commit] fixes from hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Feb 27, 2025
1 parent f60b821 commit d068654
Show file tree
Hide file tree
Showing 6 changed files with 558 additions and 233 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@


class Migration(migrations.Migration):

dependencies = [
('library', '0008_merge_20250218_1348'),
("library", "0008_merge_20250218_1348"),
]

operations = [
migrations.RenameField(
model_name='library',
old_name='dilution_factor',
new_name='removed_dilution_factor',
model_name="library",
old_name="dilution_factor",
new_name="removed_dilution_factor",
),
]
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,27 @@


class Migration(migrations.Migration):

dependencies = [
('library_preparation', '0005_rename_qpcr_result_librarypreparation_removed_qpcr_result'),
(
"library_preparation",
"0005_rename_qpcr_result_librarypreparation_removed_qpcr_result",
),
]

operations = [
migrations.RenameField(
model_name='librarypreparation',
old_name='nM',
new_name='removed_nM',
model_name="librarypreparation",
old_name="nM",
new_name="removed_nM",
),
migrations.RenameField(
model_name='librarypreparation',
old_name='spike_in_description',
new_name='removed_spike_in_description',
model_name="librarypreparation",
old_name="spike_in_description",
new_name="removed_spike_in_description",
),
migrations.RenameField(
model_name='librarypreparation',
old_name='spike_in_volume',
new_name='removed_spike_in_volume',
model_name="librarypreparation",
old_name="spike_in_volume",
new_name="removed_spike_in_volume",
),
]
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@


class Migration(migrations.Migration):

dependencies = [
('sample', '0012_merge_20250218_1348'),
("sample", "0012_merge_20250218_1348"),
]

operations = [
migrations.RenameField(
model_name='sample',
old_name='dilution_factor',
new_name='removed_dilution_factor',
model_name="sample",
old_name="dilution_factor",
new_name="removed_dilution_factor",
),
]
62 changes: 47 additions & 15 deletions frontend/src/components/TabulatorTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,48 @@

<!-- Errors window -->
<div v-if="showErrorsWindow" class="popup-overlay">
<div class="popup-container" :style="{
height: errorsPopupContents.errorsPopupHeight + 'px',
width: errorsPopupContents.errorsPopupWidth + 'px'
}">
<div
class="popup-container"
:style="{
height: errorsPopupContents.errorsPopupHeight + 'px',
width: errorsPopupContents.errorsPopupWidth + 'px'
}"
>
<div class="popup-header">
<svg style="display: block" fill="none" width="42px" height="42px" version="1.1"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<svg
style="display: block"
fill="none"
width="42px"
height="42px"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
>
<g>
<path opacity="0.3"
<path
opacity="0.3"
d="M3 9.22843V14.7716C3 15.302 3.21071 15.8107 3.58579 16.1858L7.81421 20.4142C8.18929 20.7893 8.69799 21 9.22843 21H14.7716C15.302 21 15.8107 20.7893 16.1858 20.4142L20.4142 16.1858C20.7893 15.8107 21 15.302 21 14.7716V9.22843C21 8.69799 20.7893 8.18929 20.4142 7.81421L16.1858 3.58579C15.8107 3.21071 15.302 3 14.7716 3H9.22843C8.69799 3 8.18929 3.21071 7.81421 3.58579L3.58579 7.81421C3.21071 8.18929 3 8.69799 3 9.22843Z"
fill="#323232" />
fill="#323232"
/>
<path
d="M3 9.22843V14.7716C3 15.302 3.21071 15.8107 3.58579 16.1858L7.81421 20.4142C8.18929 20.7893 8.69799 21 9.22843 21H14.7716C15.302 21 15.8107 20.7893 16.1858 20.4142L20.4142 16.1858C20.7893 15.8107 21 15.302 21 14.7716V9.22843C21 8.69799 20.7893 8.18929 20.4142 7.81421L16.1858 3.58579C15.8107 3.21071 15.302 3 14.7716 3H9.22843C8.69799 3 8.18929 3.21071 7.81421 3.58579L3.58579 7.81421C3.21071 8.18929 3 8.69799 3 9.22843Z"
stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
<path d="M12 8V13" stroke="white" stroke-width="1.5" stroke-linecap="round" />
<path d="M12 16V15.9888" stroke="white" stroke-width="1.5" stroke-linecap="round" />
stroke="white"
stroke-width="1.5"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path
d="M12 8V13"
stroke="white"
stroke-width="1.5"
stroke-linecap="round"
/>
<path
d="M12 16V15.9888"
stroke="white"
stroke-width="1.5"
stroke-linecap="round"
/>
</g>
</svg>
<span class="popup-title">Paste Error</span>
Expand All @@ -32,9 +58,15 @@
Following errors occurred while pasting, please try again after
fixing:
</div>
<div v-if="errorsPopupContents.errorsList?.length" class="popup-scrollable-content">
<div
v-if="errorsPopupContents.errorsList?.length"
class="popup-scrollable-content"
>
<ol style="padding-left: 25px">
<li v-for="(item, index) in errorsPopupContents.errorsList" :key="index">
<li
v-for="(item, index) in errorsPopupContents.errorsList"
:key="index"
>
{{ item.barcode + " ➜ " }}
<span style="font-weight: bold">{{ item.message }}</span>
</li>
Expand Down Expand Up @@ -807,8 +839,8 @@ export default {
const editorParamsList =
typeof columnDef.editorParams === "function"
? columnDef.editorParams({
getRow: () => ({ getData: () => rowData })
})
getRow: () => ({ getData: () => rowData })
})
: columnDef.editorParams;
const options =
editorParamsList?.values?.map((opt) =>
Expand Down
Loading

0 comments on commit d068654

Please sign in to comment.