mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Use consistent import style
This commit is contained in:
parent
3e6fdc8f04
commit
422adde900
23 changed files with 37 additions and 30 deletions
|
@ -1,5 +1,6 @@
|
|||
import React, { FunctionComponent } from 'react';
|
||||
import globalize from '../lib/globalize';
|
||||
|
||||
import globalize from 'lib/globalize';
|
||||
|
||||
const createButtonElement = ({ type, id, className, title, leftIcon, rightIcon }: IProps) => ({
|
||||
__html: `<button
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import escapeHTML from 'escape-html';
|
||||
import React, { type FC } from 'react';
|
||||
import globalize from '../lib/globalize';
|
||||
|
||||
import globalize from 'lib/globalize';
|
||||
|
||||
const createCheckBoxElement = ({
|
||||
labelClassName,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import React, { FunctionComponent } from 'react';
|
||||
import globalize from '../lib/globalize';
|
||||
|
||||
import globalize from 'lib/globalize';
|
||||
|
||||
type IProps = {
|
||||
is?: string;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React, { type FC, useCallback, useEffect, useMemo, useRef } from 'react';
|
||||
|
||||
import globalize from '../lib/globalize';
|
||||
import globalize from 'lib/globalize';
|
||||
|
||||
interface CreateInputElementParams {
|
||||
type?: string
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import React, { FunctionComponent } from 'react';
|
||||
import globalize from '../lib/globalize';
|
||||
|
||||
import globalize from 'lib/globalize';
|
||||
|
||||
const createLinkElement = ({ className, title, href }: { className?: string, title?: string, href?: string }) => ({
|
||||
__html: `<a
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import React, { FunctionComponent } from 'react';
|
||||
import globalize from '../lib/globalize';
|
||||
|
||||
import globalize from 'lib/globalize';
|
||||
|
||||
const createSelectElement = ({ name, id, required, label, option }: { name?: string, id?: string, required?: string, label?: string, option?: React.ReactNode }) => ({
|
||||
__html: `<select
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React, { type FC, useCallback, useEffect, useRef, useState } from 'react';
|
||||
import scrollerFactory from 'lib/scroller';
|
||||
import globalize from '../../lib/globalize';
|
||||
import globalize from 'lib/globalize';
|
||||
import IconButton from '../emby-button/IconButton';
|
||||
import './emby-scrollbuttons.scss';
|
||||
import { ScrollDirection, scrollerItemSlideIntoView } from './utils';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import './emby-scrollbuttons.scss';
|
||||
import 'webcomponents.js/webcomponents-lite';
|
||||
import '../emby-button/paper-icon-button-light';
|
||||
import globalize from '../../lib/globalize';
|
||||
import globalize from 'lib/globalize';
|
||||
import { scrollerItemSlideIntoView } from './utils';
|
||||
|
||||
const EmbyScrollButtonsPrototype = Object.create(HTMLDivElement.prototype);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue