aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjackyzha0 <[email protected]>2020-05-25 21:15:03 -0700
committerjackyzha0 <[email protected]>2020-05-25 21:15:03 -0700
commit56b6e035eb96874de99803b8bf0e686561db6616 (patch)
tree67b97bf5f552057ff3d9b3e6f0152fea18036b3b
parentMerge pull request #32 from jackyzha0/latex-renderer (diff)
downloadctrl-v-56b6e035eb96874de99803b8bf0e686561db6616.tar.xz
ctrl-v-56b6e035eb96874de99803b8bf0e686561db6616.zip
add firebase init
-rw-r--r--frontend/.firebaserc5
-rw-r--r--frontend/.gitignore65
-rw-r--r--frontend/firebase.json16
-rw-r--r--frontend/public/index.html19
-rw-r--r--frontend/src/components/renderers/Latex.js2
5 files changed, 86 insertions, 21 deletions
diff --git a/frontend/.firebaserc b/frontend/.firebaserc
new file mode 100644
index 0000000..ae027e9
--- /dev/null
+++ b/frontend/.firebaserc
@@ -0,0 +1,5 @@
+{
+ "projects": {
+ "default": "ctrl-v-a8efd"
+ }
+}
diff --git a/frontend/.gitignore b/frontend/.gitignore
new file mode 100644
index 0000000..f626852
--- /dev/null
+++ b/frontend/.gitignore
@@ -0,0 +1,65 @@
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+firebase-debug.log*
+
+# Firebase cache
+.firebase/
+
+# Firebase config
+
+# Uncomment this if you'd like others to create their own Firebase project.
+# For a team working on the same Firebase project(s), it is recommended to leave
+# it commented so all members can deploy to the same project(s) in .firebaserc.
+# .firebaserc
+
+# Runtime data
+pids
+*.pid
+*.seed
+*.pid.lock
+
+# Directory for instrumented libs generated by jscoverage/JSCover
+lib-cov
+
+# Coverage directory used by tools like istanbul
+coverage
+
+# nyc test coverage
+.nyc_output
+
+# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
+.grunt
+
+# Bower dependency directory (https://bower.io/)
+bower_components
+
+# node-waf configuration
+.lock-wscript
+
+# Compiled binary addons (http://nodejs.org/api/addons.html)
+build/Release
+
+# Dependency directories
+node_modules/
+
+# Optional npm cache directory
+.npm
+
+# Optional eslint cache
+.eslintcache
+
+# Optional REPL history
+.node_repl_history
+
+# Output of 'npm pack'
+*.tgz
+
+# Yarn Integrity file
+.yarn-integrity
+
+# dotenv environment variables file
+.env
diff --git a/frontend/firebase.json b/frontend/firebase.json
new file mode 100644
index 0000000..340ed5b
--- /dev/null
+++ b/frontend/firebase.json
@@ -0,0 +1,16 @@
+{
+ "hosting": {
+ "public": "build",
+ "ignore": [
+ "firebase.json",
+ "**/.*",
+ "**/node_modules/**"
+ ],
+ "rewrites": [
+ {
+ "source": "**",
+ "destination": "/index.html"
+ }
+ ]
+ }
+}
diff --git a/frontend/public/index.html b/frontend/public/index.html
deleted file mode 100644
index 0f98915..0000000
--- a/frontend/public/index.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="theme-color" content="#000000" />
- <meta
- name="ctrl-v"
- content="some_description"
- />
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jackyzha0/[email protected]/src/lite.css">
- <link href="https://fonts.googleapis.com/css2?family=Lora:wght@400;600&family=Roboto+Mono&display=swap" rel="stylesheet">
- <title>ctrl-v</title>
- </head>
- <body>
- <noscript>You need to enable JavaScript to run this app.</noscript>
- <div id="root"></div>
- </body>
-</html>
diff --git a/frontend/src/components/renderers/Latex.js b/frontend/src/components/renderers/Latex.js
index 6915f75..dcb9ea3 100644
--- a/frontend/src/components/renderers/Latex.js
+++ b/frontend/src/components/renderers/Latex.js
@@ -20,8 +20,6 @@ class Latex extends React.Component {
}
}).flat()
- console.log(els)
-
// if <=1 lines, just render block
if (els.length <= 1) {
return (