From 393661a2fc59df6108e716386d62119cba6e2959 Mon Sep 17 00:00:00 2001
From: Pierre Jarriges <pierre.jarriges@tutanota.com>
Date: Thu, 27 May 2021 13:09:07 +0200
Subject: [PATCH] remove storylogic page

---
 public/education/education.js                 |   6 +-
 public/games/games.js                         |   6 +-
 public/main.js                                |   6 +-
 .../software-development.js                   |   6 +-
 public/story-logic-app/index.html             |  35 --
 public/story-logic-app/story-logic-app.js     | 380 ------------------
 src/pages/story-logic-app/index.js            |   4 -
 src/pages/story-logic-app/meta.json           |  20 -
 src/pages/story-logic-app/story-logic-app.js  |  19 -
 .../story-logic-app/story-logic-app.scss      |   0
 10 files changed, 8 insertions(+), 474 deletions(-)
 delete mode 100644 public/story-logic-app/index.html
 delete mode 100644 public/story-logic-app/story-logic-app.js
 delete mode 100644 src/pages/story-logic-app/index.js
 delete mode 100644 src/pages/story-logic-app/meta.json
 delete mode 100644 src/pages/story-logic-app/story-logic-app.js
 delete mode 100644 src/pages/story-logic-app/story-logic-app.scss

diff --git a/public/education/education.js b/public/education/education.js
index 9eeb43d..9a7ac52 100644
--- a/public/education/education.js
+++ b/public/education/education.js
@@ -1,13 +1,11 @@
 (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
 function getServerUrl() {
-    return `${location.origin}${
-        location.origin.charAt(location.origin.length - 1) !== "/" ? "/" : ""
-    }`;
+    return `${location.origin}${location.origin.charAt(location.origin.length - 1) !== "/" ? "/" : ""
+        }`;
 }
 
 module.exports = {
     getServerUrl,
-    website_title: "Kuadrado website",
     build: {
         protected_dirs: ["assets", "style", "articles"],
         default_meta_keys: ["title", "description", "image", "open_graph", "json_ld"],
diff --git a/public/games/games.js b/public/games/games.js
index bad4aa7..70c0356 100644
--- a/public/games/games.js
+++ b/public/games/games.js
@@ -1,13 +1,11 @@
 (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
 function getServerUrl() {
-    return `${location.origin}${
-        location.origin.charAt(location.origin.length - 1) !== "/" ? "/" : ""
-    }`;
+    return `${location.origin}${location.origin.charAt(location.origin.length - 1) !== "/" ? "/" : ""
+        }`;
 }
 
 module.exports = {
     getServerUrl,
-    website_title: "Kuadrado website",
     build: {
         protected_dirs: ["assets", "style", "articles"],
         default_meta_keys: ["title", "description", "image", "open_graph", "json_ld"],
diff --git a/public/main.js b/public/main.js
index f599a14..9df16af 100644
--- a/public/main.js
+++ b/public/main.js
@@ -1,13 +1,11 @@
 (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
 function getServerUrl() {
-    return `${location.origin}${
-        location.origin.charAt(location.origin.length - 1) !== "/" ? "/" : ""
-    }`;
+    return `${location.origin}${location.origin.charAt(location.origin.length - 1) !== "/" ? "/" : ""
+        }`;
 }
 
 module.exports = {
     getServerUrl,
-    website_title: "Kuadrado website",
     build: {
         protected_dirs: ["assets", "style", "articles"],
         default_meta_keys: ["title", "description", "image", "open_graph", "json_ld"],
diff --git a/public/software-development/software-development.js b/public/software-development/software-development.js
index 6fb1912..6d902af 100644
--- a/public/software-development/software-development.js
+++ b/public/software-development/software-development.js
@@ -1,13 +1,11 @@
 (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
 function getServerUrl() {
-    return `${location.origin}${
-        location.origin.charAt(location.origin.length - 1) !== "/" ? "/" : ""
-    }`;
+    return `${location.origin}${location.origin.charAt(location.origin.length - 1) !== "/" ? "/" : ""
+        }`;
 }
 
 module.exports = {
     getServerUrl,
-    website_title: "Kuadrado website",
     build: {
         protected_dirs: ["assets", "style", "articles"],
         default_meta_keys: ["title", "description", "image", "open_graph", "json_ld"],
diff --git a/public/story-logic-app/index.html b/public/story-logic-app/index.html
deleted file mode 100644
index 8faa083..0000000
--- a/public/story-logic-app/index.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!DOCTYPE html>
-<html lang="fr" prefix="og: https://ogp.me/ns#">
-    <head>
-        <meta charset="utf-8" />
-        <title>Kuadrado Software | Story Logic</title>
-        <meta name="description" content="appli pour faire des jeux old school"/>
-        <meta name="author" content="Kuadrado Software" />
-        <meta name="image" content="https://kuadrado-software.fr/assets/images/brain.png"/>
-
-        <!-- Open Graph Protocol meta data -->
-        <meta property="og:title" content="Kuadrado Software | Story Logic"/>
-        <meta property="og:description" content="appli pour faire des jeux old school"/>
-        <meta property="og:type" content="website" />
-        <meta property="og:url" content="https://kuadrado-software.fr/story-logic-app"/>
-        <meta property="og:image" content="https://kuadrado-software.fr/assets/images/brain.png"/>
-        <meta property="twitter:image" content="https://kuadrado-software.fr/assets/images/brain.png"/>
-        <meta property="og:locale" content="fr_FR"/>
-        <meta property="og:site_name" content="Kuadrado Software" />
-
-        <!-- English translation not ready yet -->
-        <!-- <meta property="og:locale:alternate" content="en_GB" /> -->
-
-        <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />
-        <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
-        <link href="/style/style.css" rel="stylesheet" />
-        <script type="application/ld+json">{"@context":"https://schema.org","type":"WebPage","description":"appli pour faire des jeux old school","image":["https://kuadrado-software.fr/assets/images/brain.svg"],"keywords":"","name":"Kuadrado Software - Story Logic","url":"https://kuadrado-software.fr/story-logic-app/"}</script>
-    </head>
-    <!-- The vocab attribute defines the standard vocabulary used for RDFa standard.
-    The DOM may contain properties such as "typeof" and "property" accordinly to the schema.org vocabulary -->
-    <body vocab="https://schema.org/">
-        <!-- The H1 tag will be never seen but it's necessary for SEO -->
-        <main><h1 style="visibility: hidden">Kuadrado Software | Story Logic</h1></main>
-    </body>
-    <script type="text/javascript" src="./story-logic-app.js"></script>
-</html>
diff --git a/public/story-logic-app/story-logic-app.js b/public/story-logic-app/story-logic-app.js
deleted file mode 100644
index b69681d..0000000
--- a/public/story-logic-app/story-logic-app.js
+++ /dev/null
@@ -1,380 +0,0 @@
-(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
-function getServerUrl() {
-    return `${location.origin}${
-        location.origin.charAt(location.origin.length - 1) !== "/" ? "/" : ""
-    }`;
-}
-
-module.exports = {
-    getServerUrl,
-    website_title: "Kuadrado website",
-    build: {
-        protected_dirs: ["assets", "style", "articles"],
-        default_meta_keys: ["title", "description", "image", "open_graph", "json_ld"],
-    },
-};
-
-},{}],2:[function(require,module,exports){
-const { getServerUrl } = require("./config");
-
-module.exports = {
-    images_url: `${getServerUrl()}assets/images/`,
-    articles_url: `${getServerUrl()}articles/`,
-};
-
-},{"./config":1}],3:[function(require,module,exports){
-"use strict";
-
-module.exports = {
-    setRenderCycleRoot(renderCycleRoot) {
-        this.renderCycleRoot = renderCycleRoot;
-    },
-    objectToHtml: function objectToHtml(obj) {
-        const { tag } = obj;
-
-        const node = document.createElement(tag);
-        const excludeKeys = ["tag", "contents", "style_rules", "state"];
-
-        Object.keys(obj)
-            .filter(attr => !excludeKeys.includes(attr))
-            .forEach(attr => {
-                if (attr === "class") {
-                    node.classList.add(...obj[attr].split(" ").filter(s => s !== ""));
-                } else {
-                    node[attr] = obj[attr];
-                }
-            });
-        if (obj.contents && typeof obj.contents === "string") {
-            node.innerHTML = obj.contents;
-        } else {
-            obj.contents &&
-                obj.contents.length > 0 &&
-                obj.contents.forEach(el => {
-                    switch (typeof el) {
-                        case "string":
-                            node.innerHTML = el;
-                            break;
-                        case "object":
-                            node.appendChild(objectToHtml(el));
-                            break;
-                    }
-                });
-        }
-
-        if (obj.style_rules) {
-            Object.keys(obj.style_rules).forEach(rule => {
-                node.style[rule] = obj.style_rules[rule];
-            });
-        }
-
-        return node;
-    },
-    renderCycle: function () {
-        this.subRender(this.renderCycleRoot.render(), document.getElementsByTagName("main")[0], {
-            mode: "replace",
-        });
-    },
-    subRender(object, htmlNode, options = { mode: "append" }) {
-        const insert = this.objectToHtml(object);
-        switch (options.mode) {
-            case "append":
-                htmlNode.appendChild(insert);
-                break;
-            case "override":
-                htmlNode.innerHTML = "";
-                htmlNode.appendChild(insert);
-                break;
-            case "insert-before":
-                htmlNode.insertBefore(insert, htmlNode.childNodes[options.insertIndex]);
-                break;
-            case "adjacent":
-                /**
-                 * options.insertLocation must be one of:
-                 *
-                 * afterbegin
-                 * afterend
-                 * beforebegin
-                 * beforeend
-                 */
-                htmlNode.insertAdjacentHTML(options.insertLocation, insert);
-                break;
-            case "replace":
-                htmlNode.parentNode.replaceChild(insert, htmlNode);
-                break;
-            case "remove":
-                htmlNode.remove();
-                break;
-        }
-    },
-};
-
-},{}],4:[function(require,module,exports){
-"use strict";
-
-class WebPage {
-    constructor(args) {
-        Object.assign(this, args);
-    }
-}
-
-module.exports = WebPage;
-},{}],5:[function(require,module,exports){
-"use strict";
-
-// const { images_url } = require("../../../constants");
-const WebPage = require("../../lib/web-page");
-
-
-class StoryLogicApp extends WebPage {
-    render() {
-        return {
-            tag: "div",
-            id: "story-logic-app",
-            contents: [
-                { tag: "strong", contents: "yup" }
-            ],
-        };
-    }
-}
-
-module.exports = StoryLogicApp;
-
-},{"../../lib/web-page":4}],6:[function(require,module,exports){
-"use strict";
-const runPage = require("../../run-page");
-const StoryLogicApp = require("./story-logic-app");
-runPage(StoryLogicApp);
-
-},{"../../run-page":7,"./story-logic-app":5}],7:[function(require,module,exports){
-"use strict";
-
-const objectHtmlRenderer = require("object-to-html-renderer")
-const Template = require("./template/template");
-
-module.exports = function runPage(PageComponent) {
-    const template = new Template({ page: new PageComponent() });
-    objectHtmlRenderer.setRenderCycleRoot(template);
-    objectHtmlRenderer.renderCycle();
-};
-
-},{"./template/template":9,"object-to-html-renderer":3}],8:[function(require,module,exports){
-"use strict";
-
-const { images_url } = require("../../../constants");
-
-const NAV_MENU_ITEMS = [
-    { url: "/games/", text: "Jeux" },
-    {
-        url: "/education/",
-        text: "Pédagogie",
-        // submenu: [
-        //     { url: "/gamedev", text: "Création de jeux vidéo" },
-        // ]
-    },
-    { url: "/software-development/", text: "Software" }
-];
-
-class NavBar {
-    constructor() {
-        this.initEventHandlers();
-    }
-
-    handleBurgerClick() {
-        document.getElementById("nav-menu-list").classList.toggle("responsive-show");
-    }
-
-    initEventHandlers() {
-        window.addEventListener("click", event => {
-            if (
-                event.target.id !== "nav-menu-list" &&
-                !event.target.classList.contains("burger") &&
-                !event.target.parentNode.classList.contains("burger")
-            ) {
-                document.getElementById("nav-menu-list").classList.remove("responsive-show");
-            }
-        });
-    }
-
-    renderHome() {
-        return {
-            tag: "div",
-            class: "home",
-            contents: [
-                {
-                    tag: "a",
-                    href: "/",
-                    contents: [
-                        {
-                            tag: "img",
-                            alt: "Logo Kuadrado",
-                            src: `${images_url}logo_kuadrado.svg`,
-                        },
-                        {
-                            tag: "img",
-                            alt: "Kuadrado Software",
-                            class: "logo-text",
-                            src: `${images_url}logo_kuadrado_txt.svg`,
-                        },
-                    ],
-                },
-            ],
-        };
-    }
-
-    renderMenu(menuItemsArray, isSubmenu = false, parentUrl = "") {
-        return {
-            tag: "ul",
-            id: "nav-menu-list",
-            class: isSubmenu ? "submenu" : "",
-            contents: menuItemsArray.map(item => {
-                const { url, text, submenu } = item;
-                const href = `${parentUrl}${url}`;
-                return {
-                    tag: "li",
-                    class: !isSubmenu && window.location.pathname === href ? "active" : "",
-                    contents: [
-                        {
-                            tag: "a",
-                            href,
-                            contents: text,
-                        },
-                    ].concat(submenu ? [this.renderMenu(submenu, true, url)] : []),
-                };
-            }),
-        };
-    }
-
-    renderResponsiveBurger() {
-        return {
-            tag: "div",
-            class: "burger",
-            onclick: this.handleBurgerClick.bind(this),
-            contents: [{ tag: "span", contents: "···" }],
-        };
-    }
-
-    render() {
-        return {
-            tag: "nav",
-            contents: [
-                this.renderHome(),
-                this.renderResponsiveBurger(),
-                this.renderMenu(NAV_MENU_ITEMS),
-            ],
-        };
-    }
-}
-
-module.exports = NavBar;
-
-},{"../../../constants":2}],9:[function(require,module,exports){
-"use strict";
-
-const { in_construction } = require("../../config");
-const { images_url } = require("../../constants");
-const NavBar = require("./components/navbar");
-
-class Template {
-    constructor(props) {
-        this.props = props;
-    }
-    render() {
-        return {
-            tag: "main",
-            contents: [
-                {
-                    tag: "header",
-                    contents: [new NavBar().render()],
-                },
-                in_construction && {
-                    tag: "section",
-                    class: "warning-banner",
-                    contents: [
-                        {
-                            tag: "strong",
-                            class: "page-contents-center",
-                            contents: "Site en construction ...",
-                        },
-                    ],
-                },
-                {
-                    tag: "section",
-                    id: "page-container",
-                    contents: [this.props.page.render()],
-                },
-                {
-                    tag: "footer",
-                    contents: [
-                        {
-                            tag: "div",
-                            class: "logo",
-                            contents: [
-                                {
-                                    tag: "img",
-                                    alt: `logo Kuadrado`,
-                                    src: `${images_url}logo_kuadrado.svg`,
-                                },
-                                {
-                                    tag: "img",
-                                    class: "text-logo",
-                                    alt: "Kuadrado Software",
-                                    src: `${images_url}logo_kuadrado_txt.svg`,
-                                },
-                            ],
-                        },
-                        {
-                            tag: "span",
-                            contents: "32 rue Simon Vialet, 07240 Vernoux en Vivarais. Ardèche, France",
-                        },
-                        {
-                            tag: "div",
-                            contents: [
-                                { tag: "strong", contents: "<blue>Contact : </blue>" },
-                                {
-                                    tag: "a",
-                                    href: "mailto:contact@kuadrado-software.fr",
-                                    contents: "contact@kuadrado-software.fr",
-                                },
-                            ],
-                        },
-                        {
-                            tag: "div",
-                            class: "social",
-                            contents: [
-                                {
-                                    tag: "strong",
-                                    contents: "<blue>Sur les réseaux : </blue>",
-                                },
-                                {
-                                    tag: "a",
-                                    href: "https://www.linkedin.com/company/kuadrado-software",
-                                    target: "_blank",
-                                    contents: "in",
-                                    title: "Linkedin",
-                                },
-                                {
-                                    tag: "a",
-                                    href: "https://twitter.com/KuadradoSoft",
-                                    target: "_blank",
-                                    contents: "t",
-                                    title: "Twitter",
-                                    style_rules: { fontFamily: "serif" },
-                                },
-                            ],
-                        },
-                        {
-                            tag: "span",
-                            contents: `Copyright © ${new Date()
-                                .getFullYear()} Kuadrado Software | 
-                                Toutes les images du site ont été réalisées par mes soins et peuvent être réutilisées pour un usage personnel.`,
-                        },
-                    ],
-                },
-            ],
-        };
-    }
-}
-
-module.exports = Template;
-
-},{"../../config":1,"../../constants":2,"./components/navbar":8}]},{},[6]);
diff --git a/src/pages/story-logic-app/index.js b/src/pages/story-logic-app/index.js
deleted file mode 100644
index 8873a8a..0000000
--- a/src/pages/story-logic-app/index.js
+++ /dev/null
@@ -1,4 +0,0 @@
-"use strict";
-const runPage = require("../../run-page");
-const StoryLogicApp = require("./story-logic-app");
-runPage(StoryLogicApp);
diff --git a/src/pages/story-logic-app/meta.json b/src/pages/story-logic-app/meta.json
deleted file mode 100644
index cfbb965..0000000
--- a/src/pages/story-logic-app/meta.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
-    "title": "Kuadrado Software | Story Logic",
-    "description": "appli pour faire des jeux old school",
-    "image": "https://kuadrado-software.fr/assets/images/brain.png",
-    "open_graph": {
-        "title": "Kuadrado Software | Story Logic",
-        "description": "appli pour faire des jeux old school"
-    },
-    "json_ld": {
-        "@context": "https://schema.org",
-        "type": "WebPage",
-        "description": "appli pour faire des jeux old school",
-        "image": [
-            "https://kuadrado-software.fr/assets/images/brain.svg"
-        ],
-        "keywords": "",
-        "name": "Kuadrado Software - Story Logic",
-        "url": "https://kuadrado-software.fr/story-logic-app/"
-    }
-}
\ No newline at end of file
diff --git a/src/pages/story-logic-app/story-logic-app.js b/src/pages/story-logic-app/story-logic-app.js
deleted file mode 100644
index e2c2c92..0000000
--- a/src/pages/story-logic-app/story-logic-app.js
+++ /dev/null
@@ -1,19 +0,0 @@
-"use strict";
-
-// const { images_url } = require("../../../constants");
-const WebPage = require("../../lib/web-page");
-
-
-class StoryLogicApp extends WebPage {
-    render() {
-        return {
-            tag: "div",
-            id: "story-logic-app",
-            contents: [
-                { tag: "strong", contents: "yup" }
-            ],
-        };
-    }
-}
-
-module.exports = StoryLogicApp;
diff --git a/src/pages/story-logic-app/story-logic-app.scss b/src/pages/story-logic-app/story-logic-app.scss
deleted file mode 100644
index e69de29..0000000
-- 
GitLab