aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-05-16 19:59:21 +0200
committerChocobozzz <me@florianbigard.com>2018-05-17 10:55:50 +0200
commit74af5a8361f4ccb460001706ce249d50c747f361 (patch)
tree4e077f14a6c604799b15fdbea98a2d8c8bdc7576 /client/src
parent6200d8d91710b03a72a27e35cbe6eed1e6cc8c62 (diff)
downloadPeerTube-74af5a8361f4ccb460001706ce249d50c747f361.tar.gz
PeerTube-74af5a8361f4ccb460001706ce249d50c747f361.tar.zst
PeerTube-74af5a8361f4ccb460001706ce249d50c747f361.zip
Client E2E tests first step
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/app-routing.module.ts32
-rw-r--r--client/src/environments/environment.e2e.ts5
-rw-r--r--client/src/environments/environment.hmr.ts5
-rw-r--r--client/src/environments/environment.ts2
4 files changed, 27 insertions, 17 deletions
diff --git a/client/src/app/app-routing.module.ts b/client/src/app/app-routing.module.ts
index 936912d28..46e108cc7 100644
--- a/client/src/app/app-routing.module.ts
+++ b/client/src/app/app-routing.module.ts
@@ -4,22 +4,22 @@ import { RouterModule, Routes } from '@angular/router'
4import { PreloadSelectedModulesList } from './core' 4import { PreloadSelectedModulesList } from './core'
5 5
6const routes: Routes = [ 6const routes: Routes = [
7 { 7 // {
8 path: 'admin', 8 // path: 'admin',
9 loadChildren: './+admin/admin.module#AdminModule' 9 // loadChildren: './+admin/admin.module#AdminModule'
10 }, 10 // },
11 { 11 // {
12 path: 'my-account', 12 // path: 'my-account',
13 loadChildren: './+my-account/my-account.module#MyAccountModule' 13 // loadChildren: './+my-account/my-account.module#MyAccountModule'
14 }, 14 // },
15 { 15 // {
16 path: 'accounts', 16 // path: 'accounts',
17 loadChildren: './+accounts/accounts.module#AccountsModule' 17 // loadChildren: './+accounts/accounts.module#AccountsModule'
18 }, 18 // },
19 { 19 // {
20 path: 'video-channels', 20 // path: 'video-channels',
21 loadChildren: './+video-channels/video-channels.module#VideoChannelsModule' 21 // loadChildren: './+video-channels/video-channels.module#VideoChannelsModule'
22 } 22 // }
23] 23]
24 24
25@NgModule({ 25@NgModule({
diff --git a/client/src/environments/environment.e2e.ts b/client/src/environments/environment.e2e.ts
new file mode 100644
index 000000000..7c00e8d4f
--- /dev/null
+++ b/client/src/environments/environment.e2e.ts
@@ -0,0 +1,5 @@
1export const environment = {
2 production: false,
3 hmr: false,
4 apiUrl: 'http://localhost:9001'
5}
diff --git a/client/src/environments/environment.hmr.ts b/client/src/environments/environment.hmr.ts
new file mode 100644
index 000000000..20e2b8fcd
--- /dev/null
+++ b/client/src/environments/environment.hmr.ts
@@ -0,0 +1,5 @@
1export const environment = {
2 production: false,
3 hmr: true,
4 apiUrl: 'http://localhost:9000'
5}
diff --git a/client/src/environments/environment.ts b/client/src/environments/environment.ts
index 364da6745..5bb6f4b34 100644
--- a/client/src/environments/environment.ts
+++ b/client/src/environments/environment.ts
@@ -4,6 +4,6 @@
4 4
5export const environment = { 5export const environment = {
6 production: false, 6 production: false,
7 hmr: true, 7 hmr: false,
8 apiUrl: 'http://localhost:9000' 8 apiUrl: 'http://localhost:9000'
9} 9}