Skip to content

Commit

Permalink
Update import statements for styles
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeop committed Jan 28, 2025
1 parent 1a511c1 commit a55c24b
Show file tree
Hide file tree
Showing 179 changed files with 274 additions and 277 deletions.
4 changes: 2 additions & 2 deletions packages/app/app/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import * as NuclearConfigActions from './actions/nuclear/configuration';
import * as DownloadActions from './actions/downloads';

import './app.global.scss';
import styles from './styles.scss';
import compact from './compact.scss';
import * as styles from './styles.scss';
import * as compact from './compact.scss';

import Navbar from './components/Navbar';
import VerticalPanel from './components/VerticalPanel';
Expand Down
2 changes: 1 addition & 1 deletion packages/app/app/components/AlbumCover/AlbumInfo/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';

import styles from './styles.scss';
import * as styles from './styles.scss';

type AlbumInfoProps = {
nameOnly: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import FontAwesome from 'react-fontawesome';

import Spacer from '../../Spacer';

import styles from './styles.scss';
import * as styles from './styles.scss';

type AlbumOverlayProps = {
handlePlay: React.MouseEventHandler;
Expand Down
2 changes: 1 addition & 1 deletion packages/app/app/components/AlbumCover/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import styles from './styles.scss';
import * as styles from './styles.scss';

import AlbumInfo from './AlbumInfo';
import AlbumOverlay from './AlbumOverlay';
Expand Down
2 changes: 1 addition & 1 deletion packages/app/app/components/AlbumView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import _ from 'lodash';
import { Dimmer, Icon, Loader, Dropdown } from 'semantic-ui-react';
import { useTranslation } from 'react-i18next';
import { Loader as NuclearLoader, ContextPopup, PopupButton, PopupDropdown, InputDialog } from '@nuclear/ui';
import styles from './styles.scss';
import * as styles from './styles.scss';
import artPlaceholder from '../../../resources/media/art_placeholder.png';
import TrackTableContainer from '../../containers/TrackTableContainer';
import { AlbumDetailsState } from '../../reducers/search';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';

import ArtistTags from '../ArtistTags';
import styles from '../styles.scss';
import * as styles from '../styles.scss';
import { ArtistDetailsState } from '../../../reducers/search';
import artPlaceholder from '../../../../resources/media/art_placeholder.png';
import { Icon } from 'semantic-ui-react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { useHistory } from 'react-router';

import styles from './styles.scss';
import * as styles from './styles.scss';

type ArtistTagsProps = {
tags: string[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Track } from '@nuclear/ui/lib/types';

import trackRowStyles from '../../TrackRow/styles.scss';
import TrackTableContainer from '../../../containers/TrackTableContainer';
import styles from './styles.scss';
import * as styles from './styles.scss';

type AddAllButtonProps = {
handleAddAll: React.MouseEventHandler;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { useTranslation } from 'react-i18next';

import styles from './styles.scss';
import * as styles from './styles.scss';
import artPlaceholder from '../../../../resources/media/art_placeholder.png';

type SimilarArtistsProps = {
Expand Down
2 changes: 1 addition & 1 deletion packages/app/app/components/ArtistView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useHistory } from 'react-router';
import SimilarArtists from './SimilarArtists';
import PopularTracks from './PopularTracks';

import styles from './styles.scss';
import * as styles from './styles.scss';
import artPlaceholder from '../../../resources/media/art_placeholder.png';
import { ArtistDetailsState } from '../../reducers/search';
import { SearchResultsAlbum } from '@nuclear/core/src/plugins/plugins.types';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import { isMac } from '../../hooks/usePlatform';
import styles from './styles.scss';
import * as styles from './styles.scss';

const CommandPaletteReminder = () => {
const { t } = useTranslation('command-palette');
Expand Down
2 changes: 1 addition & 1 deletion packages/app/app/components/Dashboard/ChartsTab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Tab } from 'semantic-ui-react';
import { Track } from '@nuclear/ui/lib/types';

import TrackTableContainer from '../../../containers/TrackTableContainer';
import styles from './styles.scss';
import * as styles from './styles.scss';
import { useTranslation } from 'react-i18next';
import { InternalTopTrack } from '../../../reducers/dashboard';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Tab } from 'semantic-ui-react';
import { CardsRow } from '@nuclear/ui';
import { DeezerEditorialCharts } from '@nuclear/core/src/rest/Deezer';

import styles from './styles.scss';
import * as styles from './styles.scss';
import { PromotedArtistsContainer } from '../../../containers/PromotedArtistsContainer';

type EditorialsTabProps = {
Expand Down
2 changes: 1 addition & 1 deletion packages/app/app/components/Dashboard/GenresTab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Tab } from 'semantic-ui-react';
import _ from 'lodash';

import genreToIcon from './mapGenres';
import styles from './styles.scss';
import * as styles from './styles.scss';
import { LastfmTopTag } from '@nuclear/core/src/rest/Lastfm.types';
import { useHistory } from 'react-router-dom';

Expand Down
2 changes: 1 addition & 1 deletion packages/app/app/components/Dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Redirect, useHistory } from 'react-router-dom';
import ChartsTab from './ChartsTab';
import GenresTab from './GenresTab';

import styles from './styles.scss';
import * as styles from './styles.scss';
import { DashboardReducerState } from '../../reducers/dashboard';
import EditorialsTab from './EditorialsTab';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import { useTranslation } from 'react-i18next';

import { setStringOption } from '../../../actions/settings';
import styles from './styles.scss';
import * as styles from './styles.scss';
import { app, dialog } from 'electron';

type DownloadsHeaderProps = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useCallback } from 'react';
import { Icon, SemanticICONS, Table } from 'semantic-ui-react';
import _ from 'lodash';
import styles from './styles.scss';
import * as styles from './styles.scss';
import { Download } from '@nuclear/ui/lib/types';

type DownloadsItemProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState } from 'react';
import { Button, Icon, Segment, Table } from 'semantic-ui-react';
import { useTranslation } from 'react-i18next';
import DownloadsItem from '../DownloadsItem';
import styles from './styles.scss';
import * as styles from './styles.scss';
import { Download } from '@nuclear/ui/lib/types';

type DownloadsListProps = {
Expand Down
2 changes: 1 addition & 1 deletion packages/app/app/components/Downloads/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useTranslation } from 'react-i18next';
import Header from '../Header';
import DownloadsList from './DownloadsList';
import DownloadsHeader from './DownloadsHeader';
import styles from './styles.scss';
import * as styles from './styles.scss';
import { setStringOption } from '../../actions/settings';
import { Download } from '@nuclear/ui/lib/types';

Expand Down
2 changes: 1 addition & 1 deletion packages/app/app/components/Equalizer/PreAmp/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import styles from './index.scss';
import * as styles from './index.scss';

type PreAmpProps = {
value: number;
Expand Down
2 changes: 1 addition & 1 deletion packages/app/app/components/Equalizer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Radio, RadioProps } from 'semantic-ui-react';
import PreAmp from './PreAmp';
import { createChart} from './chart';

import styles from './styles.scss';
import * as styles from './styles.scss';

const mapGraphValueToData = (value: number) => value - 10;
const mapDataValueToGraph = (value: number) => value + 10;
Expand Down
2 changes: 1 addition & 1 deletion packages/app/app/components/EqualizerPresetList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { List, Icon } from 'semantic-ui-react';
import classNames from 'classnames';
import { useTranslation } from 'react-i18next';

import styles from './styles.scss';
import * as styles from './styles.scss';

type EqualizerPresetListProps ={
presets: Array<Preset>;
Expand Down
2 changes: 1 addition & 1 deletion packages/app/app/components/FavoriteAlbumsView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useTranslation } from 'react-i18next';
import AlbumList from '../AlbumList';
import Header from '../Header';

import styles from './styles.scss';
import * as styles from './styles.scss';

type Tracklist = {
uuid:string;
Expand Down
2 changes: 1 addition & 1 deletion packages/app/app/components/FavoriteArtistsView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useTranslation } from 'react-i18next';
import ArtistList from '../ArtistList';
import Header from '../Header';

import styles from './styles.scss';
import * as styles from './styles.scss';

const EmptyState = () => {
const { t } = useTranslation('favorite-artists');
Expand Down
2 changes: 1 addition & 1 deletion packages/app/app/components/FavoriteTracksView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Track } from '@nuclear/core';

import TrackTableContainer from '../../containers/TrackTableContainer';
import Header from '../Header';
import styles from './styles.scss';
import * as styles from './styles.scss';
import { Button, Tooltip } from '@nuclear/ui';

export const EmptyState = () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/app/app/components/Header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';

import styles from './styles.scss';
import * as styles from './styles.scss';

type HeaderProps={
children: React.ReactNode;
Expand Down
2 changes: 1 addition & 1 deletion packages/app/app/components/HelpButton/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { Button, Icon } from 'semantic-ui-react';

import styles from './styles.scss';
import * as styles from './styles.scss';

type HelpButtonProps = {
onClick: () => void;
Expand Down
4 changes: 2 additions & 2 deletions packages/app/app/components/HelpModal/Contributors/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { Loader, Card, Image } from 'semantic-ui-react';
import styles from './styles.scss';
import * as styles from './styles.scss';

export type GithubContributorData = {
total: number;
Expand Down Expand Up @@ -60,7 +60,7 @@ const Contributors: React.FC<ContributorProps> = ({
src={contributor.author?.avatar_url}
/>
<Card.Header>{contributor.author?.login}</Card.Header>
<Card.Meta className={styles.meta_text}>
<Card.Meta>
{contributor.author?.html_url}
</Card.Meta>
<Card.Description>
Expand Down
4 changes: 2 additions & 2 deletions packages/app/app/components/HelpModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { agplDisclaimer } from './const';

import logoImg from '../../../resources/media/logo_full_light.png';
import mastodonImg from '../../../resources/media/mastodon.svg';
import styles from './styles.scss';
import * as styles from './styles.scss';

export type HelpModalProps = {
githubContrib: ContributorState;
Expand Down Expand Up @@ -88,7 +88,7 @@ const HelpModal: React.FC<HelpModalProps> = ({
/>
<div
data-testid='mastodon-link'
className={cx(styles.mastodon, styles.icon)}
className={styles.mastodon}
onClick={handleMastodonClick}
dangerouslySetInnerHTML={{ __html: mastodonImg }}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { useTranslation } from 'react-i18next';
import { Icon } from 'semantic-ui-react';

import styles from './styles.scss';
import * as styles from './styles.scss';

export default () => {
const { t } = useTranslation('library');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import { withTranslation } from 'react-i18next';
import { compose, withHandlers } from 'recompose';

import styles from './styles.scss';
import * as styles from './styles.scss';

const LibraryFolders = ({
openLocalFolderPicker,
Expand All @@ -30,7 +30,6 @@ const LibraryFolders = ({
icon
inverted
labelPosition='left'
className={styles.add_folder}
onClick={openLocalFolderPicker}
>
<Icon name='folder open' />
Expand Down Expand Up @@ -60,7 +59,7 @@ const LibraryFolders = ({
<List
divided
verticalAlign='middle'
className={styles.equalizer_list}>
className={styles.list}>
{localFolders.map((folder, idx) => (
<List.Item key={idx}>
<List.Content floated='right'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
padding: 0;
flex: 0 0 auto;

.add_folder {
}

.control_bar {
margin: 0;
padding: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { withHandlers, withState, compose } from 'recompose';
import Header from '../../Header';
import LibraryFolders from '../LibraryFolders';

import styles from './styles.scss';
import * as styles from './styles.scss';

const LibraryHeader = ({
t,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { useTranslation } from 'react-i18next';
import { Icon } from 'semantic-ui-react';

import styles from './styles.scss';
import * as styles from './styles.scss';

export default () => {
const { t } = useTranslation('library');
Expand Down
2 changes: 1 addition & 1 deletion packages/app/app/components/LibraryView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import _ from 'lodash';
import PropTypes from 'prop-types';
import EmptyState from './EmptyState';
import trackRowStyles from '../TrackRow/styles.scss';
import styles from './index.scss';
import * as styles from './index.scss';
import NoSearchResults from './NoSearchResults';
import LibrarySimpleList from './LibrarySimpleList';
import LibraryFolderTree from './LibraryFolderTree';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { HistoryTableDate } from '@nuclear/ui';
import { HistoryTableTrack } from '@nuclear/ui/lib/components/TrackTable/HistoryTable';

import styles from './styles.scss';
import * as styles from './styles.scss';
import TrackTableContainer from '../../containers/TrackTableContainer';
import { HistoryTable } from '@nuclear/ui';

Expand Down
2 changes: 1 addition & 1 deletion packages/app/app/components/ListeningHistoryView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { groupBy, map } from 'lodash';
import { HistoryTableTrack } from '@nuclear/ui/lib/components/TrackTable/HistoryTable';

import { ListeningHistorySection } from './ListeningHistorySection';
import styles from './styles.scss';
import * as styles from './styles.scss';
import Header from '../Header';
import { useTranslation } from 'react-i18next';
import { Button, ConfirmationModal } from '@nuclear/ui';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { useTranslation } from 'react-i18next';

import styles from './styles.scss';
import * as styles from './styles.scss';

type LyricsHeaderProps ={
name : string;
Expand Down
2 changes: 1 addition & 1 deletion packages/app/app/components/LyricsView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useTranslation } from 'react-i18next';

import LyricsHeader from './LyricsHeader';

import styles from './styles.scss';
import * as styles from './styles.scss';
import { QueueItem } from '../../reducers/queue';
import { getTrackArtist } from '@nuclear/ui';

Expand Down
2 changes: 1 addition & 1 deletion packages/app/app/components/MainLayout/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import cx from 'classnames';

import styles from './styles.scss';
import * as styles from './styles.scss';

const MainLayout = ({ className, children }) => (
<div className={cx(styles.main_layout_container, className)}>
Expand Down
2 changes: 1 addition & 1 deletion packages/app/app/components/NavButtons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import FontAwesome from 'react-fontawesome';
import { useHistory } from 'react-router';
import { History } from 'history';

import styles from './styles.scss';
import * as styles from './styles.scss';


const NavButtons: React.FC = () => {
Expand Down
Loading

0 comments on commit a55c24b

Please sign in to comment.