-
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.
- Loading branch information
0 parents
commit 656ee20
Showing
50 changed files
with
11,062 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Since the ".env" file is gitignored, you can use the ".env.example" file to | ||
# build a new ".env" file when you clone the repo. Keep this file up-to-date | ||
# when you add new variables to `.env`. | ||
|
||
# This file will be committed to version control, so make sure not to have any | ||
# secrets in it. If you are cloning this repo, create a copy of this file named | ||
# ".env" and populate it with your secrets. | ||
|
||
# When adding additional environment variables, the schema in "/src/env.js" | ||
# should be updated accordingly. | ||
|
||
# Example: | ||
# SERVERVAR="foo" | ||
# NEXT_PUBLIC_CLIENTVAR="bar" |
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,42 @@ | ||
/** @type {import("eslint").Linter.Config} */ | ||
const config = { | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": true | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"extends": [ | ||
"next/core-web-vitals", | ||
"plugin:@typescript-eslint/recommended-type-checked", | ||
"plugin:@typescript-eslint/stylistic-type-checked" | ||
], | ||
"rules": { | ||
"@typescript-eslint/array-type": "off", | ||
"@typescript-eslint/consistent-type-definitions": "off", | ||
"@typescript-eslint/consistent-type-imports": [ | ||
"warn", | ||
{ | ||
"prefer": "type-imports", | ||
"fixStyle": "inline-type-imports" | ||
} | ||
], | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
"argsIgnorePattern": "^_" | ||
} | ||
], | ||
"@typescript-eslint/require-await": "off", | ||
"@typescript-eslint/no-misused-promises": [ | ||
"error", | ||
{ | ||
"checksVoidReturn": { | ||
"attributes": false | ||
} | ||
} | ||
] | ||
} | ||
} | ||
module.exports = config; |
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,48 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# database | ||
/prisma/db.sqlite | ||
/prisma/db.sqlite-journal | ||
db.sqlite | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
next-env.d.ts | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
.pnpm-debug.log* | ||
|
||
# local env files | ||
# do not commit any .env files to git, except for the .env.example file. https://create.t3.gg/en/usage/env-variables#using-environment-variables | ||
.env | ||
.env*.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
|
||
# idea files | ||
.idea | ||
|
||
.env |
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 @@ | ||
# Create T3 App | ||
|
||
This is a [T3 Stack](https://create.t3.gg/) project bootstrapped with `create-t3-app`. | ||
|
||
## What's next? How do I make an app with this? | ||
|
||
We try to keep this project as simple as possible, so you can start with just the scaffolding we set up for you, and add additional things later when they become necessary. | ||
|
||
If you are not familiar with the different technologies used in this project, please refer to the respective docs. If you still are in the wind, please join our [Discord](https://t3.gg/discord) and ask for help. | ||
|
||
- [Next.js](https://nextjs.org) | ||
- [NextAuth.js](https://next-auth.js.org) | ||
- [Prisma](https://prisma.io) | ||
- [Drizzle](https://orm.drizzle.team) | ||
- [Tailwind CSS](https://tailwindcss.com) | ||
- [tRPC](https://trpc.io) | ||
|
||
## Learn More | ||
|
||
To learn more about the [T3 Stack](https://create.t3.gg/), take a look at the following resources: | ||
|
||
- [Documentation](https://create.t3.gg/) | ||
- [Learn the T3 Stack](https://create.t3.gg/en/faq#what-learning-resources-are-currently-available) — Check out these awesome tutorials | ||
|
||
You can check out the [create-t3-app GitHub repository](https://github.com/t3-oss/create-t3-app) — your feedback and contributions are welcome! | ||
|
||
## How do I deploy this? | ||
|
||
Follow our deployment guides for [Vercel](https://create.t3.gg/en/deployment/vercel), [Netlify](https://create.t3.gg/en/deployment/netlify) and [Docker](https://create.t3.gg/en/deployment/docker) for more information. |
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,9 @@ | ||
import { useTranslation as useNextTranslation } from 'react-i18next'; | ||
|
||
const useTranslation = () => { | ||
const { t, i18n } = useNextTranslation(); | ||
|
||
return { t, i18n }; | ||
}; | ||
|
||
export default useTranslation; |
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,10 @@ | ||
module.exports = { | ||
locales: ['en', 'ru'], | ||
defaultLocale: 'en', | ||
pages: { | ||
'*': ['common'], | ||
'/': ['home'], | ||
'/addRecipe': ['addRecipe'], | ||
'/ingredients': ['ingredients'], | ||
}, | ||
}; |
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 @@ | ||
{ | ||
"locales": ["en", "ru"], | ||
"defaultLocale": "ru", | ||
"pages": { | ||
"*": ["common"] | ||
} | ||
} | ||
|
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,65 @@ | ||
{ | ||
"addCookingSession": "Add Cooking Session", | ||
"addIngredient": "Add Ingredient", | ||
"addIngredientToRecipe": "Add Ingredient to Recipe", | ||
"addPrice": "Add Price", | ||
"addPrices": "Add Prices", | ||
"addPricesHeader": "Add Prices", | ||
"addRecipe": "Add Recipe", | ||
"allRecipes": "All Recipes", | ||
"allIngredients": "All Ingredients", | ||
"applyFilters": "Apply Filters", | ||
"chooseRecipe": "Choose Recipe", | ||
"chooseType": "Choose Type", | ||
"chooseIngredient": "Choose Ingredient", | ||
"cookingSessions": "Cooking Sessions", | ||
"currency": "RSD", | ||
"date": "Date", | ||
"failedToLoadRecipes": "Failed to Load Recipes", | ||
"filterByDate": "Filter by Date", | ||
"filterByIngredient": "Filter by Ingredient", | ||
"filterByRecipe": "Filter by Recipe", | ||
"grams": "Grams", | ||
"g": "Grams", | ||
"home": "Home", | ||
"ingredientName": "Ingredient Name", | ||
"ingredientType": "Type", | ||
"ingredients": "Ingredients", | ||
"kilograms": "Kilograms", | ||
"kg": "Kilograms", | ||
"loading": "Loading", | ||
"base": "Base", | ||
"milliliters": "Milliliters", | ||
"ml": "Milliliters", | ||
"noRecipesFound": "No Recipes Found", | ||
"per": "per", | ||
"price": "Price", | ||
"priceNotAvailable": "Price Not Available", | ||
"quantity": "Quantity", | ||
"recipe": "Recipe", | ||
"recipeName": "Recipe Name", | ||
"removeIngredientFromRecipe": "Remove Ingredient from Recipe", | ||
"removeRecipe": "Remove Recipe", | ||
"spice": "Spice", | ||
"sauce": "Sauce", | ||
"signIn": "Sign In", | ||
"signOut": "Sign Out", | ||
"signUp": "Sign Up", | ||
"totalCost": "Total Cost", | ||
"unit": "Unit", | ||
"yield": "How Much Base?", | ||
"delete": "Delete", | ||
"electricity": "Electricity", | ||
"packing": "Packing", | ||
"hh": "Hours", | ||
"pieces": "Pieces", | ||
"profile": "Profile", | ||
"currentPassword": "Current Password", | ||
"newPassword": "New Password", | ||
"confirmPassword": "Confirm Password", | ||
"changePassword": "Change Password", | ||
"passwordChangedSuccessfully": "Password changed successfully", | ||
"passwordsDoNotMatch": "Passwords do not match", | ||
"requestFailed": "Request failed", | ||
"unknownError": "An unknown error occurred" | ||
} |
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,66 @@ | ||
{ | ||
"addCookingSession": "Добавить сессию готовки", | ||
"addIngredient": "Добавить ингредиент", | ||
"addIngredientToRecipe": "Добавить ингредиент в рецепт", | ||
"addPrice": "Добавить цену", | ||
"addPrices": "Добавить цены", | ||
"addPricesHeader": "Добавить цены", | ||
"addRecipe": "Добавить рецепт", | ||
"allRecipes": "Все рецепты", | ||
"allIngredients" :"Все ингридиенты", | ||
"applyFilters": "Фильтровать", | ||
"chooseRecipe": "Выберите рецепт", | ||
"chooseType": "Выберите тип", | ||
"chooseIngredient": "Выберите ингридиент", | ||
"cookingSessions": "Сессии готовки", | ||
"currency": "RSD", | ||
"date": "Дата", | ||
"failedToLoadRecipes": "Не удалось загрузить рецепты", | ||
"filterByDate": "По дате", | ||
"filterByIngredient" :"По ингридиенту", | ||
"filterByRecipe": "По рецепту", | ||
"grams": "Граммы", | ||
"g": "Граммы", | ||
"home": "Главная", | ||
"ingredientName": "Название ингредиента", | ||
"ingredientType": "Тип", | ||
"ingredients": "Ингредиенты", | ||
"kilograms": "Килограммы", | ||
"kg": "Килограммы", | ||
"loading": "Загрузка", | ||
"base": "Основа", | ||
"milliliters": "Миллилитры", | ||
"ml": "Миллилитры", | ||
"noRecipesFound": "Рецепты не найдены", | ||
"per": "за", | ||
"price": "Цена", | ||
"priceNotAvailable": "Цена недоступна", | ||
"quantity": "Количество", | ||
"recipe": "Рецепт", | ||
"recipeName": "Название рецепта", | ||
"removeIngredientFromRecipe": "Удалить ингредиент из рецепта", | ||
"removeRecipe": "Удалить рецепт", | ||
"spice": "Специя", | ||
"sauce": "Соус", | ||
"signIn": "Войти", | ||
"signOut": "Выйти", | ||
"signUp": "Зарегистрироваться", | ||
"totalCost": "Общая стоимость", | ||
"unit": "Единица измерений", | ||
"yield": "Сколько основы?", | ||
"delete": "Удалить", | ||
"electricity": "Электричество", | ||
"packing": "Упаковка", | ||
"hh": "Часы", | ||
"pieces": "Штуки", | ||
"profile": "Профиль", | ||
"currentPassword": "Текущий пароль", | ||
"newPassword": "Новый пароль", | ||
"confirmPassword": "Подтвердите новый пароль", | ||
"changePassword": "Изменить пароль", | ||
"passwordChangedSuccessfully": "Пароль успешно изменен", | ||
"passwordsDoNotMatch": "Пароли не совпадают", | ||
"requestFailed": "Ошибка запроса", | ||
"unknownError": "Неизвестная ошибка" | ||
} | ||
|
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,5 @@ | ||
export const i18n = { | ||
defaultLocale: 'ru', | ||
locales: ['ru', 'en'], | ||
}; | ||
|
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,21 @@ | ||
import nextTranslate from 'next-translate-plugin'; | ||
import './src/env.js'; | ||
|
||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
webpack: (config) => { | ||
config.module.rules.push({ | ||
test: /\.svg$/i, | ||
issuer: /\.[jt]sx?$/, | ||
use: ['@svgr/webpack'], | ||
}); | ||
|
||
return config; | ||
}, | ||
}; | ||
|
||
|
||
export default nextTranslate({ | ||
...nextConfig, | ||
i18n: await import('./i18n.cjs').then(mod => mod.default || mod), | ||
}); |
Oops, something went wrong.