Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue/#57 nuxt to vue migration #234

Merged
merged 91 commits into from
Dec 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
473b2ef
use base vue configs
Kreezag Sep 4, 2024
2f642cb
use vue-router insted of nuxt router
Kreezag Sep 5, 2024
d656f3d
rename page-layout to page-content
Kreezag Sep 5, 2024
3ba6e16
add layout-base component
Kreezag Sep 5, 2024
5cb82a1
create base home page
Kreezag Sep 5, 2024
deb1585
replace nuxt-link to router-link
Kreezag Sep 5, 2024
a7e3aee
update settings-page
Kreezag Sep 5, 2024
ec073ff
update route links to home
Kreezag Sep 5, 2024
836a340
update base-layout usage
Kreezag Sep 8, 2024
13d7803
fix working with middlewares
Kreezag Sep 8, 2024
c1915ba
create settings-page-content conponent
Kreezag Sep 8, 2024
054302f
add events-list pages
Kreezag Sep 8, 2024
503e17a
fix ts warnings
Kreezag Sep 8, 2024
d1fd9ae
fix paused events count
Kreezag Sep 8, 2024
6508577
reduce routes for page events
Kreezag Sep 9, 2024
f6d4f8e
rename home-page to prev0ewevents
Kreezag Sep 9, 2024
da8963a
create base event-page screen
Kreezag Sep 9, 2024
fd760d5
create event types pages
Kreezag Sep 9, 2024
6c28d23
fix type warning in the code
Kreezag Sep 9, 2024
f04c540
polish page settings constants
Kreezag Sep 9, 2024
0c9ef62
use 3000 port for dev server
Kreezag Sep 11, 2024
49ca4e0
fix settings page type prop in the header
Kreezag Sep 11, 2024
42fbb69
create 404 page
Kreezag Sep 11, 2024
2c8d5b0
add check-type middleware
Kreezag Sep 11, 2024
ef2d80b
add login page
Kreezag Sep 11, 2024
33f5e2e
remove nuxt layouts
Kreezag Sep 11, 2024
991aa99
update router auth middlewares
Kreezag Sep 11, 2024
f033149
fix active sidebar menu item for active event page
Kreezag Sep 11, 2024
a642fdc
fix profiler preview animation
Kreezag Sep 11, 2024
fb92202
fix event page mapper components
Kreezag Sep 11, 2024
af72166
move cytoscape to the profiler lib
Kreezag Sep 11, 2024
e78e48d
move smtp-page preview to shared folder
Kreezag Sep 11, 2024
a6a23a0
rename event-card to event-card-mapper
Kreezag Sep 11, 2024
e185d6d
rename screens according to fsd naming
Kreezag Sep 11, 2024
1194574
update route-name enum import
Kreezag Sep 11, 2024
6051b1b
remove old event types enum
Kreezag Sep 11, 2024
e466b6e
update codestyle for ray event enums
Kreezag Sep 11, 2024
8c731b6
update codestyle for enums
Kreezag Sep 11, 2024
26e67c7
fix type error in the preview-card strory
Kreezag Sep 11, 2024
628aeb1
fix eslint warnings
Kreezag Sep 12, 2024
bd4535d
fix typecheck command
Kreezag Sep 12, 2024
294589d
exclude dist folder from ts check
Kreezag Sep 12, 2024
b410048
fix type errors
Kreezag Sep 12, 2024
facdce9
remove hardcoded numbers from preview-card-footer
Kreezag Sep 12, 2024
d2bafa0
fix ts errors for sentry components
Kreezag Sep 14, 2024
3669b89
fix attachments lib
Kreezag Sep 14, 2024
e6b238b
fix open event page link in preview header
Kreezag Sep 14, 2024
c30c3cd
fix type errors for ray events
Kreezag Sep 14, 2024
3ccc816
fix type errors for profiler components
Kreezag Sep 15, 2024
c04f2a4
fix type errors for mapper components
Kreezag Sep 15, 2024
585b150
fix type error for inspector page
Kreezag Sep 15, 2024
beca215
fix type errors and warnings
Kreezag Sep 15, 2024
b6126cc
fix ts errors in exported modules
Kreezag Sep 15, 2024
eda3e58
fix ws save event to the store
Kreezag Sep 17, 2024
0c8dcc2
fix storybook preview
Kreezag Sep 17, 2024
fb6e673
update story for stat-board
Kreezag Sep 17, 2024
3fe287c
fix stat board props types validations
Kreezag Sep 19, 2024
fb009d8
fix ts error in call-graph component
Kreezag Sep 19, 2024
def79a3
fix render graph height
Kreezag Sep 19, 2024
0e6db7d
fix graph rerender on metric change
Kreezag Sep 19, 2024
ee94cf5
fix ts error for profile page
Kreezag Sep 21, 2024
8f85b6b
fix type errors with call-stat-board
Kreezag Sep 21, 2024
36c0c8b
fix ts errors for profiler call-stat-board
Kreezag Sep 21, 2024
570fac2
fix hljs import
Kreezag Sep 21, 2024
bbcd65c
update sf-dump usage
Kreezag Sep 21, 2024
c10f952
add base sanitize to value-dump component
Kreezag Sep 21, 2024
3dfce88
fix using inline html in sentry components
Kreezag Sep 21, 2024
67dbe27
inclrease exception lines count on the sentry page
Kreezag Sep 21, 2024
123111b
fix console warning for ray-table component
Kreezag Sep 21, 2024
ce50c78
fix console error with web-manifest import
Kreezag Sep 21, 2024
750216c
fix ray exception component view
Kreezag Sep 22, 2024
eb917ad
remove unused nuxt dependencies
Kreezag Sep 22, 2024
3df0a76
fix lint errors and warnings
Kreezag Dec 22, 2024
1d2b9a9
polish linters
Kreezag Dec 22, 2024
9b544e3
add analyzer command
Kreezag Dec 22, 2024
1b95853
update build commands
Kreezag Dec 22, 2024
8206a5f
split and minify output chunks
Kreezag Dec 22, 2024
604561d
fix eslint ignore for dist folder
Kreezag Dec 22, 2024
d5d3cc2
migrate to new sass imports
Kreezag Dec 22, 2024
8b596bf
fix storybook errors
Kreezag Dec 22, 2024
41a1dfc
remove size prop from statboard component. move statboard to profiler
Kreezag Dec 22, 2024
a62e6d3
polish email preview component story
Kreezag Dec 22, 2024
fd1ef97
add todo to value-dump component
Kreezag Dec 22, 2024
66874c7
fix stat-board component error
Kreezag Dec 22, 2024
0ac7918
add router to storybook preview
Kreezag Dec 22, 2024
6f0f7db
polish todos
Kreezag Dec 22, 2024
db7fde2
polish view for monolog preview-card
Kreezag Dec 22, 2024
d92a073
polish storybook stories titiles
Kreezag Dec 22, 2024
7325f73
fix paddings for sentry page components
Kreezag Dec 22, 2024
d252376
polish styles for monolog page components
Kreezag Dec 22, 2024
a2ac2b8
add todo to storybook flame-graph
Kreezag Dec 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN sed -i "s/\"version\": \".*\"/\"version\": \"${APP_VERSION}\"/" package.json
RUN sed -i "s/\"version\": \".*\"/\"version\": \"${APP_VERSION}\"/" src/static/manifest.json

RUN yarn install --ignore-scripts
RUN yarn generate
RUN yarn build
RUN rm -rf node_modules

LABEL org.opencontainers.image.source=$REPOSITORY
Expand Down
40 changes: 21 additions & 19 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,23 @@
{
"extends": [
"airbnb/base",
"airbnb-typescript/base",
"prettier",
"plugin:vue/vue3-essential",
"plugin:vue/vue3-recommended",
"@nuxtjs/eslint-config-typescript",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"prettier",
"plugin:nuxt/recommended",
"plugin:@conarti/feature-sliced/recommended",
"plugin:storybook/recommended"
"@vue/eslint-config-typescript",
"plugin:storybook/recommended",
"plugin:@conarti/feature-sliced/recommended"
],
"parser": "vue-eslint-parser",
"plugins": ["@typescript-eslint"],
"root": true,
"ignorePatterns": [
"dist/",
"package.json",
"postcss.config.js",
"tailwind.config.js",
"src/shared/lib/vendor/"
"src/shared/lib/vendor/",
"index.html"
],
"parserOptions": {
"project": "./tsconfig.json",
"extraFileExtensions": [".vue"],
"parser": {
"ts": "@typescript-eslint/parser",
"<template>": "espree"
}
"ecmaVersion": "latest"
},
"rules": {
"import/prefer-default-export": "off",
Expand Down Expand Up @@ -55,6 +45,18 @@
"ts": "never",
"tsx": "never"
}
],
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "all",
"argsIgnorePattern": "^_",
"caughtErrors": "all",
"caughtErrorsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
]
}
}
3 changes: 1 addition & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Ignore artifacts:
.nuxt
.output
dist
node-modules
package-lock.json
storybook-static
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": false,
"tabWidth": 2,
"singleQuote": true,
"printWidth": 100,
"trailingComma": "none"
}
21 changes: 10 additions & 11 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import fs from "node:fs";
import path from 'node:path';
import vue from '@vitejs/plugin-vue'
import {fileURLToPath} from "url";

//storybook-tailwind-dark-mode
const config = {
stories: [
"../stories/**/*.stories.mdx",
"../stories/**/*.stories.@(js|jsx|ts|tsx)",
"../components/**/*.stories.@(js|jsx|ts|tsx)",
"../layouts/**/*.stories.@(js|jsx|ts|tsx)",
"../pages/**/*.stories.@(js|jsx|ts|tsx)",
"../src/**/**/**/*.stories.@(js|jsx|ts|tsx)",
],

Expand All @@ -22,7 +18,14 @@ const config = {

framework: {
name: "@storybook/vue3-vite",
options: {}
options: {
}
},

core: {
builder: {
name: '@storybook/builder-vite',
},
},

env: (config) => {
Expand All @@ -45,14 +48,10 @@ const config = {
viteFinal: async (config) => {
config.resolve.alias = {
...config.resolve.alias,
'~/src': fileURLToPath(new URL('../src', import.meta.url)),
'@/src': fileURLToPath(new URL('../src', import.meta.url)),
}

const { mergeConfig } = await import('vite');

return mergeConfig(config, {
plugins: [vue()],
});
return config;
}
};

Expand Down
13 changes: 4 additions & 9 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {createPinia} from 'pinia';
import { setup } from '@storybook/vue3';
import "../src/assets/index.css";
import "../src/assets/vendor";
import "../src/assets/vendor.css";
import "./stories.css"
import SfdumpWrap from "../src/shared/lib/vendor/dumper";
import 'tailwindcss/tailwind.css'
import type { Preview } from '@storybook/vue3'
import {createAppRouter} from "../src/app/router";

const preview: Preview = {
decorators: [
Expand Down Expand Up @@ -62,16 +62,11 @@ const preview: Preview = {


const pinia = createPinia();
const router = createAppRouter();

setup((app) => {
app.use(pinia)
app.use(router)
})

declare global {
interface Window {
Sfdump: (id: string) => void;
}
}
window.Sfdump = SfdumpWrap(window.document)

export default preview;
11 changes: 0 additions & 11 deletions app.vue

This file was deleted.

8 changes: 8 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from 'cypress'

export default defineConfig({
e2e: {
specPattern: 'cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}',
baseUrl: 'http://localhost:4173'
}
})
1 change: 1 addition & 0 deletions env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
34 changes: 0 additions & 34 deletions error.vue

This file was deleted.

16 changes: 16 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/x-icon" href="/src/assets/static/favicon.ico" />
<link rel="manifest" href="/src/assets/static/manifest.json" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="format-detection" content="telephone=no" />
<meta name="description" hid="description" content="" />
<title>Buggregator</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
17 changes: 0 additions & 17 deletions layouts/blank.vue

This file was deleted.

65 changes: 0 additions & 65 deletions layouts/default.vue

This file was deleted.

40 changes: 0 additions & 40 deletions middleware/auth.global.ts

This file was deleted.

Loading
Loading