From 7380d92e45e4554e8bebf4047c0b3a5bb36840e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Thu, 7 Jan 2021 13:36:13 +0100 Subject: [PATCH] fix: migrate all .scss files to .module.scss --- frontend/src/component/app.jsx | 2 +- .../src/component/archive/{archive.scss => archive.module.scss} | 0 .../src/component/common/{common.scss => common.module.scss} | 0 frontend/src/component/common/index.js | 2 +- frontend/src/component/feature/variant/add-variant.jsx | 2 +- .../src/component/feature/variant/update-variant-component.jsx | 2 +- .../src/component/feature/variant/variant-view-component.jsx | 2 +- .../feature/variant/{variant.scss => variant.module.scss} | 0 frontend/src/component/history/history-item-diff.jsx | 2 +- frontend/src/component/history/history-item-json.jsx | 2 +- frontend/src/component/history/history-list-component.jsx | 2 +- .../src/component/history/{history.scss => history.module.scss} | 0 frontend/src/component/layout/main.jsx | 2 +- frontend/src/component/menu/breadcrumb.jsx | 2 +- frontend/src/component/menu/drawer.jsx | 2 +- .../strategies/{strategies.scss => strategies.module.scss} | 0 frontend/src/component/{styles.scss => styles.module.scss} | 0 frontend/src/component/user/show-user-component.jsx | 2 +- frontend/src/component/user/{user.scss => user.module.scss} | 0 19 files changed, 12 insertions(+), 12 deletions(-) rename frontend/src/component/archive/{archive.scss => archive.module.scss} (100%) rename frontend/src/component/common/{common.scss => common.module.scss} (100%) rename frontend/src/component/feature/variant/{variant.scss => variant.module.scss} (100%) rename frontend/src/component/history/{history.scss => history.module.scss} (100%) rename frontend/src/component/strategies/{strategies.scss => strategies.module.scss} (100%) rename frontend/src/component/{styles.scss => styles.module.scss} (100%) rename frontend/src/component/user/{user.scss => user.module.scss} (100%) diff --git a/frontend/src/component/app.jsx b/frontend/src/component/app.jsx index f566fadc48..2fd7be76b0 100644 --- a/frontend/src/component/app.jsx +++ b/frontend/src/component/app.jsx @@ -5,7 +5,7 @@ import { Route, Redirect, Switch } from 'react-router-dom'; import Features from '../page/features'; import { routes } from './menu/routes'; -import styles from './styles.scss'; +import styles from './styles.module.scss'; import AuthenticationContainer from './user/authentication-container'; import MainLayout from './layout/main'; diff --git a/frontend/src/component/archive/archive.scss b/frontend/src/component/archive/archive.module.scss similarity index 100% rename from frontend/src/component/archive/archive.scss rename to frontend/src/component/archive/archive.module.scss diff --git a/frontend/src/component/common/common.scss b/frontend/src/component/common/common.module.scss similarity index 100% rename from frontend/src/component/common/common.scss rename to frontend/src/component/common/common.module.scss diff --git a/frontend/src/component/common/index.js b/frontend/src/component/common/index.js index c2ec6611ee..58d6dd6ab4 100644 --- a/frontend/src/component/common/index.js +++ b/frontend/src/component/common/index.js @@ -2,7 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { List, ListItem, ListItemContent, Button, Icon, Switch, MenuItem } from 'react-mdl'; -import styles from './common.scss'; +import styles from './common.module.scss'; export { styles }; diff --git a/frontend/src/component/feature/variant/add-variant.jsx b/frontend/src/component/feature/variant/add-variant.jsx index 793a569ac1..8c1636b140 100644 --- a/frontend/src/component/feature/variant/add-variant.jsx +++ b/frontend/src/component/feature/variant/add-variant.jsx @@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react'; import PropTypes from 'prop-types'; import Modal from 'react-modal'; import { Button, Textfield, DialogActions, Grid, Cell, Icon, Switch } from 'react-mdl'; -import styles from './variant.scss'; +import styles from './variant.module.scss'; import MySelect from '../../common/select'; import { trim } from '../../common/util'; import { weightTypes } from './enums'; diff --git a/frontend/src/component/feature/variant/update-variant-component.jsx b/frontend/src/component/feature/variant/update-variant-component.jsx index 70171d6887..c3c2cc7d93 100644 --- a/frontend/src/component/feature/variant/update-variant-component.jsx +++ b/frontend/src/component/feature/variant/update-variant-component.jsx @@ -2,7 +2,7 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import VariantViewComponent from './variant-view-component'; -import styles from './variant.scss'; +import styles from './variant.module.scss'; import { UPDATE_FEATURE } from '../../../permissions'; import AddVariant from './add-variant'; diff --git a/frontend/src/component/feature/variant/variant-view-component.jsx b/frontend/src/component/feature/variant/variant-view-component.jsx index 5ded86d604..0fafb41873 100644 --- a/frontend/src/component/feature/variant/variant-view-component.jsx +++ b/frontend/src/component/feature/variant/variant-view-component.jsx @@ -1,7 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { IconButton, Chip } from 'react-mdl'; -import styles from './variant.scss'; +import styles from './variant.module.scss'; import { UPDATE_FEATURE } from '../../../permissions'; import { weightTypes } from './enums'; diff --git a/frontend/src/component/feature/variant/variant.scss b/frontend/src/component/feature/variant/variant.module.scss similarity index 100% rename from frontend/src/component/feature/variant/variant.scss rename to frontend/src/component/feature/variant/variant.module.scss diff --git a/frontend/src/component/history/history-item-diff.jsx b/frontend/src/component/history/history-item-diff.jsx index a88aeb0ef6..64e82efcc1 100644 --- a/frontend/src/component/history/history-item-diff.jsx +++ b/frontend/src/component/history/history-item-diff.jsx @@ -1,7 +1,7 @@ import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; -import style from './history.scss'; +import style from './history.module.scss'; const DIFF_PREFIXES = { A: ' ', diff --git a/frontend/src/component/history/history-item-json.jsx b/frontend/src/component/history/history-item-json.jsx index 86e5ebff1f..13aa8c1297 100644 --- a/frontend/src/component/history/history-item-json.jsx +++ b/frontend/src/component/history/history-item-json.jsx @@ -1,7 +1,7 @@ import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; -import style from './history.scss'; +import style from './history.module.scss'; class HistoryItem extends PureComponent { static propTypes = { diff --git a/frontend/src/component/history/history-list-component.jsx b/frontend/src/component/history/history-list-component.jsx index 52ceb8c24f..6fa784b703 100644 --- a/frontend/src/component/history/history-list-component.jsx +++ b/frontend/src/component/history/history-list-component.jsx @@ -6,7 +6,7 @@ import { Table, TableHeader } from 'react-mdl'; import { DataTableHeader, SwitchWithLabel, styles as commonStyles } from '../common'; import { formatFullDateTimeWithLocale } from '../common/util'; -import styles from './history.scss'; +import styles from './history.module.scss'; const HistoryMeta = ({ entry, timeFormatted }) => (
diff --git a/frontend/src/component/history/history.scss b/frontend/src/component/history/history.module.scss similarity index 100% rename from frontend/src/component/history/history.scss rename to frontend/src/component/history/history.module.scss diff --git a/frontend/src/component/layout/main.jsx b/frontend/src/component/layout/main.jsx index 9aa5ddece1..8acf56532d 100644 --- a/frontend/src/component/layout/main.jsx +++ b/frontend/src/component/layout/main.jsx @@ -2,7 +2,7 @@ import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { Layout, Content, Footer, Grid, Cell } from 'react-mdl'; -import styles from '../styles.scss'; +import styles from '../styles.module.scss'; import ErrorContainer from '../error/error-container'; import Header from '../menu/header'; import ShowApiDetailsContainer from '../api/show-api-details-container'; diff --git a/frontend/src/component/menu/breadcrumb.jsx b/frontend/src/component/menu/breadcrumb.jsx index ec02bb6ef8..6844be9613 100644 --- a/frontend/src/component/menu/breadcrumb.jsx +++ b/frontend/src/component/menu/breadcrumb.jsx @@ -3,7 +3,7 @@ import { Link, Route, Switch } from 'react-router-dom'; import { routes, getRoute } from './routes'; -import styles from '../styles.scss'; +import styles from '../styles.module.scss'; const renderDoubleBread = (currentTitle, parentRoute) => { document.title = `${currentTitle} - ${parentRoute.title} - Unleash`; diff --git a/frontend/src/component/menu/drawer.jsx b/frontend/src/component/menu/drawer.jsx index 9e39c597ad..1732215378 100644 --- a/frontend/src/component/menu/drawer.jsx +++ b/frontend/src/component/menu/drawer.jsx @@ -2,7 +2,7 @@ import React from 'react'; import { Drawer, Icon, Navigation } from 'react-mdl'; import { NavLink } from 'react-router-dom'; import PropTypes from 'prop-types'; -import styles from '../styles.scss'; +import styles from '../styles.module.scss'; import { baseRoutes as routes } from './routes'; diff --git a/frontend/src/component/strategies/strategies.scss b/frontend/src/component/strategies/strategies.module.scss similarity index 100% rename from frontend/src/component/strategies/strategies.scss rename to frontend/src/component/strategies/strategies.module.scss diff --git a/frontend/src/component/styles.scss b/frontend/src/component/styles.module.scss similarity index 100% rename from frontend/src/component/styles.scss rename to frontend/src/component/styles.module.scss diff --git a/frontend/src/component/user/show-user-component.jsx b/frontend/src/component/user/show-user-component.jsx index da8548cf77..71a8b23a76 100644 --- a/frontend/src/component/user/show-user-component.jsx +++ b/frontend/src/component/user/show-user-component.jsx @@ -1,6 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import styles from './user.scss'; +import styles from './user.module.scss'; import { Menu, MenuItem } from 'react-mdl'; export default class ShowUserComponent extends React.Component { diff --git a/frontend/src/component/user/user.scss b/frontend/src/component/user/user.module.scss similarity index 100% rename from frontend/src/component/user/user.scss rename to frontend/src/component/user/user.module.scss