-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into feature/get-orgs-pagination
- Loading branch information
Showing
87 changed files
with
7,705 additions
and
1,326 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 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 |
---|---|---|
|
@@ -7,4 +7,8 @@ temp/ | |
.env | ||
env | ||
src/entity | ||
src/ormconfig.ts | ||
src/ormconfig.ts | ||
build | ||
issueformat.md | ||
requests.rest | ||
package-lock.json |
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 @@ | ||
yarn commitlint ${1} |
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,7 @@ | ||
yarn | ||
|
||
yarn lint-staged | ||
|
||
yarn test | ||
|
||
yarn build |
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,33 @@ | ||
module.exports = { | ||
parserPreset: "conventional-changelog-conventionalcommits", | ||
extends: ["@commitlint/config-conventional"], | ||
rules: { | ||
"body-leading-blank": [1, "always"], | ||
"body-max-line-length": [2, "always", 100], | ||
"footer-leading-blank": [1, "always"], | ||
"footer-max-line-length": [2, "always", 100], | ||
"header-max-length": [2, "always", 100], | ||
"subject-case": [2, "never", ["start-case", "pascal-case"]], | ||
"subject-empty": [2, "never"], | ||
"subject-full-stop": [2, "never", "."], | ||
"type-case": [2, "always", "lower-case"], | ||
"type-empty": [2, "never"], | ||
"type-enum": [ | ||
2, | ||
"always", | ||
[ | ||
"build", | ||
"chore", | ||
"ci", | ||
"docs", | ||
"feat", | ||
"fix", | ||
"perf", | ||
"refactor", | ||
"revert", | ||
"style", | ||
"test", | ||
], | ||
], | ||
}, | ||
}; |
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,4 +1,3 @@ | ||
|
||
|
||
Erasmus Tayviah (StarmannRassy) | ||
|
||
- [Nainah23](https://github.com/Nainah23) | ||
- Erasmus Tayviah (StarmannRassy) | ||
- [Adekolu Samuel Samixx](https://github.com/samixYasuke) |
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -0,0 +1,171 @@ | ||
# Javascript snippets | ||
|
||
- `np` - nextPage | ||
- `npssp` - nextPageServerSideProps | ||
- `npsp` - nextPageStaticProps | ||
- `npspth` - nextPageStaticPaths | ||
- `nssp` - nextServerSideProps | ||
- `nsp` - nextStaticProps | ||
- `nspth` - nextStaticPaths | ||
- `nip` - nextInitialProps | ||
- `nimg` - nextImage | ||
- `napp` - nextApp | ||
- `ndoc` - nextDocument | ||
- `napi` - nextApi | ||
- `nmid` - nextMiddleware | ||
|
||
## `np` - nextPage | ||
|
||
```javascript | ||
const FileName = ({}) => { | ||
return <div></div>; | ||
}; | ||
|
||
export default FileName; | ||
``` | ||
|
||
## `npssp` - nextPageServerSideProps | ||
|
||
```javascript | ||
const FileName = ({}) => { | ||
return <div></div>; | ||
}; | ||
|
||
export const getServerSideProps = async (ctx) => { | ||
return { | ||
props: {}, | ||
}; | ||
}; | ||
|
||
export default FileName; | ||
``` | ||
|
||
## `npsp` - nextPageStaticProps | ||
|
||
```javascript | ||
const FileName = ({}) => { | ||
return <div></div>; | ||
}; | ||
|
||
export const getStaticProps = async (ctx) => { | ||
return { | ||
props: {}, | ||
}; | ||
}; | ||
|
||
export default FileName; | ||
``` | ||
|
||
## `npspth` - nextPageStaticPaths | ||
|
||
```javascript | ||
const FileName = ({}) => { | ||
return <div></div>; | ||
}; | ||
|
||
export const getStaticPaths = async () => { | ||
return { | ||
paths: [], | ||
fallback: false, | ||
}; | ||
}; | ||
|
||
export default FileName; | ||
``` | ||
|
||
## `nssp` - nextServerSideProps | ||
|
||
```javascript | ||
export const getServerSideProps = async (ctx) => { | ||
return { | ||
props: {}, | ||
}; | ||
}; | ||
``` | ||
|
||
## `nsp` - nextStaticProps | ||
|
||
```javascript | ||
export const getStaticProps = async (ctx) => { | ||
return { | ||
props: {}, | ||
}; | ||
}; | ||
``` | ||
|
||
## `nspth` - nextStaticPaths | ||
|
||
```javascript | ||
export const getStaticPaths = async () => { | ||
return { | ||
paths: [], | ||
fallback: false, | ||
}; | ||
}; | ||
``` | ||
|
||
## `nip` - nextInitialProps | ||
|
||
```javascript | ||
FileName.getInitialProps = async (ctx) => { | ||
return {}; | ||
}; | ||
``` | ||
|
||
## `nimg` - nextImage | ||
|
||
```javascript | ||
<Image src="" alt="" /> | ||
``` | ||
|
||
## `napp` - nextApp | ||
|
||
```javascript | ||
export default function MyApp({ Component, pageProps }) { | ||
return <Component {...pageProps} />; | ||
} | ||
``` | ||
|
||
## `ndoc` - nextDocument | ||
|
||
```javascript | ||
import Document, { Html, Head, Main, NextScript } from "next/document"; | ||
|
||
class MyDocument extends Document { | ||
static async getInitialProps(ctx) { | ||
const initialProps = await Document.getInitialProps(ctx); | ||
return { ...initialProps }; | ||
} | ||
|
||
render() { | ||
return ( | ||
<Html> | ||
<Head /> | ||
<body> | ||
<Main /> | ||
<NextScript /> | ||
</body> | ||
</Html> | ||
); | ||
} | ||
} | ||
|
||
export default MyDocument; | ||
``` | ||
|
||
## `napi` - nextApi | ||
|
||
```javascript | ||
export default async function handler(req, res) {} | ||
``` | ||
|
||
## `nmid` - nextMiddleware | ||
|
||
```javascript | ||
import { NextResponse } from "next/server"; | ||
export async function middleware(request) {} | ||
|
||
export const config = { | ||
matcher: "/about/:path*", | ||
}; | ||
``` |
Oops, something went wrong.