Omega-Numworks / omega-numworks.github.io

Omega, the next evolution of Epsilon! And here's its website :)
https://getomega.dev
Other
16 stars 12 forks source link

[design] Switch some components to Jade UI + Massive redesign #49

Closed quentinguidee closed 4 years ago

quentinguidee commented 4 years ago

@quentinguidee/react-jade-ui

New components :

Rework :

New :

To-Do :

Must be applied to Omega-IDE :

diff --git a/src/ide/Editor.js b/src/ide/Editor.js
index 564c761..2479f69 100644
--- a/src/ide/Editor.js
+++ b/src/ide/Editor.js
@@ -519,13 +519,7 @@ export default class IDEEditor extends Component {

     componentDidMount() {
         // Hide the cookies think
-        let ccrevokes = document.getElementsByClassName("cc-revoke");
-
-        for(let i = 0; i < ccrevokes.length; i++) {
-            ccrevokes[i].style.display = "none"
-        }
-
-        let ccgrowers = document.getElementsByClassName("cc-grower");
+        let ccgrowers = document.getElementsByClassName("cookiesconsent");

         for(let i = 0; i < ccgrowers.length; i++) {
             ccgrowers[i].style.display = "none"
diff --git a/src/ide/Simulator.js b/src/ide/Simulator.js
index da863a6..cec92fb 100644
--- a/src/ide/Simulator.js
+++ b/src/ide/Simulator.js
@@ -18,8 +18,7 @@ export default class Simulator extends Component {
     }

     componentDidMount() {
-        if (document.getElementsByClassName("cc-bottom").length > 0)   document.getElementsByClassName("cc-bottom")[0].style.display = "none";
-        if (document.getElementsByClassName("cc-grower").length > 0)   document.getElementsByClassName("cc-grower")[0].style.display = "none";
+        if (document.getElementsByClassName("cookiesconsent").length > 0)   document.getElementsByClassName("cookiesconsent")[0].style.display = "none";
         if (document.getElementsByClassName("header").length > 0)      document.getElementsByClassName("header")[0].style.display = "none";
         if (document.getElementsByClassName("footer").length > 0)      document.getElementsByClassName("footer")[0].style.display = "none";
     }
quentinguidee commented 4 years ago

Patch applied with Omega-Numworks/Omega-IDE#3