Skip to content

Commit

Permalink
Troca o sequelize pelo TypeOrm (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
welllucky authored and Wellington Braga committed Nov 27, 2024
2 parents efeecce + e403916 commit fce7a20
Show file tree
Hide file tree
Showing 178 changed files with 4,681 additions and 5,952 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
.pnp.js
.yarn

.fleet
.vscode
.vscode/*

# testing
/coverage
tests/playwright/report/index.html
Expand Down Expand Up @@ -65,7 +69,7 @@ coverage/*
# Snyk
snyk-linux

services.sqlite
*.sqlite
# Sentry Config File
.env.sentry-build-plugin
node_modules/
8 changes: 0 additions & 8 deletions .hintrc

This file was deleted.

8 changes: 0 additions & 8 deletions .sequelizerc

This file was deleted.

115 changes: 58 additions & 57 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,57 +1,58 @@
import { withThemeFromJSXProvider } from "@storybook/addon-themes";
import {
INITIAL_VIEWPORTS,
MINIMAL_VIEWPORTS,
} from "@storybook/addon-viewport";
import { Preview } from "@storybook/react";
import { ThemeProvider } from "styled-components";
import { GlobalStyle } from "../src/styles/globals.tsx";
import { darkTheme, lightTheme } from "../src/styles/themes";

export const decorators = [
withThemeFromJSXProvider({
themes: {
light: lightTheme,
dark: darkTheme,
},
defaultTheme: "light",
Provider: ThemeProvider,
GlobalStyles: GlobalStyle,
}),
];

const preview: Preview = {
parameters: {
layout: "centered",
viewport: {
viewports: {
...INITIAL_VIEWPORTS,
...MINIMAL_VIEWPORTS,
},
},
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
mockAddonConfigs: {
globalMockData: [
{
// An array of mock objects which will add in every story
url: "http://localhost:0000",
method: "PUT",
status: 200,
response: {},
},
],
ignoreQueryParams: true, // Whether or not to ignore query parameters globally
refreshStoryOnUpdate: true, // This property re-renders the story if there's any data changes
disableUsingOriginal: false, // This property disables the toggle (on/off) option to use the original endpoint
disable: true, // This property disables the panel from all the stories
},
},
};

export default preview;
import { withThemeFromJSXProvider } from "@storybook/addon-themes";
// @ts-ignore
import {
INITIAL_VIEWPORTS,
MINIMAL_VIEWPORTS,
} from "@storybook/addon-viewport";
import { Preview } from "@storybook/react";
import { ThemeProvider } from "styled-components";
import { GlobalStyle } from "@/styles";
import { darkTheme, lightTheme } from "../src/styles/themes";

export const decorators = [
withThemeFromJSXProvider({
themes: {
light: lightTheme,
dark: darkTheme,
},
defaultTheme: "light",
Provider: ThemeProvider,
GlobalStyles: GlobalStyle,
}),
];

const preview: Preview = {
parameters: {
layout: "centered",
viewport: {
viewports: {
...INITIAL_VIEWPORTS,
...MINIMAL_VIEWPORTS,
},
},
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
mockAddonConfigs: {
globalMockData: [
{
// An array of mock objects which will add in every story
url: "http://localhost:0000",
method: "PUT",
status: 200,
response: {},
},
],
ignoreQueryParams: true, // Whether or not to ignore query parameters globally
refreshStoryOnUpdate: true, // This property re-renders the story if there's any data changes
disableUsingOriginal: false, // This property disables the toggle (on/off) option to use the original endpoint
disable: true, // This property disables the panel from all the stories
},
},
};

export default preview;
29 changes: 29 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
// Use o IntelliSense para saber mais sobre os atributos possíveis.
// Focalizar para exibir as descrições dos atributos existentes.
// Para obter mais informações, acesse: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [


{
"type": "chrome",
"request": "launch",
"name": "Depurar no Chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}",
"sourceMaps": true
},
{
"type": "node",
"request": "launch",
"name": "Depurar no Node",
"skipFiles": ["<node_internals>/**"],
// "program": "${workspaceFolder}/src/app/page.tsx",
"sourceMaps": true,
"console": "integratedTerminal",
"runtimeExecutable": "pnpm",
"runtimeArgs": ["dev"]
}
]
}
89 changes: 0 additions & 89 deletions FC Services

This file was deleted.

Loading

0 comments on commit fce7a20

Please sign in to comment.