This file contains hidden or 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
| # $HOME/.functions | |
| function create-next-project() { | |
| NAME=${1:-too-lazy-to-come-up-with-a-project-name} | |
| npx create-next-app $NAME -e https://github.com/jpedroschmitz/typescript-nextjs-starter | |
| } | |
| # In order to have these functions available in your terminal at all times | |
| # make sure to add following command to your .bashrc or .zshrc file: | |
| # source $HOME/.functions |
This file contains hidden or 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
| // extensions/users-permissions/controllers/Auth.js | |
| "use strict"; | |
| /** | |
| * Auth.js controller | |
| * | |
| * @description: A set of functions called "actions" for managing `Auth`. | |
| */ | |
| /* eslint-disable no-useless-escape */ |
This file contains hidden or 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
| import '@/styles/themes.scss'; | |
| import '@/styles/global.scss'; | |
| function App({ Component, pageProps }): JSX.Element { | |
| return <Component {...pageProps} /> | |
| } | |
| export default App; |
This file contains hidden or 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
| <script> | |
| import { fly } from 'svelte/transition'; | |
| export let active = false; | |
| </script> | |
| {#if active} | |
| <div transition:fly={{ y: 50, duration: 300 }}> | |
| <slot></slot> | |
| </div> | |
| {/if} |
NewerOlder