|
|
|
@ -1,20 +1,25 @@
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
import Home from './components/Home.vue'
|
|
|
|
|
// This starter template is using Vue 3 <script setup> SFCs
|
|
|
|
|
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
|
|
|
|
|
import HelloWorld from './components/HelloWorld.vue'
|
|
|
|
|
import { MathStatement } from './support/parse'
|
|
|
|
|
import { MathPage } from './support/page'
|
|
|
|
|
(window as any).Stmt = MathStatement
|
|
|
|
|
;(window as any).Pg = MathPage
|
|
|
|
|
import { MathStatement } from "./support/parse";
|
|
|
|
|
import { MathPage } from "./support/page";
|
|
|
|
|
(window as any).Stmt = MathStatement;
|
|
|
|
|
(window as any).Pg = MathPage;
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<div id="nav">
|
|
|
|
|
<router-link to="/">Home</router-link> |
|
|
|
|
|
<router-link to="/scratch">Scratch Testing</router-link>
|
|
|
|
|
</div>
|
|
|
|
|
<router-view/>
|
|
|
|
|
<v-app>
|
|
|
|
|
<v-app-bar height="30" elevation="0">
|
|
|
|
|
<div id="nav">
|
|
|
|
|
<router-link class="links" to="/">Home</router-link> |
|
|
|
|
|
<router-link class="links" to="/scratch">Scratch Testing</router-link> |
|
|
|
|
|
<router-link class="links" to="/editor">Editor</router-link>
|
|
|
|
|
</div>
|
|
|
|
|
</v-app-bar>
|
|
|
|
|
|
|
|
|
|
<div style="margin-top: 30px"> <!-- Account for the navbar height -->
|
|
|
|
|
<router-view/>
|
|
|
|
|
</div>
|
|
|
|
|
</v-app>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
@ -23,8 +28,14 @@ import { MathPage } from './support/page'
|
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: #2c3e50;
|
|
|
|
|
margin-top: 60px;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
.links {
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
.links:visited {
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|