2023-02-26 01:02
This commit is contained in:
23
mui-home/.gitignore
vendored
Normal file
23
mui-home/.gitignore
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||
|
||||
# dependencies
|
||||
/node_modules
|
||||
/.pnp
|
||||
.pnp.js
|
||||
|
||||
# testing
|
||||
/coverage
|
||||
|
||||
# production
|
||||
/build
|
||||
|
||||
# misc
|
||||
.DS_Store
|
||||
.env.local
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
1
mui-home/.vscode/configurationCache.log
vendored
Normal file
1
mui-home/.vscode/configurationCache.log
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"buildTargets":[],"launchTargets":[],"customConfigurationProvider":{"workspaceBrowse":{"browsePath":[],"compilerArgs":[]},"fileIndex":[]}}
|
||||
5
mui-home/.vscode/dryrun.log
vendored
Normal file
5
mui-home/.vscode/dryrun.log
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
make: 디렉터리 '/media/elex/UltraFit/Workspace/react-examples/mui-home' 들어감
|
||||
make: 디렉터리 '/media/elex/UltraFit/Workspace/react-examples/mui-home' 나감
|
||||
|
||||
make: *** 타겟이 지정되지 않았고 메이크파일이 없습니다. 멈춤.
|
||||
|
||||
3
mui-home/.vscode/settings.json
vendored
Normal file
3
mui-home/.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"makefile.extensionOutputFolder": "./.vscode"
|
||||
}
|
||||
323
mui-home/.vscode/targets.log
vendored
Normal file
323
mui-home/.vscode/targets.log
vendored
Normal file
@@ -0,0 +1,323 @@
|
||||
make all --print-data-base --no-builtin-variables --no-builtin-rules --question
|
||||
make: *** 타겟 'all'을(를) 만들 규칙이 없습니다. 멈춤.
|
||||
|
||||
# GNU Make 4.2.1
|
||||
# x86_64-pc-linux-gnu 빌드
|
||||
# Copyright (C) 1988-2016 Free Software Foundation, Inc.
|
||||
# 라이선스 GPLv3+: GNU GPL 버전 3 또는 이후 <http://gnu.org/licenses/gpl.html>
|
||||
# This is free software: you are free to change and redistribute it.
|
||||
# There is NO WARRANTY, to the extent permitted by law.
|
||||
|
||||
# 메이크 데이터베이스, Sun Feb 28 10:49:00 2021
|
||||
에 표시
|
||||
# 변수
|
||||
|
||||
# 'override' 지시자
|
||||
GNUMAKEFLAGS :=
|
||||
# 자동
|
||||
<D = $(patsubst %/,%,$(dir $<))
|
||||
# 자동
|
||||
?F = $(notdir $?)
|
||||
# 환경
|
||||
PAPERSIZE = a4
|
||||
# 환경
|
||||
DESKTOP_SESSION = ubuntu
|
||||
# 기본값
|
||||
.SHELLFLAGS := -c
|
||||
# 환경
|
||||
XDG_SESSION_CLASS = user
|
||||
# 환경
|
||||
XDG_SESSION_TYPE = x11
|
||||
# 환경
|
||||
VSCODE_LOG_NATIVE = false
|
||||
# 자동
|
||||
?D = $(patsubst %/,%,$(dir $?))
|
||||
# 자동
|
||||
@D = $(patsubst %/,%,$(dir $@))
|
||||
# 환경
|
||||
XAUTHORITY = /run/user/1000/gdm/Xauthority
|
||||
# 환경
|
||||
GDMSESSION = ubuntu
|
||||
# 환경
|
||||
XMODIFIERS = @im=ibus
|
||||
# 메이크파일
|
||||
CURDIR := /media/elex/UltraFit/Workspace/react-examples/mui-home
|
||||
# 메이크파일
|
||||
SHELL = /bin/sh
|
||||
# 환경
|
||||
VTE_VERSION = 6003
|
||||
# 환경
|
||||
VSCODE_NLS_CONFIG = {"locale":"ko","availableLanguages":{"*":"ko"},"_languagePackId":"069599fe880ff433e2737019996a837e.ko","_translationsConfigFile":"/home/elex/.config/Code/clp/069599fe880ff433e2737019996a837e.ko/tcf.json","_cacheRoot":"/home/elex/.config/Code/clp/069599fe880ff433e2737019996a837e.ko","_resolvedLanguagePackCoreLocation":"/home/elex/.config/Code/clp/069599fe880ff433e2737019996a837e.ko/622cb03f7e070a9670c94bae1a45d78d7181fbd4","_corruptedFile":"/home/elex/.config/Code/clp/069599fe880ff433e2737019996a837e.ko/corrupted.info","_languagePackSupport":true}
|
||||
# 환경
|
||||
JOURNAL_STREAM = 8:70774
|
||||
# 환경
|
||||
XDG_CONFIG_DIRS = /etc/xdg/xdg-ubuntu:/etc/xdg
|
||||
# 메이크파일
|
||||
MAKEFILE_LIST :=
|
||||
# 자동
|
||||
@F = $(notdir $@)
|
||||
# 환경
|
||||
IM_CONFIG_PHASE = 1
|
||||
# 환경
|
||||
USERNAME = elex
|
||||
# 환경
|
||||
MAKELEVEL := 0
|
||||
# 환경
|
||||
MANDATORY_PATH = /usr/share/gconf/ubuntu.mandatory.path
|
||||
# 환경
|
||||
XDG_DATA_DIRS = /usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
|
||||
# 환경
|
||||
DBUS_SESSION_BUS_ADDRESS = unix:path=/run/user/1000/bus,guid=897330ae045347a9ef2fa2a2603af116
|
||||
# 환경
|
||||
VSCODE_VERBOSE_LOGGING = true
|
||||
# 환경
|
||||
PERL_MM_OPT = INSTALL_BASE=/home/elex/perl5
|
||||
# 환경
|
||||
_ = /usr/bin/code
|
||||
# 환경
|
||||
MANAGERPID = 6028
|
||||
# 환경
|
||||
LESSOPEN = | /usr/bin/lesspipe %s
|
||||
# 환경
|
||||
LC_NAME = ko_KR.UTF-8
|
||||
# 기본값
|
||||
MAKE_HOST := x86_64-pc-linux-gnu
|
||||
# 환경
|
||||
PATH = /home/elex/perl5/bin:/opt/proguard/7.0.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
|
||||
# 환경
|
||||
GPG_AGENT_INFO = /run/user/1000/gnupg/S.gpg-agent:0:1
|
||||
# 환경
|
||||
SESSION_MANAGER = local/ideapad:@/tmp/.ICE-unix/6253,unix/ideapad:/tmp/.ICE-unix/6253
|
||||
# 환경
|
||||
XDG_RUNTIME_DIR = /run/user/1000
|
||||
# 환경
|
||||
XDG_MENU_PREFIX = gnome-
|
||||
# 환경
|
||||
VSCODE_LOG_STACK = false
|
||||
# 환경
|
||||
VSCODE_CRASH_REPORTER_START_OPTIONS = {"companyName":"Microsoft","productName":"VSCode","submitURL":"appcenter://code?aid=fba07a4d-84bd-4fc8-a125-9640fc8ce171&uid=9bdc36fc-78a1-4e3b-89d8-c3f91c5cc872&iid=9bdc36fc-78a1-4e3b-89d8-c3f91c5cc872&sid=9bdc36fc-78a1-4e3b-89d8-c3f91c5cc872","uploadToServer":true}
|
||||
# 환경
|
||||
INVOCATION_ID = cd7fca1a5aa94482bcd6e3e4e08f0ef5
|
||||
# 기본값
|
||||
.FEATURES := target-specific order-only second-expansion else-if shortest-stem undefine oneshell archives jobserver output-sync check-symlink load
|
||||
# 환경
|
||||
LS_COLORS = rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
|
||||
# 환경
|
||||
XDG_SESSION_DESKTOP = ubuntu
|
||||
# 환경
|
||||
SSH_AUTH_SOCK = /run/user/1000/keyring/ssh
|
||||
# 자동
|
||||
%F = $(notdir $%)
|
||||
# 환경
|
||||
DISPLAY = :0
|
||||
# 환경
|
||||
VSCODE_PIPE_LOGGING = true
|
||||
# 환경
|
||||
PWD = /home/elex/Workspace/react-examples/mui-home
|
||||
# 기본값
|
||||
.LOADED :=
|
||||
# 환경
|
||||
SSH_AGENT_PID = 6217
|
||||
# 환경
|
||||
ORIGINAL_XDG_CURRENT_DESKTOP = ubuntu:GNOME
|
||||
# 환경
|
||||
GTK_MODULES = gail:atk-bridge
|
||||
# 환경
|
||||
VSCODE_AMD_ENTRYPOINT = vs/workbench/services/extensions/node/extensionHostProcess
|
||||
# 환경
|
||||
HOME = /home/elex
|
||||
# 환경
|
||||
PERL_MB_OPT = --install_base "/home/elex/perl5"
|
||||
# 환경
|
||||
LESSCLOSE = /usr/bin/lesspipe %s %s
|
||||
# 환경
|
||||
PERL_LOCAL_LIB_ROOT = /home/elex/perl5
|
||||
# 환경
|
||||
VSCODE_CLI = 1
|
||||
# 환경
|
||||
PERL5LIB = /home/elex/perl5/lib/perl5
|
||||
# 환경
|
||||
LOGNAME = elex
|
||||
# 환경
|
||||
APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL = true
|
||||
# 자동
|
||||
+F = $(notdir $+)
|
||||
# 환경
|
||||
VSCODE_HANDLES_UNCAUGHT_ERRORS = true
|
||||
# 환경
|
||||
GNOME_DESKTOP_SESSION_ID = this-is-deprecated
|
||||
# 자동
|
||||
^D = $(patsubst %/,%,$(dir $^))
|
||||
# 환경
|
||||
LC_TIME = ko_KR.UTF-8
|
||||
# 환경
|
||||
COLORTERM = truecolor
|
||||
# 기본값
|
||||
MAKE = $(MAKE_COMMAND)
|
||||
# 기본값
|
||||
MAKECMDGOALS := all
|
||||
# 환경
|
||||
QT_IM_MODULE = ibus
|
||||
# 환경
|
||||
SHLVL = 1
|
||||
# 환경
|
||||
GNOME_SHELL_SESSION_MODE = ubuntu
|
||||
# 환경
|
||||
VSCODE_IPC_HOOK_EXTHOST = /run/user/1000/vscode-ipc-fd14a28d-fbe1-4a54-9c8d-82f19b6b6a4d.sock
|
||||
# 기본값
|
||||
MAKE_VERSION := 4.2.1
|
||||
# 환경
|
||||
USER = elex
|
||||
# 환경
|
||||
LC_MONETARY = ko_KR.UTF-8
|
||||
# 메이크파일
|
||||
.DEFAULT_GOAL :=
|
||||
# 환경
|
||||
XDG_CURRENT_DESKTOP = Unity
|
||||
# 환경
|
||||
LIBVIRT_DEFAULT_URI = qemu:///system
|
||||
# 자동
|
||||
%D = $(patsubst %/,%,$(dir $%))
|
||||
# 환경
|
||||
LC_TELEPHONE = ko_KR.UTF-8
|
||||
# 기본값
|
||||
MAKE_COMMAND := make
|
||||
# 환경
|
||||
VSCODE_NODE_CACHED_DATA_DIR = /home/elex/.config/Code/CachedData/622cb03f7e070a9670c94bae1a45d78d7181fbd4
|
||||
# 기본값
|
||||
.VARIABLES :=
|
||||
# 자동
|
||||
*F = $(notdir $*)
|
||||
# 환경
|
||||
LANGUAGE = ko_KR:en
|
||||
# 환경
|
||||
VSCODE_IPC_HOOK = /run/user/1000/vscode-60192106-1.53.2-main.sock
|
||||
# 메이크파일
|
||||
MAKEFLAGS = pqrR
|
||||
# 환경
|
||||
MFLAGS = -pqrR
|
||||
# 자동
|
||||
*D = $(patsubst %/,%,$(dir $*))
|
||||
# 환경
|
||||
BREAKPAD_DUMP_LOCATION = /home/elex/.config/Code/exthost Crash Reports
|
||||
# 자동
|
||||
+D = $(patsubst %/,%,$(dir $+))
|
||||
# 환경
|
||||
LC_PAPER = ko_KR.UTF-8
|
||||
# 환경
|
||||
QT_ACCESSIBILITY = 1
|
||||
# 환경
|
||||
DEFAULTS_PATH = /usr/share/gconf/ubuntu.default.path
|
||||
# 기본값
|
||||
MAKEFILES :=
|
||||
# 환경
|
||||
LC_NUMERIC = ko_KR.UTF-8
|
||||
# 자동
|
||||
<F = $(notdir $<)
|
||||
# 환경
|
||||
ELECTRON_RUN_AS_NODE = 1
|
||||
# 환경
|
||||
LC_MEASUREMENT = ko_KR.UTF-8
|
||||
# 환경
|
||||
ELECTRON_NO_ATTACH_CONSOLE = 1
|
||||
# 환경
|
||||
DBUS_STARTER_BUS_TYPE = session
|
||||
# 환경
|
||||
GNOME_TERMINAL_SCREEN = /org/gnome/Terminal/screen/4576f823_a226_43de_af72_239059cafd04
|
||||
# 자동
|
||||
^F = $(notdir $^)
|
||||
# 환경
|
||||
GNOME_TERMINAL_SERVICE = :1.84
|
||||
# 기본값
|
||||
SUFFIXES :=
|
||||
# 환경
|
||||
CHROME_DESKTOP = code-url-handler.desktop
|
||||
# 환경
|
||||
WINDOWPATH = 2
|
||||
# 기본값
|
||||
.INCLUDE_DIRS = /usr/include /usr/local/include /usr/include
|
||||
# 환경
|
||||
LC_IDENTIFICATION = ko_KR.UTF-8
|
||||
# 기본값
|
||||
.RECIPEPREFIX :=
|
||||
# 환경
|
||||
LC_ADDRESS = ko_KR.UTF-8
|
||||
# 환경
|
||||
LANG = ko_KR.UTF-8
|
||||
# 환경
|
||||
TERM = xterm-256color
|
||||
# 환경
|
||||
VSCODE_PID = 10721
|
||||
# 환경
|
||||
DBUS_STARTER_ADDRESS = unix:path=/run/user/1000/bus,guid=897330ae045347a9ef2fa2a2603af116
|
||||
# 변수 모음 해시 테이블 통계:
|
||||
# 로드=119/1024=12%, 다시 해시=0, 충돌=18/141=13%
|
||||
|
||||
# 패턴을 위한 변수 값
|
||||
|
||||
# 패턴을 위한 변수 값이 없습니다.
|
||||
|
||||
# 디렉터리
|
||||
|
||||
# . (장치 2049, 아이노드 13900757): 12 파일, 0개 불가능.
|
||||
|
||||
# 12 파일, 0개 디렉토리 1개에서 불가능.
|
||||
|
||||
# 묵시적 규칙
|
||||
|
||||
# 묵시적 규칙 없음.
|
||||
|
||||
# 파일
|
||||
|
||||
# 타겟이 아님:
|
||||
all:
|
||||
# 명령행 타겟.
|
||||
# 묵시적 규칙 탐색이 완료되었습니다.
|
||||
# 파일이 없습니다.
|
||||
# 파일을 업데이트하지 않았습니다.
|
||||
|
||||
# 타겟이 아님:
|
||||
Makefile:
|
||||
# 묵시적 규칙 탐색이 완료되었습니다.
|
||||
# 파일이 없습니다.
|
||||
# 파일을 업데이트했습니다.
|
||||
|
||||
# 업데이트 실패.
|
||||
|
||||
# 타겟이 아님:
|
||||
makefile:
|
||||
# 묵시적 규칙 탐색이 완료되었습니다.
|
||||
# 파일이 없습니다.
|
||||
# 파일을 업데이트했습니다.
|
||||
# 업데이트 실패.
|
||||
|
||||
# 타겟이 아님:
|
||||
.DEFAULT:
|
||||
# 묵시적 규칙 탐색이 완료되지 않았습니다.
|
||||
# 변경 시각이 결코 검사되지 않았음.
|
||||
# 파일을 업데이트하지 않았습니다.
|
||||
|
||||
# 타겟이 아님:
|
||||
GNUmakefile:
|
||||
# 묵시적 규칙 탐색이 완료되었습니다.
|
||||
# 파일이 없습니다.
|
||||
# 파일을 업데이트했습니다.
|
||||
# 업데이트 실패.
|
||||
|
||||
# 파일 해시 테이블 통계:
|
||||
# 로드=6/1024=1%, 다시 해시=0, 충돌=0/15=0%
|
||||
# VPATH 탐색 경로
|
||||
|
||||
# 'vpath' 탐색 경로가 없음.
|
||||
|
||||
# 일반적인 ('VPATH' 변수) 탐색 경로가 없음.
|
||||
|
||||
# strcache 버퍼: 1 (0) / 문자열 = 20 / 저장 공간 = 187 B / 평균 = 9 B
|
||||
# 현재 버퍼: 크기 = 8162 B / 사용 = 187 B / 개수 = 20 / 평균 = 9 B
|
||||
|
||||
# strcache 효율: 검색 = 23 / 히트 비율 = 13%
|
||||
# 해시 테이블 통계:
|
||||
# 로드=20/8192=0%, 다시 해시=0, 충돌=1/23=4%
|
||||
# 메이크 데이터베이스 마침, Sun Feb 28 10:49:00 2021
|
||||
에서
|
||||
|
||||
70
mui-home/README.md
Normal file
70
mui-home/README.md
Normal file
@@ -0,0 +1,70 @@
|
||||
# Getting Started with Create React App
|
||||
|
||||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
||||
|
||||
## Available Scripts
|
||||
|
||||
In the project directory, you can run:
|
||||
|
||||
### `yarn start`
|
||||
|
||||
Runs the app in the development mode.\
|
||||
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
||||
|
||||
The page will reload if you make edits.\
|
||||
You will also see any lint errors in the console.
|
||||
|
||||
### `yarn test`
|
||||
|
||||
Launches the test runner in the interactive watch mode.\
|
||||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
||||
|
||||
### `yarn build`
|
||||
|
||||
Builds the app for production to the `build` folder.\
|
||||
It correctly bundles React in production mode and optimizes the build for the best performance.
|
||||
|
||||
The build is minified and the filenames include the hashes.\
|
||||
Your app is ready to be deployed!
|
||||
|
||||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
||||
|
||||
### `yarn eject`
|
||||
|
||||
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
|
||||
|
||||
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
||||
|
||||
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
|
||||
|
||||
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
|
||||
|
||||
## Learn More
|
||||
|
||||
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
||||
|
||||
To learn React, check out the [React documentation](https://reactjs.org/).
|
||||
|
||||
### Code Splitting
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
|
||||
|
||||
### Analyzing the Bundle Size
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
|
||||
|
||||
### Making a Progressive Web App
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
|
||||
|
||||
### Advanced Configuration
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
|
||||
|
||||
### Deployment
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
|
||||
|
||||
### `yarn build` fails to minify
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
||||
42
mui-home/package.json
Normal file
42
mui-home/package.json
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"name": "mui-home",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@material-ui/core": "^4.11.3",
|
||||
"@material-ui/icons": "^4.11.2",
|
||||
"@testing-library/jest-dom": "^5.11.4",
|
||||
"@testing-library/react": "^11.1.0",
|
||||
"@testing-library/user-event": "^12.1.10",
|
||||
"node-sass": "^5.0.0",
|
||||
"react": "^17.0.1",
|
||||
"react-dom": "^17.0.1",
|
||||
"react-router-dom": "^5.2.0",
|
||||
"react-scripts": "4.0.3",
|
||||
"web-vitals": "^1.0.1"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "react-scripts start",
|
||||
"build": "react-scripts build",
|
||||
"test": "react-scripts test",
|
||||
"eject": "react-scripts eject"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": [
|
||||
"react-app",
|
||||
"react-app/jest"
|
||||
]
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
">0.2%",
|
||||
"not dead",
|
||||
"not op_mini all"
|
||||
],
|
||||
"development": [
|
||||
"last 1 chrome version",
|
||||
"last 1 firefox version",
|
||||
"last 1 safari version"
|
||||
]
|
||||
}
|
||||
}
|
||||
BIN
mui-home/public/favicon.ico
Normal file
BIN
mui-home/public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
30
mui-home/public/index.html
Normal file
30
mui-home/public/index.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Web site created using create-react-app"
|
||||
/>
|
||||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
||||
<title>React App</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<main style="display: none;">
|
||||
<h1 id="title">{{title}}</h1>
|
||||
<article id="article">
|
||||
<h1>Hahaha</h1>
|
||||
<p>Something...</p>
|
||||
</article>
|
||||
<nav id="sidebar">
|
||||
|
||||
</nav>
|
||||
</main>
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
BIN
mui-home/public/logo192.png
Normal file
BIN
mui-home/public/logo192.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.2 KiB |
BIN
mui-home/public/logo512.png
Normal file
BIN
mui-home/public/logo512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.4 KiB |
25
mui-home/public/manifest.json
Normal file
25
mui-home/public/manifest.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"short_name": "React App",
|
||||
"name": "Create React App Sample",
|
||||
"icons": [
|
||||
{
|
||||
"src": "favicon.ico",
|
||||
"sizes": "64x64 32x32 24x24 16x16",
|
||||
"type": "image/x-icon"
|
||||
},
|
||||
{
|
||||
"src": "logo192.png",
|
||||
"type": "image/png",
|
||||
"sizes": "192x192"
|
||||
},
|
||||
{
|
||||
"src": "logo512.png",
|
||||
"type": "image/png",
|
||||
"sizes": "512x512"
|
||||
}
|
||||
],
|
||||
"start_url": ".",
|
||||
"display": "standalone",
|
||||
"theme_color": "#000000",
|
||||
"background_color": "#ffffff"
|
||||
}
|
||||
3
mui-home/public/robots.txt
Normal file
3
mui-home/public/robots.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
# https://www.robotstxt.org/robotstxt.html
|
||||
User-agent: *
|
||||
Disallow:
|
||||
41
mui-home/src/Doc.js
Normal file
41
mui-home/src/Doc.js
Normal file
@@ -0,0 +1,41 @@
|
||||
import React from 'react';
|
||||
import { AppBar, Toolbar, IconButton, SwipeableDrawer, List } from '@material-ui/core';
|
||||
import { Menu as MenuIcon } from '@material-ui/icons';
|
||||
|
||||
class Doc extends React.Component {
|
||||
constructor(props){
|
||||
super(props);
|
||||
const {window} = props;
|
||||
const classes = useStyles();
|
||||
this.state = {};
|
||||
}
|
||||
|
||||
getArticle(){
|
||||
return {__html: document.querySelector('#article').innerHTML};
|
||||
}
|
||||
|
||||
render(){
|
||||
return (
|
||||
<div>
|
||||
<AppBar position="sticky">
|
||||
<Toolbar>
|
||||
<IconButton edge="start" color="inherit" aria-label="menu">
|
||||
<MenuIcon />
|
||||
</IconButton>
|
||||
DOC
|
||||
</Toolbar>
|
||||
</AppBar>
|
||||
<SwipeableDrawer variant="permanent" anchor="left"
|
||||
anchor={anchor} open={state[anchor]}
|
||||
onClose={toggleDrawer(anchor, false)}
|
||||
opOpen={toggleDrawer(anchor, true)}>
|
||||
<List>
|
||||
|
||||
</List>
|
||||
</SwipeableDrawer>
|
||||
<div dangerouslySetInnerHTML={this.getArticle()}/>
|
||||
</div>
|
||||
)};
|
||||
}
|
||||
|
||||
export default Doc;
|
||||
26
mui-home/src/Home.js
Normal file
26
mui-home/src/Home.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { AppBar, Toolbar, IconButton } from '@material-ui/core';
|
||||
import { Menu as MenuIcon } from '@material-ui/icons';
|
||||
|
||||
class Home extends React.Component {
|
||||
constructor(props){
|
||||
super(props);
|
||||
}
|
||||
|
||||
render(){
|
||||
return (
|
||||
<div>
|
||||
<AppBar position="static">
|
||||
<Toolbar>
|
||||
<IconButton edge="start" color="inherit" aria-label="menu">
|
||||
<MenuIcon />
|
||||
</IconButton>
|
||||
HOME
|
||||
</Toolbar>
|
||||
</AppBar>
|
||||
</div>
|
||||
)};
|
||||
}
|
||||
|
||||
export default Home;
|
||||
12
mui-home/src/ResponsiceDrawer.js
Normal file
12
mui-home/src/ResponsiceDrawer.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import React from 'react';
|
||||
|
||||
class ResponsiveDrawer extends React.Component {
|
||||
constructor(props){
|
||||
super(props);
|
||||
|
||||
}
|
||||
classes = useStyle();
|
||||
theme = useTheme();
|
||||
}
|
||||
|
||||
export default ResponsiveDrawer;
|
||||
41
mui-home/src/index.js
Normal file
41
mui-home/src/index.js
Normal file
@@ -0,0 +1,41 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
|
||||
import { createMuiTheme, ThemeProvider } from '@material-ui/core/styles';
|
||||
import { green, amber } from '@material-ui/core/colors';
|
||||
|
||||
import './index.scss';
|
||||
import Home from './Home';
|
||||
import Doc from './Doc';
|
||||
import reportWebVitals from './reportWebVitals';
|
||||
|
||||
const theme = createMuiTheme(
|
||||
{
|
||||
palette: {
|
||||
primary: {
|
||||
main: amber[700],
|
||||
},
|
||||
secondary: {
|
||||
main: green[500],
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
ReactDOM.render(
|
||||
<React.StrictMode>
|
||||
<ThemeProvider theme={theme}>
|
||||
<Router>
|
||||
<Switch>
|
||||
<Route exact path="/" component={Home}/>
|
||||
<Route component={Doc}/>
|
||||
</Switch>
|
||||
</Router>
|
||||
</ThemeProvider>
|
||||
</React.StrictMode>,
|
||||
document.getElementById('root')
|
||||
);
|
||||
|
||||
// If you want to start measuring performance in your app, pass a function
|
||||
// to log results (for example: reportWebVitals(console.log))
|
||||
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
||||
reportWebVitals();
|
||||
9
mui-home/src/index.scss
Normal file
9
mui-home/src/index.scss
Normal file
@@ -0,0 +1,9 @@
|
||||
html,
|
||||
body,
|
||||
#root {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
1
mui-home/src/logo.svg
Normal file
1
mui-home/src/logo.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3"><g fill="#61DAFB"><path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/><circle cx="420.9" cy="296.5" r="45.7"/><path d="M520.5 78.1z"/></g></svg>
|
||||
|
After Width: | Height: | Size: 2.6 KiB |
13
mui-home/src/reportWebVitals.js
Normal file
13
mui-home/src/reportWebVitals.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const reportWebVitals = onPerfEntry => {
|
||||
if (onPerfEntry && onPerfEntry instanceof Function) {
|
||||
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
|
||||
getCLS(onPerfEntry);
|
||||
getFID(onPerfEntry);
|
||||
getFCP(onPerfEntry);
|
||||
getLCP(onPerfEntry);
|
||||
getTTFB(onPerfEntry);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
export default reportWebVitals;
|
||||
5
mui-home/src/setupTests.js
Normal file
5
mui-home/src/setupTests.js
Normal file
@@ -0,0 +1,5 @@
|
||||
// jest-dom adds custom jest matchers for asserting on DOM nodes.
|
||||
// allows you to do things like:
|
||||
// expect(element).toHaveTextContent(/react/i)
|
||||
// learn more: https://github.com/testing-library/jest-dom
|
||||
import '@testing-library/jest-dom';
|
||||
12434
mui-home/yarn.lock
Normal file
12434
mui-home/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user