mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
move to src elements
This commit is contained in:
parent
5c25741329
commit
6fb884a212
19 changed files with 32 additions and 32 deletions
|
@ -1,6 +1,6 @@
|
||||||
import React, { FunctionComponent } from 'react';
|
import React, { FunctionComponent } from 'react';
|
||||||
import globalize from '../../../scripts/globalize';
|
import globalize from '../../../scripts/globalize';
|
||||||
import CheckBoxElement from '../elements/CheckBoxElement';
|
import CheckBoxElement from '../../../elements/CheckBoxElement';
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
containerClassName?: string;
|
containerClassName?: string;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React, { FunctionComponent } from 'react';
|
import React, { FunctionComponent } from 'react';
|
||||||
import datetime from '../../../scripts/datetime';
|
import datetime from '../../../scripts/datetime';
|
||||||
import globalize from '../../../scripts/globalize';
|
import globalize from '../../../scripts/globalize';
|
||||||
import IconButtonElement from '../elements/IconButtonElement';
|
import IconButtonElement from '../../../elements/IconButtonElement';
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
index: number;
|
index: number;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React, { FunctionComponent } from 'react';
|
import React, { FunctionComponent } from 'react';
|
||||||
import IconButtonElement from '../elements/IconButtonElement';
|
import IconButtonElement from '../../../elements/IconButtonElement';
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
tag?: string;
|
tag?: string;
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { formatDistanceToNow } from 'date-fns';
|
||||||
import { localeWithSuffix } from '../../../scripts/dfnshelper';
|
import { localeWithSuffix } from '../../../scripts/dfnshelper';
|
||||||
import globalize from '../../../scripts/globalize';
|
import globalize from '../../../scripts/globalize';
|
||||||
import cardBuilder from '../../cardbuilder/cardBuilder';
|
import cardBuilder from '../../cardbuilder/cardBuilder';
|
||||||
import IconButtonElement from '../elements/IconButtonElement';
|
import IconButtonElement from '../../../elements/IconButtonElement';
|
||||||
import escapeHTML from 'escape-html';
|
import escapeHTML from 'escape-html';
|
||||||
|
|
||||||
const createLinkElement = ({ user, renderImgUrl }: { user: UserDto, renderImgUrl: string }) => ({
|
const createLinkElement = ({ user, renderImgUrl }: { user: UserDto, renderImgUrl: string }) => ({
|
||||||
|
|
|
@ -6,9 +6,9 @@ import LibraryMenu from '../../../scripts/libraryMenu';
|
||||||
import confirm from '../../confirm/confirm';
|
import confirm from '../../confirm/confirm';
|
||||||
import loading from '../../loading/loading';
|
import loading from '../../loading/loading';
|
||||||
import toast from '../../toast/toast';
|
import toast from '../../toast/toast';
|
||||||
import ButtonElement from '../elements/ButtonElement';
|
import ButtonElement from '../../../elements/ButtonElement';
|
||||||
import CheckBoxElement from '../elements/CheckBoxElement';
|
import CheckBoxElement from '../../../elements/CheckBoxElement';
|
||||||
import InputElement from '../elements/InputElement';
|
import InputElement from '../../../elements/InputElement';
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
userId: string;
|
userId: string;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React, { FunctionComponent } from 'react';
|
import React, { FunctionComponent } from 'react';
|
||||||
import globalize from '../../../scripts/globalize';
|
import globalize from '../scripts/globalize';
|
||||||
|
|
||||||
const createButtonElement = ({ type, id, className, title, leftIcon, rightIcon }: IProps) => ({
|
const createButtonElement = ({ type, id, className, title, leftIcon, rightIcon }: IProps) => ({
|
||||||
__html: `<button
|
__html: `<button
|
|
@ -1,6 +1,6 @@
|
||||||
import escapeHTML from 'escape-html';
|
import escapeHTML from 'escape-html';
|
||||||
import React, { FunctionComponent } from 'react';
|
import React, { FunctionComponent } from 'react';
|
||||||
import globalize from '../../../scripts/globalize';
|
import globalize from '../scripts/globalize';
|
||||||
|
|
||||||
const createCheckBoxElement = ({ labelClassName, className, id, dataFilter, dataItemType, dataId, checkedAttribute, renderContent }: { labelClassName?: string, type?: string, className?: string, id?: string, dataFilter?: string, dataItemType?: string, dataId?: string, checkedAttribute?: string, renderContent?: string }) => ({
|
const createCheckBoxElement = ({ labelClassName, className, id, dataFilter, dataItemType, dataId, checkedAttribute, renderContent }: { labelClassName?: string, type?: string, className?: string, id?: string, dataFilter?: string, dataItemType?: string, dataId?: string, checkedAttribute?: string, renderContent?: string }) => ({
|
||||||
__html: `<label ${labelClassName}>
|
__html: `<label ${labelClassName}>
|
|
@ -1,5 +1,5 @@
|
||||||
import React, { FunctionComponent } from 'react';
|
import React, { FunctionComponent } from 'react';
|
||||||
import globalize from '../../../scripts/globalize';
|
import globalize from '../scripts/globalize';
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
is?: string;
|
is?: string;
|
|
@ -1,5 +1,5 @@
|
||||||
import React, { FunctionComponent } from 'react';
|
import React, { FunctionComponent } from 'react';
|
||||||
import globalize from '../../../scripts/globalize';
|
import globalize from '../scripts/globalize';
|
||||||
|
|
||||||
const createInputElement = ({ type, id, label, options }: { type?: string, id?: string, label?: string, options?: string }) => ({
|
const createInputElement = ({ type, id, label, options }: { type?: string, id?: string, label?: string, options?: string }) => ({
|
||||||
__html: `<input
|
__html: `<input
|
|
@ -1,5 +1,5 @@
|
||||||
import React, { FunctionComponent } from 'react';
|
import React, { FunctionComponent } from 'react';
|
||||||
import globalize from '../../../scripts/globalize';
|
import globalize from '../scripts/globalize';
|
||||||
|
|
||||||
const createLinkElement = ({ className, title, href }: { className?: string, title?: string, href?: string }) => ({
|
const createLinkElement = ({ className, title, href }: { className?: string, title?: string, href?: string }) => ({
|
||||||
__html: `<a
|
__html: `<a
|
|
@ -1,5 +1,5 @@
|
||||||
import React, { FunctionComponent } from 'react';
|
import React, { FunctionComponent } from 'react';
|
||||||
import globalize from '../../../scripts/globalize';
|
import globalize from '../scripts/globalize';
|
||||||
|
|
||||||
const createSelectElement = ({ name, id, required, label, option }: { name?: string, id?: string, required?: string, label?: string, option?: React.ReactNode }) => ({
|
const createSelectElement = ({ name, id, required, label, option }: { name?: string, id?: string, required?: string, label?: string, option?: React.ReactNode }) => ({
|
||||||
__html: `<select
|
__html: `<select
|
|
@ -4,11 +4,11 @@ import Dashboard from '../utils/dashboard';
|
||||||
import globalize from '../scripts/globalize';
|
import globalize from '../scripts/globalize';
|
||||||
import loading from '../components/loading/loading';
|
import loading from '../components/loading/loading';
|
||||||
import toast from '../components/toast/toast';
|
import toast from '../components/toast/toast';
|
||||||
import SectionTitleContainer from '../components/dashboard/elements/SectionTitleContainer';
|
import SectionTitleContainer from '../elements/SectionTitleContainer';
|
||||||
import InputElement from '../components/dashboard/elements/InputElement';
|
import InputElement from '../elements/InputElement';
|
||||||
import ButtonElement from '../components/dashboard/elements/ButtonElement';
|
import ButtonElement from '../elements/ButtonElement';
|
||||||
import AccessContainer from '../components/dashboard/users/AccessContainer';
|
import AccessContainer from '../components/dashboard/users/AccessContainer';
|
||||||
import CheckBoxElement from '../components/dashboard/elements/CheckBoxElement';
|
import CheckBoxElement from '../elements/CheckBoxElement';
|
||||||
import Page from '../components/Page';
|
import Page from '../components/Page';
|
||||||
|
|
||||||
type userInput = {
|
type userInput = {
|
||||||
|
|
|
@ -3,17 +3,17 @@ import React, { FunctionComponent, useCallback, useEffect, useState, useRef } fr
|
||||||
import Dashboard from '../utils/dashboard';
|
import Dashboard from '../utils/dashboard';
|
||||||
import globalize from '../scripts/globalize';
|
import globalize from '../scripts/globalize';
|
||||||
import LibraryMenu from '../scripts/libraryMenu';
|
import LibraryMenu from '../scripts/libraryMenu';
|
||||||
import ButtonElement from '../components/dashboard/elements/ButtonElement';
|
import ButtonElement from '../elements/ButtonElement';
|
||||||
import CheckBoxElement from '../components/dashboard/elements/CheckBoxElement';
|
import CheckBoxElement from '../elements/CheckBoxElement';
|
||||||
import InputElement from '../components/dashboard/elements/InputElement';
|
import InputElement from '../elements/InputElement';
|
||||||
import LinkEditUserPreferences from '../components/dashboard/users/LinkEditUserPreferences';
|
import LinkEditUserPreferences from '../components/dashboard/users/LinkEditUserPreferences';
|
||||||
import SectionTitleContainer from '../components/dashboard/elements/SectionTitleContainer';
|
import SectionTitleContainer from '../elements/SectionTitleContainer';
|
||||||
import SectionTabs from '../components/dashboard/users/SectionTabs';
|
import SectionTabs from '../components/dashboard/users/SectionTabs';
|
||||||
import loading from '../components/loading/loading';
|
import loading from '../components/loading/loading';
|
||||||
import toast from '../components/toast/toast';
|
import toast from '../components/toast/toast';
|
||||||
import { getParameterByName } from '../utils/url';
|
import { getParameterByName } from '../utils/url';
|
||||||
import escapeHTML from 'escape-html';
|
import escapeHTML from 'escape-html';
|
||||||
import SelectElement from '../components/dashboard/elements/SelectElement';
|
import SelectElement from '../elements/SelectElement';
|
||||||
import Page from '../components/Page';
|
import Page from '../components/Page';
|
||||||
|
|
||||||
type ItemsArr = {
|
type ItemsArr = {
|
||||||
|
|
|
@ -6,11 +6,11 @@ import libraryMenu from '../scripts/libraryMenu';
|
||||||
import globalize from '../scripts/globalize';
|
import globalize from '../scripts/globalize';
|
||||||
import toast from '../components/toast/toast';
|
import toast from '../components/toast/toast';
|
||||||
import SectionTabs from '../components/dashboard/users/SectionTabs';
|
import SectionTabs from '../components/dashboard/users/SectionTabs';
|
||||||
import ButtonElement from '../components/dashboard/elements/ButtonElement';
|
import ButtonElement from '../elements/ButtonElement';
|
||||||
import { getParameterByName } from '../utils/url';
|
import { getParameterByName } from '../utils/url';
|
||||||
import SectionTitleContainer from '../components/dashboard/elements/SectionTitleContainer';
|
import SectionTitleContainer from '../elements/SectionTitleContainer';
|
||||||
import AccessContainer from '../components/dashboard/users/AccessContainer';
|
import AccessContainer from '../components/dashboard/users/AccessContainer';
|
||||||
import CheckBoxElement from '../components/dashboard/elements/CheckBoxElement';
|
import CheckBoxElement from '../elements/CheckBoxElement';
|
||||||
import Page from '../components/Page';
|
import Page from '../components/Page';
|
||||||
|
|
||||||
type ItemsArr = {
|
type ItemsArr = {
|
||||||
|
|
|
@ -4,15 +4,15 @@ import globalize from '../scripts/globalize';
|
||||||
import LibraryMenu from '../scripts/libraryMenu';
|
import LibraryMenu from '../scripts/libraryMenu';
|
||||||
import AccessScheduleList from '../components/dashboard/users/AccessScheduleList';
|
import AccessScheduleList from '../components/dashboard/users/AccessScheduleList';
|
||||||
import BlockedTagList from '../components/dashboard/users/BlockedTagList';
|
import BlockedTagList from '../components/dashboard/users/BlockedTagList';
|
||||||
import ButtonElement from '../components/dashboard/elements/ButtonElement';
|
import ButtonElement from '../elements/ButtonElement';
|
||||||
import SectionTitleContainer from '../components/dashboard/elements/SectionTitleContainer';
|
import SectionTitleContainer from '../elements/SectionTitleContainer';
|
||||||
import SectionTabs from '../components/dashboard/users/SectionTabs';
|
import SectionTabs from '../components/dashboard/users/SectionTabs';
|
||||||
import loading from '../components/loading/loading';
|
import loading from '../components/loading/loading';
|
||||||
import toast from '../components/toast/toast';
|
import toast from '../components/toast/toast';
|
||||||
import { getParameterByName } from '../utils/url';
|
import { getParameterByName } from '../utils/url';
|
||||||
import CheckBoxElement from '../components/dashboard/elements/CheckBoxElement';
|
import CheckBoxElement from '../elements/CheckBoxElement';
|
||||||
import escapeHTML from 'escape-html';
|
import escapeHTML from 'escape-html';
|
||||||
import SelectElement from '../components/dashboard/elements/SelectElement';
|
import SelectElement from '../elements/SelectElement';
|
||||||
import Page from '../components/Page';
|
import Page from '../components/Page';
|
||||||
|
|
||||||
type RatingsArr = {
|
type RatingsArr = {
|
||||||
|
|
|
@ -2,7 +2,7 @@ import React, { FunctionComponent, useCallback, useEffect, useState } from 'reac
|
||||||
import SectionTabs from '../components/dashboard/users/SectionTabs';
|
import SectionTabs from '../components/dashboard/users/SectionTabs';
|
||||||
import UserPasswordForm from '../components/dashboard/users/UserPasswordForm';
|
import UserPasswordForm from '../components/dashboard/users/UserPasswordForm';
|
||||||
import { getParameterByName } from '../utils/url';
|
import { getParameterByName } from '../utils/url';
|
||||||
import SectionTitleContainer from '../components/dashboard/elements/SectionTitleContainer';
|
import SectionTitleContainer from '../elements/SectionTitleContainer';
|
||||||
import Page from '../components/Page';
|
import Page from '../components/Page';
|
||||||
import loading from '../components/loading/loading';
|
import loading from '../components/loading/loading';
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import globalize from '../scripts/globalize';
|
||||||
import LibraryMenu from '../scripts/libraryMenu';
|
import LibraryMenu from '../scripts/libraryMenu';
|
||||||
import { appHost } from '../components/apphost';
|
import { appHost } from '../components/apphost';
|
||||||
import confirm from '../components/confirm/confirm';
|
import confirm from '../components/confirm/confirm';
|
||||||
import ButtonElement from '../components/dashboard/elements/ButtonElement';
|
import ButtonElement from '../elements/ButtonElement';
|
||||||
import UserPasswordForm from '../components/dashboard/users/UserPasswordForm';
|
import UserPasswordForm from '../components/dashboard/users/UserPasswordForm';
|
||||||
import loading from '../components/loading/loading';
|
import loading from '../components/loading/loading';
|
||||||
import toast from '../components/toast/toast';
|
import toast from '../components/toast/toast';
|
||||||
|
|
|
@ -6,7 +6,7 @@ import loading from '../components/loading/loading';
|
||||||
import dom from '../scripts/dom';
|
import dom from '../scripts/dom';
|
||||||
import confirm from '../components/confirm/confirm';
|
import confirm from '../components/confirm/confirm';
|
||||||
import UserCardBox from '../components/dashboard/users/UserCardBox';
|
import UserCardBox from '../components/dashboard/users/UserCardBox';
|
||||||
import SectionTitleContainer from '../components/dashboard/elements/SectionTitleContainer';
|
import SectionTitleContainer from '../elements/SectionTitleContainer';
|
||||||
import '../elements/emby-button/emby-button';
|
import '../elements/emby-button/emby-button';
|
||||||
import '../elements/emby-button/paper-icon-button-light';
|
import '../elements/emby-button/paper-icon-button-light';
|
||||||
import '../components/cardbuilder/card.scss';
|
import '../components/cardbuilder/card.scss';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue