From a5b28f29dd683191433a70b2c3c21e06de265717 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Wed, 23 Mar 2022 17:02:43 +0430 Subject: wip --- spring-front/nginx.conf | 10 ++++++++- spring-front/src/App.js | 12 ++++++++++ spring-front/src/components/.Left.js.swp | Bin 0 -> 12288 bytes spring-front/src/components/.Right.js.swp | Bin 0 -> 12288 bytes spring-front/src/components/Left.js | 34 ++++++++++++++++++++++++++++ spring-front/src/components/Right.js | 6 +++++ spring-front/src/index.css | 2 +- spring-front/src/index.js | 36 ++---------------------------- 8 files changed, 64 insertions(+), 36 deletions(-) create mode 100644 spring-front/src/App.js create mode 100644 spring-front/src/components/.Left.js.swp create mode 100644 spring-front/src/components/.Right.js.swp create mode 100644 spring-front/src/components/Left.js create mode 100644 spring-front/src/components/Right.js (limited to 'spring-front') diff --git a/spring-front/nginx.conf b/spring-front/nginx.conf index 9d6d5c1..cea4a92 100644 --- a/spring-front/nginx.conf +++ b/spring-front/nginx.conf @@ -4,7 +4,7 @@ events { http { include /etc/nginx/mime.types; server_tokens off; - limit_req_zone $binary_remote_addr zone=one:10m rate=30r/m; + limit_req_zone $binary_remote_addr zone=one:10m rate=30r/m; server { listen 443 ssl http2; keepalive_timeout 60; @@ -13,6 +13,10 @@ http { ssl_certificate_key /certs/server.key; ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers HIGH:!aNULL:!MD5; + ssl_session_cache shared:SSL:50m; + ssl_session_timeout 1d; + ssl_session_tickets off; + ssl_prefer_server_ciphers on; sendfile on; tcp_nopush on; add_header X-Content-Type-Options "nosniff" always; @@ -21,6 +25,10 @@ http { add_header X-Frame-Options SAMEORIGIN always; add_header X-XSS-Protection "1; mode=block" always; fastcgi_hide_header X-Powered-By; + resolver 9.9.9.9 208.67.222.222; + ssl_stapling on; + ssl_stapling_verify on; + ssl_trusted_certificate /certs/server.cert; error_page 401 403 404 /404.html; location / { root /usr/share/nginx/html; diff --git a/spring-front/src/App.js b/spring-front/src/App.js new file mode 100644 index 0000000..2393152 --- /dev/null +++ b/spring-front/src/App.js @@ -0,0 +1,12 @@ +import React from "react"; +import Left from "./components/Left.js"; +import Right from "./components/Right.js"; + +export default function App() { + return ( +
+ + +
+ ); +} diff --git a/spring-front/src/components/.Left.js.swp b/spring-front/src/components/.Left.js.swp new file mode 100644 index 0000000..64301a2 Binary files /dev/null and b/spring-front/src/components/.Left.js.swp differ diff --git a/spring-front/src/components/.Right.js.swp b/spring-front/src/components/.Right.js.swp new file mode 100644 index 0000000..8f6b495 Binary files /dev/null and b/spring-front/src/components/.Right.js.swp differ diff --git a/spring-front/src/components/Left.js b/spring-front/src/components/Left.js new file mode 100644 index 0000000..7abeed4 --- /dev/null +++ b/spring-front/src/components/Left.js @@ -0,0 +1,34 @@ +import React from "react"; +import hljs from "highlight.js/lib/core"; +import markdown from "highlight.js/lib/languages/markdown"; +import "highlight.js/styles/devibeans.css"; +import "../index.css"; + +hljs.registerLanguage("markdown", markdown); + +function update(text) { + let result_element = document.querySelector("#highlight-content"); + result_element.innerText = text; + return hljs.highlight(text, { language: "markdown" }).value; +} + +function CreateTextArea() { + return ; +} + +function CreatePreCode() { + return ( + + ); +} + +export default function Left() { + return ( +
+ + +
+ ); +} diff --git a/spring-front/src/components/Right.js b/spring-front/src/components/Right.js new file mode 100644 index 0000000..7206ae9 --- /dev/null +++ b/spring-front/src/components/Right.js @@ -0,0 +1,6 @@ +import React from "react"; +import "../index.css"; + +export default function Right() { + return
Parsed Markdown goes here!!!
; +} diff --git a/spring-front/src/index.css b/spring-front/src/index.css index c788cb4..388f1ca 100644 --- a/spring-front/src/index.css +++ b/spring-front/src/index.css @@ -11,7 +11,7 @@ a { text-decoration: none; } -hr { +p { color: #005f87; } diff --git a/spring-front/src/index.js b/spring-front/src/index.js index 2b3e29d..1dba149 100644 --- a/spring-front/src/index.js +++ b/spring-front/src/index.js @@ -1,38 +1,6 @@ import React from "react"; import ReactDOM from "react-dom"; -import hljs from "highlight.js/lib/core"; -import markdown from "highlight.js/lib/languages/markdown"; -import "highlight.js/styles/devibeans.css"; +import App from "./App.js"; import "./index.css"; -hljs.registerLanguage("markdown", markdown); - -function update(text) { - let result_element = document.querySelector("#highlight-content"); - result_element.innerText = text; - return hljs.highlight(text, { language: "markdown" }).value; -} - -function CreateTextArea() { - return ; -} - -function CreatePreCode() { - return ( - - ); -} - -function CreateRoot() { - return ( -
-

RTLMD ftw bebe!!!

-
- ); -} - -ReactDOM.render(, document.getElementById("root2")); -ReactDOM.render(, document.getElementById("root2")); -ReactDOM.render(, document.getElementById("root")); +ReactDOM.render(, document.getElementById("root")); -- cgit v1.2.3