chore: faq

This commit is contained in:
zerosoul
2022-05-09 10:21:12 +08:00
parent 0f89bf4ff5
commit f3b82295d6
2 changed files with 146 additions and 131 deletions
+130 -130
View File
@@ -1,132 +1,132 @@
{ {
"name": "rustchat-web", "name": "rustchat-web",
"version": "1.0.0", "version": "0.2.6",
"private": true, "private": true,
"homepage": "http://privoce.rustchat.com", "homepage": "https://privoce.rustchat.com",
"dependencies": { "dependencies": {
"@babel/core": "^7.17.10", "@babel/core": "^7.17.10",
"@emoji-mart/data": "^1.0.1", "@emoji-mart/data": "^1.0.1",
"@metamask/onboarding": "^1.0.1", "@metamask/onboarding": "^1.0.1",
"@microsoft/fetch-event-source": "^2.0.1", "@microsoft/fetch-event-source": "^2.0.1",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.5", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.5",
"@reduxjs/toolkit": "^1.8.1", "@reduxjs/toolkit": "^1.8.1",
"@svgr/webpack": "^6.2.1", "@svgr/webpack": "^6.2.1",
"@tippyjs/react": "^4.2.6", "@tippyjs/react": "^4.2.6",
"@toast-ui/editor": "^3.1.5", "@toast-ui/editor": "^3.1.5",
"@toast-ui/editor-plugin-code-syntax-highlight": "^3.0.0", "@toast-ui/editor-plugin-code-syntax-highlight": "^3.0.0",
"@toast-ui/react-editor": "^3.1.5", "@toast-ui/react-editor": "^3.1.5",
"@udecode/plate": "^10.8.0", "@udecode/plate": "^10.8.0",
"@uiball/loaders": "^1.2.6", "@uiball/loaders": "^1.2.6",
"animate.css": "^4.1.1", "animate.css": "^4.1.1",
"babel-loader": "^8.2.5", "babel-loader": "^8.2.5",
"babel-plugin-named-asset-import": "^0.3.8", "babel-plugin-named-asset-import": "^0.3.8",
"babel-preset-react-app": "^10.0.1", "babel-preset-react-app": "^10.0.1",
"bfj": "^7.0.2", "bfj": "^7.0.2",
"browserslist": "^4.20.3", "browserslist": "^4.20.3",
"camelcase": "^6.3.0", "camelcase": "^6.3.0",
"case-sensitive-paths-webpack-plugin": "^2.4.0", "case-sensitive-paths-webpack-plugin": "^2.4.0",
"css-loader": "^6.7.1", "css-loader": "^6.7.1",
"css-minimizer-webpack-plugin": "^3.4.1", "css-minimizer-webpack-plugin": "^3.4.1",
"dayjs": "^1.11.1", "dayjs": "^1.11.1",
"dotenv": "^16.0.0", "dotenv": "^16.0.0",
"dotenv-expand": "^8.0.3", "dotenv-expand": "^8.0.3",
"emoji-mart": "3.0.1", "emoji-mart": "3.0.1",
"eslint": "^8.14.0", "eslint": "^8.14.0",
"file-loader": "^6.2.0", "file-loader": "^6.2.0",
"firebase": "^9.7.0", "firebase": "^9.7.0",
"fs-extra": "^10.1.0", "fs-extra": "^10.1.0",
"html-webpack-plugin": "^5.5.0", "html-webpack-plugin": "^5.5.0",
"interactjs": "^1.10.11", "interactjs": "^1.10.11",
"linkify-it": "3.0.3", "linkify-it": "3.0.3",
"linkify-plugin-mention": "^3.0.4", "linkify-plugin-mention": "^3.0.4",
"linkifyjs": "^3.0.5", "linkifyjs": "^3.0.5",
"localforage": "^1.10.0", "localforage": "^1.10.0",
"masonry-layout": "^4.2.2", "masonry-layout": "^4.2.2",
"mini-css-extract-plugin": "^2.6.0", "mini-css-extract-plugin": "^2.6.0",
"re-resizable": "^6.9.9", "re-resizable": "^6.9.9",
"react": "^18.1.0", "react": "^18.1.0",
"react-circular-progressbar": "^2.0.4", "react-circular-progressbar": "^2.0.4",
"react-dev-utils": "^12.0.1", "react-dev-utils": "^12.0.1",
"react-dnd": "16.0.1", "react-dnd": "16.0.1",
"react-dnd-html5-backend": "16.0.1", "react-dnd-html5-backend": "16.0.1",
"react-dom": "^18.1.0", "react-dom": "^18.1.0",
"react-google-login": "^5.2.2", "react-google-login": "^5.2.2",
"react-helmet": "^6.1.0", "react-helmet": "^6.1.0",
"react-hot-toast": "^2.2.0", "react-hot-toast": "^2.2.0",
"react-icons": "^4.3.1", "react-icons": "^4.3.1",
"react-linkify": "^1.0.0-alpha", "react-linkify": "^1.0.0-alpha",
"react-pdf": "^5.7.2", "react-pdf": "^5.7.2",
"react-redux": "^8.0.1", "react-redux": "^8.0.1",
"react-refresh": "0.13.0", "react-refresh": "0.13.0",
"react-router-dom": "6", "react-router-dom": "6",
"react-string-replace": "^1.1.0", "react-string-replace": "^1.1.0",
"react-textarea-autosize": "^8.3.3", "react-textarea-autosize": "^8.3.3",
"react-window": "^1.8.7", "react-window": "^1.8.7",
"resolve": "^1.22.0", "resolve": "^1.22.0",
"rooks": "^5.11.0", "rooks": "^5.11.0",
"semver": "^7.3.7", "semver": "^7.3.7",
"slate": "^0.78.0", "slate": "^0.78.0",
"slate-auto-replace": "^0.12.1", "slate-auto-replace": "^0.12.1",
"slate-history": "^0.66.0", "slate-history": "^0.66.0",
"slate-hyperscript": "^0.77.0", "slate-hyperscript": "^0.77.0",
"slate-react": "^0.79.0", "slate-react": "^0.79.0",
"source-map-loader": "^3.0.1", "source-map-loader": "^3.0.1",
"style-loader": "^3.3.1", "style-loader": "^3.3.1",
"styled-components": "^5.3.5", "styled-components": "^5.3.5",
"styled-reset": "^4.3.4", "styled-reset": "^4.3.4",
"terser-webpack-plugin": "^5.3.1", "terser-webpack-plugin": "^5.3.1",
"tippy.js": "^6.3.7", "tippy.js": "^6.3.7",
"webpack": "^5.72.0", "webpack": "^5.72.0",
"webpack-dev-server": "^4.9.0", "webpack-dev-server": "^4.9.0",
"webpack-manifest-plugin": "^5.0.0", "webpack-manifest-plugin": "^5.0.0",
"workbox-webpack-plugin": "^6.5.3" "workbox-webpack-plugin": "^6.5.3"
}, },
"resolutions": { "resolutions": {
"prosemirror-tables": "^1.1.1" "prosemirror-tables": "^1.1.1"
}, },
"scripts": { "scripts": {
"start": "REACT_APP_BUILD_TIME=$(date +%s) node scripts/start.js", "start": "REACT_APP_BUILD_TIME=$(date +%s) node scripts/start.js",
"build": "REACT_APP_BUILD_TIME=$(date +%s) node scripts/build.js", "build": "REACT_APP_BUILD_TIME=$(date +%s) node scripts/build.js",
"deploy": "yarn build && gh-pages -d build", "deploy": "yarn build && gh-pages -d build",
"lint": "lint-staged", "lint": "lint-staged",
"prepare": "husky install", "prepare": "husky install",
"postinstall": "patch-package" "postinstall": "patch-package"
}, },
"browserslist": { "browserslist": {
"production": [ "production": [
"last 5 chrome version", "last 5 chrome version",
"last 5 firefox version", "last 5 firefox version",
"last 5 safari version" "last 5 safari version"
], ],
"development": [ "development": [
"last 1 chrome version", "last 1 chrome version",
"last 1 firefox version", "last 1 firefox version",
"last 1 safari version" "last 1 safari version"
] ]
}, },
"babel": { "babel": {
"presets": [ "presets": [
"react-app" "react-app"
] ]
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^16.2.4", "@commitlint/cli": "^16.2.4",
"@commitlint/config-conventional": "^16.2.4", "@commitlint/config-conventional": "^16.2.4",
"autoprefixer": "^10.4.7", "autoprefixer": "^10.4.7",
"eslint-config-prettier": "^8.5.0", "eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0", "eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.0.0", "eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.29.4", "eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "^4.5.0", "eslint-plugin-react-hooks": "^4.5.0",
"gh-pages": "^3.2.3", "gh-pages": "^3.2.3",
"husky": "^7.0.4", "husky": "^7.0.4",
"lint-staged": "^12.4.1", "lint-staged": "^12.4.1",
"patch-package": "^6.4.7", "patch-package": "^6.4.7",
"postcss": "^8.4.13", "postcss": "^8.4.13",
"postcss-flexbugs-fixes": "^5.0.2", "postcss-flexbugs-fixes": "^5.0.2",
"postcss-loader": "^6.2.1", "postcss-loader": "^6.2.1",
"postcss-preset-env": "^7.5.0", "postcss-preset-env": "^7.5.0",
"postinstall-postinstall": "^2.1.0", "postinstall-postinstall": "^2.1.0",
"prettier": "^2.6.2" "prettier": "^2.6.2"
} }
} }
+16 -1
View File
@@ -1,5 +1,20 @@
// import React from "react"; // import React from "react";
import styled from "styled-components";
import pkg from "../../../package.json";
const Styled = styled.div`
display: flex;
flex-direction: column;
gap: 12px;
`;
export default function FAQ() { export default function FAQ() {
console.log("build time", process.env); console.log("build time", process.env);
return <div>Build Timestamp: {process.env.REACT_APP_BUILD_TIME}</div>; return (
<Styled>
<div className="item">
Build Timestamp: {process.env.REACT_APP_BUILD_TIME}
</div>
<div className="item">Version: {pkg.version}</div>
</Styled>
);
} }