3 Commits

Author SHA1 Message Date
Adrian Zürcher
15f9026a5f new release
All checks were successful
Build Quasar SPA and Go Backend for memberApp / build-spa (push) Successful in 8m11s
Build Quasar SPA and Go Backend for memberApp / build-backend (amd64, .exe, windows) (push) Successful in 7m27s
Build Quasar SPA and Go Backend for memberApp / build-backend (amd64, , linux) (push) Successful in 7m42s
Build Quasar SPA and Go Backend for memberApp / build-backend (arm64, , linux) (push) Successful in 6m45s
Build Quasar SPA and Go Backend for memberApp / build-backend (arm, 6, , linux) (push) Successful in 6m59s
2026-02-19 18:20:43 +01:00
Adrian Zürcher
e25bac1a1e fix widget size in phone 2026-02-19 18:19:38 +01:00
Adrian Zürcher
548cd9d622 fix pdf size in phone and on desktop close #52 2026-02-19 18:18:58 +01:00
3 changed files with 23 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "lightcontrol", "name": "lightcontrol",
"version": "1.3.2", "version": "1.4.0",
"description": "A Tecamino App", "description": "A Tecamino App",
"productName": "Attendence Records", "productName": "Attendence Records",
"author": "A. Zuercher", "author": "A. Zuercher",

View File

@@ -82,8 +82,12 @@
v-if="attendees !== undefined" v-if="attendees !== undefined"
:class=" :class="
nonAttendees !== undefined nonAttendees !== undefined
? 'col-12 col-sm-5 col-md-5 q-pa-md' ? printing
: 'col-12 col-md-8 col-lg-5' ? 'col-5 q-pa-md'
: 'col-12 col-sm-5 col-md-5 q-pa-md'
: printing
? 'col-5'
: 'col-12 col-md-8 col-lg-5'
" "
> >
<q-table <q-table
@@ -103,7 +107,13 @@
<div <div
v-if="nonAttendees !== undefined" v-if="nonAttendees !== undefined"
:class=" :class="
attendees !== undefined ? 'col-12 col-sm-5 col-md-5 q-pa-md' : 'col-12 col-md-8 col-lg-5' attendees !== undefined
? printing
? 'col-5 q-pa-md'
: 'col-12 col-sm-5 col-md-5 q-pa-md'
: printing
? 'col-5'
: 'col-12 col-md-8 col-lg-5'
" "
> >
<q-table <q-table
@@ -151,6 +161,7 @@ const loading = ref(false);
const amounts = ref<Amount[]>([]); const amounts = ref<Amount[]>([]);
const reportExportRef = ref<HTMLElement | null>(null); const reportExportRef = ref<HTMLElement | null>(null);
const weekdays = ref<number[]>([0, 3]); const weekdays = ref<number[]>([0, 3]);
const printing = ref<boolean>(false);
const columns = computed(() => [ const columns = computed(() => [
{ {
@@ -268,10 +279,14 @@ function updateReport(dates: string[]) {
} }
function printReport() { function printReport() {
printing.value = true;
window.print(); window.print();
printing.value = false;
} }
async function downloadPDF() { async function downloadPDF() {
printing.value = true;
const element = reportExportRef.value; const element = reportExportRef.value;
if (!element) return; if (!element) return;
// Generate date string (YYYY-MM-DD) // Generate date string (YYYY-MM-DD)
@@ -308,7 +323,8 @@ async function downloadPDF() {
.save() .save()
.catch((error) => { .catch((error) => {
console.error('PDF Generation failed:', error); console.error('PDF Generation failed:', error);
}); })
.finally(() => (printing.value = false));
} }
</script> </script>

View File

@@ -33,7 +33,7 @@
<q-select <q-select
dense dense
:readonly="!user.isPermittedTo('settings', 'write')" :readonly="!user.isPermittedTo('settings', 'write')"
:class="[colorGroup ? 'col-md-4' : 'col-sm-6 col-md-12', 'q-pa-md']" :class="[colorGroup ? 'col-md-4' : 'col-xs-12 col-sm-6 col-md-12', 'q-pa-md']"
filled filled
:label="$t('workspaces')" :label="$t('workspaces')"
:options="localUser?.workspaces" :options="localUser?.workspaces"
@@ -44,7 +44,7 @@
<q-select <q-select
dense dense
:readonly="!user.isPermittedTo('settings', 'write')" :readonly="!user.isPermittedTo('settings', 'write')"
:class="[colorGroup ? 'col-md-4' : 'col-sm-6 col-md-12', 'q-pa-md']" :class="[colorGroup ? 'col-md-4' : 'col-xs-12 col-sm-6 col-md-12', 'q-pa-md']"
filled filled
:label="$t('databaseName')" :label="$t('databaseName')"
:options="databases" :options="databases"