Skip to content

Commit 9697cc0

Browse files
committed
Merge branch 'master' into develop
2 parents 0ef93d6 + 6d142dd commit 9697cc0

File tree

31 files changed

+295
-226
lines changed

31 files changed

+295
-226
lines changed

client/build/dev-server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ module.exports = app.listen(port, function (err) {
6666
}
6767
var uri = 'http://localhost:' + port
6868
console.log('Listening at ' + uri + '\n')
69+
console.log('API Url ' + config.dev.env.API_URL + '\n')
6970

7071
// when env is testing, don't need open it
71-
if (process.env.NODE_ENV !== 'testing') {
72+
if (process.env.NODE_ENV !== 'testing' && config.dev.openBrowser) {
7273
opn(uri)
7374
}
7475
})

client/config/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module.exports = {
1919
dev: {
2020
env: require('./dev.env'),
2121
port: 8080,
22+
openBrowser: true,
2223
assetsSubDirectory: 'static',
2324
assetsPublicPath: '/',
2425
proxyTable: {},

client/config/prod.env.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
module.exports = {
2-
NODE_ENV: '"production"'
2+
NODE_ENV: '"production"',
3+
API_URL: '"http://localhost:8000/api"',
34
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script>
2-
import CcNavBar from './modules/general/navbar'
3-
import CcAlerts from './modules/general/alerts'
2+
import CcNavBar from './components/root/navbar'
3+
import CcAlerts from './components/general/alerts'
44
55
export default {
66
name: 'Codecasts',

client/src/app/categories/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { default as routes } from './routes'
2+
export { default as vuex } from './vuex'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<script>
33
import Vue from 'vue'
44
import { mapActions, mapState } from 'vuex'
5-
import CcPagination from '../general/pagination'
5+
import CcPagination from 'components/general/pagination'
66
77
export default {
88
/**

client/src/app/dashboard/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/* eslint-disable import/prefer-default-export */
2+
export { default as routes } from './routes'

0 commit comments

Comments
 (0)