Compare commits

...

5 commits

Author SHA1 Message Date
Hayden
0e48256b77
use comma deliminator 2023-04-01 12:21:05 -08:00
Hayden
c41a43d804
fix columns in docs 2023-04-01 12:13:24 -08:00
Hayden
3ed72daa64
support YYYY/MM/DD format for imports 2023-04-01 12:09:20 -08:00
Hayden
564b8a2725
fix listener for resetItemDateTimes 2023-04-01 12:09:11 -08:00
Hayden
4a9bcde9ea
fix insufficiently large max height for cards 2023-04-01 12:08:44 -08:00
5 changed files with 7 additions and 4 deletions

View file

@ -261,7 +261,9 @@ func (ctrl *V1Controller) HandleItemsExport() errchain.HandlerFunc {
w.Header().Set("Content-Type", "text/tsv") w.Header().Set("Content-Type", "text/tsv")
w.Header().Set("Content-Disposition", "attachment;filename=homebox-items.tsv") w.Header().Set("Content-Disposition", "attachment;filename=homebox-items.tsv")
writer := csv.NewWriter(w) writer := csv.NewWriter(w)
writer.Comma = '\t'
return writer.WriteAll(csvData) return writer.WriteAll(csvData)
} }
} }

View file

@ -41,6 +41,7 @@ func DateFromString(s string) Date {
try := [...]string{ try := [...]string{
"2006-01-02", "2006-01-02",
"01/02/2006", "01/02/2006",
"2006/01/02",
time.RFC3339, time.RFC3339,
} }

View file

@ -64,12 +64,12 @@ Below are the supported columns. They are case sensitive, can be in any ordered
| HB.notes | String (1000) | General notes about the product | | HB.notes | String (1000) | General notes about the product |
| HB.purchase_from | String | Name of the place the item was purchased from | | HB.purchase_from | String | Name of the place the item was purchased from |
| HB.purchase_price | Float64 | | | HB.purchase_price | Float64 | |
| HB.purchase_at | Date | Date the item was purchased | | HB.purchase_time | Date | Date the item was purchased |
| HB.lifetime_warranty | Boolean | true or false - case insensitive | | HB.lifetime_warranty | Boolean | true or false - case insensitive |
| HB.warranty_expires | Date | Date in the format | | HB.warranty_expires | Date | Date in the format |
| HB.warranty_details | String | Details about the warranty | | HB.warranty_details | String | Details about the warranty |
| HB.sold_to | String | Name of the person the item was sold to | | HB.sold_to | String | Name of the person the item was sold to |
| HB.sold_at | Date | Date the item was sold | | HB.sold_time | Date | Date the item was sold |
| HB.sold_price | Float64 | | | HB.sold_price | Float64 | |
| HB.sold_notes | String (1000) | | | HB.sold_notes | String (1000) | |

View file

@ -23,7 +23,7 @@
</div> </div>
<div <div
:class="{ :class="{
'max-h-screen': !collapsed, 'max-h-[99999px]': !collapsed,
'max-h-0': collapsed, 'max-h-0': collapsed,
}" }"
class="transition-[max-height] duration-200 overflow-hidden" class="transition-[max-height] duration-200 overflow-hidden"

View file

@ -73,7 +73,7 @@
Ensures that all items in your inventory have a valid import_ref field. This is done by randomly generating Ensures that all items in your inventory have a valid import_ref field. This is done by randomly generating
a 8 character string for each item that has an unset import_ref field. a 8 character string for each item that has an unset import_ref field.
</DetailAction> </DetailAction>
<DetailAction @click="resetItemDateTimes"> <DetailAction @action="resetItemDateTimes">
<template #title> Zero Item Date Times</template> <template #title> Zero Item Date Times</template>
Resets the time value for all date time fields in your inventory to the beginning of the date. This is to Resets the time value for all date time fields in your inventory to the beginning of the date. This is to
fix a bug that was introduced early on in the development of the site that caused the time value to be fix a bug that was introduced early on in the development of the site that caused the time value to be