mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-25 22:49: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;
|
return version;
|
||||||
};
|
};
|
||||||
|
|
||||||
fs.writeFileSync('.version.json', JSON.stringify({ version: getVersion(version) }));
|
fs.writeFileSync('.version.json', JSON.stringify({ version: getVersion(version), latest: version }));
|
||||||
|
|
||||||
const plugins = [
|
const plugins = [
|
||||||
riot(),
|
riot(),
|
||||||
|
|
|
@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
<material-navbar>
|
<material-navbar>
|
||||||
<span class="logo">
|
<span class="logo">
|
||||||
<span>Docker Registry UI</span>
|
<span>Docker Registry UI</span>
|
||||||
<version-notification version="{ version }" on-notify="{ notifySnackbar }"></version-notification>
|
<version-notification version="{ latest }" on-notify="{ notifySnackbar }"></version-notification>
|
||||||
</span>
|
</span>
|
||||||
<div class="menu">
|
<div class="menu">
|
||||||
<search-bar on-search="{ onSearch }"></search-bar>
|
<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>
|
</material-footer>
|
||||||
</footer>
|
</footer>
|
||||||
<script>
|
<script>
|
||||||
import { version } from '../../.version.json';
|
import { version, latest } from '../../.version.json';
|
||||||
import { Router, Route } from '@riotjs/route';
|
import { Router, Route } from '@riotjs/route';
|
||||||
import Catalog from './catalog/catalog.riot';
|
import Catalog from './catalog/catalog.riot';
|
||||||
import TagList from './tag-list/tag-list.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: '([^#]*?)/(\\?[^#]*?)?(#!)?(/?)',
|
baseRoute: '([^#]*?)/(\\?[^#]*?)?(#!)?(/?)',
|
||||||
router,
|
router,
|
||||||
version,
|
version,
|
||||||
|
latest,
|
||||||
truthy,
|
truthy,
|
||||||
stringToArray,
|
stringToArray,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue