Removed Capacitor
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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`)
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user