-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
142 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 91 additions & 0 deletions
91
resources/js/Pages/Settings/Components/UpdateSettingsForm.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<template> | ||
<jet-form-section> | ||
<template #title> | ||
Update Settings | ||
</template> | ||
|
||
<template #description> | ||
Update your voice provider | ||
</template> | ||
|
||
<template #form> | ||
|
||
<!-- Name --> | ||
<div class="col-span-6 sm:col-span-4"> | ||
<div class="inline-flex items-center text-zinc-700 dark:text-zinc-300"> | ||
<spinner v-show="checkingVersion" class="h-7 w-7 mr-4 text-indigo-500"/> | ||
<check-mark-solid v-show="isUpToDate" class="h-7 w-7 mr-4 text-indigo-500"/> | ||
<info-circle-solid v-show="isUpdateAvailable" class="h-7 w-7 mr-4 text-green-500"/> | ||
<div class="flex flex-col items-start"> | ||
<span v-show="checkingVersion">Checking for updates...</span> | ||
<span v-show="isUpToDate">EZGames is up to date</span> | ||
<span v-show="isUpdateAvailable">An update is available: <span class="text-green-500">{{newVersion}}</span></span> | ||
<div class="text-xs text-zinc-600 dark:text-zinc-400"> | ||
Current version: <span class="text-zinc-700 dark:text-zinc-300">{{ currentVersion }}</span> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="w-full"> | ||
<jet-button class="mt-6 ml-11 inline-flex items-center"> | ||
<cloud-download class="mr-2"/> UPDATE | ||
</jet-button> | ||
</div> | ||
</div> | ||
</template> | ||
</jet-form-section> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { | ||
Component, Mixins, Prop, | ||
} from 'vue-property-decorator' | ||
import JetFormSection from '@/Jetstream/FormSection.vue' | ||
import JetLabel from '@/Jetstream/Label.vue' | ||
import JetSecondaryButton from '@/Jetstream/SecondaryButton.vue' | ||
import JetInputError from '@/Jetstream/InputError.vue' | ||
import JetInput from '@/Jetstream/Input.vue' | ||
import JetActionMessage from '@/Jetstream/ActionMessage.vue' | ||
import JetButton from '@/Jetstream/Button.vue' | ||
import JetSelect from '@/Jetstream/Select.vue' | ||
import Route from '@/Mixins/Route' | ||
import Spinner from '@/Shared/Svgs/Spinner.vue' | ||
import CheckMarkSolid from '@/Shared/Svgs/CheckMarkSolid.vue' | ||
import CloudDownload from '@/Shared/Svgs/CloudDownload.vue' | ||
import InfoCircleSolid from '@/Shared/Svgs/InfoCircleSolid.vue' | ||
@Component({ | ||
components: { | ||
InfoCircleSolid, | ||
CloudDownload, | ||
CheckMarkSolid, | ||
Spinner, | ||
JetButton, | ||
JetActionMessage, | ||
JetInput, | ||
JetInputError, | ||
JetSecondaryButton, | ||
JetLabel, | ||
JetFormSection, | ||
JetSelect, | ||
}, | ||
}) | ||
export default class UpdateSettingsForm extends Mixins(Route) { | ||
@Prop({ | ||
type: String, | ||
required: true, | ||
}) currentVersion!: string | ||
newVersion: string = '' | ||
checkingVersion: boolean = false | ||
isUpToDate: boolean = false | ||
isUpdateAvailable: boolean = !(this.checkingVersion && this.isUpToDate) | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<template> | ||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor"> | ||
<path fill-rule="evenodd" d="M2 9.5A3.5 3.5 0 005.5 13H9v2.586l-1.293-1.293a1 1 0 00-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L11 15.586V13h2.5a4.5 4.5 0 10-.616-8.958 4.002 4.002 0 10-7.753 1.977A3.5 3.5 0 002 9.5zm9 3.5H9V8a1 1 0 012 0v5z" clip-rule="evenodd" /> | ||
</svg> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Vue, Component } from 'vue-property-decorator' | ||
@Component | ||
export default class CloudDownload extends Vue { | ||
// | ||
} | ||
</script> |