Skip to content

Commit dcb2fd8

Browse files
committed
refactor: change project folder architecture
1 parent 7cd4900 commit dcb2fd8

File tree

119 files changed

+190
-196
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+190
-196
lines changed

src/CAlert.js renamed to src/alert/CAlert.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React, { useState, useEffect, useRef } from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import CFade from './CFade'
5-
import CButtonClose from './CButtonClose'
4+
import CFade from '../fade/CFade'
5+
import CButtonClose from '../button/CButtonClose'
66

77
//component - CoreUI / CAlert
88
const CAlert = props => {

src/CBadge.js renamed to src/badge/CBadge.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './utils/helper.js'
5-
import CLink from './CLink'
4+
import { tagPropType } from '../utils/helper.js'
5+
import CLink from '../link/CLink'
66

77
//component - CoreUI / CBadge
88

File renamed without changes.
File renamed without changes.

src/CBreadcrumbRouter.js renamed to src/breadcrumb/CBreadcrumbRouter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { CBreadcrumb, CBreadcrumbItem } from './index'
4+
import { CBreadcrumb, CBreadcrumbItem } from '../index'
55
import { Link, useLocation } from 'react-router-dom';
66

77
//component - CoreUI / CBreadcrumbRouter

src/CButton.js renamed to src/button/CButton.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './utils/helper.js'
5-
import CLink from './CLink'
4+
import { tagPropType } from '../utils/helper.js'
5+
import CLink from '../link/CLink'
66
//component - CoreUI / CButton
77

88
const CButton = props => {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/CCard.js renamed to src/card/CCard.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './utils/helper.js'
4+
import { tagPropType } from '../utils/helper.js'
55

66
//component - CoreUI / CCard
77

src/CCardBody.js renamed to src/card/CCardBody.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './utils/helper.js'
4+
import { tagPropType } from '../utils/helper.js'
55
import { sharedPropTypes } from './CCard'
66
//component - CoreUI / CCardBody
77

src/CCardFooter.js renamed to src/card/CCardFooter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './utils/helper.js'
4+
import { tagPropType } from '../utils/helper.js'
55
import { sharedPropTypes } from './CCard.js'
66

77
//component - CoreUI / CCardFooter

src/CCardGroup.js renamed to src/card/CCardGroup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import {tagPropType} from './utils/helper.js'
4+
import {tagPropType} from '../utils/helper.js'
55

66
//component - CoreUI / CCardGroup
77

src/CCardHeader.js renamed to src/card/CCardHeader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './utils/helper.js'
4+
import { tagPropType } from '../utils/helper.js'
55
import { sharedPropTypes } from './CCard'
66

77
//component - CoreUI / CCardHeader

src/CCardImg.js renamed to src/card/CCardImg.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
3-
import CImg from './CImg'
3+
import CImg from '../image/CImg'
44

55
//component - CoreUI / CCardImg
66
const CCardImg = props => {

src/CCardImgOverlay.js renamed to src/card/CCardImgOverlay.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import classNames from 'classnames';
4-
import {tagPropType} from './utils/helper.js';
4+
import {tagPropType} from '../utils/helper.js';
55

66
//component - CoreUI / CCardImgOverlay
77

src/CCardLink.js renamed to src/card/CCardLink.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint react/prop-types: 0 */
22
import React from 'react'
3-
import CLink from './CLink'
3+
import CLink from '../link/CLink'
44

55
const CCardLink = props => {
66
return (

src/CCardSubtitle.js renamed to src/card/CCardSubtitle.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import classNames from 'classnames';
4-
import {tagPropType} from './utils/helper.js';
4+
import {tagPropType} from '../utils/helper.js';
55

66
//component - CoreUI / CCardSubtitle
77

src/CCardText.js renamed to src/card/CCardText.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import classNames from 'classnames';
4-
import {tagPropType} from './utils/helper.js';
4+
import {tagPropType} from '../utils/helper.js';
55

66
//component - CoreUI / CCardText
77

src/CCardTitle.js renamed to src/card/CCardTitle.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import classNames from 'classnames';
4-
import {tagPropType} from './utils/helper.js';
4+
import {tagPropType} from '../utils/helper.js';
55

66
//component - CoreUI / CCardTitle
77

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/CCollapse.js renamed to src/collapse/CCollapse.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, {useState} from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
44
import { pickByKeys } from '@coreui/utils/src'
5-
import { TransitionPropTypeKeys } from './utils/helper.js'
5+
import { TransitionPropTypeKeys } from '../utils/helper.js'
66
import { Transition } from 'react-transition-group'
77

88
const transitionStatusToClassHash = {
File renamed without changes.

src/CDropdown.js renamed to src/dropdown/CDropdown.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState } from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './utils/helper.js'
4+
import { tagPropType } from '../utils/helper.js'
55

66
export const Context = React.createContext({})
77

File renamed without changes.
File renamed without changes.

src/CDropdownItem.js renamed to src/dropdown/CDropdownItem.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React, { useContext } from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './utils/helper.js'
4+
import { tagPropType } from '../utils/helper.js'
55
import { Context } from './CDropdown'
6-
import CLink from './CLink'
6+
import CLink from '../link/CLink'
77

88
//component - CoreUI / CDropdownItem
99
const CDropdownItem = props => {
File renamed without changes.

src/CDropdownToggle.js renamed to src/dropdown/CDropdownToggle.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React, { useContext, useEffect } from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './utils/helper.js'
5-
import CButton from './CButton'
6-
import CLink from './CLink'
4+
import { tagPropType } from '../utils/helper.js'
5+
import CButton from '../button/CButton'
6+
import CLink from '../link/CLink'
77
import { Context } from './CDropdown'
88

99
//component - CoreUI / CDropdownToggle

src/CElementCover.js renamed to src/element-cover/CElementCover.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useEffect, createRef, useState } from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import CSpinner from './CSpinner'
4+
import CSpinner from '../spinner/CSpinner'
55

66
//component - CoreUI / CElementCover
77
const CElementCover = props => {

src/CEmbed.js renamed to src/embed/CEmbed.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './utils/helper.js'
4+
import { tagPropType } from '../utils/helper.js'
55

66
//component - CoreUI / CEmbed
77

src/CEmbedItem.js renamed to src/embed/CEmbedItem.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './utils/helper.js'
4+
import { tagPropType } from '../utils/helper.js'
55

66
//component - CoreUI / CEmbedItem
77

src/CFade.js renamed to src/fade/CFade.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
44
import { pickByKeys } from '@coreui/utils/src'
5-
import { TransitionPropTypeKeys, tagPropType } from './utils/helper.js'
5+
import { TransitionPropTypeKeys, tagPropType } from '../utils/helper.js'
66
import { Transition } from 'react-transition-group'
77

88
//component - CoreUI / CFade

src/CForm.js renamed to src/form/CForm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import classNames from 'classnames';
4-
import {tagPropType} from './utils/helper.js';
4+
import {tagPropType} from '../utils/helper.js';
55

66
//component - CoreUI / CForm
77

File renamed without changes.
File renamed without changes.

src/CFormText.js renamed to src/form/CFormText.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './utils/helper.js'
4+
import { tagPropType } from '../utils/helper.js'
55

66
//component - CoreUI / CFormText
77
const CFormText = props => {
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/CInputGroupText.js renamed to src/form/CInputGroupText.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './utils/helper.js'
4+
import { tagPropType } from '../utils/helper.js'
55

66
//component - CoreUI / CInputGroupText
77
const CInputGroupText = props => {

src/CLabel.js renamed to src/form/CLabel.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './utils/helper.js'
5-
import CCol from './CCol'
4+
import { tagPropType } from '../utils/helper.js'
5+
import CCol from '../grid/CCol'
66

77
//component - CoreUI / CLabel
88
const CLabel = props => {

src/CCol.js renamed to src/grid/CCol.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import classNames from 'classnames';
4-
import {tagPropType} from './utils/helper.js';
4+
import {tagPropType} from '../utils/helper.js';
55

66
const colWidths = ['xs', 'sm', 'md', 'lg', 'xl'];
77
const stringOrNumberProp = PropTypes.oneOfType([PropTypes.number, PropTypes.string]);

src/CContainer.js renamed to src/grid/CContainer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import classNames from 'classnames';
4-
import {tagPropType} from './utils/helper.js';
4+
import {tagPropType} from '../utils/helper.js';
55

66
//component - CoreUI / CContainer
77

src/CRow.js renamed to src/grid/CRow.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './utils/helper.js'
4+
import { tagPropType } from '../utils/helper.js'
55

66
//component - CoreUI / CRow
77
const CRow = props => {

src/CImg.js renamed to src/image/CImg.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './utils/helper.js'
4+
import { tagPropType } from '../utils/helper.js'
55

66
//component - CoreUI / CImg
77
const CImg = props => {

0 commit comments

Comments
 (0)