6 Commits

Author SHA1 Message Date
e6f4159e53 Fixed dark theme issues 2019-01-21 09:06:27 +01:00
2d88a71b80 Fix issue 2019-01-21 08:30:56 +01:00
6c090b4967 Bumped to 2019 2019-01-21 07:51:16 +01:00
f67670dc0a Fixed little issue 2019-01-20 19:40:29 +01:00
a03fc1a745 Integrated personnal data navigator 2019-01-20 18:04:09 +01:00
32c484b41a Added personnal data navigator build file 2019-01-20 17:17:13 +01:00
9 changed files with 77 additions and 11 deletions

View File

@ -1,5 +1,5 @@
MIT License
Copyright (c) 2017-2018 Pierre HUBERT
Copyright (c) 2017-2019 Pierre HUBERT
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

View File

@ -58,6 +58,14 @@ p, h1, h2, h3, h4, h5, h6 {
}
/**
* Callouts
*/
.callout.callout-info {
background-color: var(--black-5) !important;
}
/**
* Forms
*/
@ -556,4 +564,11 @@ img[src$="groups_logo/default.png"] {
*/
.friends-list-ro .friend a:hover .friends-name {
color: var(--black4);
}
/**
* Account created page
*/
.page_account_created .message_container .message {
background-color: var(--black5);
}

View File

@ -421,7 +421,7 @@ function checkString(value){
function removeHtmlTags(input){
//Check if input string is empty
if(input == null)
if(input == null || typeof input !== "string")
return "";
//Prepare update

View File

@ -25,18 +25,51 @@ ComunicWeb.components.account.export.worker = {
ComunicWeb.components.account.export.ui.updateMessage("Got text data");
ComunicWeb.components.account.export.ui.updateProgress(10);
//Parse data
ComunicWeb.components.account.export.worker.parse(result);
//Get explorer
ComunicWeb.components.account.export.worker.getExplorer(result);
});
},
/**
* Parse account text data into ZIP file
* Second step for export : Get and open personnal data explorer
*
* @param {Object} data Text data about the account
* @param {Object} data Text data about the account (data not modified at this stage)
*/
parse: function(data){
getExplorer: function(data){
ComunicWeb.components.account.export.ui.updateMessage("Getting data explorer");
ComunicWeb.components.account.export.ui.updateProgress(15);
JSZipUtils.getBinaryContent(ComunicWeb.__config.assetsURL+"zip/personnal-data-export-navigator.zip", function(err, file){
if(err != null){
ComunicWeb.debug.logMessage("Could not get personnal data export navigator!");
ComunicWeb.components.account.export.ui.exportFatalError(e);
return;
}
JSZip.loadAsync(file).then(function(zip){
//Ready to parse data
ComunicWeb.components.account.export.worker.parse(data, zip);
}).catch(function(){
ComunicWeb.debug.logMessage("Could not parse personnal data export navigator!");
ComunicWeb.components.account.export.ui.exportFatalError(e);
return;
});
});
},
/**
* Parse account text data into ZIP file
*
* @param {Object} data Text data about the account
* @param {ZIP} zip The ZIP object to fill
*/
parse: function(data, zip){
//Get UI shorcut
var ui = ComunicWeb.components.account.export.ui;
@ -77,9 +110,6 @@ ComunicWeb.components.account.export.worker = {
//Determine the list of files to download
var files_list = this._generate_files_list(data);
//Create zip file
var zip = new JSZip();
//Add raw json file
zip.file("source.json", JSON.stringify(data));

View File

@ -22,6 +22,9 @@ ComunicWeb.components.conversations.messageEditor = {
function(content){
if(!content)
return;
//Intend to update message content
ComunicWeb.components.conversations.interface.UpdateSingleMessage(
message.ID,

1
assets/zip/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
personnal-data-export-navigator.zip

View File

@ -0,0 +1,9 @@
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $SCRIPT_DIR;
rm -f personnal-data-export-navigator.zip
cd personnal-data-export-navigator;
zip -r personnal-data-export-navigator.zip assets Export.html
mv personnal-data-export-navigator.zip ../

View File

@ -177,6 +177,7 @@ if(file_exists(OUTPUT_DIRECTORY))
mkdir(OUTPUT_DIRECTORY, 0777, true);
mkdir($path_release_assets, 0777, true);
mkdir($path_release_assets."/css", 0777, true);
mkdir($path_release_assets."/zip", 0777, true);
@ -237,6 +238,13 @@ rcopy($path_debug_assets."css/dark_theme.css", $path_release_assets."css/dark_th
//Copy pacman
rcopy($path_debug_assets."3rdparty/pacman", $path_release_assets."3rdparty/pacman");
//Build and copy personnal data navigator
notice("Build personnal data export navigator and add it to built files");
exec($path_debug_assets."zip/personnal-data-export-navigator-builder.sh");
rcopy($path_debug_assets."zip/personnal-data-export-navigator.zip", $path_release_assets."zip/personnal-data-export-navigator.zip");
//Begin to write root PHP File
notice("Generate PHP root file");
$page_src = '<?php

View File

@ -2,7 +2,7 @@
Comunic web app client
Main HTML file
(c) Pierre HUBERT 2017-2018
(c) Pierre HUBERT 2017-2019
-->
<!DOCTYPE html>
<html>