mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-03 08:03:56 +08:00
15 lines
541 B
JavaScript
15 lines
541 B
JavaScript
'use strict';
|
|
'require baseclass';
|
|
|
|
/* Must stay in this file: Makefile, stage.sh and dev-sync.sh stamp it by name. */
|
|
const FS_VERSION = '0.0.0-dev';
|
|
|
|
/* By shape: the minifier folds `!== '0.0.0-dev'`; a dev deploy stamps `git describe`, so only
|
|
* `-dev$` is unstamped. */
|
|
function isReal() { return ((/^\d+\.\d+/).test(FS_VERSION)) && !((/-dev$/).test(FS_VERSION)); }
|
|
|
|
return baseclass.extend({
|
|
REPO_URL: 'https://github.com/VizzleTF/luci-theme-footstrap',
|
|
label: () => (isReal() ? ('Footstrap v' + FS_VERSION) : 'Footstrap (dev)')
|
|
});
|