Skip to content

Commit

Permalink
Merge pull request #226 from buggregator/issue/#57-nuxt-to-vue-migration
Browse files Browse the repository at this point in the history
Issue/#57 nuxt to vue migration
  • Loading branch information
Kreezag authored Sep 21, 2024
2 parents d8c24aa + fec1adf commit 4955ef3
Show file tree
Hide file tree
Showing 338 changed files with 15,685 additions and 5,280 deletions.
29 changes: 10 additions & 19 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,24 @@
{
"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": [
"package.json",
"postcss.config.js",
"tailwind.config.js",
"src/shared/lib/vendor/"
"src/shared/lib/vendor/",
"layouts/",
"pages/",
"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
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"
}
12 changes: 4 additions & 8 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import fs from "node:fs";
import path from 'node:path';
import vue from '@vitejs/plugin-vue'
import {fileURLToPath} from "url";

//storybook-tailwind-dark-mode
Expand All @@ -22,7 +21,8 @@ const config = {

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

env: (config) => {
Expand All @@ -45,14 +45,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
9 changes: 1 addition & 8 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { setup } from '@storybook/vue3';
import "../src/assets/index.css";
import "../src/assets/vendor";
import "./stories.css"
import SfdumpWrap from "../src/shared/lib/vendor/dumper";
import { SfdumpWrap } from '../src/shared/lib/vendor/sf-dumper/dumper'
import 'tailwindcss/tailwind.css'
import type { Preview } from '@storybook/vue3'

Expand Down Expand Up @@ -67,11 +67,4 @@ setup((app) => {
app.use(pinia)
})

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="/assets/static/favicon.ico" />
<link rel="manifest" href="/assets/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.

73 changes: 0 additions & 73 deletions nuxt.config.ts

This file was deleted.

Loading

0 comments on commit 4955ef3

Please sign in to comment.