From d5ea7e369b92cd455a3421836186a03dcdac6831 Mon Sep 17 00:00:00 2001 From: Herwin Date: Wed, 24 May 2023 07:04:00 +0200 Subject: [PATCH] Added scripts for content, Improved tables and buttons Update scripts.php, sidebar.php, and 20 more files... --- commons/DOM/scripts.php | 12 ++- commons/DOM/sidebar.php | 4 +- commons/composer.php | 7 +- commons/content.php | 72 ++++------------- commons/strings.json | 2 +- commons/strings/en/content.json | 7 +- content/index.json | 15 ++-- content/index.php | 23 +++++- content/items/lscom-cli-dotnet.json | 36 ++++----- content/items/lscom-cli.json | 48 ++++++------ index.php | 4 +- privacy/index.php | 17 ++-- resources/NibblePoker/js/nibblepoker-code.js | 49 ++++++++++++ .../NibblePoker/js/nibblepoker-glider.js | 77 +++++++++++++++++++ resources/NibblePoker/scss/core/border.scss | 4 + .../NibblePoker/scss/core/spacing/global.scss | 6 ++ resources/NibblePoker/scss/core/text.scss | 6 ++ resources/NibblePoker/scss/site/code.scss | 18 ++++- resources/NibblePoker/scss/site/commons.scss | 4 + resources/NibblePoker/scss/site/table.scss | 6 ++ resources/NibblePoker/scss/site/text.scss | 9 +++ resources/NibblePoker/scss/variables.scss | 6 ++ 22 files changed, 302 insertions(+), 130 deletions(-) create mode 100644 resources/NibblePoker/js/nibblepoker-code.js create mode 100644 resources/NibblePoker/js/nibblepoker-glider.js diff --git a/commons/DOM/scripts.php b/commons/DOM/scripts.php index f690bb8..a6dee74 100644 --- a/commons/DOM/scripts.php +++ b/commons/DOM/scripts.php @@ -12,7 +12,15 @@ if($enable_glider) { if($enable_code_highlight) { echo(''); echo(''); - //echo(''); } ?> - \ No newline at end of file + +'); +} +if($enable_code_highlight) { + echo(''); +} +?> \ No newline at end of file diff --git a/commons/DOM/sidebar.php b/commons/DOM/sidebar.php index cc174fc..94d6d14 100644 --- a/commons/DOM/sidebar.php +++ b/commons/DOM/sidebar.php @@ -12,8 +12,8 @@ if(!isset($SIDEBAR_ID)) { } function printSidebarEntry($url, $title, $icon) { - echo('

'); - echo('' . $title . '

'); + echo('

'); + echo('' . $title . '

'); } ?> diff --git a/commons/composer.php b/commons/composer.php index 7505f9c..ca022cb 100644 --- a/commons/composer.php +++ b/commons/composer.php @@ -113,8 +113,9 @@ abstract class ComposerElementModifiers { const TABLE_HOVER = ["hover", "table-hover"]; const TABLE_INNER_BORDER = ["inner-bordered", "table-inner-bordered"]; const TABLE_OUTER_BORDER = ["outer-bordered", "table-outer-bordered"]; - const TABLE_V2_STYLISH = ["stylish", "stylish"]; + const TABLE_V2_STYLISH = ["stylish", "stylish r-s border o-hidden"]; const TABLE_V2_CELL_PADDING = ["auto-cell-padding", "table-p-xs"]; + const TABLE_V2_VERTICAL_ALIGN = ["v-center-cells", "table-v-center"]; // Code const CODE_BLOCK = ["code-block", "w-full d-inline-block"]; @@ -646,7 +647,7 @@ class ComposerElement { // Setting up the link and its title if needed. if(!is_null($this->link)) { $htmlCode .= 'type == ComposerElementTypes::BUTTON ? 'class="button-link"' : '') .'>'; + ($this->type == ComposerElementTypes::BUTTON ? 'class="bland-link button-link"' : '') .'>'; } switch($this->type) { @@ -726,7 +727,7 @@ class ComposerElement { case ComposerElementTypes::BUTTON: // Composing the button. - $htmlCode .= ''; break; diff --git a/commons/content.php b/commons/content.php index f6d8fb4..e4180ab 100644 --- a/commons/content.php +++ b/commons/content.php @@ -93,6 +93,20 @@ if($requested_content_display_type == ContentDisplayType::SEARCH) { $content_error_message_key = "content.error.message.detect.empty"; goto content_end; } + + // Sorting entries based on their priority + for($i = 0; $i < count($filtered_content_index_data); $i++) { + if(!isset($filtered_content_index_data[$i]["priority"])) { + $filtered_content_index_data[$i]["priority"] = 0; + } + } + usort($filtered_content_index_data, function ($a, $b) { + if($a["priority"] == $b["priority"]) { + return 0; + } + return ($a["priority"] > $b["priority"]) ? -1 : 1; + }); + } else if($requested_content_display_type == ContentDisplayType::CONTENT) { // Sanitizing the requested ID. if(!ctype_alnum(str_replace("-", "", $content_requested_url_part))) { @@ -128,62 +142,4 @@ content_end: // TODO: Create error thingy $content_error_message = localize($content_error_message_key); -// These functions are placed here to prevent the main file from becoming impossible to read. -function start_content_card($iconClasses, $title, $subTitle) { - echo('
'); - echo('

  '.localize($title)); - echo(''.$subTitle.'

'); - echo('
'); -} - -function end_content_card() { - echo('
'); -} - -// FIXME: What is this, should it be removed ? -/* - switch($elementNode["type"]) { - case "image": - // Parsing properties. - $_imgAlt = ""; - $_imgSource = "/resources/Azias/imgs/placeholder.png"; - if(array_key_exists("alt", $elementNode)) { - $_imgAlt = $elementNode["alt"]; - } - if(array_key_exists("src", $elementNode)) { - $_imgSource = $elementNode["src"]; - } - - // Reading and processing the modifiers. - $_modFillHeight = false; - if(array_key_exists("modifiers", $elementNode)) { - for ($i = 0; $i < count($elementNode["modifiers"]); $i++) { - if ($elementNode["modifiers"][$i] == "fill-height") { - $_modFillHeight = true; - } - } - } - - // Adding element. - echo(''.$_imgAlt.''); - - break; - case "slider": - case "glider": - case "gallery": - // Starting the gallery - echo('
'); - echo('
'); - echo('
'); - echo('
'); - - // Adding content. - processStandardContentSubNode($elementNode, "
", "
"); - - // Ending the gallery - echo('
'); - echo('
'); - - break; -}/**/ ?> \ No newline at end of file diff --git a/commons/strings.json b/commons/strings.json index 676921c..7bac647 100644 --- a/commons/strings.json +++ b/commons/strings.json @@ -1 +1 @@ -{"_compile_date":"2023-05-24T01:24:05.342772Z","en":{"content.search.head.title":"Content search - NibblePoker","content.search.head.description":"TODO: description","content.search.og.title":"NibblePoker - Content search","content.search.og.description":"TODO: description","content.search.heading.main.single":"Search result","content.search.heading.main.multiple":"Search results","content.search.count.single":"result","content.search.count.multiple":"results","content.error.head.title":"Content error - NibblePoker","content.error.og.title":"NibblePoker - Content error","content.error.heading.main.search":"Search error","content.error.heading.main.content":"Content error","content.error.heading.main.fallback":"Unknown error","content.error.message.none":"No explicit error was encountered.","content.error.message.tags.length":"The \"tags\" URL parameter is too long.","content.error.message.tags.alphanumeric":"One of the tags given in the \"tags\" URL parameter is not a valid alphanumeric string.","content.error.message.detect.empty":"No content could be found for the given tags.","content.error.message.id.alphanumeric":"The requested resource's ID isn't a valid alphanumeric string.","content.error.message.data.not.exist":"The requested content doesn't have an internal item file associated to it.","content.error.message.cannot.load":"The requested content couldn't be loaded on our end !","content.error.message.data.no.tags":"No tags found !","content.error.message.data.no.title":"No title found !","content.item.head.title.prefix":"","content.item.head.title.suffix":" - NibblePoker","content.item.og.title.prefix":"","content.item.og.title.suffix":" - NibblePoker","content.commons.version.current":"Current version","content.commons.version.previous.single":"Previous version","content.commons.version.previous.multiple":"Previous versions","content.commons.version.old.single":"Old version","content.commons.version.old.multiple":"Old versions","content.commons.version.source":"Source code","content.commons.cpu":"CPU Architecture","content.commons.cpu.responsive":"CPU Architecture","content.commons.cpu.any":"Any architecture","content.commons.cpu.x64":"x64","content.commons.cpu.x86":"x86","content.commons.cpu.arm":"arm","content.commons.cpu.arm64":"arm64","content.commons.na.italic":"N/A","content.commons.na":"N/A","content.commons.lang":"Language","content.commons.download.single":"Download","content.commons.download.multiple":"Downloads","content.commons.version":"Version","content.commons.github":"GitHub Repository","content.commons.gitea":"Self-hosted Gitea Repository","content.commons.nuget":"Nuget Package","content.commons.license.mit.single":"MIT License","content.commons.lang.english":"English","content.commons.lang.french":"French","content.commons.lang.luxembourgish":"Luxembourgish","content.commons.lang.english.639-3":"English (eng)","content.commons.lang.french.639-3":"French (fra)","content.commons.lang.luxembourgish.639-3":"Luxembourgish (ltz)","footer.text.privacy":"Privacy policy","footer.alt.logo":"Website's logo","home.head.title":"NibblePoker","home.head.description":"TODO: description","home.og.title":"NibblePoker","home.og.description":"TODO: description","home.header.title":"Homepage","lang.menu.title":"Language","lang.current":"English","lang.automatic":"Automatic","lang.english":"English","lang.french":"French","lang.german":"German","lang.luxembourgish":"Luxembourgish","privacy.head.title":"Privacy policy - NibblePoker","privacy.head.description":"Our privacy policy in a clear and easy to understand format.","privacy.og.title":"NibblePoker - Privacy Policy","privacy.og.description":"Our privacy policy in a clear and easy to understand format.","privacy.header.title":"Privacy policy","privacy.introduction.title":"Introduction","privacy.introduction.text.1":"This privacy policy is written in accordance with the 12th and 13th articles of the GDPR.","privacy.introduction.text.2":"If you wish to consult it, you can do so on the following websites:","privacy.contact.title":"How to contact us ?","privacy.contact.text.1":"If you wish to contact us for more information regarding our privacy policy, please contact us via the form included on the contact page, or at the following email address:","privacy.complaint.title":"How to contact the appropriate authorities ?","privacy.complaint.text.1":"Should you wish to report a complaint or if you feel that our privacy policy has not addressed your concern in a satisfactory manner, you may contact your national Data Protection Authority (DPA).","privacy.complaint.text.2":"More information on this procedure can be found on the following websites:","privacy.v2.data.title":"Data collection","privacy.v2.data.intro.1":"This websites only collects data through generic access logs in order to detect and block bad actors from accessing this website.","privacy.v2.data.intro.2":"None of the data collected is used for any other purpose,it is never shared with any other third-party and is never use in any sort of analytics.","privacy.v2.data.private.1":"Here is the list of private data being collected:","privacy.v2.data.private_list.1":"IP address","privacy.v2.data.private_list.2":"Browser's User-Agent","privacy.v2.data.non_private.1":"And here is the list of non-private data being collected:","privacy.v2.data.non_private_list.1":"Requested resource' URI","privacy.v2.data.non_private_list.2":"Date and time","privacy.v2.data.end.1":"Once the data has been logged in the access logs, it is automatically retrieved and processed by a locally-hosted application every 30 seconds and then deleted from said logs.","privacy.v2.data.end.2":"This application compares this information against a list of known threat sources, targets and behaviours and if a match is found, the private information is anonymized and stored for 7 days pending a manual review.","privacy.v2.data.end.3":"Once that 7 day period has elapsed, or once the report has been reviewed, all the relevant data is automatically deleted.","privacy.v2.data.end.4":"If your request wasn't flagged as potentially malicious, every data collected from it is thrown out instantly.","privacy.v2.data.end.5":"This process should normally never be triggered for regular traffic since most of the triggering actions are ones that should not be possible to accomplish through normal browsing.","privacy.v2.data.end.6":"However, this process isn't infallible and there is always an off chance that false positives may happen.","privacy.v2.update.title":"Changes to our privacy policy","privacy.v2.update.intro.1":"The content of this privacy policy was originally written on the 4th of December 2021 and was last updated on the 18th of March 2022.","privacy.v2.update.history.1.date":"2021/12/04","privacy.v2.update.history.1.desc.1":"Original version","privacy.v2.update.history.2.date":"2022/03/18","privacy.v2.update.history.2.desc.1":"Changed section on data collection to reflect new policy.","privacy.v2.update.history.2.desc.2":"Added mention about CloudFlare and linked to their privacy policy.","privacy.v2.update.history.2.desc.3":"Improved the \"Changes to our privacy policy\" section.","privacy.v2.update.history.3.date":"2022/09/09","privacy.v2.update.history.3.desc.1":"Changed references to external services to reflect the migration to v6Node.","privacy.v2.update.history.3.desc.1.1":"Added mention about v6Node and linked to their privacy policy.","privacy.v2.update.history.3.desc.1.2":"Removed mentions of CloudFlare.","privacy.v2.update.history.3.desc.2":"Changed the \"Cookies\" section to indicate that none should be used on public domains.","privacy.v2.update.end.2":"In the event of a change to our privacy policy, you will be informed explicitly, and a copy of previous versions of the policy will be available through this page.","privacy.v2.third.title":"Third Parties","privacy.v2.third.intro.1":"Our websites uses some services provided by v6Node in order to prevent bad actors from accessing this website and in order to put in place a reverse-proxy system.","privacy.v2.third.intro.2":"The goal of this system is to improve your browsing experience with the help of a private caching service and custom traffic filtering rules.","privacy.v2.third.intro.3":"None of the data that may be gathered by v6Node or the system described above is ever used or stored.","privacy.v2.third.intro.4":"If you'd wish to consult their privacy policy and their partners', you can do so by using the following URLs:","privacy.v2.cookies.title":"Cookies","privacy.v2.cookies.intro.1":"Our websites doesn't use nor store any cookies in your browser.","sidebar.alt.logo":"Website's logo","sidebar.text.home":"Home","sidebar.text.projects":"Projects","sidebar.text.applications":"Applications","sidebar.text.libraries":"Libraries","sidebar.text.electronics":"Electronics","sidebar.text.links":"Links","sidebar.text.downloads":"Downloads","sidebar.text.gitea":"Git Repos.","sidebar.text.about":"About","sidebar.text.contact":"Contact"},"fr":{"content.search.head.title":"Recherche de contenu - NibblePoker","content.search.head.description":"TODO: description","content.search.og.title":"NibblePoker - Recherche de contenu","content.search.og.description":"TODO: description","content.search.heading.main.single":"R\u00e9sultat de recherche","content.search.heading.main.multiple":"R\u00e9sultats de recherche","content.search.count.single":"r\u00e9sultat","content.search.count.multiple":"r\u00e9sultats","content.error.head.title":"Erreur de contenu - NibblePoker","content.error.og.title":"NibblePoker - Erreur de contenu","content.error.heading.main.search":"Erreur de recherche","content.error.heading.main.content":"Erreur de contenu","content.error.heading.main.fallback":"Erreur inconnue","content.error.message.none":"Aucune erreur n'a \u00e9t\u00e9 d\u00e9tect\u00e9e.","content.error.message.tags.length":"Le param\u00e8tre d'URL \"tags\" est trop long.","content.error.message.tags.alphanumeric":"Un des tags donn\u00e9 dans le param\u00e8tre d'URL \"tags\" n'est pas une cha\u00eene de texte alphanum\u00e9rique valide.","content.error.message.detect.empty":"Aucun contenu en rapport avec les tags choisi n'as \u00e9t\u00e9 trouv\u00e9.","content.error.message.id.alphanumeric":"L'ID de la ressource demand\u00e9e n'est pas une cha\u00eene de texte alphanum\u00e9rique valide.","content.error.message.data.not.exist":"Le contenu demand\u00e9e n'a pas de fichier de rendu interne associ\u00e9.","content.error.message.cannot.load":"Le contenu demand\u00e9 n'a pas pu \u00eatre charg\u00e9 de notre c\u00f4t\u00e9 !","content.error.message.data.no.tags":"Aucun tag trouv\u00e9 !","content.error.message.data.no.title":"Aucun titre trouv\u00e9 !","content.item.head.title.prefix":"","content.item.head.title.suffix":" - NibblePoker","content.item.og.title.prefix":"","content.item.og.title.suffix":" - NibblePoker","content.commons.version.current":"Version actuelle","content.commons.version.previous.single":"Version pr\u00e9c\u00e9dente","content.commons.version.previous.multiple":"Versions pr\u00e9c\u00e9dentes","content.commons.version.old.single":"Ancienne version","content.commons.version.old.multiple":"Anciennes versions","content.commons.version.source":"Code source","content.commons.cpu":"Architecture de CPU","content.commons.cpu.any":"Ind\u00e9pendante","content.commons.cpu.x64":"x64","content.commons.cpu.x86":"x86","content.commons.cpu.arm":"arm","content.commons.cpu.arm64":"arm64","content.commons.na.italic":"N/A","content.commons.na":"N/A","content.commons.lang":"Langue","content.commons.download.single":"T\u00e9l\u00e9chargement","content.commons.download.multiple":"T\u00e9l\u00e9chargements","content.commons.version":"Version","content.commons.github":"D\u00e9p\u00f4t GitHub","content.commons.gitea":"D\u00e9p\u00f4t Gitea auto-h\u00e9berg\u00e9","content.commons.nuget":"Packet Nuget","content.commons.license.mit.single":"License MIT","content.commons.lang.english":"Anglais","content.commons.lang.french":"Fran\u00e7ais","content.commons.lang.luxembourgish":"Luxembourgeois","content.commons.lang.english.639-3":"Anglais (eng)","content.commons.lang.french.639-3":"Fran\u00e7ais (fra)","content.commons.lang.luxembourgish.639-3":"Luxembourgeois (ltz)","footer.text.privacy":"Politique de confidentialit\u00e9","footer.alt.logo":"Logo du site web","home.head.title":"NibblePoker","home.head.description":"TODO: description","home.og.title":"NibblePoker","home.og.description":"TODO: description","home.header.title":"Page d'accueil","lang.menu.title":"Langue","lang.current":"Fran\u00e7ais","lang.automatic":"Automatique","lang.english":"Anglais","lang.french":"Fran\u00e7ais","lang.german":"Allemand","lang.luxembourgish":"Luxembourgeois","privacy.head.title":"Politique de confidentialit\u00e9 - NibblePoker","privacy.head.description":"Notre politique de confidentialit\u00e9 dans un format clair et compr\u00e9hensible.","privacy.og.title":"NibblePoker - Politique de confidentialit\u00e9","privacy.og.description":"Notre politique de confidentialit\u00e9 dans un format clair et compr\u00e9hensible.","privacy.header.title":"Politique de confidentialit\u00e9","privacy.introduction.title":"Introduction","privacy.introduction.text.1":"La politique de confidentialit\u00e9 ci-pr\u00e9sente a \u00e9t\u00e9 \u00e9crite en accord avec les articles 12 et 13 de la RGPD.","privacy.introduction.text.2":"Si vous souhaitez consulter le texte officiel en question, vous pouvez le faire sur les sites internet suivants :","privacy.contact.title":"Comment nous contacter ?","privacy.contact.text.1":"Si vous souhaitez nous contacter afin d'obtenir plus d'informations concernant notre politique de confidentialit\u00e9, nous vous recommandons d'utiliser le formulaire pr\u00e9sent sur la page de contact, ou par courriel \u00e0 l'adresse suivante:","privacy.complaint.title":"Comment contacter les autorit\u00e9s comp\u00e9tentes ?","privacy.complaint.text.1":"Dans l'\u00e9ventualit\u00e9 o\u00f9 vous souhaiteriez d\u00e9poser une plainte pour une quelconque raison en rapport avec notre politique de confidentialit\u00e9, veuillez vous adresser \u00e0 l'autorit\u00e9 nationale de protection des donn\u00e9es (DPA).","privacy.complaint.text.2":"Les informations concernant cette proc\u00e9dure peuvent \u00eatre trouv\u00e9es sur les sites internet suivants:","privacy.v2.data.title":"Collecte de donn\u00e9es","privacy.v2.data.intro.1":"Ce site web collecte des donn\u00e9es au travers des journaux d'\u00e9v\u00e8nements afin de d\u00e9tecter et bloquer de potentiels acteurs malveillants.","privacy.v2.data.intro.2":"Les donn\u00e9es collect\u00e9es ne sont en aucun cas utilis\u00e9es pour une quelconque autre raison.","privacy.v2.data.private.1":"Voici la liste des donn\u00e9es personelles collect\u00e9es:","privacy.v2.data.private_list.1":"L'addresse IP source","privacy.v2.data.private_list.2":"Le \"User-Agent\" de votre navigateur internet","privacy.v2.data.non_private.1":"Et voici la liste des donn\u00e9es non-personelles collect\u00e9es:","privacy.v2.data.non_private_list.1":"L'URI de la ressource demand\u00e9e","privacy.v2.data.non_private_list.2":"La date et l'heure","privacy.v2.data.end.1":"Les donn\u00e9es pr\u00e9sentes dans les journaux d'\u00e9v\u00e8nements sont extraites et retir\u00e9es pour \u00eatre trait\u00e9es par une application qui tourne en local toute les 30 secondes.","privacy.v2.data.end.2":"L'application en question utilise et compare ces informations avec une liste d'acteurs malveillants et comportement suspects connus.
Si une correspondance est d\u00e9tect\u00e9e, les informations priv\u00e9es sont anonymis\u00e9es et sont stock\u00e9es pendant 7 jours en attendant qu'un examen manuel soit effectu\u00e9.","privacy.v2.data.end.3":"Apr\u00e8s cette p\u00e9riode de 7 jours, ou apr\u00e8s qu'un examen ait \u00e9t\u00e9 effectu\u00e9, les donn\u00e9es sont automatiquement supprim\u00e9es.","privacy.v2.data.end.4":"Toute information concernant une requ\u00eate non suspecte est automatiquement supprim\u00e9e.","privacy.v2.data.end.5":"Ce processus n'est normalement jamais utilis\u00e9 sur des requ\u00eates provenant d'un trafic l\u00e9gitime d\u00fb au fait qu'il isole principalement les actions et requ\u00eates qui ne devraient pas \u00eatre possible sur ce site.","privacy.v2.data.end.6":"Cependant, ce processus n'est pas infaillible et il est toujours possible qu'une requ\u00eate soit isol\u00e9e par erreur.","privacy.v2.update.title":"Changements \u00e0 notre politique de confidentialit\u00e9","privacy.v2.update.intro.1":"Le contenu de notre politique de confidentialit\u00e9 a \u00e9t\u00e9 originalement \u00e9crit et le 4 d\u00e9cembre 2021 modifi\u00e9 pour la derni\u00e8re fois le 18 mars 2022.","privacy.v2.update.history.1.date":"2021/12/04","privacy.v2.update.history.1.desc.1":"Version originale","privacy.v2.update.history.2.date":"2022/03/18","privacy.v2.update.history.2.desc.1":"Mise-\u00e0-jour de la section sur la collection des donn\u00e9es.","privacy.v2.update.history.2.desc.2":"Ajout d'une mention de CloudFlare et ajout de liens vers leur politique de confidentialit\u00e9.","privacy.v2.update.history.2.desc.3":"Am\u00e9lioration de la section \"Changements \u00e0 notre politique de confidentialit\u00e9\".","privacy.v2.update.history.3.date":"2022/09/09","privacy.v2.update.history.3.desc.1":"Changement des r\u00e9f\u00e9rences aux services externes pour indiquer l'utilisation de v6Node.","privacy.v2.update.history.3.desc.1.1":"Ajout de mentions de v6Node et liens vers leur politique de vie confidentialit\u00e9.","privacy.v2.update.history.3.desc.1.2":"Suppression de mentions de CloudFlare.","privacy.v2.update.history.3.desc.2":"Changement de la section \"Cookies\" afin d'indiquer qu'ils ne seront plus utilis\u00e9s sur les domaines publics.","privacy.v2.update.end.2":"En cas de changement, vous serez clairement inform\u00e9 et une copie des anciennes versions de notre politique sera disponible au travers de cette page.","privacy.v2.third.title":"Organismes tiers","privacy.v2.third.intro.1":"Ce site web utilise les services propos\u00e9s par v6Node afin d'emp\u00eacher des acteurs malveillants d'y acc\u00e9der et dans le but de mettre en place un syst\u00e8me de reverse-proxy.","privacy.v2.third.intro.2":"Ceci a pour but d'am\u00e9liorer l'exp\u00e9rience des personnes le visitant gr\u00e2ce \u00e0 un syst\u00e8me de filtrage et caching priv\u00e9.","privacy.v2.third.intro.3":"Aucune des donn\u00e9es collect\u00e9es et stock\u00e9es par v6Node et le syst\u00e8me d\u00e9cris ci-dessus n'est utilis\u00e9 ou stock\u00e9.","privacy.v2.third.intro.4":"Si vous souhaitez consulter leur politique de confidentialit\u00e9 ainsi que celle de leur partenaires, vous pouvez le faire en suivant les liens ci-dessous:","privacy.v2.cookies.title":"Cookies de navigation","privacy.v2.cookies.intro.1":"Ce site web n'utilise pas, et ne stocke aucun cookies dans votre navigateur internet.","sidebar.alt.logo":"Logo du site web","sidebar.text.home":"Accueil","sidebar.text.projects":"Projets","sidebar.text.applications":"Applications","sidebar.text.libraries":"Librairies","sidebar.text.electronics":"\u00c9lectronique","sidebar.text.links":"Liens","sidebar.text.downloads":"T\u00e9l\u00e9chargements","sidebar.text.gitea":"D\u00e9p\u00f4ts Git","sidebar.text.about":"\u00c0-propos","sidebar.text.contact":"Contact"}} \ No newline at end of file +{"_compile_date":"2023-05-24T04:25:06.802731Z","en":{"content.search.head.title":"Content search - NibblePoker","content.search.head.description":"TODO: description","content.search.og.title":"NibblePoker - Content search","content.search.og.description":"TODO: description","content.search.heading.main.single":"Search result","content.search.heading.main.multiple":"Search results","content.search.count.single":"result","content.search.count.multiple":"results","content.header.base":"Content","content.search.header":"Search","content.error.header":"Error","content.error.head.title":"Content error - NibblePoker","content.error.og.title":"NibblePoker - Content error","content.error.heading.main.search":"Search error","content.error.heading.main.content":"Content error","content.error.heading.main.fallback":"Unknown error","content.error.message.none":"No explicit error was encountered.","content.error.message.tags.length":"The \"tags\" URL parameter is too long.","content.error.message.tags.alphanumeric":"One of the tags given in the \"tags\" URL parameter is not a valid alphanumeric string.","content.error.message.detect.empty":"No content could be found for the given tags.","content.error.message.id.alphanumeric":"The requested resource's ID isn't a valid alphanumeric string.","content.error.message.data.not.exist":"The requested content doesn't have an internal item file associated to it.","content.error.message.cannot.load":"The requested content couldn't be loaded on our end !","content.error.message.data.no.tags":"No tags found !","content.error.message.data.no.title":"No title found !","content.item.head.title.prefix":"","content.item.head.title.suffix":" - NibblePoker","content.item.og.title.prefix":"","content.item.og.title.suffix":" - NibblePoker","content.commons.version.current":"Current version","content.commons.version.previous.single":"Previous version","content.commons.version.previous.multiple":"Previous versions","content.commons.version.old.single":"Old version","content.commons.version.old.multiple":"Old versions","content.commons.version.source":"Source code","content.commons.cpu":"CPU Architecture","content.commons.cpu.responsive":"CPU Architecture","content.commons.cpu.any":"Any architecture","content.commons.cpu.x64":"x64","content.commons.cpu.x86":"x86","content.commons.cpu.arm":"arm","content.commons.cpu.arm64":"arm64","content.commons.na.italic":"N/A","content.commons.na":"N/A","content.commons.lang":"Language","content.commons.download.single":"Download","content.commons.download.multiple":"Downloads","content.commons.version":"Version","content.commons.github":"GitHub Repository","content.commons.gitea":"Self-hosted Gitea Repository","content.commons.nuget":"Nuget Package","content.commons.license.mit.single":"MIT License","content.commons.lang.english":"English","content.commons.lang.french":"French","content.commons.lang.luxembourgish":"Luxembourgish","content.commons.lang.english.639-3":"English (eng)","content.commons.lang.french.639-3":"French (fra)","content.commons.lang.luxembourgish.639-3":"Luxembourgish (ltz)","footer.text.privacy":"Privacy policy","footer.alt.logo":"Website's logo","home.head.title":"NibblePoker","home.head.description":"TODO: description","home.og.title":"NibblePoker","home.og.description":"TODO: description","home.header.title":"Homepage","lang.menu.title":"Language","lang.current":"English","lang.automatic":"Automatic","lang.english":"English","lang.french":"French","lang.german":"German","lang.luxembourgish":"Luxembourgish","privacy.head.title":"Privacy policy - NibblePoker","privacy.head.description":"Our privacy policy in a clear and easy to understand format.","privacy.og.title":"NibblePoker - Privacy Policy","privacy.og.description":"Our privacy policy in a clear and easy to understand format.","privacy.header.title":"Privacy policy","privacy.introduction.title":"Introduction","privacy.introduction.text.1":"This privacy policy is written in accordance with the 12th and 13th articles of the GDPR.","privacy.introduction.text.2":"If you wish to consult it, you can do so on the following websites:","privacy.contact.title":"How to contact us ?","privacy.contact.text.1":"If you wish to contact us for more information regarding our privacy policy, please contact us via the form included on the contact page, or at the following email address:","privacy.complaint.title":"How to contact the appropriate authorities ?","privacy.complaint.text.1":"Should you wish to report a complaint or if you feel that our privacy policy has not addressed your concern in a satisfactory manner, you may contact your national Data Protection Authority (DPA).","privacy.complaint.text.2":"More information on this procedure can be found on the following websites:","privacy.v2.data.title":"Data collection","privacy.v2.data.intro.1":"This websites only collects data through generic access logs in order to detect and block bad actors from accessing this website.","privacy.v2.data.intro.2":"None of the data collected is used for any other purpose,it is never shared with any other third-party and is never use in any sort of analytics.","privacy.v2.data.private.1":"Here is the list of private data being collected:","privacy.v2.data.private_list.1":"IP address","privacy.v2.data.private_list.2":"Browser's User-Agent","privacy.v2.data.non_private.1":"And here is the list of non-private data being collected:","privacy.v2.data.non_private_list.1":"Requested resource' URI","privacy.v2.data.non_private_list.2":"Date and time","privacy.v2.data.end.1":"Once the data has been logged in the access logs, it is automatically retrieved and processed by a locally-hosted application every 30 seconds and then deleted from said logs.","privacy.v2.data.end.2":"This application compares this information against a list of known threat sources, targets and behaviours and if a match is found, the private information is anonymized and stored for 7 days pending a manual review.","privacy.v2.data.end.3":"Once that 7 day period has elapsed, or once the report has been reviewed, all the relevant data is automatically deleted.","privacy.v2.data.end.4":"If your request wasn't flagged as potentially malicious, every data collected from it is thrown out instantly.","privacy.v2.data.end.5":"This process should normally never be triggered for regular traffic since most of the triggering actions are ones that should not be possible to accomplish through normal browsing.","privacy.v2.data.end.6":"However, this process isn't infallible and there is always an off chance that false positives may happen.","privacy.v2.update.title":"Changes to our privacy policy","privacy.v2.update.intro.1":"The content of this privacy policy was originally written on the 4th of December 2021 and was last updated on the 18th of March 2022.","privacy.v2.update.history.1.date":"2021/12/04","privacy.v2.update.history.1.desc.1":"Original version","privacy.v2.update.history.2.date":"2022/03/18","privacy.v2.update.history.2.desc.1":"Changed section on data collection to reflect new policy.","privacy.v2.update.history.2.desc.2":"Added mention about CloudFlare and linked to their privacy policy.","privacy.v2.update.history.2.desc.3":"Improved the \"Changes to our privacy policy\" section.","privacy.v2.update.history.3.date":"2022/09/09","privacy.v2.update.history.3.desc.1":"Changed references to external services to reflect the migration to v6Node.","privacy.v2.update.history.3.desc.1.1":"Added mention about v6Node and linked to their privacy policy.","privacy.v2.update.history.3.desc.1.2":"Removed mentions of CloudFlare.","privacy.v2.update.history.3.desc.2":"Changed the \"Cookies\" section to indicate that none should be used on public domains.","privacy.v2.update.end.2":"In the event of a change to our privacy policy, you will be informed explicitly, and a copy of previous versions of the policy will be available through this page.","privacy.v2.third.title":"Third Parties","privacy.v2.third.intro.1":"Our websites uses some services provided by v6Node in order to prevent bad actors from accessing this website and in order to put in place a reverse-proxy system.","privacy.v2.third.intro.2":"The goal of this system is to improve your browsing experience with the help of a private caching service and custom traffic filtering rules.","privacy.v2.third.intro.3":"None of the data that may be gathered by v6Node or the system described above is ever used or stored.","privacy.v2.third.intro.4":"If you'd wish to consult their privacy policy and their partners', you can do so by using the following URLs:","privacy.v2.cookies.title":"Cookies","privacy.v2.cookies.intro.1":"Our websites doesn't use nor store any cookies in your browser.","sidebar.alt.logo":"Website's logo","sidebar.text.home":"Home","sidebar.text.projects":"Projects","sidebar.text.applications":"Applications","sidebar.text.libraries":"Libraries","sidebar.text.electronics":"Electronics","sidebar.text.links":"Links","sidebar.text.downloads":"Downloads","sidebar.text.gitea":"Git Repos.","sidebar.text.about":"About","sidebar.text.contact":"Contact"},"fr":{"content.search.head.title":"Recherche de contenu - NibblePoker","content.search.head.description":"TODO: description","content.search.og.title":"NibblePoker - Recherche de contenu","content.search.og.description":"TODO: description","content.search.heading.main.single":"R\u00e9sultat de recherche","content.search.heading.main.multiple":"R\u00e9sultats de recherche","content.search.count.single":"r\u00e9sultat","content.search.count.multiple":"r\u00e9sultats","content.error.head.title":"Erreur de contenu - NibblePoker","content.error.og.title":"NibblePoker - Erreur de contenu","content.error.heading.main.search":"Erreur de recherche","content.error.heading.main.content":"Erreur de contenu","content.error.heading.main.fallback":"Erreur inconnue","content.error.message.none":"Aucune erreur n'a \u00e9t\u00e9 d\u00e9tect\u00e9e.","content.error.message.tags.length":"Le param\u00e8tre d'URL \"tags\" est trop long.","content.error.message.tags.alphanumeric":"Un des tags donn\u00e9 dans le param\u00e8tre d'URL \"tags\" n'est pas une cha\u00eene de texte alphanum\u00e9rique valide.","content.error.message.detect.empty":"Aucun contenu en rapport avec les tags choisi n'as \u00e9t\u00e9 trouv\u00e9.","content.error.message.id.alphanumeric":"L'ID de la ressource demand\u00e9e n'est pas une cha\u00eene de texte alphanum\u00e9rique valide.","content.error.message.data.not.exist":"Le contenu demand\u00e9e n'a pas de fichier de rendu interne associ\u00e9.","content.error.message.cannot.load":"Le contenu demand\u00e9 n'a pas pu \u00eatre charg\u00e9 de notre c\u00f4t\u00e9 !","content.error.message.data.no.tags":"Aucun tag trouv\u00e9 !","content.error.message.data.no.title":"Aucun titre trouv\u00e9 !","content.item.head.title.prefix":"","content.item.head.title.suffix":" - NibblePoker","content.item.og.title.prefix":"","content.item.og.title.suffix":" - NibblePoker","content.commons.version.current":"Version actuelle","content.commons.version.previous.single":"Version pr\u00e9c\u00e9dente","content.commons.version.previous.multiple":"Versions pr\u00e9c\u00e9dentes","content.commons.version.old.single":"Ancienne version","content.commons.version.old.multiple":"Anciennes versions","content.commons.version.source":"Code source","content.commons.cpu":"Architecture de CPU","content.commons.cpu.any":"Ind\u00e9pendante","content.commons.cpu.x64":"x64","content.commons.cpu.x86":"x86","content.commons.cpu.arm":"arm","content.commons.cpu.arm64":"arm64","content.commons.na.italic":"N/A","content.commons.na":"N/A","content.commons.lang":"Langue","content.commons.download.single":"T\u00e9l\u00e9chargement","content.commons.download.multiple":"T\u00e9l\u00e9chargements","content.commons.version":"Version","content.commons.github":"D\u00e9p\u00f4t GitHub","content.commons.gitea":"D\u00e9p\u00f4t Gitea auto-h\u00e9berg\u00e9","content.commons.nuget":"Packet Nuget","content.commons.license.mit.single":"License MIT","content.commons.lang.english":"Anglais","content.commons.lang.french":"Fran\u00e7ais","content.commons.lang.luxembourgish":"Luxembourgeois","content.commons.lang.english.639-3":"Anglais (eng)","content.commons.lang.french.639-3":"Fran\u00e7ais (fra)","content.commons.lang.luxembourgish.639-3":"Luxembourgeois (ltz)","footer.text.privacy":"Politique de confidentialit\u00e9","footer.alt.logo":"Logo du site web","home.head.title":"NibblePoker","home.head.description":"TODO: description","home.og.title":"NibblePoker","home.og.description":"TODO: description","home.header.title":"Page d'accueil","lang.menu.title":"Langue","lang.current":"Fran\u00e7ais","lang.automatic":"Automatique","lang.english":"Anglais","lang.french":"Fran\u00e7ais","lang.german":"Allemand","lang.luxembourgish":"Luxembourgeois","privacy.head.title":"Politique de confidentialit\u00e9 - NibblePoker","privacy.head.description":"Notre politique de confidentialit\u00e9 dans un format clair et compr\u00e9hensible.","privacy.og.title":"NibblePoker - Politique de confidentialit\u00e9","privacy.og.description":"Notre politique de confidentialit\u00e9 dans un format clair et compr\u00e9hensible.","privacy.header.title":"Politique de confidentialit\u00e9","privacy.introduction.title":"Introduction","privacy.introduction.text.1":"La politique de confidentialit\u00e9 ci-pr\u00e9sente a \u00e9t\u00e9 \u00e9crite en accord avec les articles 12 et 13 de la RGPD.","privacy.introduction.text.2":"Si vous souhaitez consulter le texte officiel en question, vous pouvez le faire sur les sites internet suivants :","privacy.contact.title":"Comment nous contacter ?","privacy.contact.text.1":"Si vous souhaitez nous contacter afin d'obtenir plus d'informations concernant notre politique de confidentialit\u00e9, nous vous recommandons d'utiliser le formulaire pr\u00e9sent sur la page de contact, ou par courriel \u00e0 l'adresse suivante:","privacy.complaint.title":"Comment contacter les autorit\u00e9s comp\u00e9tentes ?","privacy.complaint.text.1":"Dans l'\u00e9ventualit\u00e9 o\u00f9 vous souhaiteriez d\u00e9poser une plainte pour une quelconque raison en rapport avec notre politique de confidentialit\u00e9, veuillez vous adresser \u00e0 l'autorit\u00e9 nationale de protection des donn\u00e9es (DPA).","privacy.complaint.text.2":"Les informations concernant cette proc\u00e9dure peuvent \u00eatre trouv\u00e9es sur les sites internet suivants:","privacy.v2.data.title":"Collecte de donn\u00e9es","privacy.v2.data.intro.1":"Ce site web collecte des donn\u00e9es au travers des journaux d'\u00e9v\u00e8nements afin de d\u00e9tecter et bloquer de potentiels acteurs malveillants.","privacy.v2.data.intro.2":"Les donn\u00e9es collect\u00e9es ne sont en aucun cas utilis\u00e9es pour une quelconque autre raison.","privacy.v2.data.private.1":"Voici la liste des donn\u00e9es personelles collect\u00e9es:","privacy.v2.data.private_list.1":"L'addresse IP source","privacy.v2.data.private_list.2":"Le \"User-Agent\" de votre navigateur internet","privacy.v2.data.non_private.1":"Et voici la liste des donn\u00e9es non-personelles collect\u00e9es:","privacy.v2.data.non_private_list.1":"L'URI de la ressource demand\u00e9e","privacy.v2.data.non_private_list.2":"La date et l'heure","privacy.v2.data.end.1":"Les donn\u00e9es pr\u00e9sentes dans les journaux d'\u00e9v\u00e8nements sont extraites et retir\u00e9es pour \u00eatre trait\u00e9es par une application qui tourne en local toute les 30 secondes.","privacy.v2.data.end.2":"L'application en question utilise et compare ces informations avec une liste d'acteurs malveillants et comportement suspects connus.
Si une correspondance est d\u00e9tect\u00e9e, les informations priv\u00e9es sont anonymis\u00e9es et sont stock\u00e9es pendant 7 jours en attendant qu'un examen manuel soit effectu\u00e9.","privacy.v2.data.end.3":"Apr\u00e8s cette p\u00e9riode de 7 jours, ou apr\u00e8s qu'un examen ait \u00e9t\u00e9 effectu\u00e9, les donn\u00e9es sont automatiquement supprim\u00e9es.","privacy.v2.data.end.4":"Toute information concernant une requ\u00eate non suspecte est automatiquement supprim\u00e9e.","privacy.v2.data.end.5":"Ce processus n'est normalement jamais utilis\u00e9 sur des requ\u00eates provenant d'un trafic l\u00e9gitime d\u00fb au fait qu'il isole principalement les actions et requ\u00eates qui ne devraient pas \u00eatre possible sur ce site.","privacy.v2.data.end.6":"Cependant, ce processus n'est pas infaillible et il est toujours possible qu'une requ\u00eate soit isol\u00e9e par erreur.","privacy.v2.update.title":"Changements \u00e0 notre politique de confidentialit\u00e9","privacy.v2.update.intro.1":"Le contenu de notre politique de confidentialit\u00e9 a \u00e9t\u00e9 originalement \u00e9crit et le 4 d\u00e9cembre 2021 modifi\u00e9 pour la derni\u00e8re fois le 18 mars 2022.","privacy.v2.update.history.1.date":"2021/12/04","privacy.v2.update.history.1.desc.1":"Version originale","privacy.v2.update.history.2.date":"2022/03/18","privacy.v2.update.history.2.desc.1":"Mise-\u00e0-jour de la section sur la collection des donn\u00e9es.","privacy.v2.update.history.2.desc.2":"Ajout d'une mention de CloudFlare et ajout de liens vers leur politique de confidentialit\u00e9.","privacy.v2.update.history.2.desc.3":"Am\u00e9lioration de la section \"Changements \u00e0 notre politique de confidentialit\u00e9\".","privacy.v2.update.history.3.date":"2022/09/09","privacy.v2.update.history.3.desc.1":"Changement des r\u00e9f\u00e9rences aux services externes pour indiquer l'utilisation de v6Node.","privacy.v2.update.history.3.desc.1.1":"Ajout de mentions de v6Node et liens vers leur politique de vie confidentialit\u00e9.","privacy.v2.update.history.3.desc.1.2":"Suppression de mentions de CloudFlare.","privacy.v2.update.history.3.desc.2":"Changement de la section \"Cookies\" afin d'indiquer qu'ils ne seront plus utilis\u00e9s sur les domaines publics.","privacy.v2.update.end.2":"En cas de changement, vous serez clairement inform\u00e9 et une copie des anciennes versions de notre politique sera disponible au travers de cette page.","privacy.v2.third.title":"Organismes tiers","privacy.v2.third.intro.1":"Ce site web utilise les services propos\u00e9s par v6Node afin d'emp\u00eacher des acteurs malveillants d'y acc\u00e9der et dans le but de mettre en place un syst\u00e8me de reverse-proxy.","privacy.v2.third.intro.2":"Ceci a pour but d'am\u00e9liorer l'exp\u00e9rience des personnes le visitant gr\u00e2ce \u00e0 un syst\u00e8me de filtrage et caching priv\u00e9.","privacy.v2.third.intro.3":"Aucune des donn\u00e9es collect\u00e9es et stock\u00e9es par v6Node et le syst\u00e8me d\u00e9cris ci-dessus n'est utilis\u00e9 ou stock\u00e9.","privacy.v2.third.intro.4":"Si vous souhaitez consulter leur politique de confidentialit\u00e9 ainsi que celle de leur partenaires, vous pouvez le faire en suivant les liens ci-dessous:","privacy.v2.cookies.title":"Cookies de navigation","privacy.v2.cookies.intro.1":"Ce site web n'utilise pas, et ne stocke aucun cookies dans votre navigateur internet.","sidebar.alt.logo":"Logo du site web","sidebar.text.home":"Accueil","sidebar.text.projects":"Projets","sidebar.text.applications":"Applications","sidebar.text.libraries":"Librairies","sidebar.text.electronics":"\u00c9lectronique","sidebar.text.links":"Liens","sidebar.text.downloads":"T\u00e9l\u00e9chargements","sidebar.text.gitea":"D\u00e9p\u00f4ts Git","sidebar.text.about":"\u00c0-propos","sidebar.text.contact":"Contact"}} \ No newline at end of file diff --git a/commons/strings/en/content.json b/commons/strings/en/content.json index 424b76b..985e30b 100644 --- a/commons/strings/en/content.json +++ b/commons/strings/en/content.json @@ -9,7 +9,12 @@ "content.search.count.single": "result", "content.search.count.multiple": "results", - + + "content.header.base" : "Content", + "content.search.header" : "Search", + "content.error.header" : "Error", + "_content.item.header" : "", + "content.error.head.title": "Content error - NibblePoker", "_content.error.head.description": "Done via the '$content_error_message' variable", "content.error.og.title": "NibblePoker - Content error", diff --git a/content/index.json b/content/index.json index 9f23e05..60caccc 100644 --- a/content/index.json +++ b/content/index.json @@ -10,7 +10,8 @@ "fr": "Un petit utilitaire pour invité de commande qui permet de facilement lister les noms, noms formatés et chemins des ports COM.
Cet outil a pour bût de faciliter cette tâche sans avoir à utiliser la commande mode ou le Gestionnaire de périphérique." }, "image": "/resources/NibblePoker/images/content/lscom/lscom-v2-text-01-bkgd-cli.png", - "tags": ["application", "tool" ,"lscom", "dotnet", "windows"] + "tags": ["application", "tool" ,"lscom", "dotnet", "windows"], + "priority": 100 }, { "id": "youtube-auto-archiver", @@ -23,7 +24,8 @@ "fr": "Conteneur et application Python hautement configurable qui permet d'automatiquement archiver et télécharger des livestreams et vidéos depuis YouTube." }, "image": "/resources/NibblePoker/images/content/yaa/icon-final.png", - "tags": ["docker", "application", "web", "python"] + "tags": ["docker", "application", "web", "python"], + "priority": 30 }, { "id": "excel-worksheet-password-remover", @@ -39,7 +41,8 @@ "tags": [ "tool", "web" - ] + ], + "priority": 50 }, { "id": "dotnet-arguments", @@ -55,7 +58,8 @@ "tags": [ "library", "dotnet" - ] + ], + "priority": 40 }, { "id": "mc-expanded-iron-bundles", @@ -72,7 +76,8 @@ "game", "minecraft", "mod" - ] + ], + "priority": 20 }, { "id": "lscom-cli", diff --git a/content/index.php b/content/index.php index 415673f..bbfcafc 100644 --- a/content/index.php +++ b/content/index.php @@ -77,15 +77,30 @@ include 'commons/DOM/sidebar.php'; include 'commons/DOM/body-2.php'; ?>
-

- todo  +

+ '); + echo(localize("content.header.base")); + echo(''); + echo(localize("content.error.header")); + } elseif($requested_content_display_type == ContentDisplayType::SEARCH) { + echo(''); + echo(localize("content.header.base")); + echo(''); + echo(localize("content.search.header")); + } elseif($requested_content_display_type == ContentDisplayType::CONTENT) { + echo(''); + echo(localize("content.header.base")); + echo(''); + echo('' . $content->get_head_title() . ''); + } + ?>

- ListComPort_v3.0.0_AnyCPU.zip" + "content": "  ListComPort_v3.0.0_AnyCPU.zip" }] }] } @@ -268,7 +268,7 @@ "parts": [{ "type": "raw", "localize": false, - "content": " ListComPort_v3.0.0_x64_Single.zip" + "content": "  ListComPort_v3.0.0_x64_Single.zip" }] }] } @@ -282,7 +282,7 @@ "parts": [{ "type": "raw", "localize": false, - "content": " ListComPort_v3.0.0_x64_SelfContained.zip" + "content": "  ListComPort_v3.0.0_x64_SelfContained.zip" }] }] } @@ -295,7 +295,7 @@ "parts": [{ "type": "raw", "localize": false, - "content": " ListComPort_v3.0.0_x64.msi" + "content": "  ListComPort_v3.0.0_x64.msi" }] }] } @@ -310,7 +310,7 @@ "parts": [{ "type": "raw", "localize": false, - "content": " ListComPort_v3.0.0_x86_Single.zip" + "content": "  ListComPort_v3.0.0_x86_Single.zip" }] }] } @@ -324,7 +324,7 @@ "parts": [{ "type": "raw", "localize": false, - "content": " ListComPort_v3.0.0_x86_SelfContained.zip" + "content": "  ListComPort_v3.0.0_x86_SelfContained.zip" }] }] } @@ -337,7 +337,7 @@ "parts": [{ "type": "raw", "localize": false, - "content": " ListComPort_v3.0.0_x86.msi" + "content": "  ListComPort_v3.0.0_x86.msi" }] }] } @@ -352,7 +352,7 @@ "parts": [{ "type": "raw", "localize": false, - "content": " ListComPort_v3.0.0_arm64_Single.zip" + "content": "  ListComPort_v3.0.0_arm64_Single.zip" }] }] } @@ -366,7 +366,7 @@ "parts": [{ "type": "raw", "localize": false, - "content": " ListComPort_v3.0.0_arm64_SelfContained.zip" + "content": "  ListComPort_v3.0.0_arm64_SelfContained.zip" }] }] } @@ -381,7 +381,7 @@ "parts": [{ "type": "raw", "localize": false, - "content": " ListComPort_v3.0.0_arm_Single.zip" + "content": "  ListComPort_v3.0.0_arm_Single.zip" }] }] } @@ -395,7 +395,7 @@ "parts": [{ "type": "raw", "localize": false, - "content": " ListComPort_v3.0.0_arm_SelfContained.zip" + "content": "  ListComPort_v3.0.0_arm_SelfContained.zip" }] }] } @@ -410,7 +410,7 @@ "type": "container", "padding": 2, "modifiers": ["pb-0"], "parts": [ { - "type": "table", "modifiers": ["stylish", "auto-cell-padding"], + "type": "table", "modifiers": ["stylish", "auto-cell-padding", "v-center-cells"], "head": [ {"type": "raw", "content": "content.commons.version"}, {"type": "raw", "content": "content.commons.download.multiple"} @@ -423,12 +423,12 @@ { "type": "button", "modifiers": ["thin"], "link": "https://files.nibblepoker.lu/downloads/DotNet-ListComPort/3.0.0/DotNet-ListComPort-3.0.0.zip", - "content": " 3.0.0.zip", + "content": "  3.0.0.zip", "localize": false },{ "type": "button", "modifiers": ["thin"], "link": "https://files.nibblepoker.lu/downloads/DotNet-ListComPort/3.0.0/DotNet-ListComPort-3.0.0.tar.gz", - "content": " 3.0.0.tar.gz", + "content": "  3.0.0.tar.gz", "localize": false } ] diff --git a/content/items/lscom-cli.json b/content/items/lscom-cli.json index 7d18e68..d0b18d2 100644 --- a/content/items/lscom-cli.json +++ b/content/items/lscom-cli.json @@ -1,7 +1,7 @@ { "strings": { "en": { - "meta.title": "PB-ListComPort (Legacy)", + "meta.title": "PB-ListComPort  (Legacy)", "meta.description": "A simple CLI tool that can list COM ports with their name, friendly name and device name easily and cleanly.", "article.subtitle": " View on GitHub", "intro.title": "Introduction", @@ -13,7 +13,7 @@ "links.title": "Links" }, "fr": { - "meta.title": "PB-ListComPort (Legacy)", + "meta.title": "PB-ListComPort  (Legacy)", "meta.description": "Un petit utilitaire pour invité de commande qui permet de facilement lister les noms, noms formatés et chemin des ports COM.", "article.subtitle": " Voir sur GitHub", "intro.title": "Introduction", @@ -120,7 +120,7 @@ "modifiers": ["pb-0"], "parts": [ { - "type": "table", "modifiers": ["stylish", "auto-cell-padding"], + "type": "table", "modifiers": ["stylish", "auto-cell-padding", "v-center-cells"], "head": [ {"type": "raw", "content": "content.commons.cpu.responsive"}, {"type": "raw", "content": "content.commons.lang"}, @@ -138,7 +138,7 @@ "parts": [{ "type": "raw", "localize": false, - "content": "lscom_eng_x64.exe" + "content": "lscom_eng_x64.exe" }] }] } @@ -152,7 +152,7 @@ "parts": [{ "type": "raw", "localize": false, - "content": "lscom_fra_x64.exe" + "content": "lscom_fra_x64.exe" }] }] } @@ -167,7 +167,7 @@ "parts": [{ "type": "raw", "localize": false, - "content": "lscom_eng_x86.exe" + "content": "lscom_eng_x86.exe" }] }] } @@ -181,7 +181,7 @@ "parts": [{ "type": "raw", "localize": false, - "content": "lscom_fra_x86.exe" + "content": "lscom_fra_x86.exe" }] }] } @@ -196,7 +196,7 @@ "type": "container", "padding": 2, "modifiers": ["pb-0"], "parts": [ { - "type": "table", "modifiers": ["stylish", "auto-cell-padding"], + "type": "table", "modifiers": ["stylish", "auto-cell-padding", "v-center-cells"], "head": [ {"type": "raw", "content": "content.commons.version"}, {"type": "raw", "content": "content.commons.cpu.responsive"}, @@ -213,7 +213,7 @@ "parts": [{ "type": "button", "link": "https://files.nibblepoker.lu/downloads/PB-ListComPort/2.0.0/lscom_eng_x64.exe", "modifiers": ["thin"], "localize": false, - "content": "lscom_eng_x64.exe" + "content": "lscom_eng_x64.exe" }] } ],[ @@ -223,7 +223,7 @@ "parts": [{ "type": "button", "link": "https://files.nibblepoker.lu/downloads/PB-ListComPort/2.0.0/lscom_fra_x64.exe", "modifiers": ["thin"], "localize": false, - "content": "lscom_fra_x64.exe" + "content": "lscom_fra_x64.exe" }] } ],[ @@ -235,7 +235,7 @@ { "type": "button", "link": "https://files.nibblepoker.lu/downloads/PB-ListComPort/2.0.0/lscom_eng_x86.exe", "modifiers": ["thin"], "localize": false, - "content": "lscom_eng_x86.exe" + "content": "lscom_eng_x86.exe" } ] } @@ -246,7 +246,7 @@ "parts": [{ "type": "button", "link": "https://files.nibblepoker.lu/downloads/PB-ListComPort/2.0.0/lscom_fra_x86.exe", "modifiers": ["thin"], "localize": false, - "content": "lscom_fra_x86.exe" + "content": "lscom_fra_x86.exe" }] } ],[ @@ -258,7 +258,7 @@ "parts": [{ "type": "button", "link": "https://files.nibblepoker.lu/downloads/PB-ListComPort/1.1.0/lscom-x64.exe", "modifiers": ["thin"], "localize": false, - "content": "lscom-x64.exe" + "content": "lscom-x64.exe" }] } ],[ @@ -268,7 +268,7 @@ "parts": [{ "type": "button", "link": "https://files.nibblepoker.lu/downloads/PB-ListComPort/1.1.0/lscom-x86.exe", "modifiers": ["thin"], "localize": false, - "content": "lscom-x86.exe" + "content": "lscom-x86.exe" }] } ],[ @@ -280,7 +280,7 @@ "parts": [{ "type": "button", "link": "https://files.nibblepoker.lu/downloads/PB-ListComPort/1.0.0/lscom.exe", "modifiers": ["thin"], "localize": false, - "content": "lscom.exe" + "content": "lscom.exe" }] } ] @@ -294,7 +294,7 @@ "type": "container", "padding": 2, "modifiers": ["pb-0"], "parts": [ { - "type": "table", "modifiers": ["stylish", "auto-cell-padding"], + "type": "table", "modifiers": ["stylish", "auto-cell-padding", "v-center-cells"], "head": [ {"type": "raw", "content": "content.commons.version"}, {"type": "raw", "content": "content.commons.download.multiple"} @@ -307,12 +307,12 @@ { "type": "button", "modifiers": ["thin"], "link": "https://files.nibblepoker.lu/downloads/PB-ListComPort/2.1.0/2.1.0.zip", - "content": "2.1.0.zip", + "content": "2.1.0.zip", "localize": false },{ "type": "button", "modifiers": ["thin"], "link": "https://files.nibblepoker.lu/downloads/PB-ListComPort/2.1.0/2.1.0.tar.gz", - "content": "2.1.0.tar.gz", + "content": "2.1.0.tar.gz", "localize": false } ] @@ -325,12 +325,12 @@ { "type": "button", "modifiers": ["thin"], "link": "https://files.nibblepoker.lu/downloads/PB-ListComPort/2.0.0/2.0.0.zip", - "content": "2.0.0.zip", + "content": "2.0.0.zip", "localize": false },{ "type": "button", "modifiers": ["thin"], "link": "https://files.nibblepoker.lu/downloads/PB-ListComPort/2.0.0/2.0.0.tar.gz", - "content": "2.0.0.tar.gz", + "content": "2.0.0.tar.gz", "localize": false } ] @@ -343,12 +343,12 @@ { "type": "button", "modifiers": ["thin"], "link": "https://files.nibblepoker.lu/downloads/PB-ListComPort/1.1.0/1.1.0.zip", - "content": "1.1.0.zip", + "content": "1.1.0.zip", "localize": false },{ "type": "button", "modifiers": ["thin"], "link": "https://files.nibblepoker.lu/downloads/PB-ListComPort/1.1.0/1.1.0.tar.gz", - "content": "1.1.0.tar.gz", + "content": "1.1.0.tar.gz", "localize": false } ] @@ -361,12 +361,12 @@ { "type": "button", "modifiers": ["thin"], "link": "https://files.nibblepoker.lu/downloads/PB-ListComPort/1.0.0/1.0.0.zip", - "content": "1.0.0.zip", + "content": "1.0.0.zip", "localize": false },{ "type": "button", "modifiers": ["thin"], "link": "https://files.nibblepoker.lu/downloads/PB-ListComPort/1.0.0/1.0.0.tar.gz", - "content": "1.0.0.tar.gz", + "content": "1.0.0.tar.gz", "localize": false } ] diff --git a/index.php b/index.php index 8f8ca8b..9aebe02 100644 --- a/index.php +++ b/index.php @@ -26,8 +26,8 @@ include 'commons/DOM/sidebar.php'; include 'commons/DOM/body-2.php'; ?>
-

- todo  +

+

diff --git a/privacy/index.php b/privacy/index.php index 47f5f07..b63a7e0 100644 --- a/privacy/index.php +++ b/privacy/index.php @@ -26,9 +26,8 @@ include 'commons/DOM/sidebar.php'; include 'commons/DOM/body-2.php'; ?>
-

- todo  +

+

@@ -50,7 +49,7 @@ include 'commons/DOM/body-2.php';

-

+


@@ -91,7 +90,7 @@ include 'commons/DOM/body-2.php';

-

+


@@ -113,12 +112,12 @@ include 'commons/DOM/body-2.php';

-

+

-

+

@@ -182,14 +181,14 @@ include 'commons/DOM/body-2.php';

-

+


herwin.bozet@gmail.com

-

+

diff --git a/resources/NibblePoker/js/nibblepoker-code.js b/resources/NibblePoker/js/nibblepoker-code.js new file mode 100644 index 0000000..cd544ff --- /dev/null +++ b/resources/NibblePoker/js/nibblepoker-code.js @@ -0,0 +1,49 @@ +// Highlights the code blocks when included on a page. +// This command is separated in its own file since highlight.js isn't on every page and because I can't use JS +// in a script element without using an external .js file. + +Array.from(document.getElementsByClassName("code")).forEach(eCodeContainer => { + let language = null; + + eCodeContainer.classList.forEach(cCodeContainer => { + if(cCodeContainer.startsWith("language-")) { + language = cCodeContainer; + } + }); + + if(language !== null) { + Array.from(eCodeContainer.children).forEach(eCodeLine => { + if(eCodeLine.classList.contains("code-line")) { + eCodeLine.classList.add(language); + hljs.highlightElement(eCodeLine); + } + }); + } +}); + +// Adding the action to copy the code to elements with the "js-code-copy" class. +// The search works by searching the closest parent with the "code" class or that is a "code" element, and then +// reading each of its children with the "code-line" class. + +Array.from(document.getElementsByClassName("js-code-copy")).forEach(eCodeCopyButton => { + let eParentCodeBlock = eCodeCopyButton; + + while(eParentCodeBlock != null &&!eParentCodeBlock.classList.contains("code") && + eParentCodeBlock.nodeName.toLowerCase() !== "code") { + eParentCodeBlock = eParentCodeBlock.parentElement; + } + + if(eParentCodeBlock != null) { + let code = ""; + + Array.from(eParentCodeBlock.children).forEach(eCodeLine => { + if(eCodeLine.classList.contains("code-line")) { + code += eCodeLine.textContent + "\n" + } + }); + + eCodeCopyButton.onclick = function() { + navigator.clipboard.writeText(code); + }; + } +}); diff --git a/resources/NibblePoker/js/nibblepoker-glider.js b/resources/NibblePoker/js/nibblepoker-glider.js new file mode 100644 index 0000000..b5dcab5 --- /dev/null +++ b/resources/NibblePoker/js/nibblepoker-glider.js @@ -0,0 +1,77 @@ +// Creating the galleries from Glider.js +window.addEventListener('load', function(){ + document.querySelectorAll(".glider").forEach(element => { + new Glider(element, { + slidesToShow: 1, + draggable: true, + scrollLock: true, + scrollLockDelay: 125, + rewind: true, + arrows: { + prev: element.previousSibling, + next: element.nextSibling + }, + responsive: [ + { + breakpoint: 768, + settings: { + slidesToShow: 2, + duration: 0.25 + } + },{ + breakpoint: 992, + settings: { + slidesToShow: 3, + slidesToScroll: 1 + } + } + ] + }); + + // Processing the images + const eImages = []; + + // Converting the Node to a HTMLElement if needed and desired. + element.childNodes[0].childNodes.forEach(childrenNode => { + if(childrenNode.nodeType !== Node.ELEMENT_NODE) { + return; + } + + // Casting from a Node to a proper HTMLElement because of course we have to add this step in JS... + const eChildElement = childrenNode.cloneNode(true); + + if(eChildElement.tagName.toLowerCase() !== "img") { + return; + } + + eChildElement.onclick = function() { + let imageElement = document.getElementById("modal-img"); + imageElement.src = eChildElement.src; + imageElement.alt = eChildElement.alt; + halfmoon.toggleModal('modal-content-image-viewer'); + console.log("Opening image..."); + }; + + // Saving the element for later. + eImages.push(eChildElement); + }); + + // Removing the nodes so that the desired ones can be reinserted later. + // We start from the rear to prevent issues with de-ordering as we delete them ! + for(let i = element.childNodes[0].childNodes.length - 1; i >= 0; i--) { + element.childNodes[0].removeChild(element.childNodes[0].childNodes[i]); + } + + eImages.forEach(eImageElement => { + element.childNodes[0].appendChild(eImageElement); + }); + }); + + // The default modal animation looks like ass, jesus... + let eImgModalCloseButton = document.getElementById("modal-img-close"); + if(eImgModalCloseButton != null) { + eImgModalCloseButton.onclick = function() { + halfmoon.toggleModal('modal-content-image-viewer'); + } + } +}); diff --git a/resources/NibblePoker/scss/core/border.scss b/resources/NibblePoker/scss/core/border.scss index 029c683..731de12 100644 --- a/resources/NibblePoker/scss/core/border.scss +++ b/resources/NibblePoker/scss/core/border.scss @@ -13,6 +13,10 @@ .border { border: 1px solid #{$color-border-all}; + + &.b-light { + border: 1px solid #{$color-border-light}; + } } * { diff --git a/resources/NibblePoker/scss/core/spacing/global.scss b/resources/NibblePoker/scss/core/spacing/global.scss index af4e5bb..165ed06 100644 --- a/resources/NibblePoker/scss/core/spacing/global.scss +++ b/resources/NibblePoker/scss/core/spacing/global.scss @@ -37,3 +37,9 @@ /* Utilities > Spacing > Global > Others */ @include global-spacing-maker("m", "margin", "auto", auto); @include global-spacing-maker("p", "padding", "auto", auto); + + +/* Utilities > Spacing > Global > Manual Extras */ +.p-mxs { + padding: calc(#{$margin-base-size} * 0.375); +} diff --git a/resources/NibblePoker/scss/core/text.scss b/resources/NibblePoker/scss/core/text.scss index fb8f2fd..309fa96 100644 --- a/resources/NibblePoker/scss/core/text.scss +++ b/resources/NibblePoker/scss/core/text.scss @@ -28,6 +28,12 @@ h1, h2, h3, h4, h5, h6 { .t-size-13 { font-size: 1.3rem !important; } +.t-size-15 { + font-size: 1.5rem !important; +} +.t-size-17 { + font-size: 1.7rem !important; +} @for $_ from 2 through 7 { $size: $_ * 100; diff --git a/resources/NibblePoker/scss/site/code.scss b/resources/NibblePoker/scss/site/code.scss index 499e00f..0748624 100644 --- a/resources/NibblePoker/scss/site/code.scss +++ b/resources/NibblePoker/scss/site/code.scss @@ -11,7 +11,9 @@ code { // For spans .code, kbd { - border: 1px solid #{$color-unset}; + background-color: #{$color-background-code}; + + border: 1px solid #{$color-border-code}; // Using '.r-s' border-radius: calc(#{$border-base-radius} * 0.75); @@ -20,3 +22,17 @@ code { padding-left: calc(#{$border-base-radius} * 0.625); padding-right: calc(#{$border-base-radius} * 0.625); } + +// Removes the background added by highlight.js +.code-line { + background: rgba(0,0,0,0) !important; +} + +code, .code, .code-line { + line-height: 1.35; +} + +// FIXME: Use a proper class !!! +.code:not(code) { + padding: calc(#{$border-base-radius} * 0.625); +} diff --git a/resources/NibblePoker/scss/site/commons.scss b/resources/NibblePoker/scss/site/commons.scss index d550adb..fcafb25 100644 --- a/resources/NibblePoker/scss/site/commons.scss +++ b/resources/NibblePoker/scss/site/commons.scss @@ -21,3 +21,7 @@ // } //} // + +button + button, .button-link + .button-link > button { + margin-left: 0.75rem; +} diff --git a/resources/NibblePoker/scss/site/table.scss b/resources/NibblePoker/scss/site/table.scss index 9200462..09b2e3a 100644 --- a/resources/NibblePoker/scss/site/table.scss +++ b/resources/NibblePoker/scss/site/table.scss @@ -35,6 +35,12 @@ table.stylish { } } + &.table-v-center { + tr, td { + vertical-align: middle; + } + } + // Fixing border issues when using rounded corners by using a "fake" one using the background's color. // It will look like utter shit when rounded on firefox because its rendering engine cannot clip rounded corners apparently. // I guess that's what being at less than 3% of the market share does to you and your ability to care about basic shit. diff --git a/resources/NibblePoker/scss/site/text.scss b/resources/NibblePoker/scss/site/text.scss index 1c3d8bb..3a1f6e9 100644 --- a/resources/NibblePoker/scss/site/text.scss +++ b/resources/NibblePoker/scss/site/text.scss @@ -4,6 +4,10 @@ p, a, h1, h2, h3, td { color: #{$color-text-regular-normal}; } +p { + line-height: 1.2; +} + // Setting colors for bland links. // Done before muted text to make the footer privacy link possible. a { @@ -20,6 +24,10 @@ a:hover { } } +.t-half-muted { + opacity: 65%; +} + .t-muted { //@if $undefined-toggle-css-variables { // color: var(--color-white-muted); @@ -36,6 +44,7 @@ a:hover { .t-logo-text { font-size: 1.775em; + line-height: 1; } a:not(.bland-link) { diff --git a/resources/NibblePoker/scss/variables.scss b/resources/NibblePoker/scss/variables.scss index da12aa3..9984c27 100644 --- a/resources/NibblePoker/scss/variables.scss +++ b/resources/NibblePoker/scss/variables.scss @@ -58,6 +58,8 @@ $color-apollo-custom-03: mix($color-apollo-40, $color-apollo-39, 65%); $color-apollo-custom-10: mix($color-apollo-40, $color-apollo-41, 75%); +$color-apollo-custom-20: mix($color-apollo-39, $color-apollo-38, 60%); + //$color-test-01: mix(#7b6aa5, #000000, 33%); $color-test-02: #007c7d; @@ -78,6 +80,7 @@ $color-link-blue: #{$color-apollo-04}; $color-link-blue-hover: #{$color-apollo-05}; $color-border-all: $color-apollo-38; +$color-border-light: $color-apollo-custom-20; $color-input-glow: $color-apollo-02; @@ -99,6 +102,9 @@ $color-background-surround: $color-apollo-custom-00; //$color-background-main-headings: $color-apollo-40; $color-background-main-headings: $color-apollo-custom-03; +$color-background-code: #{$color-apollo-custom-20}; +$color-border-code: #{$color-border-all}CF; + $color-background-table-main: $color-apollo-custom-01; $color-background-table-dual: $color-apollo-custom-00; //$color-table-border: $color-apollo-41;