Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6830 | Rev 6894 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 6830 Rev 6862
Línea 7... Línea 7...
7
import PublicRoute from './PublicRoute'
7
import PublicRoute from './PublicRoute'
8
import PrivateRoute from './PrivateRoute'
8
import PrivateRoute from './PrivateRoute'
9
import Spinner from '../components/UI/Spinner'
9
import Spinner from '../components/UI/Spinner'
10
import NotificationAlert from '../components/UI/notification/NotificationAlert'
10
import NotificationAlert from '../components/UI/notification/NotificationAlert'
11
import LoaderContainer from '../components/UI/LoaderContainer'
11
import LoaderContainer from '../components/UI/LoaderContainer'
12
import CompanyViewPage from '../pages/company/CompanyViewPage'
-
 
Línea 13... Línea 12...
13
 
12
 
14
const Header = lazy(() => import('../components/navbar/Header'))
13
const Header = lazy(() => import('../components/navbar/Header'))
15
const Auth = lazy(() => import('../pages/auth/Auth'))
14
const Auth = lazy(() => import('../pages/auth/Auth'))
16
const DashboardPage = lazy(() => import('../pages/dashboard/DashboardPage'))
15
const DashboardPage = lazy(() => import('../pages/dashboard/DashboardPage'))
Línea 56... Línea 55...
56
const CompanyInvitationsReceivedPage = lazy(() =>
55
const CompanyInvitationsReceivedPage = lazy(() =>
57
  import('../pages/company/CompanyInvitationsReceivedPage')
56
  import('../pages/company/CompanyInvitationsReceivedPage')
58
)
57
)
59
const ProfileViewPage = lazy(() => import('../pages/profiles/ProfileViewPage'))
58
const ProfileViewPage = lazy(() => import('../pages/profiles/ProfileViewPage'))
60
const ProfileEditPage = lazy(() => import('../pages/profiles/ProfileEditPage'))
59
const ProfileEditPage = lazy(() => import('../pages/profiles/ProfileEditPage'))
-
 
60
const CompanyViewPage = lazy(() => import('../pages/company/CompanyViewPage'))
-
 
61
const GroupViewPage = lazy(() => import('../pages/groups/GroupViewPage'))
Línea 61... Línea 62...
61
 
62
 
62
const AppRouter = () => {
63
const AppRouter = () => {
63
  const { isAuth, theme_id } = useSelector(({ auth }) => auth)
64
  const { isAuth, theme_id } = useSelector(({ auth }) => auth)
Línea 134... Línea 135...
134
            path="/profile/people-viewed-profile"
135
            path="/profile/people-viewed-profile"
135
            isAuthenticated={isAuth}
136
            isAuthenticated={isAuth}
136
          >
137
          >
137
            <PeopleViewedMyProfilePage />
138
            <PeopleViewedMyProfilePage />
138
          </PrivateRoute>
139
          </PrivateRoute>
-
 
140
          <PrivateRoute path="/profile/view/:uuid" isAuthenticated={isAuth}>
-
 
141
            <ProfileViewPage />
-
 
142
          </PrivateRoute>
-
 
143
          <PrivateRoute
-
 
144
            path="/profile/my-profiles/edit/:uuid"
-
 
145
            isAuthenticated={isAuth}
-
 
146
          >
-
 
147
            <ProfileEditPage />
-
 
148
          </PrivateRoute>
Línea 139... Línea 149...
139
 
149
 
140
          <PrivateRoute exact path="/job/saved-jobs" isAuthenticated={isAuth}>
150
          <PrivateRoute exact path="/job/saved-jobs" isAuthenticated={isAuth}>
141
            <SavedJobsPage />
151
            <SavedJobsPage />
142
          </PrivateRoute>
152
          </PrivateRoute>
Línea 166... Línea 176...
166
            <JoinedGroupsPage />
176
            <JoinedGroupsPage />
167
          </PrivateRoute>
177
          </PrivateRoute>
168
          <PrivateRoute exact path="/group/my-groups" isAuthenticated={isAuth}>
178
          <PrivateRoute exact path="/group/my-groups" isAuthenticated={isAuth}>
169
            <MyGroupsPage />
179
            <MyGroupsPage />
170
          </PrivateRoute>
180
          </PrivateRoute>
-
 
181
          <PrivateRoute path="/group/view/:uuid" isAuthenticated={isAuth}>
-
 
182
            <GroupViewPage />
-
 
183
          </PrivateRoute>
Línea 171... Línea 184...
171
 
184
 
172
          <PrivateRoute
185
          <PrivateRoute
173
            exact
186
            exact
174
            path="/company/my-companies"
187
            path="/company/my-companies"
Línea 209... Línea 222...
209
            path="/company/invitations-received"
222
            path="/company/invitations-received"
210
            isAuthenticated={isAuth}
223
            isAuthenticated={isAuth}
211
          >
224
          >
212
            <CompanyInvitationsReceivedPage />
225
            <CompanyInvitationsReceivedPage />
213
          </PrivateRoute>
226
          </PrivateRoute>
214
          <PrivateRoute path="/profile/view/:uuid" isAuthenticated={isAuth}>
-
 
215
            <ProfileViewPage />
-
 
216
          </PrivateRoute>
-
 
217
          <PrivateRoute
-
 
218
            path="/profile/my-profiles/edit/:uuid"
-
 
219
            isAuthenticated={isAuth}
-
 
220
          >
-
 
221
            <ProfileEditPage />
-
 
222
          </PrivateRoute>
-
 
223
 
-
 
224
          <PrivateRoute path="/company/view/:uuid" isAuthenticated={isAuth}>
227
          <PrivateRoute path="/company/view/:uuid" isAuthenticated={isAuth}>
225
            <CompanyViewPage />
228
            <CompanyViewPage />
226
          </PrivateRoute>
229
          </PrivateRoute>
Línea 227... Línea 230...
227
 
230