|
|
@ -2,7 +2,8 @@ define([
|
|
|
|
'/api/config',
|
|
|
|
'/api/config',
|
|
|
|
'/common/hyperscript.js',
|
|
|
|
'/common/hyperscript.js',
|
|
|
|
'/common/cryptpad-common.js',
|
|
|
|
'/common/cryptpad-common.js',
|
|
|
|
], function (Config, h, Cryptpad) {
|
|
|
|
'jquery'
|
|
|
|
|
|
|
|
], function (Config, h, Cryptpad, $) {
|
|
|
|
var Pages = {};
|
|
|
|
var Pages = {};
|
|
|
|
var Msg = Cryptpad.Messages;
|
|
|
|
var Msg = Cryptpad.Messages;
|
|
|
|
var urlArgs = Config.requireConf.urlArgs;
|
|
|
|
var urlArgs = Config.requireConf.urlArgs;
|
|
|
@ -254,10 +255,11 @@ define([
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Pages['/'] = Pages['/index.html'] = function () {
|
|
|
|
Pages['/'] = Pages['/index.html'] = function () {
|
|
|
|
|
|
|
|
var showingMore = false;
|
|
|
|
return [
|
|
|
|
return [
|
|
|
|
h('div#cp-main.cp-page-index', [
|
|
|
|
h('div#cp-main.cp-page-index', [
|
|
|
|
infopageTopbar(),
|
|
|
|
infopageTopbar(),
|
|
|
|
h('div.container', [
|
|
|
|
h('div.container.cp-container', [
|
|
|
|
h('div.row', [
|
|
|
|
h('div.row', [
|
|
|
|
h('div.cp-title.col-6.col-xs-6', [
|
|
|
|
h('div.cp-title.col-6.col-xs-6', [
|
|
|
|
h('img', { src: '/customize/cryptpad-new-logo-colors-logoonly.png?' + urlArgs }),
|
|
|
|
h('img', { src: '/customize/cryptpad-new-logo-colors-logoonly.png?' + urlArgs }),
|
|
|
@ -266,32 +268,44 @@ define([
|
|
|
|
]),
|
|
|
|
]),
|
|
|
|
/*userForm(),*/
|
|
|
|
/*userForm(),*/
|
|
|
|
h('div.col-6.col-xs-6', [
|
|
|
|
h('div.col-6.col-xs-6', [
|
|
|
|
h('div.bs-callout.cp-callout-pad', [
|
|
|
|
[
|
|
|
|
h('i.fa.fa-file-word-o'),
|
|
|
|
[ 'pad', '/pad/', 'Rich Text Pad', 'fa-file-word-o' ],
|
|
|
|
h('div', [h('h4', 'Rich Text Pad')]),
|
|
|
|
[ 'code', '/code/', 'Markdown/Code Pad', 'fa-file-code-o' ],
|
|
|
|
// "TODO Collaborate in realtime on notes and ideas."
|
|
|
|
[ 'slide', '/slide/', 'Markdown Presentation', 'fa-file-powerpoint-o' ],
|
|
|
|
]),
|
|
|
|
[ 'poll.cp-more.cp-hidden', '/poll/', 'Poll or Schedule', 'fa-calendar' ],
|
|
|
|
h('div.bs-callout.cp-callout-code', [
|
|
|
|
[ 'whiteboard.cp-more.cp-hidden', '/whiteboard/', 'Whiteboard', 'fa-paint-brush' ],
|
|
|
|
h('i.fa.fa-file-code-o'),
|
|
|
|
[ 'recent.cp-more.cp-hidden', '/drive/', 'Recent Pads', 'fa-hdd-o' ]
|
|
|
|
h('div', [h('h4', 'Markdown/Code Pad')]),
|
|
|
|
].map(function (x) {
|
|
|
|
// "TODO Edit Markdown with realtime visual rendering."
|
|
|
|
return h('a', [
|
|
|
|
]),
|
|
|
|
{ href: x[1] },
|
|
|
|
h('div.bs-callout.cp-callout-slide', [
|
|
|
|
h('div.bs-callout.cp-callout-' + x[0], [
|
|
|
|
h('i.fa.fa-file-powerpoint-o'),
|
|
|
|
h('i.fa.' + x[3]),
|
|
|
|
h('div', [h('h4', 'Markdown Presentation')]),
|
|
|
|
h('div', [ h('h4', x[2]) ])
|
|
|
|
// "TODO Make quick presentations with Markdown slides."
|
|
|
|
])
|
|
|
|
]),
|
|
|
|
]);
|
|
|
|
|
|
|
|
}),
|
|
|
|
h('div.bs-callout.cp-callout-more', [
|
|
|
|
h('div.bs-callout.cp-callout-more', [
|
|
|
|
h('div', [
|
|
|
|
h('div.cp-callout-more-lessmsg.cp-hidden', [
|
|
|
|
|
|
|
|
"see less ",
|
|
|
|
|
|
|
|
h('i.fa.fa-caret-up')
|
|
|
|
|
|
|
|
]),
|
|
|
|
|
|
|
|
h('div.cp-callout-more-moremsg', [
|
|
|
|
"see more ",
|
|
|
|
"see more ",
|
|
|
|
h('i.fa.fa-caret-down')
|
|
|
|
h('i.fa.fa-caret-down')
|
|
|
|
]),
|
|
|
|
]),
|
|
|
|
// "TODO Make quick presentations with Markdown slides."
|
|
|
|
{
|
|
|
|
]),
|
|
|
|
onclick: function () {
|
|
|
|
/*h('div.bs-callout.cp-callout-recent', [
|
|
|
|
if (showingMore) {
|
|
|
|
h('h4', 'TODO Your Recent Pads'),
|
|
|
|
$('.cp-more, .cp-callout-more-lessmsg').addClass('cp-hidden');
|
|
|
|
/// "TODO See pads recently edited on this computer."
|
|
|
|
$('.cp-callout-more-moremsg').removeClass('cp-hidden');
|
|
|
|
]),*/
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$('.cp-more, .cp-callout-more-lessmsg').removeClass('cp-hidden');
|
|
|
|
|
|
|
|
$('.cp-callout-more-moremsg').addClass('cp-hidden');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
showingMore = !showingMore;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
])
|
|
|
|
])
|
|
|
|
])
|
|
|
|
])
|
|
|
|
])
|
|
|
|
]),
|
|
|
|
]),
|
|
|
|