я пытаюсь добавить metro ui css framwork в мой проект реагирующих электронов - PullRequest
0 голосов
/ 07 апреля 2019

Я пытаюсь добавить CSS-структуру metro UI в свой проект реагирующего электрона, но не могу добавить файл metro.js.

Я пытался добавить файл metro.js в index.js в React, а также пытался добавить его в файл index.html, но оба выдают разные ошибки.

В index.js я получаю эти errors.

12:19:48 PM react.1   |  Failed to compile.
12:19:48 PM react.1   |  ./src/css/mui/js/metro.js
12:19:48 PM react.1   |    Line 8:      'define' is not defined                                         no-undef
12:19:48 PM react.1   |    Line 9:      'define' is not defined                                         no-undef
12:19:48 PM react.1   |    Line 11:     'jQuery' is not defined                                         no-undef
12:19:48 PM react.1   |    Line 352:    'METRO_MEDIA' is not defined                                    no-undef
12:19:48 PM react.1   |    Line 363:    'METRO_CLOAK_REMOVE' is not defined                             no-undef
12:19:48 PM react.1   |    Line 368:    'METRO_CLOAK_REMOVE' is not defined                             no-undef
12:19:48 PM react.1   |    Line 403:    'METRO_HOTKEYS_BUBBLE_UP' is not defined                        no-undef
12:19:48 PM react.1   |    Line 557:    'METRO_MEDIA' is not defined                                    no-undef
12:19:48 PM react.1   |    Line 568:    'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 2050:   'METRO_WEEK_START' is not defined                               no-undef
12:19:48 PM react.1   |    Line 2279:   'METRO_HOTKEYS_FILTER_INPUT_ACCEPTING_ELEMENTS' is not defined  no-undef
12:19:48 PM react.1   |    Line 2280:   'METRO_HOTKEYS_FILTER_TEXT_INPUTS' is not defined               no-undef
12:19:48 PM react.1   |    Line 2281:   'METRO_HOTKEYS_FILTER_CONTENT_EDITABLE' is not defined          no-undef
12:19:48 PM react.1   |    Line 3659:   'METRO_THROWS' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 4151:   'METRO_MEDIA' is not defined                                    no-undef
12:19:48 PM react.1   |    Line 4155:   'METRO_MEDIA' is not defined                                    no-undef
12:19:48 PM react.1   |    Line 4159:   'METRO_MEDIA' is not defined                                    no-undef
12:19:48 PM react.1   |    Line 4159:   'METRO_MEDIA' is not defined                                    no-undef
12:19:48 PM react.1   |    Line 4159:   'METRO_MEDIA' is not defined                                    no-undef
12:19:48 PM react.1   |    Line 4268:   Unexpected use of 'location'                                    no-restricted-globals
12:19:48 PM react.1   |    Line 4268:   Unexpected use of 'location'                                    no-restricted-globals
12:19:48 PM react.1   |    Line 4268:   Unexpected use of 'location'                                    no-restricted-globals
12:19:48 PM react.1   |    Line 4357:   'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 5599:   'METRO_LOCALE' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 5600:   'METRO_WEEK_START' is not defined                               no-undef
12:19:48 PM react.1   |    Line 5634:   'METRO_DATE_FORMAT' is not defined                              no-undef
12:19:48 PM react.1   |    Line 6512:   'METRO_LOCALE' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 6514:   'METRO_DATE_FORMAT' is not defined                              no-undef
12:19:48 PM react.1   |    Line 6526:   'METRO_WEEK_START' is not defined                               no-undef
12:19:48 PM react.1   |    Line 6946:   'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 7909:   'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 8063:   'METRO_LOCALE' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 9117:   'METRO_LOCALE' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 9129:   'METRO_LOCALE' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 9179:   'METRO_LOCALE' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 9537:   'METRO_LOCALE' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 13453:  'target' is not defined                                         no-undef
12:19:48 PM react.1   |    Line 13868:  'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 14396:  'METRO_TIMEOUT' is not defined                                  no-undef
12:19:48 PM react.1   |    Line 14397:  'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 14425:  'METRO_TIMEOUT' is not defined                                  no-undef
12:19:48 PM react.1   |    Line 14426:  'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 14548:  'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 16407:  'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 17983:  'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 18375:  Unexpected use of 'history'                                     no-restricted-globals
12:19:48 PM react.1   |    Line 18723:  'METRO_LOCALE' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 20221:  'item' is not defined                                           no-undef
12:19:48 PM react.1   |    Line 20440:  Unexpected use of 'pageYOffset'                                 no-restricted-globals
12:19:48 PM react.1   |    Line 20441:  Unexpected use of 'pageXOffset'                                 no-restricted-globals
12:19:48 PM react.1   |    Line 20696:  'METRO_SCROLL_MULTIPLE' is not defined                          no-undef
12:19:48 PM react.1   |    Line 21751:  'METRO_LOCALE' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 21764:  'METRO_LOCALE' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 21835:  'METRO_LOCALE' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 22212:  'METRO_TIMEOUT' is not defined                                  no-undef
12:19:48 PM react.1   |    Line 22241:  'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 22245:  'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 22908:  'duration' is not defined                                       no-undef
12:19:48 PM react.1   |    Line 25548:  'METRO_INIT' is not defined                                     no-undef

пока я добавляю в index.html синтаксическую ошибку для "Uncaught SyntaxError: Unexpected token <"

загружается без ошибок

...