mirror of
https://github.com/Xevion/the-office.git
synced 2026-01-31 06:26:18 -06:00
fix API env base URL axios path with .env files
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
VUE_APP_BASE_APP_URL=http://192.168.2.35:5000
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
VUE_APP_BASE_APP_URL=
|
||||||
@@ -45,7 +45,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getEpisode() {
|
getEpisode() {
|
||||||
const path = `http://${process.env.VUE_APP_HOST}:${process.env.VUE_APP_FLASK_PORT}/api/episode/\
|
const path = `${process.env.VUE_APP_BASE_APP_URL}/api/episode/\
|
||||||
${this.$route.params.season}/${this.$route.params.episode}/`;
|
${this.$route.params.season}/${this.$route.params.episode}/`;
|
||||||
axios.get(path)
|
axios.get(path)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getStats() {
|
getStats() {
|
||||||
const path = `http://${process.env.VUE_APP_HOST}:${process.env.VUE_APP_FLASK_PORT}/api/stats/`;
|
const path = `${process.env.VUE_APP_BASE_APP_URL}/api/stats/`;
|
||||||
axios.get(path)
|
axios.get(path)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.stats = res.data;
|
this.stats = res.data;
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
fetchQuotes() {
|
fetchQuotes() {
|
||||||
const path = `http://${process.env.VUE_APP_HOST}:${process.env.VUE_APP_FLASK_PORT}/api/quote_surround?season=\
|
const path = `${process.env.VUE_APP_BASE_APP_URL}/api/quote_surround?season=\
|
||||||
${this.item.season}&episode=${this.item.episode_rel}&scene=${this.item.section_rel}"e=${this.item.quote_rel}`;
|
${this.item.season}&episode=${this.item.episode_rel}&scene=${this.item.section_rel}"e=${this.item.quote_rel}`;
|
||||||
axios.get(path)
|
axios.get(path)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getSeasons() {
|
getSeasons() {
|
||||||
const path = `http://${process.env.VUE_APP_HOST}:${process.env.VUE_APP_FLASK_PORT}/api/episodes/`;
|
const path = `${process.env.VUE_APP_BASE_APP_URL}/api/episodes/`;
|
||||||
axios.get(path)
|
axios.get(path)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.seasons = res.data;
|
this.seasons = res.data;
|
||||||
|
|||||||
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/favicon.ico><title>TheOfficeQuotes</title><base href=/ ><link href=/static/css/app.8ce95770.css rel=preload as=style><link href=/static/css/chunk-vendors.69e8e4a1.css rel=preload as=style><link href=/static/js/app.45bcd808.js rel=preload as=script><link href=/static/js/chunk-vendors.11a395d7.js rel=preload as=script><link href=/static/css/chunk-vendors.69e8e4a1.css rel=stylesheet><link href=/static/css/app.8ce95770.css rel=stylesheet></head><style>body {
|
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/favicon.ico><title>TheOfficeQuotes</title><base href=/ ><link href=/static/css/app.8ce95770.css rel=preload as=style><link href=/static/css/chunk-vendors.69e8e4a1.css rel=preload as=style><link href=/static/js/app.edb6d763.js rel=preload as=script><link href=/static/js/chunk-vendors.a97a7260.js rel=preload as=script><link href=/static/css/chunk-vendors.69e8e4a1.css rel=stylesheet><link href=/static/css/app.8ce95770.css rel=stylesheet></head><style>body {
|
||||||
background: #0a0a0a;
|
background: #0a0a0a;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -119,4 +119,4 @@
|
|||||||
100% {
|
100% {
|
||||||
-webkit-transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
|
-webkit-transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
|
||||||
}
|
}
|
||||||
}</style><body><noscript><strong>We're sorry but TheOfficeQuotes doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app><div id=loading-wrapper><div class=cssload-loader><div class="cssload-inner cssload-one"></div><div class="cssload-inner cssload-two"></div><div class="cssload-inner cssload-three"></div></div></div></div><script src=/static/js/chunk-vendors.11a395d7.js></script><script src=/static/js/app.45bcd808.js></script></body></html>
|
}</style><body><noscript><strong>We're sorry but TheOfficeQuotes doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app><div id=loading-wrapper><div class=cssload-loader><div class="cssload-inner cssload-one"></div><div class="cssload-inner cssload-two"></div><div class="cssload-inner cssload-three"></div></div></div></div><script src=/static/js/chunk-vendors.a97a7260.js></script><script src=/static/js/app.edb6d763.js></script></body></html>
|
||||||
Vendored
-2
File diff suppressed because one or more lines are too long
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
+2
File diff suppressed because one or more lines are too long
Vendored
+1
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user