mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 12:11:08 -04:00
Compare commits
3 Commits
dark-base-
...
dark-base-
| Author | SHA1 | Date | |
|---|---|---|---|
| 3396a4a462 | |||
| cf1f8571f8 | |||
| 6e70930e87 |
@ -50,21 +50,11 @@
|
|||||||
</BaseInputGroup>
|
</BaseInputGroup>
|
||||||
</template>
|
</template>
|
||||||
</ValidateEach>
|
</ValidateEach>
|
||||||
<div
|
<BaseModalFooter>
|
||||||
slot="footer"
|
|
||||||
class="
|
|
||||||
z-0
|
|
||||||
flex
|
|
||||||
justify-end
|
|
||||||
mt-4
|
|
||||||
pt-4
|
|
||||||
border-t border-gray-200 border-solid border-modal-bg
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<BaseButton :loading="isSaving" variant="primary" type="submit">
|
<BaseButton :loading="isSaving" variant="primary" type="submit">
|
||||||
{{ $t('general.save') }}
|
{{ $t('general.save') }}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</form>
|
</form>
|
||||||
</BaseCard>
|
</BaseCard>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -57,9 +57,7 @@
|
|||||||
</BaseInputGroup>
|
</BaseInputGroup>
|
||||||
</BaseInputGrid>
|
</BaseInputGrid>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<BaseModalFooter>
|
||||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid"
|
|
||||||
>
|
|
||||||
<BaseButton
|
<BaseButton
|
||||||
class="mr-3"
|
class="mr-3"
|
||||||
variant="primary-outline"
|
variant="primary-outline"
|
||||||
@ -84,7 +82,7 @@
|
|||||||
</template>
|
</template>
|
||||||
{{ $t('general.create') }}
|
{{ $t('general.create') }}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</form>
|
</form>
|
||||||
</BaseModal>
|
</BaseModal>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -47,15 +47,7 @@
|
|||||||
</BaseInputGrid>
|
</BaseInputGrid>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<BaseModalFooter>
|
||||||
class="
|
|
||||||
z-0
|
|
||||||
flex
|
|
||||||
justify-end
|
|
||||||
p-4
|
|
||||||
border-t border-gray-200 border-solid border-modal-bg
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<BaseButton
|
<BaseButton
|
||||||
type="button"
|
type="button"
|
||||||
variant="primary-outline"
|
variant="primary-outline"
|
||||||
@ -80,7 +72,7 @@
|
|||||||
</template>
|
</template>
|
||||||
{{ categoryStore.isEdit ? $t('general.update') : $t('general.save') }}
|
{{ categoryStore.isEdit ? $t('general.update') : $t('general.save') }}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</form>
|
</form>
|
||||||
</BaseModal>
|
</BaseModal>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -116,7 +116,7 @@
|
|||||||
</BaseInputGrid>
|
</BaseInputGrid>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="z-0 flex justify-end p-4 bg-gray-50 border-modal-bg">
|
<BaseModalFooter>
|
||||||
<BaseButton
|
<BaseButton
|
||||||
class="mr-3 text-sm"
|
class="mr-3 text-sm"
|
||||||
variant="primary-outline"
|
variant="primary-outline"
|
||||||
@ -141,7 +141,7 @@
|
|||||||
</template>
|
</template>
|
||||||
{{ $t('general.save') }}
|
{{ $t('general.save') }}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</form>
|
</form>
|
||||||
</BaseModal>
|
</BaseModal>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -425,9 +425,7 @@
|
|||||||
</BaseTabGroup>
|
</BaseTabGroup>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<BaseModalFooter>
|
||||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid"
|
|
||||||
>
|
|
||||||
<BaseButton
|
<BaseButton
|
||||||
class="mr-3 text-sm"
|
class="mr-3 text-sm"
|
||||||
type="button"
|
type="button"
|
||||||
@ -447,7 +445,7 @@
|
|||||||
</template>
|
</template>
|
||||||
{{ $t('general.save') }}
|
{{ $t('general.save') }}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</form>
|
</form>
|
||||||
</BaseModal>
|
</BaseModal>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -38,7 +38,7 @@
|
|||||||
</BaseInputGroup>
|
</BaseInputGroup>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="z-0 flex justify-end p-4 bg-gray-50 border-modal-bg">
|
<BaseModalFooter>
|
||||||
<BaseButton
|
<BaseButton
|
||||||
class="mr-3 text-sm"
|
class="mr-3 text-sm"
|
||||||
variant="primary-outline"
|
variant="primary-outline"
|
||||||
@ -63,7 +63,7 @@
|
|||||||
</template>
|
</template>
|
||||||
{{ $t('general.delete') }}
|
{{ $t('general.delete') }}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</form>
|
</form>
|
||||||
</BaseModal>
|
</BaseModal>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -150,9 +150,7 @@
|
|||||||
@Remove="removeUsedSelectedCurrencies"
|
@Remove="removeUsedSelectedCurrencies"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<BaseModalFooter>
|
||||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid"
|
|
||||||
>
|
|
||||||
<BaseButton
|
<BaseButton
|
||||||
class="mr-3"
|
class="mr-3"
|
||||||
variant="primary-outline"
|
variant="primary-outline"
|
||||||
@ -179,7 +177,7 @@
|
|||||||
exchangeRateStore.isEdit ? $t('general.update') : $t('general.save')
|
exchangeRateStore.isEdit ? $t('general.update') : $t('general.save')
|
||||||
}}
|
}}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</form>
|
</form>
|
||||||
</BaseModal>
|
</BaseModal>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -20,15 +20,7 @@
|
|||||||
@submit="createNewDisk"
|
@submit="createNewDisk"
|
||||||
>
|
>
|
||||||
<template #default="slotProps">
|
<template #default="slotProps">
|
||||||
<div
|
<BaseModalFooter>
|
||||||
class="
|
|
||||||
z-0
|
|
||||||
flex
|
|
||||||
justify-end
|
|
||||||
p-4
|
|
||||||
border-t border-solid border-gray-light
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<BaseButton
|
<BaseButton
|
||||||
class="mr-3 text-sm"
|
class="mr-3 text-sm"
|
||||||
variant="primary-outline"
|
variant="primary-outline"
|
||||||
@ -52,7 +44,7 @@
|
|||||||
|
|
||||||
{{ $t('general.save') }}
|
{{ $t('general.save') }}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</template>
|
</template>
|
||||||
</component>
|
</component>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -89,9 +89,7 @@
|
|||||||
</BaseInputGroup>
|
</BaseInputGroup>
|
||||||
</BaseInputGrid>
|
</BaseInputGrid>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<BaseModalFooter>
|
||||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid"
|
|
||||||
>
|
|
||||||
<BaseButton
|
<BaseButton
|
||||||
class="mr-3"
|
class="mr-3"
|
||||||
variant="primary-outline"
|
variant="primary-outline"
|
||||||
@ -111,7 +109,7 @@
|
|||||||
</template>
|
</template>
|
||||||
{{ itemStore.isEdit ? $t('general.update') : $t('general.save') }}
|
{{ itemStore.isEdit ? $t('general.update') : $t('general.save') }}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</BaseModal>
|
</BaseModal>
|
||||||
|
|||||||
@ -31,15 +31,7 @@
|
|||||||
</BaseInputGroup>
|
</BaseInputGroup>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<BaseModalFooter>
|
||||||
class="
|
|
||||||
z-0
|
|
||||||
flex
|
|
||||||
justify-end
|
|
||||||
p-4
|
|
||||||
border-t border-gray-200 border-solid border-modal-bg
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<BaseButton
|
<BaseButton
|
||||||
type="button"
|
type="button"
|
||||||
variant="primary-outline"
|
variant="primary-outline"
|
||||||
@ -66,7 +58,7 @@
|
|||||||
itemStore.isItemUnitEdit ? $t('general.update') : $t('general.save')
|
itemStore.isItemUnitEdit ? $t('general.update') : $t('general.save')
|
||||||
}}
|
}}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</form>
|
</form>
|
||||||
</BaseModal>
|
</BaseModal>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -62,9 +62,7 @@
|
|||||||
</BaseInputGroup>
|
</BaseInputGroup>
|
||||||
</BaseInputGrid>
|
</BaseInputGrid>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<BaseModalFooter>
|
||||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid"
|
|
||||||
>
|
|
||||||
<BaseButton
|
<BaseButton
|
||||||
variant="primary-outline"
|
variant="primary-outline"
|
||||||
type="button"
|
type="button"
|
||||||
@ -84,7 +82,7 @@
|
|||||||
</template>
|
</template>
|
||||||
{{ $t('general.send') }}
|
{{ $t('general.send') }}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</form>
|
</form>
|
||||||
</BaseModal>
|
</BaseModal>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -63,16 +63,7 @@
|
|||||||
</BaseInputGroup>
|
</BaseInputGroup>
|
||||||
</BaseInputGrid>
|
</BaseInputGrid>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<BaseModalFooter>
|
||||||
class="
|
|
||||||
z-0
|
|
||||||
flex
|
|
||||||
justify-end
|
|
||||||
px-4
|
|
||||||
py-4
|
|
||||||
border-t border-solid border-gray-light
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<BaseButton
|
<BaseButton
|
||||||
class="mr-2"
|
class="mr-2"
|
||||||
variant="primary-outline"
|
variant="primary-outline"
|
||||||
@ -93,7 +84,7 @@
|
|||||||
</template>
|
</template>
|
||||||
{{ noteStore.isEdit ? $t('general.update') : $t('general.save') }}
|
{{ noteStore.isEdit ? $t('general.update') : $t('general.save') }}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</form>
|
</form>
|
||||||
</BaseModal>
|
</BaseModal>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -29,9 +29,7 @@
|
|||||||
</BaseInputGroup>
|
</BaseInputGroup>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<BaseModalFooter>
|
||||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid"
|
|
||||||
>
|
|
||||||
<BaseButton
|
<BaseButton
|
||||||
variant="primary-outline"
|
variant="primary-outline"
|
||||||
class="mr-3"
|
class="mr-3"
|
||||||
@ -56,7 +54,7 @@
|
|||||||
: $t('general.save')
|
: $t('general.save')
|
||||||
}}
|
}}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</form>
|
</form>
|
||||||
</BaseModal>
|
</BaseModal>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -72,7 +72,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="border-t border-gray-200 py-3">
|
<div class="border-t border-gray-200 dark:border-gray-600 py-3">
|
||||||
<div
|
<div
|
||||||
class="
|
class="
|
||||||
grid grid-cols-1
|
grid grid-cols-1
|
||||||
@ -89,7 +89,7 @@
|
|||||||
:key="gIndex"
|
:key="gIndex"
|
||||||
class="flex flex-col space-y-1"
|
class="flex flex-col space-y-1"
|
||||||
>
|
>
|
||||||
<p class="text-sm text-gray-500 border-b border-gray-200 pb-1 mb-2">
|
<p class="text-sm text-gray-500 dark:text-gray-200 border-b dark:border-gray-600 pb-1 mb-2">
|
||||||
{{ gIndex }}
|
{{ gIndex }}
|
||||||
</p>
|
</p>
|
||||||
<div
|
<div
|
||||||
@ -116,15 +116,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<BaseModalFooter>
|
||||||
class="
|
|
||||||
z-0
|
|
||||||
flex
|
|
||||||
justify-end
|
|
||||||
p-4
|
|
||||||
border-t border-solid border--200 border-modal-bg
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<BaseButton
|
<BaseButton
|
||||||
class="mr-3 text-sm"
|
class="mr-3 text-sm"
|
||||||
variant="primary-outline"
|
variant="primary-outline"
|
||||||
@ -144,7 +136,7 @@
|
|||||||
</template>
|
</template>
|
||||||
{{ !roleStore.isEdit ? $t('general.save') : $t('general.update') }}
|
{{ !roleStore.isEdit ? $t('general.save') : $t('general.update') }}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</form>
|
</form>
|
||||||
</BaseModal>
|
</BaseModal>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -70,7 +70,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid">
|
<BaseModalFooter>
|
||||||
<BaseButton class="mr-3" variant="primary-outline" @click="closeModal">
|
<BaseButton class="mr-3" variant="primary-outline" @click="closeModal">
|
||||||
{{ $t('general.cancel') }}
|
{{ $t('general.cancel') }}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
@ -80,7 +80,7 @@
|
|||||||
</template>
|
</template>
|
||||||
{{ $t('general.choose') }}
|
{{ $t('general.choose') }}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</BaseModal>
|
</BaseModal>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@ -62,9 +62,7 @@
|
|||||||
</BaseInputGroup>
|
</BaseInputGroup>
|
||||||
</BaseInputGrid>
|
</BaseInputGrid>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<BaseModalFooter>
|
||||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid"
|
|
||||||
>
|
|
||||||
<BaseButton
|
<BaseButton
|
||||||
class="mr-3"
|
class="mr-3"
|
||||||
variant="primary-outline"
|
variant="primary-outline"
|
||||||
@ -85,7 +83,7 @@
|
|||||||
<BaseIcon v-if="!isLoading" name="PhotographIcon" class="h-5 mr-2" />
|
<BaseIcon v-if="!isLoading" name="PhotographIcon" class="h-5 mr-2" />
|
||||||
{{ $t('general.preview') }}
|
{{ $t('general.preview') }}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</form>
|
</form>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<div class="my-6 mx-4 border border-gray-200 relative">
|
<div class="my-6 mx-4 border border-gray-200 relative">
|
||||||
@ -106,9 +104,7 @@
|
|||||||
></iframe>
|
></iframe>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<BaseModalFooter>
|
||||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid"
|
|
||||||
>
|
|
||||||
<BaseButton
|
<BaseButton
|
||||||
class="mr-3"
|
class="mr-3"
|
||||||
variant="primary-outline"
|
variant="primary-outline"
|
||||||
@ -127,7 +123,7 @@
|
|||||||
<BaseIcon v-if="!isLoading" name="PaperAirplaneIcon" class="mr-2" />
|
<BaseIcon v-if="!isLoading" name="PaperAirplaneIcon" class="mr-2" />
|
||||||
{{ $t('general.send') }}
|
{{ $t('general.send') }}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</div>
|
</div>
|
||||||
</BaseModal>
|
</BaseModal>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -65,9 +65,7 @@
|
|||||||
</BaseInputGroup>
|
</BaseInputGroup>
|
||||||
</BaseInputGrid>
|
</BaseInputGrid>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<BaseModalFooter>
|
||||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid"
|
|
||||||
>
|
|
||||||
<BaseButton
|
<BaseButton
|
||||||
class="mr-3"
|
class="mr-3"
|
||||||
variant="primary-outline"
|
variant="primary-outline"
|
||||||
@ -93,7 +91,7 @@
|
|||||||
</template>
|
</template>
|
||||||
{{ $t('general.preview') }}
|
{{ $t('general.preview') }}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</form>
|
</form>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<div class="my-6 mx-4 border border-gray-200 relative">
|
<div class="my-6 mx-4 border border-gray-200 relative">
|
||||||
@ -114,9 +112,7 @@
|
|||||||
style="min-height: 500px"
|
style="min-height: 500px"
|
||||||
></iframe>
|
></iframe>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<BaseModalFooter>
|
||||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid"
|
|
||||||
>
|
|
||||||
<BaseButton
|
<BaseButton
|
||||||
class="mr-3"
|
class="mr-3"
|
||||||
variant="primary-outline"
|
variant="primary-outline"
|
||||||
@ -140,7 +136,7 @@
|
|||||||
/>
|
/>
|
||||||
{{ $t('general.send') }}
|
{{ $t('general.send') }}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</div>
|
</div>
|
||||||
</BaseModal>
|
</BaseModal>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -65,9 +65,7 @@
|
|||||||
</BaseInputGroup>
|
</BaseInputGroup>
|
||||||
</BaseInputGrid>
|
</BaseInputGrid>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<BaseModalFooter>
|
||||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid"
|
|
||||||
>
|
|
||||||
<BaseButton
|
<BaseButton
|
||||||
class="mr-3"
|
class="mr-3"
|
||||||
variant="primary-outline"
|
variant="primary-outline"
|
||||||
@ -93,7 +91,7 @@
|
|||||||
</template>
|
</template>
|
||||||
{{ $t('general.preview') }}
|
{{ $t('general.preview') }}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</form>
|
</form>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<div class="my-6 mx-4 border border-gray-200 relative">
|
<div class="my-6 mx-4 border border-gray-200 relative">
|
||||||
@ -114,9 +112,7 @@
|
|||||||
style="min-height: 500px"
|
style="min-height: 500px"
|
||||||
></iframe>
|
></iframe>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<BaseModalFooter>
|
||||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid"
|
|
||||||
>
|
|
||||||
<BaseButton
|
<BaseButton
|
||||||
class="mr-3"
|
class="mr-3"
|
||||||
variant="primary-outline"
|
variant="primary-outline"
|
||||||
@ -140,7 +136,7 @@
|
|||||||
/>
|
/>
|
||||||
{{ $t('general.send') }}
|
{{ $t('general.send') }}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</div>
|
</div>
|
||||||
</BaseModal>
|
</BaseModal>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -90,15 +90,7 @@
|
|||||||
</BaseInputGroup>
|
</BaseInputGroup>
|
||||||
</BaseInputGrid>
|
</BaseInputGrid>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<BaseModalFooter>
|
||||||
class="
|
|
||||||
z-0
|
|
||||||
flex
|
|
||||||
justify-end
|
|
||||||
p-4
|
|
||||||
border-t border-solid border--200 border-modal-bg
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<BaseButton
|
<BaseButton
|
||||||
class="mr-3 text-sm"
|
class="mr-3 text-sm"
|
||||||
variant="primary-outline"
|
variant="primary-outline"
|
||||||
@ -122,7 +114,7 @@
|
|||||||
</template>
|
</template>
|
||||||
{{ taxTypeStore.isEdit ? $t('general.update') : $t('general.save') }}
|
{{ taxTypeStore.isEdit ? $t('general.update') : $t('general.save') }}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</form>
|
</form>
|
||||||
</BaseModal>
|
</BaseModal>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -87,9 +87,7 @@
|
|||||||
</BaseInputGrid>
|
</BaseInputGrid>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<BaseModalFooter>
|
||||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid"
|
|
||||||
>
|
|
||||||
<BaseButton
|
<BaseButton
|
||||||
class="mr-3 text-sm"
|
class="mr-3 text-sm"
|
||||||
type="button"
|
type="button"
|
||||||
@ -109,7 +107,7 @@
|
|||||||
</template>
|
</template>
|
||||||
{{ $t('general.save') }}
|
{{ $t('general.save') }}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</form>
|
</form>
|
||||||
</BaseModal>
|
</BaseModal>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -172,15 +172,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<BaseModalFooter>
|
||||||
class="
|
|
||||||
z-0
|
|
||||||
flex
|
|
||||||
justify-end
|
|
||||||
p-4
|
|
||||||
border-t border-solid border-gray-light border-modal-bg
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<BaseButton
|
<BaseButton
|
||||||
class="mr-3"
|
class="mr-3"
|
||||||
type="button"
|
type="button"
|
||||||
@ -207,7 +199,7 @@
|
|||||||
!customFieldStore.isEdit ? $t('general.save') : $t('general.update')
|
!customFieldStore.isEdit ? $t('general.save') : $t('general.update')
|
||||||
}}
|
}}
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</div>
|
</BaseModalFooter>
|
||||||
</form>
|
</form>
|
||||||
</BaseModal>
|
</BaseModal>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -153,7 +153,7 @@
|
|||||||
<BaseSwitch v-model="set_as_default" class="flex" />
|
<BaseSwitch v-model="set_as_default" class="flex" />
|
||||||
</div>
|
</div>
|
||||||
<div class="ml-4 right">
|
<div class="ml-4 right">
|
||||||
<p class="p-0 mb-1 text-base leading-snug text-black box-title">
|
<p class="p-0 mb-1 text-base leading-snug text-black dark:text-white box-title">
|
||||||
{{ $t('settings.disk.is_default') }}
|
{{ $t('settings.disk.is_default') }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -132,7 +132,7 @@
|
|||||||
<BaseSwitch v-model="set_as_default" class="flex" />
|
<BaseSwitch v-model="set_as_default" class="flex" />
|
||||||
</div>
|
</div>
|
||||||
<div class="ml-4 right">
|
<div class="ml-4 right">
|
||||||
<p class="p-0 mb-1 text-base leading-snug text-black box-title">
|
<p class="p-0 mb-1 text-base leading-snug text-black dark:text-white box-title">
|
||||||
{{ $t('settings.disk.is_default') }}
|
{{ $t('settings.disk.is_default') }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -63,7 +63,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ml-4 right">
|
<div class="ml-4 right">
|
||||||
<p class="p-0 mb-1 text-base leading-snug text-black box-title">
|
<p class="p-0 mb-1 text-base leading-snug text-black dark:text-white box-title">
|
||||||
{{ $t('settings.disk.is_default') }}
|
{{ $t('settings.disk.is_default') }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -134,7 +134,7 @@
|
|||||||
<BaseSwitch v-model="set_as_default" class="flex" />
|
<BaseSwitch v-model="set_as_default" class="flex" />
|
||||||
</div>
|
</div>
|
||||||
<div class="ml-4 right">
|
<div class="ml-4 right">
|
||||||
<p class="p-0 mb-1 text-base leading-snug text-black box-title">
|
<p class="p-0 mb-1 text-base leading-snug text-black dark:text-white box-title">
|
||||||
{{ $t('settings.disk.is_default') }}
|
{{ $t('settings.disk.is_default') }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -29,8 +29,21 @@
|
|||||||
leave-to="opacity-0"
|
leave-to="opacity-0"
|
||||||
>
|
>
|
||||||
<DialogOverlay
|
<DialogOverlay
|
||||||
class="fixed inset-0 transition-opacity bg-gray-700 bg-opacity-25"
|
class="
|
||||||
/>
|
fixed
|
||||||
|
inset-0
|
||||||
|
transition-opacity
|
||||||
|
bg-gray-700
|
||||||
|
bg-opacity-25
|
||||||
|
dark:backdrop-blur-sm
|
||||||
|
dark:bg-gray-900/80
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<BaseDarkHighlight
|
||||||
|
class="!bg-highlight/[.17] !top-1/2 -translate-y-1/2 mt-5 h-96"
|
||||||
|
:class="modalSize"
|
||||||
|
/>
|
||||||
|
</DialogOverlay>
|
||||||
</TransitionChild>
|
</TransitionChild>
|
||||||
|
|
||||||
<!-- This element is to trick the browser into centering the modal contents. -->
|
<!-- This element is to trick the browser into centering the modal contents. -->
|
||||||
@ -61,7 +74,11 @@
|
|||||||
my-4
|
my-4
|
||||||
${modalSize}
|
${modalSize}
|
||||||
sm:w-full
|
sm:w-full
|
||||||
border-t-8 border-solid rounded shadow-xl border-primary-500`"
|
dark:shadow-glass
|
||||||
|
dark:border
|
||||||
|
dark:border-white/10
|
||||||
|
dark:bg-gray-800/90
|
||||||
|
border-t-8 border-solid rounded shadow-xl border-primary-500`"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
v-if="hasHeaderSlot"
|
v-if="hasHeaderSlot"
|
||||||
@ -74,6 +91,8 @@
|
|||||||
text-lg
|
text-lg
|
||||||
font-medium
|
font-medium
|
||||||
text-black
|
text-black
|
||||||
|
dark:text-white
|
||||||
|
dark:border-gray-600
|
||||||
border-b border-gray-200 border-solid
|
border-b border-gray-200 border-solid
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
|
|||||||
14
resources/scripts/components/base/BaseModalFooter.vue
Normal file
14
resources/scripts/components/base/BaseModalFooter.vue
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<template>
|
||||||
|
<div
|
||||||
|
class="
|
||||||
|
z-0
|
||||||
|
flex
|
||||||
|
justify-end
|
||||||
|
p-4
|
||||||
|
border-t border-gray-200 border-solid
|
||||||
|
dark:border-gray-600
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<slot />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
@ -7,18 +7,11 @@
|
|||||||
relative
|
relative
|
||||||
overflow-hidden
|
overflow-hidden
|
||||||
bg-white
|
bg-white
|
||||||
border-b
|
border-b border-gray-200
|
||||||
border-gray-200
|
|
||||||
shadow
|
shadow
|
||||||
sm:rounded-lg
|
sm:rounded-lg
|
||||||
dark:shadow-glass
|
"
|
||||||
dark:border
|
|
||||||
dark:border-white/10
|
|
||||||
dark:bg-gray-800/70
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
<BaseDarkHighlight v-if="darkHighlight" class="z-[-1]" />
|
|
||||||
|
|
||||||
<slot name="header" />
|
<slot name="header" />
|
||||||
<table :class="tableClass">
|
<table :class="tableClass">
|
||||||
<thead :class="theadClass">
|
<thead :class="theadClass">
|
||||||
@ -58,11 +51,7 @@
|
|||||||
<tr
|
<tr
|
||||||
v-for="placeRow in placeholderCount"
|
v-for="placeRow in placeholderCount"
|
||||||
:key="placeRow"
|
:key="placeRow"
|
||||||
:class="
|
:class="placeRow % 2 === 0 ? 'bg-white' : 'bg-gray-50'"
|
||||||
placeRow % 2 === 0
|
|
||||||
? 'bg-white dark:bg-gray-800'
|
|
||||||
: 'bg-gray-50 dark:bg-gray-800'
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
<td
|
<td
|
||||||
v-for="column in columns"
|
v-for="column in columns"
|
||||||
@ -86,11 +75,7 @@
|
|||||||
<tr
|
<tr
|
||||||
v-for="(row, index) in sortedRows"
|
v-for="(row, index) in sortedRows"
|
||||||
:key="index"
|
:key="index"
|
||||||
:class="
|
:class="index % 2 === 0 ? 'bg-white' : 'bg-gray-50'"
|
||||||
index % 2 === 0
|
|
||||||
? 'bg-white dark:bg-transparent'
|
|
||||||
: 'bg-gray-50 dark:bg-gray-700/20 dark:border-y dark:border-gray-600'
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
<td
|
<td
|
||||||
v-for="column in columns"
|
v-for="column in columns"
|
||||||
@ -118,10 +103,7 @@
|
|||||||
justify-center
|
justify-center
|
||||||
w-full
|
w-full
|
||||||
h-full
|
h-full
|
||||||
bg-white
|
bg-white bg-opacity-60
|
||||||
bg-opacity-60
|
|
||||||
dark:bg-gray-700
|
|
||||||
dark:bg-opacity-60
|
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<SpinnerIcon class="w-10 h-10 text-primary-500" />
|
<SpinnerIcon class="w-10 h-10 text-primary-500" />
|
||||||
@ -181,12 +163,9 @@ const props = defineProps({
|
|||||||
sortOrder: { type: String, default: '' },
|
sortOrder: { type: String, default: '' },
|
||||||
tableClass: {
|
tableClass: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'min-w-full divide-y divide-gray-200 dark:divide-gray-600',
|
default: 'min-w-full divide-y divide-gray-200',
|
||||||
},
|
|
||||||
theadClass: {
|
|
||||||
type: String,
|
|
||||||
default: 'bg-gray-50 dark:bg-gray-800 dark:text-white',
|
|
||||||
},
|
},
|
||||||
|
theadClass: { type: String, default: 'bg-gray-50' },
|
||||||
tbodyClass: { type: String, default: '' },
|
tbodyClass: { type: String, default: '' },
|
||||||
noResultsMessage: {
|
noResultsMessage: {
|
||||||
type: String,
|
type: String,
|
||||||
@ -207,10 +186,6 @@ const props = defineProps({
|
|||||||
type: Number,
|
type: Number,
|
||||||
default: 3,
|
default: 3,
|
||||||
},
|
},
|
||||||
darkHighlight: {
|
|
||||||
type: Boolean,
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
let rows = reactive([])
|
let rows = reactive([])
|
||||||
@ -261,7 +236,7 @@ function getColumn(columnName) {
|
|||||||
|
|
||||||
function getThClass(column) {
|
function getThClass(column) {
|
||||||
let classes =
|
let classes =
|
||||||
'whitespace-nowrap px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:text-white'
|
'whitespace-nowrap px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider'
|
||||||
|
|
||||||
if (column.defaultThClass) {
|
if (column.defaultThClass) {
|
||||||
classes = column.defaultThClass
|
classes = column.defaultThClass
|
||||||
@ -281,8 +256,7 @@ function getThClass(column) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getTdClass(column) {
|
function getTdClass(column) {
|
||||||
let classes =
|
let classes = 'px-6 py-4 text-sm text-gray-500 whitespace-nowrap'
|
||||||
'px-6 py-4 text-sm text-gray-500 whitespace-nowrap dark:text-gray-300'
|
|
||||||
|
|
||||||
if (column.defaultTdClass) {
|
if (column.defaultTdClass) {
|
||||||
classes = column.defaultTdClass
|
classes = column.defaultTdClass
|
||||||
@ -335,7 +309,6 @@ function changeSorting(column) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!usesLocalData.value) {
|
if (!usesLocalData.value) {
|
||||||
if (pagination.value) pagination.value.currentPage = 1
|
|
||||||
mapDataToRows()
|
mapDataToRows()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -353,9 +326,7 @@ async function pageChange(page) {
|
|||||||
await mapDataToRows()
|
await mapDataToRows()
|
||||||
}
|
}
|
||||||
|
|
||||||
async function refresh(isPreservePage = false) {
|
async function refresh() {
|
||||||
if (pagination.value && !isPreservePage) pagination.value.currentPage = 1
|
|
||||||
|
|
||||||
await mapDataToRows()
|
await mapDataToRows()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user