mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-11 00:38:28 +03:00
last one out
This commit is contained in:
+200
-199
@@ -1,201 +1,202 @@
|
||||
{
|
||||
"name": "tachi-client",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"start": "node scripts/start.js -o",
|
||||
"build": "node scripts/build.js",
|
||||
"test": "node scripts/test.js",
|
||||
"lint": "eslint src --fix",
|
||||
"format": "prettier --write \"src/**/*.{js,css,scss,html}\""
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
">0.2%",
|
||||
"not dead",
|
||||
"not op_mini all",
|
||||
"ie 11"
|
||||
],
|
||||
"development": [
|
||||
"last 1 chrome version",
|
||||
"last 1 firefox version",
|
||||
"last 1 safari version",
|
||||
"last 1 edge version",
|
||||
"IE 11"
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "7.6.0",
|
||||
"@date-io/date-fns": "2.6.1",
|
||||
"@formatjs/intl-pluralrules": "1.3.5",
|
||||
"@fortawesome/fontawesome-free": "5.13.0",
|
||||
"@material-ui/core": "4.9.14",
|
||||
"@material-ui/icons": "4.9.1",
|
||||
"@material-ui/lab": "4.0.0-alpha.53",
|
||||
"@material-ui/pickers": "3.2.10",
|
||||
"@material-ui/styles": "4.9.14",
|
||||
"@svgr/webpack": "4.3.2",
|
||||
"@tanem/svg-injector": "8.0.50",
|
||||
"@types/jest": "26.0.23",
|
||||
"@types/node": "16.0.0",
|
||||
"@types/react": "17.0.13",
|
||||
"@types/react-dom": "17.0.8",
|
||||
"@types/react-router": "5.1.15",
|
||||
"@types/react-router-dom": "5.1.7",
|
||||
"@typescript-eslint/eslint-plugin": "^2.2.0",
|
||||
"@typescript-eslint/parser": "^2.2.0",
|
||||
"apexcharts": "3.19.2",
|
||||
"babel-eslint": "10.0.3",
|
||||
"babel-jest": "^24.9.0",
|
||||
"babel-loader": "8.0.6",
|
||||
"babel-plugin-named-asset-import": "^0.3.4",
|
||||
"babel-preset-react-app": "^9.0.2",
|
||||
"bootstrap": "4.6.0",
|
||||
"camelcase": "^5.2.0",
|
||||
"case-sensitive-paths-webpack-plugin": "2.2.0",
|
||||
"clipboard-copy": "3.1.0",
|
||||
"clsx": "1.1.0",
|
||||
"css-loader": "2.1.1",
|
||||
"date-fns": "2.8.1",
|
||||
"dotenv": "6.2.0",
|
||||
"dotenv-expand": "5.1.0",
|
||||
"downshift": "3.4.2",
|
||||
"eslint": "^6.1.0",
|
||||
"eslint-config-react-app": "^5.0.2",
|
||||
"eslint-loader": "3.0.2",
|
||||
"eslint-plugin-flowtype": "3.13.0",
|
||||
"eslint-plugin-import": "2.18.2",
|
||||
"eslint-plugin-jsx-a11y": "6.2.3",
|
||||
"eslint-plugin-react": "7.14.3",
|
||||
"fg-loadcss": "2.1.0",
|
||||
"file-loader": "3.0.1",
|
||||
"fs-extra": "7.0.1",
|
||||
"html-webpack-plugin": "4.0.0-beta.5",
|
||||
"identity-obj-proxy": "3.0.0",
|
||||
"is-wsl": "^1.1.0",
|
||||
"jest": "24.9.0",
|
||||
"jest-environment-jsdom-fourteen": "0.1.0",
|
||||
"jest-resolve": "24.9.0",
|
||||
"jest-watch-typeahead": "0.4.0",
|
||||
"lodash": "4.17.15",
|
||||
"material-ui-popup-state": "1.4.1",
|
||||
"mini-css-extract-plugin": "0.8.0",
|
||||
"optimize-css-assets-webpack-plugin": "5.0.3",
|
||||
"perfect-scrollbar": "1.5.0",
|
||||
"pnp-webpack-plugin": "1.5.0",
|
||||
"postcss-flexbugs-fixes": "4.1.0",
|
||||
"postcss-loader": "3.0.0",
|
||||
"postcss-normalize": "7.0.1",
|
||||
"postcss-preset-env": "6.7.0",
|
||||
"postcss-safe-parser": "4.0.1",
|
||||
"react": "16.12.0",
|
||||
"react-app-polyfill": "^1.0.4",
|
||||
"react-bootstrap": "1.0.1",
|
||||
"react-bootstrap-table-next": "4.0.2",
|
||||
"react-bootstrap-table2-paginator": "2.1.2",
|
||||
"react-datepicker": "2.16.0",
|
||||
"react-dev-utils": "^9.1.0",
|
||||
"react-dom": "16.12.0",
|
||||
"react-draggable": "4.4.2",
|
||||
"react-inlinesvg": "1.2.0",
|
||||
"react-intl": "3.6.2",
|
||||
"react-is": "16.13.1",
|
||||
"react-perfect-scrollbar": "1.5.8",
|
||||
"react-portal": "4.2.0",
|
||||
"react-router": "5.2.0",
|
||||
"react-router-dom": "5.1.2",
|
||||
"react-select": "3.1.0",
|
||||
"react-swipeable-views": "0.13.9",
|
||||
"react-swipeable-views-utils": "0.14.0",
|
||||
"react-syntax-highlighter": "12.2.1",
|
||||
"react-window": "1.8.5",
|
||||
"resolve": "1.12.0",
|
||||
"resolve-url-loader": "3.1.0",
|
||||
"sass-loader": "7.2.0",
|
||||
"semver": "6.3.0",
|
||||
"socicon": "3.0.5",
|
||||
"style-loader": "1.0.0",
|
||||
"terser-webpack-plugin": "1.4.1",
|
||||
"ts-pnp": "1.1.4",
|
||||
"typescript": "4.3.5",
|
||||
"url-loader": "2.1.0",
|
||||
"webpack": "4.41.0",
|
||||
"webpack-dev-server": "3.2.1",
|
||||
"webpack-manifest-plugin": "2.1.1",
|
||||
"workbox-webpack-plugin": "4.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "4.28.1",
|
||||
"@typescript-eslint/parser": "4.28.1",
|
||||
"copyfiles": "2.1.1",
|
||||
"eslint": "7.30.0",
|
||||
"eslint-config-prettier": "8.3.0",
|
||||
"eslint-plugin-import": "2.23.4",
|
||||
"eslint-plugin-prettier": "3.4.0",
|
||||
"eslint-plugin-react-hooks": "^1.7.0",
|
||||
"prettier": "1.19.1",
|
||||
"sass": "1.32.8",
|
||||
"serve": "11.2.0",
|
||||
"webpack-cli": "3.3.11",
|
||||
"webpack-messages": "2.0.4",
|
||||
"webpack-rtl-plugin": "2.0.0"
|
||||
},
|
||||
"jest": {
|
||||
"roots": [
|
||||
"<rootDir>/src"
|
||||
],
|
||||
"collectCoverageFrom": [
|
||||
"src/**/*.{js,jsx,ts,tsx}",
|
||||
"!src/**/*.d.ts"
|
||||
],
|
||||
"setupFiles": [
|
||||
"react-app-polyfill/jsdom"
|
||||
],
|
||||
"setupFilesAfterEnv": [],
|
||||
"testMatch": [
|
||||
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
|
||||
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
|
||||
],
|
||||
"testEnvironment": "jest-environment-jsdom-fourteen",
|
||||
"transform": {
|
||||
"^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/babel-jest",
|
||||
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
|
||||
"^(?!.*\\.(js|jsx|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
|
||||
},
|
||||
"transformIgnorePatterns": [
|
||||
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$",
|
||||
"^.+\\.module\\.(css|sass|scss)$"
|
||||
],
|
||||
"modulePaths": [
|
||||
"/home/zkldi/repos/projects/Tachi/tachi-client/src"
|
||||
],
|
||||
"moduleNameMapper": {
|
||||
"^react-native$": "react-native-web",
|
||||
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
|
||||
},
|
||||
"moduleFileExtensions": [
|
||||
"web.js",
|
||||
"js",
|
||||
"web.ts",
|
||||
"ts",
|
||||
"web.tsx",
|
||||
"tsx",
|
||||
"json",
|
||||
"web.jsx",
|
||||
"jsx",
|
||||
"node"
|
||||
],
|
||||
"watchPlugins": [
|
||||
"jest-watch-typeahead/filename",
|
||||
"jest-watch-typeahead/testname"
|
||||
]
|
||||
},
|
||||
"babel": {
|
||||
"presets": [
|
||||
"react-app"
|
||||
]
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "react-app"
|
||||
}
|
||||
"name": "tachi-client",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"start": "node scripts/start.js -o",
|
||||
"build": "node scripts/build.js",
|
||||
"test": "node scripts/test.js",
|
||||
"lint": "eslint src --fix",
|
||||
"format": "prettier --write \"src/**/*.{js,css,scss,html}\""
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
">0.2%",
|
||||
"not dead",
|
||||
"not op_mini all",
|
||||
"ie 11"
|
||||
],
|
||||
"development": [
|
||||
"last 1 chrome version",
|
||||
"last 1 firefox version",
|
||||
"last 1 safari version",
|
||||
"last 1 edge version",
|
||||
"IE 11"
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "7.6.0",
|
||||
"@date-io/date-fns": "2.6.1",
|
||||
"@formatjs/intl-pluralrules": "1.3.5",
|
||||
"@fortawesome/fontawesome-free": "5.13.0",
|
||||
"@material-ui/core": "4.9.14",
|
||||
"@material-ui/icons": "4.9.1",
|
||||
"@material-ui/lab": "4.0.0-alpha.53",
|
||||
"@material-ui/pickers": "3.2.10",
|
||||
"@material-ui/styles": "4.9.14",
|
||||
"@svgr/webpack": "4.3.2",
|
||||
"@tanem/svg-injector": "8.0.50",
|
||||
"@types/jest": "26.0.23",
|
||||
"@types/node": "16.0.0",
|
||||
"@types/react": "17.0.13",
|
||||
"@types/react-dom": "17.0.8",
|
||||
"@types/react-router": "5.1.15",
|
||||
"@types/react-router-dom": "5.1.7",
|
||||
"@typescript-eslint/eslint-plugin": "^2.2.0",
|
||||
"@typescript-eslint/parser": "^2.2.0",
|
||||
"apexcharts": "3.19.2",
|
||||
"babel-eslint": "10.0.3",
|
||||
"babel-jest": "^24.9.0",
|
||||
"babel-loader": "8.0.6",
|
||||
"babel-plugin-named-asset-import": "^0.3.4",
|
||||
"babel-preset-react-app": "^9.0.2",
|
||||
"bootstrap": "4.6.0",
|
||||
"camelcase": "^5.2.0",
|
||||
"case-sensitive-paths-webpack-plugin": "2.2.0",
|
||||
"clipboard-copy": "3.1.0",
|
||||
"clsx": "1.1.0",
|
||||
"css-loader": "2.1.1",
|
||||
"date-fns": "2.8.1",
|
||||
"dotenv": "6.2.0",
|
||||
"dotenv-expand": "5.1.0",
|
||||
"downshift": "3.4.2",
|
||||
"eslint": "^6.1.0",
|
||||
"eslint-config-react-app": "^5.0.2",
|
||||
"eslint-loader": "3.0.2",
|
||||
"eslint-plugin-flowtype": "3.13.0",
|
||||
"eslint-plugin-import": "2.18.2",
|
||||
"eslint-plugin-jsx-a11y": "6.2.3",
|
||||
"eslint-plugin-react": "7.14.3",
|
||||
"fg-loadcss": "2.1.0",
|
||||
"file-loader": "3.0.1",
|
||||
"fs-extra": "7.0.1",
|
||||
"html-webpack-plugin": "4.0.0-beta.5",
|
||||
"identity-obj-proxy": "3.0.0",
|
||||
"is-wsl": "^1.1.0",
|
||||
"jest": "24.9.0",
|
||||
"jest-environment-jsdom-fourteen": "0.1.0",
|
||||
"jest-resolve": "24.9.0",
|
||||
"jest-watch-typeahead": "0.4.0",
|
||||
"lodash": "4.17.15",
|
||||
"material-ui-popup-state": "1.4.1",
|
||||
"mini-css-extract-plugin": "0.8.0",
|
||||
"optimize-css-assets-webpack-plugin": "5.0.3",
|
||||
"perfect-scrollbar": "1.5.0",
|
||||
"pnp-webpack-plugin": "1.5.0",
|
||||
"postcss-flexbugs-fixes": "4.1.0",
|
||||
"postcss-loader": "3.0.0",
|
||||
"postcss-normalize": "7.0.1",
|
||||
"postcss-preset-env": "6.7.0",
|
||||
"postcss-safe-parser": "4.0.1",
|
||||
"react": "16.12.0",
|
||||
"react-app-polyfill": "^1.0.4",
|
||||
"react-bootstrap": "1.0.1",
|
||||
"react-bootstrap-table-next": "4.0.2",
|
||||
"react-bootstrap-table2-paginator": "2.1.2",
|
||||
"react-datepicker": "2.16.0",
|
||||
"react-dev-utils": "^9.1.0",
|
||||
"react-dom": "16.12.0",
|
||||
"react-draggable": "4.4.2",
|
||||
"react-inlinesvg": "1.2.0",
|
||||
"react-intl": "3.6.2",
|
||||
"react-is": "16.13.1",
|
||||
"react-perfect-scrollbar": "1.5.8",
|
||||
"react-portal": "4.2.0",
|
||||
"react-router": "5.2.0",
|
||||
"react-router-dom": "5.1.2",
|
||||
"react-select": "3.1.0",
|
||||
"react-swipeable-views": "0.13.9",
|
||||
"react-swipeable-views-utils": "0.14.0",
|
||||
"react-syntax-highlighter": "12.2.1",
|
||||
"react-window": "1.8.5",
|
||||
"resolve": "1.12.0",
|
||||
"resolve-url-loader": "3.1.0",
|
||||
"sass-loader": "7.2.0",
|
||||
"semver": "6.3.0",
|
||||
"socicon": "3.0.5",
|
||||
"style-loader": "1.0.0",
|
||||
"terser-webpack-plugin": "1.4.1",
|
||||
"ts-pnp": "1.1.4",
|
||||
"typescript": "4.3.5",
|
||||
"url-loader": "2.1.0",
|
||||
"webpack": "4.41.0",
|
||||
"webpack-dev-server": "3.2.1",
|
||||
"webpack-manifest-plugin": "2.1.1",
|
||||
"workbox-webpack-plugin": "4.3.1",
|
||||
"tachi-common": "github:zkldi/tachi-common"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "4.28.1",
|
||||
"@typescript-eslint/parser": "4.28.1",
|
||||
"copyfiles": "2.1.1",
|
||||
"eslint": "7.30.0",
|
||||
"eslint-config-prettier": "8.3.0",
|
||||
"eslint-plugin-import": "2.23.4",
|
||||
"eslint-plugin-prettier": "3.4.0",
|
||||
"eslint-plugin-react-hooks": "^1.7.0",
|
||||
"prettier": "1.19.1",
|
||||
"sass": "1.32.8",
|
||||
"serve": "11.2.0",
|
||||
"webpack-cli": "3.3.11",
|
||||
"webpack-messages": "2.0.4",
|
||||
"webpack-rtl-plugin": "2.0.0"
|
||||
},
|
||||
"jest": {
|
||||
"roots": [
|
||||
"<rootDir>/src"
|
||||
],
|
||||
"collectCoverageFrom": [
|
||||
"src/**/*.{js,jsx,ts,tsx}",
|
||||
"!src/**/*.d.ts"
|
||||
],
|
||||
"setupFiles": [
|
||||
"react-app-polyfill/jsdom"
|
||||
],
|
||||
"setupFilesAfterEnv": [],
|
||||
"testMatch": [
|
||||
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
|
||||
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
|
||||
],
|
||||
"testEnvironment": "jest-environment-jsdom-fourteen",
|
||||
"transform": {
|
||||
"^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/babel-jest",
|
||||
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
|
||||
"^(?!.*\\.(js|jsx|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
|
||||
},
|
||||
"transformIgnorePatterns": [
|
||||
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$",
|
||||
"^.+\\.module\\.(css|sass|scss)$"
|
||||
],
|
||||
"modulePaths": [
|
||||
"/home/zkldi/repos/projects/Tachi/tachi-client/src"
|
||||
],
|
||||
"moduleNameMapper": {
|
||||
"^react-native$": "react-native-web",
|
||||
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
|
||||
},
|
||||
"moduleFileExtensions": [
|
||||
"web.js",
|
||||
"js",
|
||||
"web.ts",
|
||||
"ts",
|
||||
"web.tsx",
|
||||
"tsx",
|
||||
"json",
|
||||
"web.jsx",
|
||||
"jsx",
|
||||
"node"
|
||||
],
|
||||
"watchPlugins": [
|
||||
"jest-watch-typeahead/filename",
|
||||
"jest-watch-typeahead/testname"
|
||||
]
|
||||
},
|
||||
"babel": {
|
||||
"presets": [
|
||||
"react-app"
|
||||
]
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "react-app"
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+829
File diff suppressed because it is too large
Load Diff
@@ -19,8 +19,7 @@
|
||||
"plugin:prettier/recommended",
|
||||
"plugin:import/typescript",
|
||||
"plugin:import/warnings",
|
||||
"plugin:import/errors",
|
||||
"plugin:react-hooks/recommended"
|
||||
"plugin:import/errors"
|
||||
],
|
||||
"rules": {
|
||||
"prettier/prettier": [
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
|
||||
export function DashboardPage() {
|
||||
return <>Dashboard</>;
|
||||
return <>To be honest, I have no idea what is going to go here just yet.</>;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
import { createContext } from "react";
|
||||
import { PublicUserDocument } from "tachi-common";
|
||||
|
||||
/**
|
||||
* Contains the current user's user document.
|
||||
*/
|
||||
export const UserContext = createContext<PublicUserDocument | null>(null);
|
||||
UserContext.displayName = "UserContext";
|
||||
Reference in New Issue
Block a user