mirror of https://github.com/keeweb/keeweb.git
warning for beta version
This commit is contained in:
parent
5449e01da8
commit
cd6704792b
|
@ -13,7 +13,8 @@ var Backbone = require('backbone'),
|
|||
Storage = require('../storage'),
|
||||
Timeouts = require('../const/timeouts'),
|
||||
IdGenerator = require('../util/id-generator'),
|
||||
Logger = require('../util/logger');
|
||||
Logger = require('../util/logger'),
|
||||
FeatureDetector = require('../util/feature-detector');
|
||||
|
||||
require('../mixins/protected-value-ex');
|
||||
|
||||
|
@ -29,6 +30,7 @@ var AppModel = Backbone.Model.extend({
|
|||
this.sort = 'title';
|
||||
this.settings = AppSettingsModel.instance;
|
||||
this.activeEntryId = null;
|
||||
this.isBeta = FeatureDetector.isBeta();
|
||||
|
||||
this.listenTo(Backbone, 'refresh', this.refresh);
|
||||
this.listenTo(Backbone, 'set-filter', this.setFilter);
|
||||
|
|
|
@ -21,6 +21,9 @@ var FeatureDetector = {
|
|||
},
|
||||
canCopyReadonlyInput: function() {
|
||||
return !(/CriOS/i.test(navigator.userAgent));
|
||||
},
|
||||
isBeta: function() {
|
||||
return window.location.href.toLowerCase().indexOf('beta.') > 0;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -41,6 +41,8 @@ var Locale = {
|
|||
alertCopy: 'Copy',
|
||||
alertClose: 'Close',
|
||||
|
||||
appBeta: 'WARNING: beta version, only for preview',
|
||||
|
||||
footerOpen: 'Open / New',
|
||||
footerSyncError: 'Sync error',
|
||||
footerTitleHelp: 'Help',
|
||||
|
|
|
@ -82,7 +82,9 @@ var AppView = Backbone.View.extend({
|
|||
},
|
||||
|
||||
render: function () {
|
||||
this.$el.html(this.template());
|
||||
this.$el.html(this.template({
|
||||
beta: this.model.isBeta
|
||||
}));
|
||||
this.setTheme();
|
||||
this.views.listWrap.setElement(this.$el.find('.app__list-wrap')).render();
|
||||
this.views.menu.setElement(this.$el.find('.app__menu')).render();
|
||||
|
|
|
@ -102,4 +102,13 @@
|
|||
@include flex(0 0 auto);
|
||||
@include th { border-top: light-border(); }
|
||||
}
|
||||
|
||||
&__beta {
|
||||
padding: $base-padding;
|
||||
text-align: center;
|
||||
@include th {
|
||||
background-color: error-color();
|
||||
color: text-contrast-color(error-color());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<div class="app">
|
||||
{{#if beta}}<div class="app__beta"><i class="fa fa-exclamation-triangle"></i> {{res 'appBeta'}}</div>{{/if}}
|
||||
<div class="app__body">
|
||||
<div class="app__menu"></div>
|
||||
<div class="app__menu-drag"></div>
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
Release notes
|
||||
-------------
|
||||
##### v1.1.0 (Q2 2016)
|
||||
Storage providers, usability improvements
|
||||
`+` beta version app
|
||||
|
||||
##### v1.0.0 (2016-02-12)
|
||||
Performance, stability and quality improvements
|
||||
`+` track changes in local files
|
||||
|
|
Loading…
Reference in New Issue