Update the default pad #1
This commit is contained in:
@@ -155,9 +155,11 @@ define(req, function(Default, Language) {
|
|||||||
$('#pad-iframe').contents().find('[data-localization-title]').each(translateTitle);
|
$('#pad-iframe').contents().find('[data-localization-title]').each(translateTitle);
|
||||||
};
|
};
|
||||||
|
|
||||||
messages.driveReadme = '["BODY",{"class":"cke_editable cke_editable_themed cke_contents_ltr cke_show_borders","contenteditable":"true","spellcheck":"false","style":"color: rgb(51, 51, 51);"},' +
|
/*messages.driveReadme = '["BODY",{"class":"cke_editable cke_editable_themed cke_contents_ltr cke_show_borders","contenteditable":"true","spellcheck":"false","style":"color: rgb(51, 51, 51);"},' +
|
||||||
'[["H1",{},["' + messages.driveReadme_h1 + '",["BR",{},[]]]],["UL",{},[["LI",{},["' + messages.driveReadme_li1 + '",["BR",{},[]],["UL",{},[["LI",{},["' + messages.driveReadme_li1_1 + '",["BR",{},[]]]]]]]]]]],' +
|
'[["H1",{},["' + messages.driveReadme_h1 + '",["BR",{},[]]]],["UL",{},[["LI",{},["' + messages.driveReadme_li1 + '",["BR",{},[]],["UL",{},[["LI",{},["' + messages.driveReadme_li1_1 + '",["BR",{},[]]]]]]]]]]],' +
|
||||||
'{"metadata":{"defaultTitle":"' + messages.driveReadmeTitle + '","title":"' + messages.driveReadmeTitle + '"}}]';
|
'{"metadata":{"defaultTitle":"' + messages.driveReadmeTitle + '","title":"' + messages.driveReadmeTitle + '"}}]';
|
||||||
|
*/
|
||||||
|
messages.driveReadme = '[["H1",{},["'+messages.readme_welcome+'"]],["P",{},["'+messages.readme_p1+'"]],["P",{},["'+messages.readme_p2+'"]],["HR",{},[]],["H2",{},["'+messages.readme_cat1+'",["BR",{},[]]]],["UL",{},[["LI",{},["'+messages._getKey("readme_cat1_l1", ['",["STRONG",{},["'+messages.newButton+'"]],"', '",["STRONG",{},["'+messages.type.pad+'"]],"'])+'"]],["LI",{},["'+messages.readme_cat1_l2+'"]],["LI",{},["'+messages._getKey("readme_cat1_l3", ['",["STRONG",{},["'+messages.unsortedName+'"]],"'])+'",["UL",{},[["LI",{},["You can click and drag files into folders in the ",["STRONG",{},["Documents"]]," section of your drive and make new folders."]],["LI",{},["Remember to try right clicking on icons because there are often additional menus."]]]]]],["LI",{},["Put old pads in the trash: You can click and drag your pads into the ",["STRONG",{},["Trash"]]," the same way you drag them into folders.",["BR",{},[]]]]]],["P",{},[["BR",{},[]]]],["H2",{},["Make pads like a pro",["BR",{},[]]]],["UL",{},[["LI",{},["The ",["STRONG",{},["Share"]]," button in your pad allows you to give access to collaborators to either ",["STRONG",{},["edit"]]," or to ",["STRONG",{},["view"]]," the pad."]],["LI",{},["Change the title of the pad by clicking on the pencil"]]]],["P",{},[["BR",{},[]]]],["H2",{},["Discover CryptPad apps"]],["UL",{},[["LI",{},["With CryptPad code editor, you can collaborate on code like Javascript and markdown like HTML and Markdown"]],["LI",{},["With CryptPad slide editor, you can make quick presentations using Markdown"]],["LI",{},["With CryptPoll you can take quick votes, especially for scheduling meetings which fit with everybody\'s calander",["BR",{},[]]]]]]]';
|
||||||
|
|
||||||
return messages;
|
return messages;
|
||||||
|
|
||||||
|
|||||||
@@ -390,5 +390,13 @@ define(function () {
|
|||||||
out.driveReadme_li1 = "CryptDrive : all your pads sorted in one place";
|
out.driveReadme_li1 = "CryptDrive : all your pads sorted in one place";
|
||||||
out.driveReadme_li1_1 = "Tree, trash, unsorted files, etc.";
|
out.driveReadme_li1_1 = "Tree, trash, unsorted files, etc.";
|
||||||
|
|
||||||
|
out.readme_welcome = "Welcome to CryptPad !";
|
||||||
|
out.readme_p1 = "Welcome to CryptPad, this is where you can take note of things alone and with friends.";
|
||||||
|
out.readme_p2 = "This pad will give you a quick walk through of how you can use CryptPad to take notes, keep them organized and work together on them.";
|
||||||
|
out.readme_cat1 = "Get to know your CryptDrive";
|
||||||
|
out.readme_cat1_l1 = "Make a pad: In your CryptDrive, click {0} then {1} and you can make a pad.";
|
||||||
|
out.readme_cat1_l2 = "Open Pads from your CryptDrive: double-click on a pad icon to open it.";
|
||||||
|
out.readme_cat1_l3 = "Organize your pads: When you are logged in, every pad you access will be shown as in the {0} section of your drive.";
|
||||||
|
|
||||||
return out;
|
return out;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1903,9 +1903,11 @@ define([
|
|||||||
var createReadme = function (proxy, cb) {
|
var createReadme = function (proxy, cb) {
|
||||||
if (proxy.initializing) {
|
if (proxy.initializing) {
|
||||||
var hash = Cryptpad.createRandomHash();
|
var hash = Cryptpad.createRandomHash();
|
||||||
|
console.log(Messages.driveReadme);
|
||||||
Get.put(hash, Messages.driveReadme, function (e) {
|
Get.put(hash, Messages.driveReadme, function (e) {
|
||||||
if (e) { console.error(e); }
|
if (e) { console.error(e); }
|
||||||
var href = '/pad/#' + hash;
|
var href = '/pad/#' + hash;
|
||||||
|
console.log(href);
|
||||||
proxy.drive[UNSORTED].push(href);
|
proxy.drive[UNSORTED].push(href);
|
||||||
proxy.drive[FILES_DATA].push({
|
proxy.drive[FILES_DATA].push({
|
||||||
href: href,
|
href: href,
|
||||||
|
|||||||
Reference in New Issue
Block a user