mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-25 14:39:54 +03:00
chore(version-notification): update latest version management
This commit is contained in:
parent
42bcec50df
commit
c74a9aeaa3
2 changed files with 4 additions and 3 deletions
|
@ -30,7 +30,7 @@ const getVersion = (version) => {
|
|||
return version;
|
||||
};
|
||||
|
||||
fs.writeFileSync('.version.json', JSON.stringify({ version: getVersion(version) }));
|
||||
fs.writeFileSync('.version.json', JSON.stringify({ version: getVersion(version), latest: version }));
|
||||
|
||||
const plugins = [
|
||||
riot(),
|
||||
|
|
|
@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
<material-navbar>
|
||||
<span class="logo">
|
||||
<span>Docker Registry UI</span>
|
||||
<version-notification version="{ version }" on-notify="{ notifySnackbar }"></version-notification>
|
||||
<version-notification version="{ latest }" on-notify="{ notifySnackbar }"></version-notification>
|
||||
</span>
|
||||
<div class="menu">
|
||||
<search-bar on-search="{ onSearch }"></search-bar>
|
||||
|
@ -137,7 +137,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
</material-footer>
|
||||
</footer>
|
||||
<script>
|
||||
import { version } from '../../.version.json';
|
||||
import { version, latest } from '../../.version.json';
|
||||
import { Router, Route } from '@riotjs/route';
|
||||
import Catalog from './catalog/catalog.riot';
|
||||
import TagList from './tag-list/tag-list.riot';
|
||||
|
@ -260,6 +260,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
baseRoute: '([^#]*?)/(\\?[^#]*?)?(#!)?(/?)',
|
||||
router,
|
||||
version,
|
||||
latest,
|
||||
truthy,
|
||||
stringToArray,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue