|
|
|
@ -4,8 +4,9 @@ define([
|
|
|
|
|
'/customize/messages.js',
|
|
|
|
|
'/customize/application_config.js',
|
|
|
|
|
'/common/outer/local-store.js',
|
|
|
|
|
'/customize/pages.js'
|
|
|
|
|
], function ($, h, Msg, AppConfig, LocalStore, Pages) {
|
|
|
|
|
'/customize/pages.js',
|
|
|
|
|
'/api/config',
|
|
|
|
|
], function ($, h, Msg, AppConfig, LocalStore, Pages, Config) {
|
|
|
|
|
var origin = encodeURIComponent(window.location.hostname);
|
|
|
|
|
var accounts = {
|
|
|
|
|
donateURL: 'https://accounts.cryptpad.fr/#/donate?on=' + origin,
|
|
|
|
@ -29,15 +30,8 @@ define([
|
|
|
|
|
sessionStorage.redirectTo = '/features.html';
|
|
|
|
|
window.location.href = '/login/';
|
|
|
|
|
});*/
|
|
|
|
|
return h('div#cp-main', [
|
|
|
|
|
Pages.infopageTopbar(),
|
|
|
|
|
h('div.container-fluid.cp_cont_features',[
|
|
|
|
|
h('div.container',[
|
|
|
|
|
h('center', h('h1', Msg.features_title)),
|
|
|
|
|
]),
|
|
|
|
|
]),
|
|
|
|
|
h('div.container',[
|
|
|
|
|
h('div.row.cp-container.cp-features-web.justify-content-sm-center',[
|
|
|
|
|
|
|
|
|
|
var anonymousFeatures =
|
|
|
|
|
h('div.col-12.col-sm-4.cp-anon-user',[
|
|
|
|
|
h('div.card',[
|
|
|
|
|
h('div.card-body',[
|
|
|
|
@ -59,7 +53,8 @@ define([
|
|
|
|
|
})
|
|
|
|
|
),
|
|
|
|
|
]),
|
|
|
|
|
]),
|
|
|
|
|
]);
|
|
|
|
|
var registeredFeatures =
|
|
|
|
|
h('div.col-12.col-sm-4.cp-regis-user',[
|
|
|
|
|
h('div.card',[
|
|
|
|
|
h('div.card-body',[
|
|
|
|
@ -89,7 +84,8 @@ define([
|
|
|
|
|
h('div.cp-note', Msg.features_f_register_note)
|
|
|
|
|
]),
|
|
|
|
|
]),
|
|
|
|
|
]),
|
|
|
|
|
]);
|
|
|
|
|
var premiumFeatures =
|
|
|
|
|
h('div.col-12.col-sm-4.cp-anon-user',[
|
|
|
|
|
h('div.card',[
|
|
|
|
|
h('div.card-body',[
|
|
|
|
@ -120,8 +116,21 @@ define([
|
|
|
|
|
LocalStore.isLoggedIn() ? undefined : h('div.cp-note', Msg.features_f_subscribe_note)
|
|
|
|
|
]),
|
|
|
|
|
]),
|
|
|
|
|
]);
|
|
|
|
|
var availableFeatures =
|
|
|
|
|
Config.allowSubscriptions ?
|
|
|
|
|
[anonymousFeatures, registeredFeatures, premiumFeatures] :
|
|
|
|
|
[anonymousFeatures, registeredFeatures];
|
|
|
|
|
|
|
|
|
|
return h('div#cp-main', [
|
|
|
|
|
Pages.infopageTopbar(),
|
|
|
|
|
h('div.container-fluid.cp_cont_features',[
|
|
|
|
|
h('div.container',[
|
|
|
|
|
h('center', h('h1', Msg.features_title)),
|
|
|
|
|
]),
|
|
|
|
|
]),
|
|
|
|
|
h('div.container', [
|
|
|
|
|
h('div.row.cp-container.cp-features-web.justify-content-sm-center', availableFeatures),
|
|
|
|
|
]),
|
|
|
|
|
Pages.infopageFooter()
|
|
|
|
|
]);
|
|
|
|
|