-
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.
* [DEV-41] add auto migration to envs (#26) * chore: updated .env.example * chore: added vscode extensions recommendations * chore: updated dependencies * chore: updated README * chore: updated dependencies * chore: moved tailwind import to js * chore: added tests to env variables * chore: added env vault config * chore: work on workflows * chore: updated bun lock * chore: updated dependencies * chore: force build step to bundle env * chore: force build step to bundle env * chore: updated dotenv-vault * feat: bumped vault version * chore: I give up on dotenv-vault * chore: removed vault from workflow * chore: updated envs to work on both states * [DEV-54] repository enhancements and utilities package (#29) * chore: upgraded dependencies * feat: added banner to readme * feat: added code of conduct * feat: added contributing guide * test: move md files to github dir * chore: renamed contributing to github standard * feat: added screenshot to readme * chore: updaded pr template * feat: added bug report issue template * feat: added base shared package * chore: moved api to js export * feat: finished api integration * chore: updated dependencies * chore: updated dependencies * feat: moved service and api to shared lib * chore: enhanced tests * feat: added tests * chore: added type tests to CICD * feat: added api tests * feat: added test type entry * chore: removed prisma ads * [DEV-12] Enhance profile creation page (#30) * chore: removed prisma ads * fix: 404 thrown on non localized pages * fix: missing textures on cards * feat: refactored profile form
- Loading branch information
1 parent
a304d46
commit 38d5004
Showing
66 changed files
with
1,398 additions
and
673 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Code of Conduct | ||
## Introduction | ||
|
||
Our open source project is committed to creating a welcoming and inclusive environment for everyone who participates. We value diversity and strive to ensure that our community remains respectful and supportive. By participating in this project, you agree to abide by this Code of Conduct. | ||
Expected Behavior | ||
|
||
## Everyone in our community is expected to: | ||
|
||
- Be Respectful: Treat all individuals with respect, and be considerate of different viewpoints and experiences. | ||
- Be Inclusive: Encourage participation from people of diverse backgrounds and experiences. | ||
- Communicate Clearly: Use clear and professional language in all communications, whether they are in comments, issues, or discussions. | ||
- Give Constructive Feedback: Provide feedback that is constructive and aimed at improving the project, rather than criticizing individuals personally. | ||
- Acknowledge Contributions: Recognize and respect the contributions and ideas of others. | ||
|
||
## Unacceptable Behavior | ||
|
||
The following behaviors are not tolerated: | ||
|
||
- Harassment: Engaging in discriminatory, harassing, or threatening behavior. This includes, but is not limited to, offensive comments related to gender, sexual orientation, disability, physical appearance, race, or religion. | ||
- Personal Attacks: Making personal attacks or derogatory comments about others. | ||
- Disruptive Behavior: Engaging in disruptive behavior that undermines the project or community, such as spamming or trolling. | ||
- Abuse of Authority: Using a position of power or influence to coerce or intimidate others. | ||
|
||
## Reporting Issues | ||
|
||
If you encounter or witness behavior that violates this Code of Conduct, please report it to the project maintainers. You can do so by: | ||
|
||
- Opening an Issue: File an issue on our GitHub repository with a description of the behavior and any relevant context. | ||
- Contacting Maintainers Directly: Reach out via email or direct message to one of the project maintainers. Contact information can be found in the MAINTAINERS.md file. | ||
|
||
All reports will be reviewed and investigated promptly and fairly. Confidentiality will be maintained to the extent possible. | ||
|
||
## Enforcement | ||
|
||
Violations of the Code of Conduct may result in a range of responses, from a warning to temporary or permanent removal from the project. The severity of the response will be proportional to the nature of the violation. | ||
|
||
The project maintainers will handle enforcement with discretion and transparency. Our goal is to address issues fairly and ensure a positive experience for everyone involved. | ||
|
||
## Acknowledgements | ||
|
||
This Code of Conduct is inspired by the [Contributor Covenant](https://www.contributor-covenant.org/), version 2.1. | ||
|
||
## Changes | ||
|
||
This Code of Conduct may be updated periodically to reflect changes in the project or community needs. Please check this document regularly for any updates. | ||
|
||
Thank you for helping to make our project a welcoming and inclusive space! |
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,50 @@ | ||
# Contributing to sharedway | ||
|
||
Thank you for considering contributing to sharedway! We welcome contributions of all kinds, whether it's code, documentation, or simply feedback. This guide will help you get started. | ||
|
||
## Table of Contents | ||
|
||
- [Code of Conduct](#code-of-conduct) | ||
- [Getting Started](#getting-started) | ||
- [Reporting Issues](#reporting-issues) | ||
- [Style Guide](#style-guide) | ||
- [Questions?](#questions) | ||
|
||
## Code of Conduct | ||
|
||
Please read and follow our [Code of Conduct](CODE_OF_CONDUCT.md). We are committed to creating a welcoming and inclusive environment for all contributors. | ||
|
||
## Getting Started | ||
|
||
1. **Fork the Repository**: Click the "Fork" button at the top-right corner of this page. | ||
2. **Clone Your Fork**: Clone your forked repository to your local machine. | ||
```bash | ||
git clone https://github.com/darklight9811/sharedway.git | ||
``` | ||
3. **Create a Branch**: Create a new branch for your changes. | ||
```bash | ||
git checkout -b your-branch-name | ||
``` | ||
4. **Install Dependencies**: Run `bun install` to install all required dependencies. | ||
5. **Make Your Changes**: Implement your feature or fix. | ||
|
||
## Reporting Issues | ||
If you encounter a bug or have a feature request, please open an issue on GitHub. Provide as much detail as possible, including: | ||
- A clear description of the problem or request | ||
- Steps to reproduce the issue | ||
- Expected and actual results | ||
- Any relevant screenshots or logs | ||
|
||
## Style Guide | ||
|
||
Please follow our project's style guide to ensure consistency. Key points include: | ||
|
||
- Use descriptive commit messages | ||
- Run `biomejs` linter and formatter | ||
- Write clear, concise documentation | ||
|
||
## Questions? | ||
|
||
If you have any questions, feel free to reach out via discussions or contact us directly at [email protected] | ||
|
||
Thank you for contributing to sharedway! |
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,85 @@ | ||
name: Report an issue | ||
description: Report an issue. | ||
labels: ['bug'] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
This template is used for reporting a issue with sharedway. | ||
Feature requests should be opened in [discussions](https://github.com/darklight9811/sharedway/discussions/new?category=ideas). | ||
Before opening a new issue, please do a [search](https://github.com/darkligh9811/sharedway/issues) of existing issues and :+1: upvote the existing issue instead. This will result in a quicker resolution. | ||
- type: textarea | ||
attributes: | ||
label: To Reproduce | ||
description: A step-by-step description of how to reproduce the issue, based on the linked reproduction. Screenshots can be provided in the issue body below. If using code blocks, make sure that [syntax highlighting is correct](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#syntax-highlighting) and double check that the rendered preview is not broken. | ||
placeholder: | | ||
1. Start the application in development (bun dev --filter=app) | ||
2. Click X | ||
3. Y will happen | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Current vs. Expected behavior | ||
description: | | ||
A clear and concise description of what the bug is (e.g., screenshots, logs, etc.), and what you expected to happen. | ||
**Skipping this/failure to provide complete information of the bug will result in the issue being closed.** | ||
placeholder: 'Following the steps from the previous section, I expected A to happen, but I observed B instead.' | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Provide environment information | ||
description: Please run `next info` in the app directory of the project and paste the results. You might need to use `npx --no-install next info` if next is not in the current PATH. | ||
render: bash | ||
placeholder: | | ||
Operating System: | ||
Platform: darwin | ||
Arch: arm64 | ||
Version: Darwin Kernel Version 22.5.0 | ||
Binaries: | ||
Node: 18.17.1 | ||
npm: 9.5.1 | ||
Yarn: 1.22.19 | ||
pnpm: N/A | ||
Relevant Packages: | ||
next: 13.4.20 | ||
eslint-config-next: 13.4.20 | ||
react: 18.2.0 | ||
react-dom: 18.2.0 | ||
typescript: 5.2.2 | ||
Next.js Config: | ||
output: N/A | ||
validations: | ||
required: true | ||
- type: dropdown | ||
attributes: | ||
label: Which area(s) are affected? (Select all that apply) | ||
multiple: true | ||
options: | ||
- 'Not sure' | ||
- 'Services' | ||
- 'Frontend' | ||
- 'Design System' | ||
- 'API' | ||
- 'Deployment' | ||
- 'Development' | ||
|
||
validations: | ||
required: true | ||
validations: | ||
required: true | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Another way you can help the maintainers' job is to pinpoint the commit that introduced the issue. | ||
- type: textarea | ||
attributes: | ||
label: Additional context | ||
description: | | ||
Any extra information that might help us investigate. For example, is it only reproducible online, or locally too? Is the issue only happening in a specific browser? etc. | ||
placeholder: | | ||
I tested my reproduction against development branch. |
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,8 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Ask a question or discuss a topic | ||
url: https://github.com/darklight9811/sharedway/discussions | ||
about: Ask questions or discuss with other contributors in discussions. | ||
- name: Feature or documentation request | ||
url: https://github.com/darklight9811/sharedway/discussions/new?category=ideas | ||
about: Open a feature request in discussions. |
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
File renamed without changes.
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ node_modules | |
# testing | ||
coverage | ||
trace | ||
tsconfig.vitest-temp.json | ||
|
||
# next.js | ||
.next/ | ||
|
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
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
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 |
---|---|---|
@@ -1,7 +1,15 @@ | ||
import createApi from "@repo/services/api"; | ||
import type Metadata from "@repo/services/types/metadata"; | ||
import { createApi } from "@yamiassu/shared/js"; | ||
import type { Prettify } from "@yamiassu/shared/types"; | ||
import { buildMetadata } from "./parallel"; | ||
|
||
const api = createApi({ | ||
bind: {}, | ||
}); | ||
const api = createApi({}); | ||
|
||
export function apiService<Input, Output>( | ||
cb: (input: Input) => (metadata: Metadata) => Output, | ||
) { | ||
return async (ctx: { input: Input }): Promise<Prettify<Output>> => | ||
cb(ctx.input)(await buildMetadata()); | ||
} | ||
|
||
export default api; |
Oops, something went wrong.