Sha256: aab8d9f194eca7f0957a44c34ad87c1da5c293a9f07f14a3462c0a01c51db5da

Contents?: true

Size: 673 Bytes

Versions: 6

Compression:

Stored size: 673 Bytes

Contents

/*
# Copyright 2023 OpenC3, Inc.
# All Rights Reserved.
#
# This file may also be used under the terms of a commercial license
# if purchased from OpenC3, Inc.
*/

import { createRouter, createWebHistory } from 'vue-router'
import { prependBasePath } from '@openc3/js-common/utils'
import { NotFound } from '@openc3/vue-common/components'

const routes = [
  {
    path: '/',
    name: 'jruby',
    component: () => import('./tools/<%= tool_name %>/<%= tool_name %>.vue'),
  },
  {
    path: '/:pathMatch(.*)*',
    name: 'NotFound',
    component: NotFound,
  },
]
routes.forEach(prependBasePath)

export default createRouter({
  history: createWebHistory(),
  routes,
})

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
openc3-6.2.1 templates/tool_vue/src/router.js
openc3-6.2.0 templates/tool_vue/src/router.js
openc3-6.1.0 templates/tool_vue/src/router.js
openc3-6.0.2 templates/tool_vue/src/router.js
openc3-6.0.1 templates/tool_vue/src/router.js
openc3-6.0.0 templates/tool_vue/src/router.js