Merge branch 'staging' into soon

pull/1/head
ansuz 4 years ago
commit 02e93e2937

1
.gitignore vendored

@ -1,6 +1,7 @@
datastore datastore
tasks tasks
www/bower_components/* www/bower_components/*
www/accounts
node_modules node_modules
/config.js /config.js
customization customization

@ -15,6 +15,7 @@ www/common/onlyoffice/v2*
server.js server.js
www/common/old-media-tag.js www/common/old-media-tag.js
www/scratch www/scratch
www/accounts
www/lib www/lib
www/accounts www/accounts

@ -205,3 +205,11 @@ a > img {
.cp-link-clicked a { .cp-link-clicked a {
cursor: pointer; cursor: pointer;
} }
media-tag {
display: inline-block;
}
media-tag * {
width: 100%;
height: 100%;
}

@ -418,7 +418,7 @@ define([
var localStore = window.cryptpadStore; var localStore = window.cryptpadStore;
localStore.get('hide-alert-teamInvite', function (val) { localStore.get('hide-alert-teamInvite', function (val) {
if (val === '1') { return; } if (val === '1') { return; }
$(linkWarning).show(); $(linkWarning).css('display', 'flex');
$(dismissButton).on('click', function () { $(dismissButton).on('click', function () {
localStore.put('hide-alert-teamInvite', '1'); localStore.put('hide-alert-teamInvite', '1');
@ -1281,6 +1281,9 @@ define([
cb(null, $container); cb(null, $container);
return { return {
$container: $container, $container: $container,
update: function () {
common.getPinUsage(teamId, todo);
},
stop: function () { stop: function () {
clearInterval(interval); clearInterval(interval);
} }

@ -7,14 +7,15 @@ define([
'/common/hyperscript.js', '/common/hyperscript.js',
'/common/inner/common-mediatag.js', '/common/inner/common-mediatag.js',
'/common/media-tag.js', '/common/media-tag.js',
'/common/highlight/highlight.pack.js',
'/customize/messages.js', '/customize/messages.js',
'/common/highlight/highlight.pack.js',
'/bower_components/diff-dom/diffDOM.js', '/bower_components/diff-dom/diffDOM.js',
'/bower_components/tweetnacl/nacl-fast.min.js', '/bower_components/tweetnacl/nacl-fast.min.js',
'css!/common/highlight/styles/github.css' 'css!/common/highlight/styles/github.css'
],function ($, ApiConfig, Marked, Hash, Util, h, MT, MediaTag, Highlight, Messages) { ],function ($, ApiConfig, Marked, Hash, Util, h, MT, MediaTag, Messages) {
var DiffMd = {}; var DiffMd = {};
var Highlight = window.hljs;
var DiffDOM = window.diffDOM; var DiffDOM = window.diffDOM;
var renderer = new Marked.Renderer(); var renderer = new Marked.Renderer();
var restrictedRenderer = new Marked.Renderer(); var restrictedRenderer = new Marked.Renderer();

@ -1,6 +1,6 @@
define([ define([
'jquery', 'jquery',
'/api/config/', '/api/config',
'/common/toolbar.js', '/common/toolbar.js',
'json.sortify', 'json.sortify',
'/common/common-util.js', '/common/common-util.js',
@ -153,6 +153,17 @@ define([
var localStore = window.cryptpadStore; var localStore = window.cryptpadStore;
APP.store = {}; APP.store = {};
$(window).keydown(function (e) {
if (e.which === 70 && e.ctrlKey) {
e.preventDefault();
e.stopPropagation();
if (APP.displayDirectory) {
APP.displayDirectory([SEARCH]);
}
return;
}
});
var makeLS = function (teamId) { var makeLS = function (teamId) {
var suffix = teamId ? ('-' + teamId) : ''; var suffix = teamId ? ('-' + teamId) : '';
var LS_LAST = "app-drive-lastOpened" + suffix; var LS_LAST = "app-drive-lastOpened" + suffix;

File diff suppressed because one or more lines are too long

@ -341,7 +341,7 @@ define([
localStore.get('hide-alert-shareLinkWarning', function (val) { localStore.get('hide-alert-shareLinkWarning', function (val) {
if (val === '1') { return; } if (val === '1') { return; }
$(shareLinkWarning).show(); $(shareLinkWarning).css('display', 'flex');
$(dismissButton).on('click', function () { $(dismissButton).on('click', function () {
localStore.put('hide-alert-shareLinkWarning', '1'); localStore.put('hide-alert-shareLinkWarning', '1');
@ -362,7 +362,9 @@ define([
})); }));
}); });
Messages.share_bar = "Generate link"; // XXX XXX XXX XXX XXX XXX XXX XXX XXX XXX XXX //Messages.share_bar = "Generate link"; // XXX XXX XXX XXX XXX XXX XXX XXX XXX XXX XXX
Messages.share_bar = Messages.team_inviteLinkCreate; // XXX
var linkButtons = [ var linkButtons = [
makeCancelButton(), makeCancelButton(),
!opts.sharedFolder && { !opts.sharedFolder && {
@ -737,7 +739,7 @@ define([
localStore.get('hide-alert-shareLinkWarning', function (val) { localStore.get('hide-alert-shareLinkWarning', function (val) {
if (val === '1') { return; } if (val === '1') { return; }
$(shareLinkWarning).show(); $(shareLinkWarning).css('display', 'flex');
$(dismissButton).on('click', function () { $(dismissButton).on('click', function () {
localStore.put('hide-alert-shareLinkWarning', '1'); localStore.put('hide-alert-shareLinkWarning', '1');

Loading…
Cancel
Save