diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 9d509b5..d61e37b 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -7,5 +7,6 @@ module.exports = { ], parserOptions: { ecmaVersion: 'latest', - } + }, + ignorePatterns: ['src/app.config.mjs'], } diff --git a/package.json b/package.json index 71be381..8b30bd3 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,8 @@ "name": "Instacode", "description": "Scratchpad for instant JavaScript code running", "version": "0.0.0", + "author": "Grzegorz Kućmierz", + "homepage": "https://github.com/gkucmierz/instacode-app", "scripts": { "dev": "vite", "build": "vite build && cp dist/index.html dist/404.html", diff --git a/src/app.config.mjs b/src/app.config.mjs index 411fdf7..6f81989 100644 --- a/src/app.config.mjs +++ b/src/app.config.mjs @@ -1,4 +1,6 @@ +export { default as PACKAGE_JSON } from '../package.json' assert { type: 'json' }; + export const APP_URL = 'https://instacode.app'; export const MAX_DATA_SIZE = 1e5; export const ERROR_MAX_DATA_SIZE = 'Error: Output exceeded maximum size allowed'; diff --git a/src/router/index.js b/src/router/index.js index 035d1e6..6889151 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,6 +1,7 @@ import { createRouter, createWebHistory } from 'vue-router'; import HomeView from '../views/HomeView.vue'; import SettingsView from '../views/SettingsView.vue'; +import AboutView from '../views/AboutView.vue'; import codeService from '../services/codeService'; import { SHARE_CODE_ROUTE_NAME } from '../app.config'; @@ -29,10 +30,7 @@ const router = createRouter({ { path: '/about', name: 'about', - // route level code-splitting - // this generates a separate chunk (About.[hash].js) for this route - // which is lazy-loaded when the route is visited. - component: () => import('../views/AboutView.vue') + component: AboutView, } ] }) diff --git a/src/views/AboutView.vue b/src/views/AboutView.vue index 99c5050..2391c3c 100644 --- a/src/views/AboutView.vue +++ b/src/views/AboutView.vue @@ -1,8 +1,78 @@ + + + + - -