Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
chore: format codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelrk committed Jun 3, 2024
1 parent d81087a commit 66f10cd
Show file tree
Hide file tree
Showing 68 changed files with 299 additions and 590 deletions.
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ assignees: ''
3. Scroll down to '....'
4. See error

**Expected behavior** A clear and concise description of what you expected to
happen.
**Expected behavior** A clear and concise description of what you expected to happen.

**Screenshots** If applicable, add screenshots to help explain your problem.

Expand Down
14 changes: 6 additions & 8 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ labels: ''
assignees: ''
---

**Is your feature request related to a problem? Please describe.** A clear and
concise description of what the problem is. Ex. I'm always frustrated when [...]
**Is your feature request related to a problem? Please describe.** A clear and concise description
of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like** A clear and concise description of what you
want to happen.
**Describe the solution you'd like** A clear and concise description of what you want to happen.

**Describe alternatives you've considered** A clear and concise description of
any alternative solutions or features you've considered.
**Describe alternatives you've considered** A clear and concise description of any alternative
solutions or features you've considered.

**Additional context** Add any other context or screenshots about the feature
request here.
**Additional context** Add any other context or screenshots about the feature request here.
12 changes: 5 additions & 7 deletions attributions.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Open Source License Attribution

This application uses Open Source components. You can find the source code of
their open source projects along with license information below. We acknowledge
and are grateful to these developers for their contributions to open source.
This application uses Open Source components. You can find the source code of their open source
projects along with license information below. We acknowledge and are grateful to these developers
for their contributions to open source.

### [deployctl](https://github.com/denoland/fresh)

Expand Down Expand Up @@ -31,7 +31,5 @@ by [shadcn](https://github.com/shadcn-ui) is licensed under

### [@feathersjs/feathers](https://github.com/feathersjs/feathers)

by
[Feathers contributors](https://github.com/feathersjs/feathers/graphs/contributors)
is licensed under
[MIT License](https://github.com/feathersjs/feathers/blob/dove/LICENSE)
by [Feathers contributors](https://github.com/feathersjs/feathers/graphs/contributors) is licensed
under [MIT License](https://github.com/feathersjs/feathers/blob/dove/LICENSE)
121 changes: 53 additions & 68 deletions code_of_conduct.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,120 +2,105 @@

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, caste, color, religion, or sexual
identity and orientation.
We as members, contributors, and leaders pledge to make participation in our community a
harassment-free experience for everyone, regardless of age, body size, visible or invisible
disability, ethnicity, sex characteristics, gender identity and expression, level of experience,
education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or
sexual identity and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and
healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:
Examples of behavior that contributes to a positive environment for our community include:

- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
- Focusing on what is best not just for us as individuals, but for the overall
community
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the
experience
- Focusing on what is best not just for us as individuals, but for the overall community

Examples of unacceptable behavior include:

- The use of sexualized language or imagery, and sexual attention or advances of
any kind
- The use of sexualized language or imagery, and sexual attention or advances of any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email address,
without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting
- Publishing others' private information, such as a physical or email address, without their
explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior
and will take appropriate and fair corrective action in response to any behavior that they deem
inappropriate, threatening, offensive, or harmful.

Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.
Community leaders have the right and responsibility to remove, edit, or reject comments, commits,
code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and
will communicate reasons for moderation decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.
This Code of Conduct applies within all community spaces, and also applies when an individual is
officially representing the community in public spaces. Examples of representing our community
include using an official e-mail address, posting via an official social media account, or acting as
an appointed representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
[[email protected]](mailto:[email protected]). All complaints will be reviewed and
investigated promptly and fairly.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community
leaders responsible for enforcement at [[email protected]](mailto:[email protected]). All complaints will be
reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.
All community leaders are obligated to respect the privacy and security of the reporter of any
incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:
Community leaders will follow these Community Impact Guidelines in determining the consequences for
any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or
unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.
**Consequence**: A private, written warning from community leaders, providing clarity around the
nature of the violation and an explanation of why the behavior was inappropriate. A public apology
may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series of
actions.
**Community Impact**: A violation through a single incident or series of actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or permanent
ban.
**Consequence**: A warning with consequences for continued behavior. No interaction with the people
involved, including unsolicited interaction with those enforcing the Code of Conduct, for a
specified period of time. This includes avoiding interactions in community spaces as well as
external channels like social media. Violating these terms may lead to a temporary or permanent ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.
**Community Impact**: A serious violation of community standards, including sustained inappropriate
behavior.

**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.
**Consequence**: A temporary ban from any sort of interaction or public communication with the
community for a specified period of time. No public or private interaction with the people involved,
including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this
period. Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.
**Community Impact**: Demonstrating a pattern of violation of community standards, including
sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement
of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within the
community.
**Consequence**: A permanent ban from any sort of public interaction within the community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.1, available at
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].

Community Impact Guidelines were inspired by
Expand Down
17 changes: 8 additions & 9 deletions contributing.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
# Contributing to Netzo Open Source

Thank you for your interest in contributing to Netzo Open Source! This document
is a set of guidelines to help you contribute to this project.
Thank you for your interest in contributing to Netzo Open Source! This document is a set of
guidelines to help you contribute to this project.

## Code of Conduct

By participating in this project, you are expected to uphold our
[Code of Conduct][code_of_conduct].
By participating in this project, you are expected to uphold our [Code of Conduct][code_of_conduct].

[code_of_conduct]: https://opensource.creativecommons.org/community/code-of-conduct/

## Project Documentation

The `README` in the root of the repository should contain or link to project
documentation. If you cannot find the documentation you're looking for, please
file a GitHub issue with details of what you'd like to see documented.
The `README` in the root of the repository should contain or link to project documentation. If you
cannot find the documentation you're looking for, please file a GitHub issue with details of what
you'd like to see documented.

## How to Contribute

Please follow the processes in our general [Contributing Code][contributing]
guidelines on the Creative Common Open Source website.
Please follow the processes in our general [Contributing Code][contributing] guidelines on the
Creative Common Open Source website.

[contributing]: https://opensource.creativecommons.org/contributing-code/

Expand Down
7 changes: 2 additions & 5 deletions lib/apis/create-api/auth/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ export const auth = async (
if (In === "query") query[name] = value;
if (In === "header") headers[name] = value;
} else if (authorization.type === "googlejwtsa") {
const { googleServiceAccountCredentials, googleAuthOptions } =
authorization;
const { googleServiceAccountCredentials, googleAuthOptions } = authorization;
const { access_token }: GoogleAuth = await getTokenGoogleJwtSa(
googleServiceAccountCredentials,
googleAuthOptions,
Expand All @@ -45,9 +44,7 @@ export const auth = async (
const { token_type = headerPrefix, access_token } = await getTokenOauth2(
authorization,
);
headers.Authorization = token_type
? `${token_type} ${access_token}`
: access_token;
headers.Authorization = token_type ? `${token_type} ${access_token}` : access_token;
}

options.query = { ...options.query, ...query };
Expand Down
13 changes: 2 additions & 11 deletions lib/apis/create-api/mod.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
import { $fetch, type FetchOptions } from "https://esm.sh/[email protected]";
import {
type QueryObject,
resolveURL,
withQuery,
} from "https://esm.sh/[email protected]";
import type {
ApiClient,
ApiMethodHandler,
ApiMethodHandlerGET,
ResponseType,
} from "./types.ts";
import { type QueryObject, resolveURL, withQuery } from "https://esm.sh/[email protected]";
import type { ApiClient, ApiMethodHandler, ApiMethodHandlerGET, ResponseType } from "./types.ts";
import { headersToObject } from "./utils.ts";

const payloadMethods: ReadonlyArray<string> = [
Expand Down
Loading

0 comments on commit 66f10cd

Please sign in to comment.