mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-24 06:28:34 +01:00
feat: translate tools page
This commit is contained in:
@@ -6,25 +6,23 @@
|
||||
<template #title>
|
||||
<BaseSectionHeader>
|
||||
<MdiFileChart class="mr-2" />
|
||||
<span> Reports </span>
|
||||
<template #description> Generate different reports for your inventory. </template>
|
||||
<span> {{ $t("tools.reports") }} </span>
|
||||
<template #description> {{ $t("tools.reports_sub") }} </template>
|
||||
</BaseSectionHeader>
|
||||
</template>
|
||||
<div class="divide-y divide-gray-300 border-t border-gray-300 px-6 pb-3">
|
||||
<DetailAction @action="navigateTo('/reports/label-generator')">
|
||||
<template #title>Asset ID Labels</template>
|
||||
Generates a printable PDF of labels for a range of Asset ID. These are not specific to your inventory so you
|
||||
are able to print labels ahead of time and apply them to your inventory when you receive them.
|
||||
<template #title>{{ $t("tools.reports_set.asset_labels") }}</template>
|
||||
{{ $t("tools.reports_set.asset_labels_sub") }}
|
||||
<template #button>
|
||||
Label Generator
|
||||
{{ $t("tools.reports_set.asset_labels_button") }}
|
||||
<MdiArrowRight class="ml-2" />
|
||||
</template>
|
||||
</DetailAction>
|
||||
<DetailAction @action="getBillOfMaterials()">
|
||||
<template #title>Bill of Materials</template>
|
||||
Generates a CSV (Comma Separated Values) file that can be imported into a spreadsheet program. This is a
|
||||
summary of your inventory with basic item and pricing information.
|
||||
<template #button> Generate BOM </template>
|
||||
<template #title>{{ $t("tools.reports_set.bill_of_materials") }}</template>
|
||||
{{ $t("tools.reports_set.bill_of_materials_sub") }}
|
||||
<template #button> {{ $t("tools.reports_set.bill_of_materials_button") }} </template>
|
||||
</DetailAction>
|
||||
</div>
|
||||
</BaseCard>
|
||||
@@ -32,23 +30,22 @@
|
||||
<template #title>
|
||||
<BaseSectionHeader>
|
||||
<MdiDatabase class="mr-2" />
|
||||
<span> Import / Export </span>
|
||||
<span> {{ $t("tools.import_export") }} </span>
|
||||
<template #description>
|
||||
Import and export your inventory to and from a CSV file. This is useful for migrating your inventory to a
|
||||
new instance of Homebox.
|
||||
{{ $t("tools.import_export_sub") }}
|
||||
</template>
|
||||
</BaseSectionHeader>
|
||||
</template>
|
||||
<div class="divide-y divide-gray-300 border-t border-gray-300 px-6 pb-3">
|
||||
<DetailAction @action="modals.import = true">
|
||||
<template #title>Import Inventory</template>
|
||||
Imports the standard CSV format for Homebox. Without an <code>HB.import_ref</code> column, this will
|
||||
<b>not</b> overwrite any existing items in your inventory, only add new items. Rows with an
|
||||
<code>HB.import_ref</code> column are merged into existing items with the same import_ref, if one exists.
|
||||
<template #title> {{ $t("tools.import_export_set.import") }} </template>
|
||||
<div v-html="$t('tools.import_export_set.import_sub')"></div>
|
||||
<template #button> {{ $t("tools.import_export_set.import_button") }} </template>
|
||||
</DetailAction>
|
||||
<DetailAction @action="getExportCSV()">
|
||||
<template #title>Export Inventory</template>
|
||||
Exports the standard CSV format for Homebox. This will export all items in your inventory.
|
||||
<template #title>{{ $t("tools.import_export_set.export") }}</template>
|
||||
{{ $t("tools.import_export_set.export_sub") }}
|
||||
<template #button> {{ $t("tools.import_export_set.export_button") }} </template>
|
||||
</DetailAction>
|
||||
</div>
|
||||
</BaseCard>
|
||||
@@ -56,38 +53,32 @@
|
||||
<template #title>
|
||||
<BaseSectionHeader>
|
||||
<MdiAlert class="mr-2" />
|
||||
<span> Inventory Actions </span>
|
||||
<span> {{ $t("tools.actions") }} </span>
|
||||
<template #description>
|
||||
Apply Actions to your inventory in bulk. These are irreversible actions. <b>Be careful.</b>
|
||||
<div v-html="$t('tools.actions_sub')"></div>
|
||||
</template>
|
||||
</BaseSectionHeader>
|
||||
</template>
|
||||
<div class="divide-y divide-gray-300 border-t border-gray-300 px-6 pb-3">
|
||||
<DetailAction @action="ensureAssetIDs">
|
||||
<template #title>Ensure Asset IDs</template>
|
||||
Ensures that all items in your inventory have a valid asset_id field. This is done by finding the highest
|
||||
current asset_id field in the database and applying the next value to each item that has an unset asset_id
|
||||
field. This is done in order of the created_at field.
|
||||
<template #title>{{ $t("tools.actions_set.ensure_ids") }}</template>
|
||||
{{ $t("tools.actions_set.ensure_ids_sub") }}
|
||||
<template #button> {{ $t("tools.actions_set.ensure_ids_button") }} </template>
|
||||
</DetailAction>
|
||||
<DetailAction @action="ensureImportRefs">
|
||||
<template #title>Ensures Import Refs</template>
|
||||
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.
|
||||
<template #title>{{ $t("tools.actions_set.ensure_import_refs") }}</template>
|
||||
{{ $t("tools.actions_set.ensure_import_refs_sub") }}
|
||||
<template #button> {{ $t("tools.actions_set.ensure_import_refs_button") }} </template>
|
||||
</DetailAction>
|
||||
<DetailAction @action="resetItemDateTimes">
|
||||
<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
|
||||
fix a bug that was introduced early on in the development of the site that caused the time value to be
|
||||
stored with the time which caused issues with date fields displaying accurate values.
|
||||
<a class="link" href="https://github.com/hay-kot/homebox/issues/236" target="_blank">
|
||||
See Github Issue #236 for more details.
|
||||
</a>
|
||||
<template #title> {{ $t("tools.actions_set.zero_datetimes") }} </template>
|
||||
<div v-html="$t('tools.actions_set.zero_datetimes_sub')"></div>
|
||||
<template #button> {{ $t("tools.actions_set.zero_datetimes_button") }} </template>
|
||||
</DetailAction>
|
||||
<DetailAction @action="setPrimaryPhotos">
|
||||
<template #title> Set Primary Photos </template>
|
||||
In version v0.10.0 of Homebox, the primary image field was added to attachments of type photo. This action
|
||||
will set the primary image field to the first image in the attachments array in the database, if it is not
|
||||
already set. <a class="link" href="https://github.com/hay-kot/homebox/pull/576">See GitHub PR #576</a>
|
||||
<template #title> {{ $t("tools.actions_set.set_primary_photo") }} </template>
|
||||
<div v-html="$t('tools.actions_set.set_primary_photo_sub')"></div>
|
||||
<template #button> {{ $t("tools.actions_set.set_primary_photo_button") }} </template>
|
||||
</DetailAction>
|
||||
</div>
|
||||
</BaseCard>
|
||||
|
||||
Reference in New Issue
Block a user