Added excel password remover project, Added videos to composer

Update composer.php, excel-worksheet-password-remover.json, and 3 more files...
This commit is contained in:
2022-07-01 07:06:57 +02:00
parent eab1699642
commit 634e8fb52b
5 changed files with 159 additions and 68 deletions

View File

@@ -48,6 +48,7 @@ abstract class ComposerElementTypes {
const TABLE = "table";
const GRID = "grid";
const GALLERY = "gallery";
const VIDEO = "video";
/**
* Returns all the constants present in the class.
@@ -425,9 +426,14 @@ class ComposerElement {
// Button's parameters
private ?string $color;
// Image and video's parameters
private ?string $source;
private ?string $thumbnail;
function __construct(string $type, ?array $modifiers, ?string $link, ?array $parts, ?string $content,
bool $localize, ?int $padding, ?int $margin, ?int $size, ?array $head, ?array $body,
int $colspan, int $rowspan, ?int $indent, ?array $code, ?string $color) {
int $colspan, int $rowspan, ?int $indent, ?array $code, ?string $color, ?string $source,
?string $thumbnail) {
$this->type = $type;
$this->modifiers = $modifiers;
$this->link = $link;
@@ -451,6 +457,8 @@ class ComposerElement {
$this->indent = $indent;
$this->code = $code;
$this->color = $color;
$this->source = $source;
$this->thumbnail = $thumbnail;
}
static function from_json_array(?array $json_dataArray) : array {
@@ -481,6 +489,8 @@ class ComposerElement {
key_exists("indent", $json_data) ? $json_data["indent"] : null,
key_exists("code", $json_data) ? $json_data["code"] : null,
key_exists("color", $json_data) ? $json_data["color"] : null,
key_exists("source", $json_data) ? $json_data["source"] : null,
key_exists("thumbnail", $json_data) ? $json_data["thumbnail"] : null,
);
}
@@ -785,6 +795,14 @@ class ComposerElement {
case ComposerElementTypes::GALLERY:
break;
case ComposerElementTypes::VIDEO:
// Composing the video element
$htmlCode .= '<video ' . (is_null($this->source) ? '' : 'src="' . $this->source . '" ') .
'class="' . $this->get_modifiers_classes() . '" ' .
(is_null($this->thumbnail) ? '' : 'poster="' . $this->thumbnail . '" ') .
'controls muted></video>';
break;
default:
$htmlCode .= "<p>error.unknown !</p>";
break;

View File

@@ -0,0 +1,131 @@
{
"strings": {
"en": {
"meta.title": "Excel Worksheet Password Remover",
"meta.description": "Small web page from which you can easily remove a password from an Excel worksheet. It works by leaving the task of editing the XML files on an Excel document to your browser instead to keep everything local.",
"article.subtitle": "<a href=\"https://github.com/aziascreations/Excel-Worksheet-Password-Remover\" class=\"font-size-16\"><i class=\"fab fa-github\"></i> View on GitHub</a>",
"intro.title": "Introduction",
"intro.p1": "This project aims to simplify the removal of passwords on Excel's Worksheet by leaving the task of editing the XML files on an Excel document to your browser.",
"working.title": "Security & Internal workings",
"working.p1": "In terms of security, your browser handles all the data without sending any of it to a central server like many web apps do.<br>This makes it and your data as safe as your browser can be since it is the only potential point of failure here.",
"working.p2": "As for the internal workings, the only thing this tool does is extract the content of the <code>.xlsx</code> file you gave it, removes the passwords on any worksheets and makes a new file with all the changes.<br>Once all of that is done, the file is downloaded via a <a href=\"https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs\">data URL</a>.",
"usage.title": "Usage",
"usage.p1": "To use this tool you can either visit \"<a href=\"https://aziascreations.github.io/Excel-Worksheet-Password-Remover\">aziascreations.github.io/Excel-Worksheet-Password-Remover</a>\" or download the repository and host the web page yourself.",
"demo.title": "Demonstration",
"links.title": "Links"
},
"fr": {
"_meta.title": "",
"meta.description": "Petite application web qui permet de facilement retirer le mot de passe d'une feuille de calcul Excel depuis votre navigateur web sans avoir à uploader le fichier sur internet. Cette application laisse votre navigateur modifier les fichiers XML du fichier Excel afin de tout garder en local.",
"article.subtitle": "<a href=\"https://github.com/aziascreations/Excel-Worksheet-Password-Remover\" class=\"font-size-16\"><i class=\"fab fa-github\"></i> Voir sur GitHub</a>",
"intro.title": "Introduction",
"intro.p1": "Ce projet vise à simplifier le processus de suppression des mots de passes sur les \"worksheet\" d'Excel en laissant votre navigateur web s'en charger.",
"working.title": "Sécurité & Fonctionnement",
"working.p1": "Cet outil charge le ficher que vous lui donnez en mémoire et travaille directement dessus dans le navigateur web sans utiliser un serveur central, vos données restent donc entièrement sur votre machine.",
"working.p2": "Par sécurité, nous vous demandons quand même de n'utiliser cet outil qu'avec des fichiers pour lesquels vous avez été explicitement autorisés à enlever le mot de passe.",
"usage.title": "Utilisation",
"usage.p1": "Vous pouvez utiliser cet outil en allant sur \"<a href=\"https://aziascreations.github.io/Excel-Worksheet-Password-Remover\">aziascreations.github.io/Excel-Worksheet-Password-Remover</a>\" ou en téléchargeant le dépôt et en hébergeant la page web vous-même.",
"demo.title": "Démonstration",
"links.title": "Liens"
}
},
"metadata": {
"template": "article",
"head": {
"title": "meta.title",
"description": "meta.description"
},
"opengraph": {
"title": "meta.title",
"description": "meta.description",
"type": null,
"url": null,
"image": null,
"image_type": null
},
"article": {
"icon": "fad fa-unlock",
"title": "meta.title",
"subtitle": "article.subtitle",
"tags": ["tool", "web"]
}
},
"elements": [
{
"type": "container", "padding": 20,
"modifiers": ["no-bottom-padding", "no-top-margin"],
"parts": [
{"type": "h1", "content": "intro.title"},
{"type": "paragraph", "indent": 2, "content": "intro.p1"}
]
},
{
"type": "container", "padding": 20,
"modifiers": ["no-bottom-padding", "no-top-margin"],
"parts": [
{"type": "h1", "content": "working.title"},
{"type": "paragraph", "indent": 2, "content": "working.p1"},
{"type": "paragraph", "indent": 2, "content": "working.p2"}
]
},
{
"type": "container", "padding": 20,
"modifiers": ["no-bottom-padding", "no-top-margin"],
"parts": [
{"type": "h1", "content": "usage.title"},
{"type": "paragraph", "indent": 2, "content": "usage.p1"}
]
},
{
"type": "container", "padding": 20,
"modifiers": ["no-bottom-padding", "no-top-margin"],
"parts": [
{"type": "h1", "content": "demo.title"},
{
"type": "container",
"modifiers": ["no-padding"],
"padding": 0,
"parts": [
{
"type": "video",
"source": "https://files.nibblepoker.lu/downloads/Excel-Worksheet-Password-Remover/demo_v1.mp4",
"_source": "/tmp/demo_v1.mp4",
"thumbnail": "https://files.nibblepoker.lu/downloads/Excel-Worksheet-Password-Remover/demo_v1_thumb.webp"
}
]
}
]
},
{
"type": "container",
"padding": 20,
"modifiers": ["no-top-margin"],
"parts": [
{"type": "h1", "content": "links.title"},
{
"type": "paragraph",
"indent": 2,
"parts": [
{"type": "raw", "content": "●&nbsp;&nbsp;", "localize": false},
{
"type": "raw", "link": "https://github.com/aziascreations/Excel-Worksheet-Password-Remover",
"parts": [
{"type": "raw", "content": "content.commons.github"},
{"type": "raw", "content": "<span class=\"hidden-xs-and-down\">&nbsp;&nbsp;-&nbsp;&nbsp;", "localize": false},
{
"type": "raw",
"content": "<span class=\"font-size-12\">(https://github.com/aziascreations/Excel-Worksheet-Password-Remover)</span></span>",
"localize": false
}
]
}
]
}
]
}
]
}

View File

@@ -1,28 +0,0 @@
{
"title": {
"icon": "fad fa-unlock",
"page": {
"en": "Excel Worksheet Password Remover",
"fr": "Excel Worksheet Password Remover"
},
"card": {
"main": {
"en": "Excel Worksheet Password Remover",
"fr": "Excel Worksheet Password Remover"
}
}
},
"meta": {
"title": {
"en": "Excel Worksheet Password Remover",
"fr": "Excel Worksheet Password Remover"
},
"description": {
"en": "Small web page from which you can easily remove a password from an Excel worksheet. It works by leaving the task of editing the XML files on an Excel document to your browser instead to keep everything local.",
"fr": "Petite application web qui permet de facilement retirer le mot de passe d'une feuille de calcul Excel depuis votre navigateur web sans avoir à uploader le fichier sur internet. Cette application laisse votre navigateur modifier les fichiers XML du fichier Excel afin de tout garder en local."
}
},
"tags": [
"docker", "web", "python"
]
}

View File

@@ -57,42 +57,6 @@ include_once 'langs.php';
</p>
</div>
</div>
<!--<div class="card p-0 mx-0">
<div class="px-card py-10 border-bottom px-20">
<div class="container-fluid">
<div class="row">
<div class="col-5 col-lg-12">
<h2 class="card-title font-size-18 m-0">
<i class="fab fa-youtube"></i>&nbsp;&nbsp;YouTube
</h2>
</div>
<div class="col-7 hidden-lg-and-up text-right font-italic">
<h2 class="card-title font-size-18 m-0 text-super-muted">Herwin | Nibble Poker</h2>
</div>
</div>
</div>
</div>
<div class="px-card py-10 bg-light-lm bg-very-dark-dm border-bottom px-20">
<p class="font-size-12 m-0">
<i class="fad fa-globe"></i> https://www.youtube.com/channel/UCfBSS1z3EsmpnhbbP-BBoYw
<a class="ml-20" href="https://www.youtube.com/channel/UCfBSS1z3EsmpnhbbP-BBoYw">
<span class="badge badge-primary">
<?php print(localize('links.visit.button')); ?>
</span>
</a>
</p>
</div>
<div class="px-card py-10 bg-light-lm bg-very-dark-dm rounded-bottom px-20">
<p class="font-size-12 m-0">
<i class="fad fa-globe"></i> https://www.youtube.com/channel/UCrvagfACQw9ukdNP-CE3A0g
<a class="ml-20" href="https://www.youtube.com/channel/UCrvagfACQw9ukdNP-CE3A0g">
<span class="badge badge-primary">
<?php print(localize('links.visit.button')); ?>
</span>
</a>
</p>
</div>
</div>-->
<div class="card p-0 mx-0">
<div class="px-card py-10 border-bottom px-20">
<div class="container-fluid">
@@ -125,7 +89,7 @@ include_once 'langs.php';
<div class="row">
<div class="col-5 col-lg-12">
<h2 class="card-title font-size-18 m-0">
<i class="fab fa-twitch"></i>&nbsp;&nbsp;Twitch
<i class="fab fa-linkedin"></i>&nbsp;&nbsp;LinkedIn
</h2>
</div>
<div class="col-7 hidden-lg-and-up text-right font-italic">
@@ -136,8 +100,8 @@ include_once 'langs.php';
</div>
<div class="px-card py-10 bg-light-lm bg-very-dark-dm rounded-bottom px-20">
<p class="font-size-12 m-0">
<i class="fad fa-globe"></i> https://www.twitch.tv/nibblepoker
<a class="ml-20" href="https://www.twitch.tv/nibblepoker">
<i class="fad fa-globe"></i> https://www.linkedin.com/in/herwin-bozet-60aa6310b/
<a class="ml-20" href="https://www.linkedin.com/in/herwin-bozet-60aa6310b/">
<span class="badge badge-primary">
<?php print(localize('links.visit.button')); ?>
</span>

View File

@@ -254,3 +254,9 @@ div.last-inner-collapse-border-fix {
code.w-full {
white-space: pre;
}
video {
/* https://css-tricks.com/fluid-width-video/ */
width: 100% !important;
height: auto !important;
}