Skip to content

Commit

Permalink
explicitly inserted tbody dom element into every table dom
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Lukasczyk committed Sep 6, 2024
1 parent e59c282 commit dd6755d
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 100 deletions.
2 changes: 1 addition & 1 deletion packages/main/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const initCore = async () => {
}

/**
* Do this to allow swate hosting with https
* Do this to allow swate hosting with https
*/
if (!app.isPackaged)
app.commandLine.appendSwitch('ignore-certificate-errors');
Expand Down
10 changes: 6 additions & 4 deletions packages/renderer/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,12 @@ const test = async ()=>{

<q-card-section class="q-pt-none text-body1">
<table>
<tr>
<td style="padding-right:1em"><q-icon name='warning' size='2em' color='grey-7' /></td>
<td v-html='iProps.error_text'></td>
</tr>
<tbody>
<tr>
<td style="padding-right:1em"><q-icon name='warning' size='2em' color='grey-7' /></td>
<td v-html='iProps.error_text'></td>
</tr>
</tbody>
</table>
</q-card-section>

Expand Down
4 changes: 2 additions & 2 deletions packages/renderer/src/views/ArcTreeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ watch(()=>AppProperties.state, async (newValue, oldValue) => {
@contextmenu="e=>onCellContextMenu(e,prop.node)"
@click='e=>triggerNode(e,prop.node)'
>
<table class='tree_node'><tr>
<table class='tree_node'><tbody><tr>
<td>
<q-icon v-if='prop.node.icon' :name='prop.node.icon' style="padding:0 0.2em 0 0;"></q-icon>
<span>{{ prop.node.label }}</span>
Expand All @@ -660,7 +660,7 @@ watch(()=>AppProperties.state, async (newValue, oldValue) => {
<q-icon v-if='prop.node.type==="studies"' name='add' class='tree_button' @click='e=>addStudy(e,prop.node)'></q-icon>
<q-badge v-if='props.lfs_file_paths.includes(prop.node.id_rel)' color="secondary" text-color="white" label="LFS" class='tree_button'/>
</td>
</tr></table>
</tr></tbody></table>
</div>
</template>
</q-tree>
Expand Down
188 changes: 95 additions & 93 deletions packages/renderer/src/views/ValidationView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -191,100 +191,102 @@ onMounted(init);

<q-card-section>
<table class='key_value_table'>
<tr v-for='(pair,i) in iProps.core_pairs'>
<td>
<a_checkbox v-model='pair[2]' />
</td>
<td>
<a_select
v-model='pair[0]'
:options='pair[3]'
use-input
hide-selected
fill-input
input-debounce="0"
@filter="(val, update, abort)=>filter(iProps.core_names, pair, 3, val, update, abort)"
@input-value="v=>setName(pair,iProps.core_versions,v)"
/>
</td>
<td>
<a_select
v-model='pair[1]'
:options='pair[4]'
use-input
hide-selected
fill-input
input-debounce="0"
@filter="(val, update, abort)=>filter(pair[0] in iProps.core_versions ? iProps.core_versions[pair[0]] : [], pair, 4, val, update, abort)"
@input-value="v=>pair[1]=v"
/>
</td>
<a_tooltip>
By default every ARC is validated against the ARC specification to guarantee ARC intactness.
</a_tooltip>
</tr>
<tr>
<td colspan="3" style="padding-top:2em">&nbsp;</td>
</tr>
<tr>
<td class='thh' colspan="3">Custom Validation Packages</td>
<a_tooltip>
Here you can add or remove additional validation packages. <br>
For instance, if you want to publish your ARC and receive a DOI via the DataHUB, select and add the "invenio" validation.
</a_tooltip>
</tr>
<tr>
<td style="width:3em;">&nbsp;</td>
<th>Name</th>
<th>Version</th>
</tr>
<tr v-for='(pair,i) in iProps.package_pairs'>
<td>
<q-btn icon='do_not_disturb_on' color='grey-6' flat dense @click='()=>removePair(i)' />
</td>
<td>
<a_select
v-model='pair[0]'
:options='pair[3]'
use-input
hide-selected
fill-input
input-debounce="0"
@filter="(val, update, abort)=>filter(iProps.package_names, pair, 3, val, update, abort)"
@input-value="v=>setName(pair,iProps.package_versions,v)"
/>
</td>
<td>
<a_select
v-model='pair[1]'
:options='pair[4]'
use-input
hide-selected
fill-input
input-debounce="0"
@filter="(val, update, abort)=>filter(pair[0] in iProps.package_versions ? iProps.package_versions[pair[0]] : [], pair, 4, val, update, abort)"
@input-value="v=>pair[1]=v"
/>
</td>
</tr>
<tr>
<td>
<q-btn icon='add_circle' color='grey-6' flat dense @click='()=>iProps.package_pairs.push(["","",true,iProps.package_names,[]])' />
</td>
<td></td>
<td></td>
</tr>
<tr>
<th></th>
<th colspan="2">
<a_btn label="Save" icon='verified' @click='save'>
<a_tooltip>
Save the the validation information to your ARC.<br>
They are stored in a file called ".arc/validation_packages.yml".
<tbody>
<tr v-for='(pair,i) in iProps.core_pairs'>
<td>
<a_checkbox v-model='pair[2]' />
</td>
<td>
<a_select
v-model='pair[0]'
:options='pair[3]'
use-input
hide-selected
fill-input
input-debounce="0"
@filter="(val, update, abort)=>filter(iProps.core_names, pair, 3, val, update, abort)"
@input-value="v=>setName(pair,iProps.core_versions,v)"
/>
</td>
<td>
<a_select
v-model='pair[1]'
:options='pair[4]'
use-input
hide-selected
fill-input
input-debounce="0"
@filter="(val, update, abort)=>filter(pair[0] in iProps.core_versions ? iProps.core_versions[pair[0]] : [], pair, 4, val, update, abort)"
@input-value="v=>pair[1]=v"
/>
</td>
<a_tooltip>
By default every ARC is validated against the ARC specification to guarantee ARC intactness.
</a_tooltip>
</a_btn>
</th>
</tr>
</tr>
<tr>
<td colspan="3" style="padding-top:2em">&nbsp;</td>
</tr>
<tr>
<td class='thh' colspan="3">Custom Validation Packages</td>
<a_tooltip>
Here you can add or remove additional validation packages. <br>
For instance, if you want to publish your ARC and receive a DOI via the DataHUB, select and add the "invenio" validation.
</a_tooltip>
</tr>
<tr>
<td style="width:3em;">&nbsp;</td>
<th>Name</th>
<th>Version</th>
</tr>
<tr v-for='(pair,i) in iProps.package_pairs'>
<td>
<q-btn icon='do_not_disturb_on' color='grey-6' flat dense @click='()=>removePair(i)' />
</td>
<td>
<a_select
v-model='pair[0]'
:options='pair[3]'
use-input
hide-selected
fill-input
input-debounce="0"
@filter="(val, update, abort)=>filter(iProps.package_names, pair, 3, val, update, abort)"
@input-value="v=>setName(pair,iProps.package_versions,v)"
/>
</td>
<td>
<a_select
v-model='pair[1]'
:options='pair[4]'
use-input
hide-selected
fill-input
input-debounce="0"
@filter="(val, update, abort)=>filter(pair[0] in iProps.package_versions ? iProps.package_versions[pair[0]] : [], pair, 4, val, update, abort)"
@input-value="v=>pair[1]=v"
/>
</td>
</tr>
<tr>
<td>
<q-btn icon='add_circle' color='grey-6' flat dense @click='()=>iProps.package_pairs.push(["","",true,iProps.package_names,[]])' />
</td>
<td></td>
<td></td>
</tr>
<tr>
<th></th>
<th colspan="2">
<a_btn label="Save" icon='verified' @click='save'>
<a_tooltip>
Save the the validation information to your ARC.<br>
They are stored in a file called ".arc/validation_packages.yml".
</a_tooltip>
</a_btn>
</th>
</tr>
</tbody>
</table>
</q-card-section>

Expand Down

0 comments on commit dd6755d

Please sign in to comment.