!!GitHub_Desktop<feature/dynamic-routing>
This commit is contained in:
parent
7f3134a929
commit
a9c2ab27c2
6 changed files with 18 additions and 5 deletions
|
|
@ -26,7 +26,7 @@ resources:
|
||||||
type: github
|
type: github
|
||||||
name: Safelite/AzureDevOps
|
name: Safelite/AzureDevOps
|
||||||
endpoint: Safelite
|
endpoint: Safelite
|
||||||
ref: DigitalConsumer
|
ref: DigitalConsumer #refs/tags/t5.3.4
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
- group: Digital-Infrastructure
|
- group: Digital-Infrastructure
|
||||||
|
|
@ -45,7 +45,7 @@ stages:
|
||||||
summaryFileLocation: $(Build.SourcesDirectory)/coverage/cobertura-coverage.xml
|
summaryFileLocation: $(Build.SourcesDirectory)/coverage/cobertura-coverage.xml
|
||||||
|
|
||||||
# Dev Build/Deploy
|
# Dev Build/Deploy
|
||||||
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
|
- ${{ else }}:
|
||||||
- stage: Dev
|
- stage: Dev
|
||||||
variables:
|
variables:
|
||||||
- group: FixMyGlassDev
|
- group: FixMyGlassDev
|
||||||
|
|
|
||||||
|
|
@ -12,5 +12,4 @@ export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import { lazyLoadComponent } from "@/utilities/component-loader.js";
|
import { lazyLoadComponent } from "@/router/dyanmic-routing/component-loader.js";
|
||||||
|
|
||||||
export function getRouteData(relativeUrl) {
|
export function getRouteData(relativeUrl) {
|
||||||
return axios
|
return axios
|
||||||
.get("https://mockey.qa.sagaws.net/service/content/sitemap" + relativeUrl)
|
.get("https://mockey.qa.sagaws.net/service/content/sitemap" + relativeUrl)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
|
|
||||||
// This is really only for Mockey. In a real case, this would just be a 404 and we would check status code.
|
// This is really only for Mockey. In a real case, this would just be a 404 and we would check status code.
|
||||||
if (response.data.Result === undefined) {
|
if (response.data.Result === undefined) {
|
||||||
return Promise.reject("Could not find any details about given route.");
|
return Promise.reject("Could not find any details about given route.");
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { createWebHistory, createRouter } from "vue-router";
|
import { createWebHistory, createRouter } from "vue-router";
|
||||||
import { getRouteData } from "@/utilities/route-compile.js";
|
import { getRouteData } from "@/router/dynamic-routing/route-compile.js";
|
||||||
import NotFound from "@/layouts/NotFound.vue";
|
import NotFound from "@/layouts/NotFound.vue";
|
||||||
import Home from "@/layouts/Home.vue";
|
import Home from "@/layouts/Home.vue";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
module.exports = {
|
||||||
|
publicPath: '/',
|
||||||
|
devServer: {
|
||||||
|
port: 8080,
|
||||||
|
proxy: {
|
||||||
|
'api/v1/content*':{
|
||||||
|
target: 'https://localhost:44360/',
|
||||||
|
ws: false,
|
||||||
|
changeOrigin: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue