Skip to content

Commit

Permalink
Renamed (app) folder to (main).
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao committed Oct 3, 2023
1 parent 5c15778 commit c990459
Show file tree
Hide file tree
Showing 167 changed files with 48 additions and 114 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import WebsiteSelect from 'components/input/WebsiteSelect';
import Page from 'components/layout/Page';
import PageHeader from 'components/layout/PageHeader';
import EventsChart from 'components/metrics/EventsChart';
import WebsiteChart from '../websites/[id]/WebsiteChart';
import WebsiteChart from '../../(main)/websites/[id]/WebsiteChart';
import useApi from 'components/hooks/useApi';
import Head from 'next/head';
import Link from 'next/link';
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { Button, Icon, Icons, Loading, Text } from 'react-basics';
import Link from 'next/link';
import PageHeader from 'components/layout/PageHeader';
import Pager from 'components/common/Pager';
import WebsiteChartList from '../websites/[id]/WebsiteChartList';
import DashboardSettingsButton from 'app/(app)/dashboard/DashboardSettingsButton';
import DashboardEdit from 'app/(app)/dashboard/DashboardEdit';
import WebsiteChartList from '../../(main)/websites/[id]/WebsiteChartList';
import DashboardSettingsButton from 'app/(main)/dashboard/DashboardSettingsButton';
import DashboardEdit from 'app/(main)/dashboard/DashboardEdit';
import EmptyPlaceholder from 'components/common/EmptyPlaceholder';
import useApi from 'components/hooks/useApi';
import useDashboard from 'store/dashboard';
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Dashboard from 'app/(app)/dashboard/Dashboard';
import Dashboard from 'app/(main)/dashboard/Dashboard';
import { Metadata } from 'next';

export default function DashboardPage() {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Button, Icon, Text, useToasts, ModalTrigger, Modal } from 'react-basics';
import PasswordEditForm from 'app/(app)/settings/profile/PasswordEditForm';
import PasswordEditForm from 'app/(main)/settings/profile/PasswordEditForm';
import Icons from 'components/icons';
import useMessages from 'components/hooks/useMessages';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use client';
import { Form, FormRow } from 'react-basics';
import TimezoneSetting from 'app/(app)/settings/profile/TimezoneSetting';
import DateRangeSetting from 'app/(app)/settings/profile/DateRangeSetting';
import LanguageSetting from 'app/(app)/settings/profile/LanguageSetting';
import ThemeSetting from 'app/(app)/settings/profile/ThemeSetting';
import TimezoneSetting from 'app/(main)/settings/profile/TimezoneSetting';
import DateRangeSetting from 'app/(main)/settings/profile/DateRangeSetting';
import LanguageSetting from 'app/(main)/settings/profile/LanguageSetting';
import ThemeSetting from 'app/(main)/settings/profile/ThemeSetting';
import PasswordChangeButton from './PasswordChangeButton';
import useUser from 'components/hooks/useUser';
import useMessages from 'components/hooks/useMessages';
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';
import DataTable from 'components/common/DataTable';
import TeamsTable from 'app/(app)/settings/teams/TeamsTable';
import TeamsTable from 'app/(main)/settings/teams/TeamsTable';
import useApi from 'components/hooks/useApi';
import useFilterQuery from 'components/hooks/useFilterQuery';

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import TeamsList from 'app/(app)/settings/teams/TeamsList';
import TeamsList from 'app/(main)/settings/teams/TeamsList';
import TeamsHeader from './TeamsHeader';

export default function () {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Page from 'components/layout/Page';
import useApi from 'components/hooks/useApi';
import WebsitesTable from 'app/(app)/settings/websites/WebsitesTable';
import WebsitesTable from 'app/(main)/settings/websites/WebsitesTable';
import useApiFilter from 'components/hooks/useApiFilter';

export function UserWebsites({ userId }) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import UsersList from 'app/(app)/settings/users/UsersList';
import UsersList from 'app/(main)/settings/users/UsersList';
import { Metadata } from 'next';

export default function () {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use client';
import WebsitesTable from 'app/(app)/settings/websites/WebsitesTable';
import WebsitesTable from 'app/(main)/settings/websites/WebsitesTable';
import useUser from 'components/hooks/useUser';
import useApi from 'components/hooks/useApi';
import DataTable from 'components/common/DataTable';
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use client';
import WebsiteList from '../settings/websites/Websites';
import WebsiteList from '../../(main)/settings/websites/Websites';
import { useMessages } from 'components/hooks';
import { useState } from 'react';
import { Item, Tabs } from 'react-basics';
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { useApi, useDateRange, useMessages, useNavigation, useSticky } from 'com
import WebsiteDateFilter from 'components/input/WebsiteDateFilter';
import MetricCard from 'components/metrics/MetricCard';
import MetricsBar from 'components/metrics/MetricsBar';
import FilterSelectForm from '../../reports/FilterSelectForm';
import PopupForm from '../../reports/PopupForm';
import FilterSelectForm from '../../../(main)/reports/FilterSelectForm';
import PopupForm from '../../../(main)/reports/PopupForm';
import { formatShortTime } from 'lib/format';
import { Button, Icon, Icons, Popup, PopupTrigger } from 'react-basics';
import styles from './WebsiteMetricsBar.module.css';
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';
import Page from 'components/layout/Page';
import Empty from 'components/common/Empty';
import ReportsTable from 'app/(app)/reports/ReportsTable';
import ReportsTable from '../../../../(main)/reports/ReportsTable';
import { useMessages, useWebsiteReports } from 'components/hooks';
import Link from 'next/link';
import { Button, Flexbox, Icon, Icons, Text } from 'react-basics';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use client';
import WebsitesHeader from '../settings/websites/WebsitesHeader';
import WebsitesHeader from '../../(main)/settings/websites/WebsitesHeader';
import WebsitesBrowse from './WebsitesBrowse';

export default function WebsitesPage() {
Expand Down
2 changes: 1 addition & 1 deletion src/app/share/[...id]/Share.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use client';
import WebsiteDetails from 'app/(app)/websites/[id]/WebsiteDetails';
import WebsiteDetails from '../../(main)/websites/[id]/WebsiteDetails';
import useShareToken from 'components/hooks/useShareToken';

export default function ({ shareId }) {
Expand Down
4 changes: 2 additions & 2 deletions src/components/input/SettingsButton.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Button, Icon, PopupTrigger, Popup, Form, FormRow } from 'react-basics';
import TimezoneSetting from 'app/(app)/settings/profile/TimezoneSetting';
import DateRangeSetting from 'app/(app)/settings/profile/DateRangeSetting';
import TimezoneSetting from 'app/(main)/settings/profile/TimezoneSetting';
import DateRangeSetting from 'app/(main)/settings/profile/DateRangeSetting';
import Icons from 'components/icons';
import useMessages from 'components/hooks/useMessages';
import styles from './SettingsButton.module.css';
Expand Down
116 changes: 25 additions & 91 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,69 +1,3 @@
/*
export * from 'components/common/ConfirmDeleteForm';
export * from 'components/common/Empty';
export * from 'components/common/EmptyPlaceholder';
export * from 'components/common/ErrorBoundary';
export * from 'components/common/ErrorMessage';
export * from 'components/common/Favicon';
export * from 'components/common/FilterButtons';
export * from 'components/common/FilterLink';
export * from 'components/common/HamburgerButton';
export * from 'components/common/HoverTooltip';
export * from 'components/common/LinkButton';
export * from 'components/common/MobileMenu';
export * from 'components/common/Pager';
export * from 'components/common/UpdateNotice';
export * from 'components/common/WorldMap';
export * from 'components/hooks/useApi';
export * from 'components/hooks/useConfig';
export * from 'components/hooks/useCountryNames';
export * from 'components/hooks/useDateRange';
export * from 'components/hooks/useDocumentClick';
export * from 'components/hooks/useEscapeKey';
export * from 'components/hooks/useFilters';
export * from 'components/hooks/useForceUpdate';
export * from 'components/hooks/useFormat';
export * from 'components/hooks/useLanguageNames';
export * from 'components/hooks/useLocale';
export * from 'components/hooks/useMessages';
export * from 'components/hooks/usePageQuery';
export * from 'components/hooks/useReport';
export * from 'components/hooks/useReports';
export * from 'components/hooks/useRequireLogin';
export * from 'components/hooks/useShareToken';
export * from 'components/hooks/useSticky';
export * from 'components/hooks/useTheme';
export * from 'components/hooks/useTimezone';
export * from 'components/hooks/useUser';
export * from 'components/hooks/useWebsite';
export * from 'components/hooks/useWebsiteReports';
export * from 'components/input/DateFilter';
export * from 'components/input/LanguageButton';
export * from 'components/input/LogoutButton';
export * from 'components/input/MonthSelect';
export * from 'components/input/ProfileButton';
export * from 'components/input/RefreshButton';
export * from 'components/input/SettingsButton';
export * from 'components/input/ThemeButton';
export * from 'components/input/WebsiteDateFilter';
export * from 'components/input/WebsiteSelect';
export * from 'components/layout/AppLayout';
export * from 'components/layout/Footer';
export * from 'components/layout/Grid';
export * from 'components/layout/Header';
export * from 'components/layout/NavBar';
export * from 'components/layout/NavGroup';
export * from 'components/layout/Page';
export * from 'components/layout/PageHeader';
export * from 'components/layout/ReportsLayout';
export * from 'components/layout/SettingsLayout';
export * from 'components/layout/ShareLayout';
export * from 'components/layout/SideNav';
*/

export * from 'components/hooks/useApi';
export * from 'components/hooks/useConfig';
export * from 'components/hooks/useCountryNames';
Expand All @@ -88,29 +22,29 @@ export * from 'components/hooks/useUser';
export * from 'components/hooks/useWebsite';
export * from 'components/hooks/useWebsiteReports';

export * from 'app/(app)/settings/teams/TeamAddForm';
export * from 'app/(app)/settings/teams/[id]/TeamAddWebsiteForm';
export * from 'app/(app)/settings/teams/TeamDeleteForm';
export * from 'app/(app)/settings/teams/[id]/TeamEditForm';
export * from 'app/(app)/settings/teams/TeamJoinForm';
export * from 'app/(app)/settings/teams/TeamLeaveForm';
export * from 'app/(app)/settings/teams/[id]/TeamMemberRemoveButton';
export * from 'app/(app)/settings/teams/[id]/TeamMembers';
export * from 'app/(app)/settings/teams/[id]/TeamMembersTable';
export * from 'app/(app)/settings/teams/[id]/TeamSettings';
export * from 'app/(app)/settings/teams/TeamsList';
export * from 'app/(app)/settings/teams/TeamsTable';
export * from 'app/(app)/settings/teams/TeamWebsiteRemoveButton';
export * from 'app/(app)/settings/teams/[id]/TeamWebsites';
export * from 'app/(app)/settings/teams/[id]/TeamWebsitesTable';
export * from 'app/(app)/settings/teams/WebsiteTags';
export * from 'app/(main)/settings/teams/TeamAddForm';
export * from 'app/(main)/settings/teams/[id]/TeamAddWebsiteForm';
export * from 'app/(main)/settings/teams/TeamDeleteForm';
export * from 'app/(main)/settings/teams/[id]/TeamEditForm';
export * from 'app/(main)/settings/teams/TeamJoinForm';
export * from 'app/(main)/settings/teams/TeamLeaveForm';
export * from 'app/(main)/settings/teams/[id]/TeamMemberRemoveButton';
export * from 'app/(main)/settings/teams/[id]/TeamMembers';
export * from 'app/(main)/settings/teams/[id]/TeamMembersTable';
export * from 'app/(main)/settings/teams/[id]/TeamSettings';
export * from 'app/(main)/settings/teams/TeamsList';
export * from 'app/(main)/settings/teams/TeamsTable';
export * from 'app/(main)/settings/teams/TeamWebsiteRemoveButton';
export * from 'app/(main)/settings/teams/[id]/TeamWebsites';
export * from 'app/(main)/settings/teams/[id]/TeamWebsitesTable';
export * from 'app/(main)/settings/teams/WebsiteTags';

export * from 'app/(app)/settings/websites/[id]/ShareUrl';
export * from 'app/(app)/settings/websites/[id]/TrackingCode';
export * from 'app/(app)/settings/websites/WebsiteAddForm';
export * from 'app/(app)/settings/websites/[id]/WebsiteDeleteForm';
export * from 'app/(app)/settings/websites/[id]/WebsiteEditForm';
export * from 'app/(app)/settings/websites/[id]/WebsiteResetForm';
export * from 'app/(app)/settings/websites/WebsiteSettings';
export * from './app/(app)/settings/websites/Websites';
export * from 'app/(app)/settings/websites/WebsitesTable';
export * from 'app/(main)/settings/websites/[id]/ShareUrl';
export * from 'app/(main)/settings/websites/[id]/TrackingCode';
export * from 'app/(main)/settings/websites/WebsiteAddForm';
export * from 'app/(main)/settings/websites/[id]/WebsiteDeleteForm';
export * from 'app/(main)/settings/websites/[id]/WebsiteEditForm';
export * from 'app/(main)/settings/websites/[id]/WebsiteResetForm';
export * from 'app/(main)/settings/websites/WebsiteSettings';
export * from 'app/(main)/settings/websites/Websites';
export * from 'app/(main)/settings/websites/WebsitesTable';

0 comments on commit c990459

Please sign in to comment.