Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ npm-debug.log
yarn-error.log

# auto generated source files
apps/webapp/src/script/components/Icon.tsx
apps/webapp/src/script/components/icon.tsx

# yarn 2 - not using zero-installs
.pnp.*
Expand Down
8 changes: 8 additions & 0 deletions .ls-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ ls:
apps/webapp/src/script/util/test/mock:
.ts: camelCase
.mock.ts: camelCase
apps/webapp/src/script/components/icon.tsx:
.tsx: camelCase
apps/webapp/src/script/page/appLock:
.dir: camelCase
.ts: camelCase
.tsx: camelCase
.test.tsx: camelCase
.styles.ts: camelCase
apps/webapp/src/script/page/RightSidebar/access:
.ts: camelCase
.tsx: camelCase
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ yalc.lock
.yalc

# Generated files
src/script/components/Icon.tsx
src/script/components/icon.tsx
2 changes: 1 addition & 1 deletion apps/webapp/bin/generate_react_icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ const dir = './src/script/components';
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir, {recursive: true});
}
fs.writeFileSync(`${dir}/Icon.tsx`, [disclaimer, iconPropsType, ...reactComponents].join('\n'));
fs.writeFileSync(`${dir}/icon.tsx`, [disclaimer, iconPropsType, ...reactComponents].join('\n'));
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {FormattedMessage} from 'react-intl';

import {CloseIcon, Content, Footer, Header, Link, Small} from '@wireapp/react-ui-kit';

import {LogoFullIcon} from 'Components/Icon';
import {LogoFullIcon} from 'Components/icon';
import {t} from 'Util/localizerUtil';

import {Config} from '../../Config';
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/src/script/auth/page/CustomBackend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {useNavigate} from 'react-router-dom';

import {Button, ButtonVariant, Container, Text} from '@wireapp/react-ui-kit';

import {LogoFullIcon} from 'Components/Icon';
import {LogoFullIcon} from 'Components/icon';
import {t} from 'Util/localizerUtil';

import {buttonContainerCss, containerCss, headerCss, logoCss, paragraphCss} from './CustomBackend.styles';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {connect} from 'react-redux';
import {Runtime, UrlUtil} from '@wireapp/commons';
import {COLOR, ContainerXS, FlexBox, Text} from '@wireapp/react-ui-kit';

import {LogoIcon} from 'Components/Icon';
import {LogoIcon} from 'Components/icon';
import {t} from 'Util/localizerUtil';
import {afterRender} from 'Util/util';

Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/src/script/auth/page/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {container} from 'tsyringe';
import {UrlUtil} from '@wireapp/commons';
import {Button, ButtonVariant, ContainerXS, ErrorMessage, Text} from '@wireapp/react-ui-kit';

import {LogoFullIcon} from 'Components/Icon';
import {LogoFullIcon} from 'Components/icon';
import {useSingleInstance} from 'Hooks/useSingleInstance';
import {Core} from 'src/script/service/coreSingleton';
import {isDataDogEnabled} from 'Util/dataDog';
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/src/script/auth/page/OAuthPermissions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import {
useMatchMedia,
} from '@wireapp/react-ui-kit';

import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {AssetRemoteData} from 'Repositories/assets/assetRemoteData';
import {AssetRepository} from 'Repositories/assets/assetRepository';
import {handleEscDown, handleKeyDown, KEY} from 'Util/keyboardUtil';
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/src/script/auth/page/login/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ import {
useMatchMedia,
} from '@wireapp/react-ui-kit';

import {LogoFullIcon} from 'Components/Icon';
import {LogoFullIcon} from 'Components/icon';
import {t} from 'Util/localizerUtil';
import {getLogger} from 'Util/logger';
import {isBackendError} from 'Util/typePredicateUtil';
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/src/script/auth/page/login/singleSignOn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import {
} from '@wireapp/react-ui-kit';
import {WebAppEvents} from '@wireapp/webapp-events';

import {LogoFullIcon} from 'Components/Icon';
import {LogoFullIcon} from 'Components/icon';
import {calculateChildWindowPosition} from 'Util/DOM/caculateChildWindowPosition';
import {t} from 'Util/localizerUtil';
import {getLogger} from 'Util/logger';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import is from '@sindresorhus/is';
import {createRoot, Root} from 'react-dom/client';
import {toast, Toaster} from 'sonner';

import {CloseIcon} from 'Components/Icon';
import {CloseIcon} from 'Components/icon';

interface AppNotificationOptions {
message?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {AVATAR_SIZE} from 'Components/Avatar';

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

import * as Icon from '../Icon';
import * as Icon from '../icon';

const availabilityIconBaseProps = {
'data-uie-name': 'status-availability-icon',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import React from 'react';

import ko from 'knockout';

import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {ServiceEntity} from 'Repositories/integration/ServiceEntity';
import {CSS_FILL_PARENT} from 'Util/cssMixin';

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

import {Tooltip} from '@wireapp/react-ui-kit';

import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {t} from 'Util/localizerUtil';

import {badgesWrapper, icon} from './UserStatusBadges.styles';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import {
} from 'Components/Cells/ShareModal/CellsShareExpirationFields';
import {CellsTableLoader} from 'Components/Conversation/ConversationCells/common/CellsTableLoader/CellsTableLoader';
import {CopyToClipboardButton} from 'Components/CopyToClipboardButton/CopyToClipboardButton';
import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {PasswordGeneratorButton} from 'Components/PasswordGeneratorButton';
import {Config} from 'src/script/Config';
import {t} from 'Util/localizerUtil';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

import {LinkIcon} from 'Components/Icon';
import {LinkIcon} from 'Components/icon';
import {t} from 'Util/localizerUtil';

import {wrapperStyles, iconWrapperStyles, textStyles, wrapperStylesHidden} from './CellsTableSharedColumn.styles';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import {CSSObject} from '@emotion/react';
import cx from 'classnames';

import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {Conversation} from 'Repositories/entity/Conversation';
import {User} from 'Repositories/entity/User';
import {useKoSubscribableChildren} from 'Util/componentUtil';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {useCallback} from 'react';

import {FlexBox, IconButton} from '@wireapp/react-ui-kit';

import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {t} from 'Util/localizerUtil';

import {CellsPageList} from './CellsPageList/CellsPageList';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import {FolderIcon} from '@wireapp/react-ui-kit';

import {ChevronRight} from 'Components/Icon';
import {ChevronRight} from 'Components/icon';

import {
arrowIconStyles,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

import {LinkIcon} from 'Components/Icon';
import {LinkIcon} from 'Components/icon';
import {t} from 'Util/localizerUtil';

import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import ko from 'knockout';

import {Link, LinkVariant} from '@wireapp/react-ui-kit';

import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {CONVERSATION_READONLY_STATE} from 'Repositories/conversation/ConversationRepository';
import {Conversation} from 'Repositories/entity/Conversation';
import {useKoSubscribableChildren} from 'Util/componentUtil';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {useMemo} from 'react';

import cx from 'classnames';

import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {DraftState, generateConversationInputStorageKey} from 'Components/InputBar/common/draftState/draftState';
import {useLocalStorage} from 'Hooks/useLocalStorage';
import {generateCellState} from 'Repositories/conversation/ConversationCellState';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import {useMemo} from 'react';

import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {generateCellState} from 'Repositories/conversation/ConversationCellState';
import {ConversationStatusIcon} from 'Repositories/conversation/ConversationStatusIcon';
import type {Conversation} from 'Repositories/entity/Conversation';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {useState} from 'react';

import {Button, ButtonVariant} from '@wireapp/react-ui-kit';

import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {copyText} from 'Util/clipboardUtil';

interface CopyToClipboardButtonProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {

import {FileTypeIcon} from 'Components/Conversation/common/FileTypeIcon/FileTypeIcon';
import {isInRecycleBin} from 'Components/Conversation/ConversationCells/common/recycleBin/recycleBin';
import {EditIcon} from 'Components/Icon';
import {EditIcon} from 'Components/icon';
import {iconStyles} from 'Components/MessagesList/Message/ContentMessage/asset/MultipartAssets/FileAssetCard/common/FileAssetOptions/FileAssetOptions.styles';
import {MessageTime} from 'Components/MessagesList/Message/MessageTime';
import {useFileHistoryModal} from 'Components/Modals/FileHistoryModal/hooks/useFileHistoryModal';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
SidebarInactiveIcon,
} from '@wireapp/react-ui-kit';

import {ZoomInIcon, ZoomOutIcon} from 'Components/Icon';
import {ZoomInIcon, ZoomOutIcon} from 'Components/icon';
import {t} from 'Util/localizerUtil';

import {buttonStyles, pageNumberStyles, wrapperStyles} from './PdfControls.styles';
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/src/script/components/Giphy/Giphy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {Button, ButtonVariant} from '@wireapp/react-ui-kit';
import {WebAppEvents} from '@wireapp/webapp-events';

import {GifImage} from 'Components/Giphy/GifImage';
import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {Gif, GiphyRepository} from 'Repositories/extension/GiphyRepository';
import {t} from 'Util/localizerUtil';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {useEffect, useState} from 'react';

import {Button, ButtonVariant} from '@wireapp/react-ui-kit';

import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {PrimaryModal} from 'Components/Modals/PrimaryModal';
import {ProgressBar} from 'Components/ProgressBar/ProgressBar';
import {BackupRepository} from 'Repositories/backup/backupRepository';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import cx from 'classnames';

import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {t} from 'Util/localizerUtil';

interface RestrictedImageProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

import {CloseIcon} from 'Components/Icon';
import {CloseIcon} from 'Components/icon';
import {t} from 'Util/localizerUtil';

import {buttonStyles, iconStyles} from './FilePreviewDeleteButton.styles';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {useRef} from 'react';

import {TabIndex} from '@wireapp/react-ui-kit';

import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {t} from 'Util/localizerUtil';

interface AssetUploadButtonProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import cx from 'classnames';

import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {t} from 'Util/localizerUtil';

interface CancelEditButtonProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {t} from 'Util/localizerUtil';

interface CellAssetUploadButtonProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {t} from 'Util/localizerUtil';

interface CellImageUploadButtonProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import type {MouseEvent} from 'react';

import cx from 'classnames';

import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {t} from 'Util/localizerUtil';

interface FormatTextButtonProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {t} from 'Util/localizerUtil';

interface GiphyButtonProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {useRef} from 'react';

import {TabIndex} from '@wireapp/react-ui-kit';

import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {t} from 'Util/localizerUtil';

interface ImageUploadButtonProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {MouseEvent, KeyboardEvent} from 'react';
import cx from 'classnames';
import {container} from 'tsyringe';

import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {Conversation} from 'Repositories/entity/Conversation';
import {TeamState} from 'Repositories/team/TeamState';
import {EphemeralTimings} from 'src/script/ephemeral/EphemeralTimings';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {t} from 'Util/localizerUtil';

interface PingButtonProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import cx from 'classnames';

import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {t} from 'Util/localizerUtil';

interface SendMessageButtonProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import is from '@sindresorhus/is';

import {Input, ErrorMessage, Button, ButtonVariant} from '@wireapp/react-ui-kit';

import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {ModalComponent} from 'Components/Modals/ModalComponent';
import {t} from 'Util/localizerUtil';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import cx from 'classnames';
import {TabIndex} from '@wireapp/react-ui-kit';

import {Avatar, AVATAR_SIZE} from 'Components/Avatar';
import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {User} from 'Repositories/entity/User';
import {useKoSubscribableChildren} from 'Util/componentUtil';
import {handleKeyDown, KEY} from 'Util/keyboardUtil';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {FC} from 'react';

import {TabIndex} from '@wireapp/react-ui-kit';

import * as Icon from 'Components/Icon';
import * as Icon from 'Components/icon';
import {t} from 'Util/localizerUtil';

import {Config} from '../../../Config';
Expand Down
Loading
Loading