This repository has been archived by the owner on Mar 18, 2024. It is now read-only.
-
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.
Add basic 'your version, latest version' info
- Loading branch information
1 parent
c5927f6
commit b21c298
Showing
7 changed files
with
98 additions
and
33 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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Nova.booting((Vue, router) => { | ||
Vue.component('nova-releases', require('./components/Card')); | ||
Vue.component('nova-releases-latest', require('./components/LatestRelease')); | ||
}) |
This file was deleted.
Oops, something went wrong.
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,36 @@ | ||
<template> | ||
<card class="flex flex-col items-center justify-center"> | ||
<div class="px-3 py-3"> | ||
<h1 class="text-center text-3xl text-80 font-light mt-4 mb-4">Nova Releases</h1> | ||
|
||
Latest version: {{ current_release_version }}<br><br> | ||
|
||
Installed version: {{ installed_version }}<br><br> | ||
</div> | ||
</card> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: ['card'], | ||
data: () => { | ||
return { | ||
installed_version: null, | ||
releases: [], | ||
current_release_version: null, | ||
}; | ||
}, | ||
mounted() { | ||
Nova.request().get('/nova-vendor/nova-releases/releases').then(response => { | ||
this.releases = response.data.releases; | ||
this.current_release_version = response.data.current_version; | ||
}); | ||
Nova.request().get('/nova-vendor/nova-releases/installed-version').then(response => { | ||
this.installed_version = response.data.installed_version; | ||
}); | ||
}, | ||
} | ||
</script> |
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