Skip to content

Commit 8e3fbca

Browse files
authored
Merge pull request #123 from swagger-api/refactor/scss-1
refactor(editor): rename scss index files to _all
2 parents 3eeb08b + 869181b commit 8e3fbca

File tree

7 files changed

+3
-31
lines changed

7 files changed

+3
-31
lines changed
File renamed without changes.

src/index.jsx

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom';
33

4-
/* eslint-disable import/no-extraneous-dependencies */
5-
// import SwaggerUI from 'swagger-ui-react';
64
import 'swagger-ui-react/swagger-ui.css';
7-
// eslint-disable-next-line import/order
8-
// import HelloWorker from './hello.worker';
9-
/* eslint-enable */
105

11-
// import GenericEditorPlugin from './plugin';
12-
import './index.scss';
6+
import './_all.scss';
137
// import reportWebVitals from './reportWebVitals';
148

159
// ReactDOM.render(
@@ -23,7 +17,6 @@ import './index.scss';
2317
// document.getElementById('root')
2418
// );
2519

26-
// import App from './AppAsFunc';
2720
import App from './App';
2821

2922
ReactDOM.render(<App />, document.getElementById('root'));
@@ -32,24 +25,3 @@ ReactDOM.render(<App />, document.getElementById('root'));
3225
// to log results (for example: reportWebVitals(console.log))
3326
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
3427
// reportWebVitals();
35-
36-
// sample from: https://github.com/facebook/create-react-app/pull/3934
37-
// const helloWorker = new HelloWorker();
38-
// let messageCount = 0;
39-
40-
// helloWorker.postMessage({ run: true });
41-
42-
// helloWorker.onmessage = (event) => {
43-
// if (event.data.status) {
44-
// console.log('STATUS', event.data.status);
45-
// }
46-
47-
// if (event.data.message) {
48-
// messageCount += 1;
49-
// console.log('MESSAGE', event.data.message);
50-
51-
// if (messageCount >= 5) {
52-
// helloWorker.postMessage({ run: false });
53-
// }
54-
// }
55-
// };

src/plugins/ideLayout/components/IdeLayout.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33

4-
import '../style.main.scss';
4+
import './_all.scss';
55

66
export default function IdeLayout(props) {
77
const { getComponent } = props;

src/plugins/topbar/components/Topbar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import PropTypes from 'prop-types';
33
import ReactModal from 'react-modal';
44

5-
import './style.main.scss';
5+
import './_all.scss';
66
import EditMenuDropdownHooks from './EditMenuDropdownHooks'; // getComponent incompatible with React hooks (due to nested functions?)
77
import FileMenuDropdownHooks from './FileMenuDropdownHooks'; // getComponent incompatible with React hooks (due to nested functions?)
88

0 commit comments

Comments
 (0)