Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/app/environment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ const {
VUE_APP_REACH_API_URL,
VUE_APP_GAUGE_API_URL,
VUE_APP_PROFILE_API_URL,
VUE_APP_CLIENT_ID,
VUE_APP_CLIENT_SECRET,
VUE_APP_API_BASE_URL,
VUE_APP_TRPC_API_URL,
STATIC_ASSET_URL,
Expand All @@ -36,8 +34,6 @@ const topoMapLayerId = VUE_APP_TOPO_MAP_LAYER_ID
const apiBaseUrl = VUE_APP_API_BASE_URL
const appBaseUrl = VUE_APP_BASE_URL
const assetBaseUrl = STATIC_ASSET_URL || VUE_APP_API_BASE_URL
const clientId = VUE_APP_CLIENT_ID
const clientSecret = VUE_APP_CLIENT_SECRET
const reachApiUrl = VUE_APP_REACH_API_URL
const gaugeApiUrl = VUE_APP_GAUGE_API_URL
const profileApiUrl = VUE_APP_PROFILE_API_URL
Expand All @@ -57,8 +53,6 @@ export {
mapboxAccessToken,
nwiTileServer,
wpApiUrl,
clientId,
clientSecret,
laravelDeploy,
baseUrl,
reachApiUrl,
Expand Down
43 changes: 6 additions & 37 deletions src/app/router/user.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,12 @@ export default [
component: () => import('@/app/views/user/app-user.vue'),
children: [
{
path: 'access',
name: 'access',
component: () => import('@/app/views/user/components/access/user-access.vue'),
children: [
{
path: 'login',
name: 'login',
meta: {
crumbLabel: 'Login'
},
component: () => import('@/app/views/user/components/access/user-login.vue')
},
{
path: 'logout',
name: 'logout',
meta: {
crumbLabel: 'Logout'
},
component: () => import('@/app/views/user/components/access/user-logout.vue')
},
{
path: 'register',
name: 'register',
meta: {
crumbLabel: 'Register'
},
component: () => import('@/app/views/user/components/access/user-register.vue')
},
{
path: 'forgot',
name: 'forgot',
meta: {
crumbLabel: 'Password Reset'
},
component: () => import('@/app/views/user/components/access/user-forgot.vue')
}
]
path: 'logout',
name: 'logout',
meta: {
crumbLabel: 'Logout'
},
component: () => import('@/app/views/user/components/user-logout.vue')
},
{
path: 'account/:userId',
Expand Down
7 changes: 0 additions & 7 deletions src/app/services/getGageReadings.js

This file was deleted.

1 change: 0 additions & 1 deletion src/app/services/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export * from "./getAffiliates";
export * from "./getAllReachReports";
export * from "./getDamReleases";
export * from "./getGage";
export * from "./getGageReadings";
export * from "./getRapids";
export * from "./getReach";
export * from "./getReachAccidents";
Expand Down
27 changes: 0 additions & 27 deletions src/app/store/modules/gage-readings.js

This file was deleted.

24 changes: 0 additions & 24 deletions src/app/store/modules/user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import actions from '@/app/store/actions'
import mutations from '@/app/store/mutations'
import { laravelClient } from "@/app/http"
import { getUser, profileClient } from "@/app/services"

export default {
Expand Down Expand Up @@ -36,29 +35,6 @@ export default {
context.commit('DATA_ERROR', error)
}
},
userForgot: async (data) => {

return laravelClient.post('graphql', data).then(res => res.data)
},
userLogin: data => {


return laravelClient.post('graphql', {
query: `
mutation {
login(input: ${data}) {
access_token
expires_in
refresh_token
token_type
}
}`
}).then(res => res.data)
},
userRegister: data => {

return laravelClient.post('graphql', data).then(res => res.data)
},
logout: (context) => {
context.commit('DATA_RESET');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,4 @@ export const GageChartConfig = {
}
}
})
// computed: {
// setYMax () {
// let yMax = this.$store.state.riverDetailState.gageReadingsData.data[0];
// console.log(yMax)
// yMax = Math.ceil(yMax * 1.3);
// this.chartConfig.scales.yAxes.ticks.suggestedMax = yMax
// return yMax
// }
// }
}
21 changes: 0 additions & 21 deletions src/app/views/user/components/access/__tests__/user-access.spec.js

This file was deleted.

10 changes: 0 additions & 10 deletions src/app/views/user/components/access/__tests__/user-forgot.spec.js

This file was deleted.

55 changes: 0 additions & 55 deletions src/app/views/user/components/access/__tests__/user-login.spec.js

This file was deleted.

21 changes: 0 additions & 21 deletions src/app/views/user/components/access/__tests__/user-logout.spec.js

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions src/app/views/user/components/access/services/user-login.js

This file was deleted.

64 changes: 0 additions & 64 deletions src/app/views/user/components/access/user-access.vue

This file was deleted.

Loading