Skip to content

Commit

Permalink
Demo uses # url paths now
Browse files Browse the repository at this point in the history
  • Loading branch information
Viterbo committed May 7, 2024
1 parent 9033beb commit e2f7c51
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
1 change: 1 addition & 0 deletions examples/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"homepage": "https://vapaee.github.io/telos-cloud-js/",
"scripts": {
"dev": "vue-cli-service serve --open",
"build": "vue-cli-service build",
"deploy": "gh-pages -d build"
},
Expand Down
14 changes: 6 additions & 8 deletions examples/demo/src/components/NavegationBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,15 @@
<nav class="c-navbar" role="navigation" aria-label="main navigation">
<div id="navbarBasicExample" class="c-navbar__navbar-menu">
<div class="c-navbar__navbar-options">
<a class="c-navbar__navbar-item" href="/telos-cloud-local">
<router-link class="c-navbar__navbar-item" :to="{ name: 'telos-cloud-local' }">
Local
</a>
|
<a class="c-navbar__navbar-item" href="/telos-cloud-redirect">
</router-link>
<router-link class="c-navbar__navbar-item" :to="{ name: 'telos-cloud-redirect' }">
Redirect
</a>
|
<a class="c-navbar__navbar-item" href="/telos-cloud-iFrame">
</router-link>
<router-link class="c-navbar__navbar-item" :to="{ name: 'telos-cloud-iframe' }">
iFrame
</a>
</router-link>
</div>
</div>
</nav>
Expand Down
6 changes: 3 additions & 3 deletions examples/demo/src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
// examples/demo/src/router/index.ts
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
{
// el home redirige a la página principal telos-cloud
path: '/',
redirect: '/telos-cloud-local'
},
Expand All @@ -28,7 +28,7 @@ const routes: Array<RouteRecordRaw> = [
]

const router = createRouter({
history: createWebHistory(),
history: createWebHashHistory(),
routes
})

Expand Down

0 comments on commit e2f7c51

Please sign in to comment.