Skip to content

Commit

Permalink
fix: design
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Mar 14, 2022
1 parent f18ada6 commit c877248
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<script lang="ts">
import { IonApp, IonRouterOutlet } from '@ionic/vue';
import { defineComponent } from 'vue';
import { CapacitorUpdater } from 'capacitor-updater'
import { SplashScreen } from '@capacitor/splash-screen'
// import { CapacitorUpdater } from 'capacitor-updater'
// import { SplashScreen } from '@capacitor/splash-screen'
// import { App } from '@capacitor/app'
let data = {version: ""}
Expand Down
12 changes: 5 additions & 7 deletions src/views/Tab1Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,21 @@
<ion-title size="large">Tab 1</ion-title>
</ion-toolbar>
</ion-header>

<ExploreContainer name="Tab 1 page" />
<ion-button @click="updateNow">Update now</ion-button>
Version 0.0.1
<ion-button expand="block" color="primary" @click="updateNow">Update now</ion-button>
</ion-content>
</ion-page>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import { IonPage, IonHeader, IonToolbar, IonTitle, IonContent } from '@ionic/vue';
import ExploreContainer from '@/components/ExploreContainer.vue';
import { IonPage, IonHeader, IonToolbar, IonTitle, IonContent, IonButton } from '@ionic/vue';
import { CapacitorUpdater } from 'capacitor-updater'
import { SplashScreen } from '@capacitor/splash-screen'
const updateNow = async () => {
const version = await CapacitorUpdater.download({
url: 'https://github.com/Forgr-ee/Mimesis/releases/download/0.0.1/dist.zip',
url: 'https://github.com/Cap-go/demo-app/releases/download/0.0.2/dist.zip',
})
// show the splashscreen to let the update happen
SplashScreen.show()
Expand All @@ -36,7 +34,7 @@ const updateNow = async () => {
}
export default defineComponent({
name: 'Tab1Page',
components: { ExploreContainer, IonHeader, IonToolbar, IonTitle, IonContent, IonPage },
components: { IonHeader, IonToolbar, IonTitle, IonContent, IonPage, IonButton },
methods: {
updateNow
}
Expand Down

0 comments on commit c877248

Please sign in to comment.