diff --git a/commons/composer.php b/commons/composer.php
index 82dfca1..be51836 100644
--- a/commons/composer.php
+++ b/commons/composer.php
@@ -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,
);
}
@@ -784,6 +794,14 @@ class ComposerElement {
case ComposerElementTypes::GALLERY:
break;
+
+ case ComposerElementTypes::VIDEO:
+ // Composing the video element
+ $htmlCode .= '';
+ break;
default:
$htmlCode .= "
error.unknown !
";
diff --git a/content/items/excel-worksheet-password-remover.json b/content/items/excel-worksheet-password-remover.json
new file mode 100644
index 0000000..3e7466d
--- /dev/null
+++ b/content/items/excel-worksheet-password-remover.json
@@ -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": " View on GitHub",
+ "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.
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 .xlsx
file you gave it, removes the passwords on any worksheets and makes a new file with all the changes.
Once all of that is done, the file is downloaded via a data URL.",
+ "usage.title": "Usage",
+ "usage.p1": "To use this tool you can either visit \"aziascreations.github.io/Excel-Worksheet-Password-Remover\" 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": " Voir sur GitHub",
+ "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 \"aziascreations.github.io/Excel-Worksheet-Password-Remover\" 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": "● ", "localize": false},
+ {
+ "type": "raw", "link": "https://github.com/aziascreations/Excel-Worksheet-Password-Remover",
+ "parts": [
+ {"type": "raw", "content": "content.commons.github"},
+ {"type": "raw", "content": " - ", "localize": false},
+ {
+ "type": "raw",
+ "content": "(https://github.com/aziascreations/Excel-Worksheet-Password-Remover)",
+ "localize": false
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/content/items/trash/excel-worksheet-password-remover.json b/content/items/trash/excel-worksheet-password-remover.json
deleted file mode 100644
index 3c480c8..0000000
--- a/content/items/trash/excel-worksheet-password-remover.json
+++ /dev/null
@@ -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"
- ]
-}
diff --git a/links/index.php b/links/index.php
index 16b6970..ac6fdfd 100644
--- a/links/index.php
+++ b/links/index.php
@@ -57,42 +57,6 @@ include_once 'langs.php';
-
@@ -125,7 +89,7 @@ include_once 'langs.php';
- Twitch
+ LinkedIn
@@ -136,8 +100,8 @@ include_once 'langs.php';