-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Troca o sequelize pelo TypeOrm (#80)
- Loading branch information
Showing
178 changed files
with
4,681 additions
and
5,952 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.