Skip to content

Commit

Permalink
Fix minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjacob committed May 23, 2024
1 parent 50519a1 commit 2d7c6c7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 17 deletions.
5 changes: 4 additions & 1 deletion components/Kryptos/Grid.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<script setup lang="ts">
const props = defineProps({
cipher: String,
cipher: {
type: String,
default: ''
},
col: {
type: Number,
default: 8
Expand Down
13 changes: 7 additions & 6 deletions middleware/k.global.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
export default defineNuxtRouteMiddleware((to, from) => {
const valid = [
'/', '/k0', '/k1', '/k2', '/k3', '/k4',
'/manifest.webmanifest'
];
if (to.path.startsWith('/k')) {
const valid = [
'/k0', '/k1', '/k2', '/k3', '/k4',
];

if (!valid.includes(to.path)) {
return navigateTo('/');
if (!valid.includes(to.path)) {
return navigateTo('/');
}
}
});
25 changes: 15 additions & 10 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: ['@vite-pwa/nuxt', "@nuxtjs/google-fonts"],
googleFonts: {
families: {
'Major Mono Display': true,
'Roboto Mono': {
wght: '100...700'
},
download: true
}
},
modules: [
'@vite-pwa/nuxt',
[
'@nuxtjs/google-fonts',
{
families: {
'Major Mono Display': true,
'Roboto Mono': {
wght: '100...700'
},
download: true
}
}
]
],
css: [
'~/assets/css/theme.css'
],
Expand Down

0 comments on commit 2d7c6c7

Please sign in to comment.