Removed Capacitor

This commit is contained in:
2026-01-06 15:20:26 +01:00
parent 3bcfacdf84
commit 9fb520d8c3
50 changed files with 90 additions and 1629 deletions

View File

@@ -171,7 +171,7 @@ const moveFile = async () => {
</template>
<div class="flex flex-row">
<div :class="useCapacitor().getIsNative() ? ['w-full'] : ['w-1/3']">
<div :class="false ? ['w-full'] : ['w-1/3']">
<PDFViewer
v-if="props.documentData.id && props.documentData.path.toLowerCase().includes('pdf')"
:file-id="props.documentData.id" />
@@ -183,7 +183,7 @@ const moveFile = async () => {
v-else
/>
</div>
<div class="w-2/3 p-5" v-if="!useCapacitor().getIsNative()">
<div class="w-2/3 p-5" v-if="!false">
<UButtonGroup>
<ArchiveButton
color="rose"

View File

@@ -26,7 +26,6 @@ const platform = ref("default")
const setup = async () => {
if(await useCapacitor().getIsPhone()) platform.value = "mobile"
if(props.type && props.elementId){
items.value = await useNuxtApp().$api(`/api/resource/${props.type}/${props.elementId}/history`)

View File

@@ -15,14 +15,8 @@ const props = defineProps({
*/
async function openLink(link) {
if (link.external) {
if (useCapacitor().getIsNative()) {
await Browser.open({
url: link.to,
presentationStyle: "popover",
})
} else {
window.open(link.to, "_blank")
}
window.open(link.to, "_blank")
} else {
return navigateTo(link.to)
}

View File

@@ -13,11 +13,9 @@ const platform = ref("default")
const setupPage = async () => {
runningTimeInfo.value = (await supabase.from("times").select().eq("profile", profileStore.activeProfile.id).is("endDate", null).single()).data || {}
projects.value = (await useSupabaseSelect("projects"))
//projects.value = (await useSupabaseSelect("projects"))
if(await useCapacitor().getIsPhone()) {
platform.value = "mobile"
}
}