Skip to content

Commit

Permalink
version : bump to 1.0.10 (#140)
Browse files Browse the repository at this point in the history
* deps : bump stylelint from 16.4.0 to 16.5.0

Bumps [stylelint](https://github.com/stylelint/stylelint) from 16.4.0 to 16.5.0.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](stylelint/stylelint@16.4.0...16.5.0)

---
updated-dependencies:
- dependency-name: stylelint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* deps : bump @mantine/modals from 7.8.1 to 7.9.1 (#78)

Bumps [@mantine/modals](https://github.com/mantinedev/mantine/tree/HEAD/packages/@mantine/modals) from 7.8.1 to 7.9.1.
- [Release notes](https://github.com/mantinedev/mantine/releases)
- [Changelog](https://github.com/mantinedev/mantine/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mantinedev/mantine/commits/7.9.1/packages/@mantine/modals)

---
updated-dependencies:
- dependency-name: "@mantine/modals"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* deps : bump @mantine/notifications from 7.8.1 to 7.9.1 (#77)

Bumps [@mantine/notifications](https://github.com/mantinedev/mantine/tree/HEAD/packages/@mantine/notifications) from 7.8.1 to 7.9.1.
- [Release notes](https://github.com/mantinedev/mantine/releases)
- [Changelog](https://github.com/mantinedev/mantine/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mantinedev/mantine/commits/7.9.1/packages/@mantine/notifications)

---
updated-dependencies:
- dependency-name: "@mantine/notifications"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* deps : bump zod from 3.23.4 to 3.23.8 (#79)

Bumps [zod](https://github.com/colinhacks/zod) from 3.23.4 to 3.23.8.
- [Release notes](https://github.com/colinhacks/zod/releases)
- [Changelog](https://github.com/colinhacks/zod/blob/master/CHANGELOG.md)
- [Commits](colinhacks/zod@v3.23.4...v3.23.8)

---
updated-dependencies:
- dependency-name: zod
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* deps : bump @mantine/core and such to 7.9.1

* feat #63 : add MCMETA support

* tools : make sure ESLint is applied on save in VSCode

* deps : bump unzipper from 0.11.4 to 0.11.6 (#89)

Bumps [unzipper](https://github.com/ZJONSSON/node-unzipper) from 0.11.4 to 0.11.6.
- [Release notes](https://github.com/ZJONSSON/node-unzipper/releases)
- [Commits](https://github.com/ZJONSSON/node-unzipper/commits)

---
updated-dependencies:
- dependency-name: unzipper
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* deps : bump @mantine/carousel from 7.9.1 to 7.9.2 (#88)

Bumps [@mantine/carousel](https://github.com/mantinedev/mantine/tree/HEAD/packages/@mantine/carousel) from 7.9.1 to 7.9.2.
- [Release notes](https://github.com/mantinedev/mantine/releases)
- [Changelog](https://github.com/mantinedev/mantine/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mantinedev/mantine/commits/7.9.2/packages/@mantine/carousel)

---
updated-dependencies:
- dependency-name: "@mantine/carousel"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix : update dependabot prefixes'

* deps : bump @mantine/dates from 7.9.1 to 7.9.2 (#85)

Bumps [@mantine/dates](https://github.com/mantinedev/mantine/tree/HEAD/packages/@mantine/dates) from 7.9.1 to 7.9.2.
- [Release notes](https://github.com/mantinedev/mantine/releases)
- [Changelog](https://github.com/mantinedev/mantine/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mantinedev/mantine/commits/7.9.2/packages/@mantine/dates)

---
updated-dependencies:
- dependency-name: "@mantine/dates"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* deps-dev : bump @types/react from 18.3.1 to 18.3.2 (#86)

Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.3.1 to 18.3.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* deps-dev : bump @prisma/client from 5.13.0 to 5.14.0 (#87)

Bumps [@prisma/client](https://github.com/prisma/prisma/tree/HEAD/packages/client) from 5.13.0 to 5.14.0.
- [Release notes](https://github.com/prisma/prisma/releases)
- [Commits](https://github.com/prisma/prisma/commits/5.14.0/packages/client)

---
updated-dependencies:
- dependency-name: "@prisma/client"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* deps : bump next-auth from 5.0.0-beta.17 to 5.0.0-beta.18 (#91)

Bumps [next-auth](https://github.com/nextauthjs/next-auth) from 5.0.0-beta.17 to 5.0.0-beta.18.
- [Release notes](https://github.com/nextauthjs/next-auth/releases)
- [Commits](https://github.com/nextauthjs/next-auth/compare/next-auth@5.0.0-beta.17...next-auth@5.0.0-beta.18)

---
updated-dependencies:
- dependency-name: next-auth
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* deps : bump @auth/prisma-adapter from 2.0.0 to 2.1.0 (#90)

Bumps [@auth/prisma-adapter](https://github.com/nextauthjs/next-auth) from 2.0.0 to 2.1.0.
- [Release notes](https://github.com/nextauthjs/next-auth/releases)
- [Commits](https://github.com/nextauthjs/next-auth/compare/@auth/prisma-adapter@2.0.0...@auth/prisma-adapter@2.1.0)

---
updated-dependencies:
- dependency-name: "@auth/prisma-adapter"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* deps : bump @mantine/core and such to 7.9.2

* fix #74 : closing modal won't reset search anymore

* fix : partially fix overflowing names in textures page

* deps : bump prisma from 5.12.1 to 5.14.0

* feat : add mod loaders array to mods table

* fix : sort mods directly in sql

* deps : bump dependencies to newer versions

* feat : add Tile component as a superset of Card with common values predefined

* deps-dev : bump @types/node from 20.12.12 to 20.14.9 (#105)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.12.12 to 20.14.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* deps : bump @mantine/form from 7.10.0 to 7.11.0 (#104)

Bumps [@mantine/form](https://github.com/mantinedev/mantine/tree/HEAD/packages/@mantine/form) from 7.10.0 to 7.11.0.
- [Release notes](https://github.com/mantinedev/mantine/releases)
- [Changelog](https://github.com/mantinedev/mantine/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mantinedev/mantine/commits/7.11.0/packages/@mantine/form)

---
updated-dependencies:
- dependency-name: "@mantine/form"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* deps : bump @mantine/dates from 7.10.0 to 7.11.0 (#103)

Bumps [@mantine/dates](https://github.com/mantinedev/mantine/tree/HEAD/packages/@mantine/dates) from 7.10.0 to 7.11.0.
- [Release notes](https://github.com/mantinedev/mantine/releases)
- [Changelog](https://github.com/mantinedev/mantine/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mantinedev/mantine/commits/7.11.0/packages/@mantine/dates)

---
updated-dependencies:
- dependency-name: "@mantine/dates"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* deps : bump @mantine/notifications from 7.10.0 to 7.11.1 (#107)

Bumps [@mantine/notifications](https://github.com/mantinedev/mantine/tree/HEAD/packages/@mantine/notifications) from 7.10.0 to 7.11.1.
- [Release notes](https://github.com/mantinedev/mantine/releases)
- [Changelog](https://github.com/mantinedev/mantine/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mantinedev/mantine/commits/7.11.1/packages/@mantine/notifications)

---
updated-dependencies:
- dependency-name: "@mantine/notifications"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump braces in the npm_and_yarn group across 1 directory (#106)

Bumps the npm_and_yarn group with 1 update in the / directory: [braces](https://github.com/micromatch/braces).


Updates `braces` from 3.0.2 to 3.0.3
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](micromatch/braces@3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>

* deps : bump next-auth from 5.0.0-beta.18 to 5.0.0-beta.19 (#94)

Bumps [next-auth](https://github.com/nextauthjs/next-auth) from 5.0.0-beta.18 to 5.0.0-beta.19.
- [Release notes](https://github.com/nextauthjs/next-auth/releases)
- [Commits](https://github.com/nextauthjs/next-auth/compare/next-auth@5.0.0-beta.18...next-auth@5.0.0-beta.19)

---
updated-dependencies:
- dependency-name: next-auth
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* deps : bump @mantine/core and such to 7.11.1

* feat : add base public mods page

* feat : add base mod page

* deps : updated deps & revert to next-auth@5.0.0-beta.18

* fix : upload contribution to backend after verification only

* feat : delete general progression page (too bugged)

* fix : add space between mod version & mc version in texture uses tab

* feat : add mod versions progression to mod page

* tmp commit

* version : bump to 1.0.10

* fix : fix wrong typing

* fix : workaround to avoid github api rate limit on createBlobs()

* feat : add open with github desktop button

* feat : useViewportSize from mantine instead of selfmade useDeviceSize

* feat : use usePrevious from mantine instead of selfmade one

* fix : lint & cleanup unused hooks + add description

* ref : moved files around

* ref : add custom eslint rules for page/layout.tsx files

* feat : moved use-mcmeta into its own npm package

* deps: update deps

* feat : add sprites preview in texture mcmeta edition

* fix : add padding at the bottom of the council textures page

* feat : fully use `react-minecraft` lib

* fix : clone default textures repository if the directory exist and is empty

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
Juknum and dependabot[bot] authored Aug 24, 2024
1 parent 5d9959a commit 704513d
Show file tree
Hide file tree
Showing 78 changed files with 1,207 additions and 1,072 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ AUTH_REDIRECT_PROXY_URL="http://localhost:3000/api/auth"
GITHUB_CLIENT_ID=""
GITHUB_CLIENT_SECRET=""
GITHUB_AUTH_TOKEN=""

# Local default textures repository path
DEV_LOCAL_REPOSITORY_PATH=""
59 changes: 59 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
'use strict';

module.exports = {
extends: 'next/core-web-vitals',
plugins: [
'unused-imports',
'custom-rules',
],
rules: {
'comma-dangle': ['error', 'always-multiline'],
'object-curly-spacing': ['warn', 'always'],
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
'import/order': [
'error',
{
'newlines-between': 'always',
groups: [
'builtin',
'external',
'internal',
['parent', 'sibling', 'index'],
'type',
],
pathGroups: [
{
pattern: 'react',
group: 'builtin',
position: 'after',
},
{
pattern: 'react-icons/**',
group: 'builtin',
position: 'after',
},
{
pattern: 'next/**',
group: 'builtin',
position: 'before',
},
],
pathGroupsExcludedImportTypes: ['react', 'react-icons/**', 'next/**'],
alphabetize: {
order: 'asc',
caseInsensitive: false,
},
},
],
indent: ['error', 'tab', { SwitchCase: 1 }],
'no-multi-spaces': ['error', { ignoreEOLComments: true }],
'no-multiple-empty-lines': ['error', { max: 1, maxEOF: 1 }],
quotes: ['error', 'single'],
semi: ['error', 'always'],
'unused-imports/no-unused-imports': 'error',

'custom-rules/page-export-naming': 'error',
'custom-rules/layout-export-naming': 'error',
},
};

46 changes: 0 additions & 46 deletions .eslintrc.json

This file was deleted.

8 changes: 8 additions & 0 deletions eslint-plugins/eslint-plugin-custom-rules.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const plugin = {
rules: {
'page-export-naming': require('./rules/page-export-naming.cjs'),
'layout-export-naming': require('./rules/layout-export-naming.cjs'),
},
};

module.exports = plugin;
12 changes: 12 additions & 0 deletions eslint-plugins/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "eslint-plugin-custom-rules",
"type":"module",
"version": "1.0.0",
"main": "eslint-plugin-custom-rules.cjs",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"description": ""
}
57 changes: 57 additions & 0 deletions eslint-plugins/rules/layout-export-naming.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
const { sep } = require('path');

module.exports = {
meta: {
type: 'problem',
docs: {
description: 'Enforce the default export names to ends with "Layout" in layout.tsx files',
category: 'Best Practices',
recommended: true,
},
messages: {
invalidExportName: 'Default export name must ends with "Layout"',
invalidExportType: 'Default export must be a function',
},
fixable: 'code',
schema: [],
},
/**
* @param {import('eslint').Rule.RuleContext} context
*/
create(context) {
const filename = context.filename.split(sep).pop();
if (filename !== 'layout.tsx') return {};

return {
ExportDefaultDeclaration(node) {
if (node.declaration.type === 'FunctionDeclaration' || (node.declaration.type === 'ArrowFunctionExpression' && node.declaration.id)) {
/**
* @type {string | undefined}
*/
const functionName = node.declaration.id && node.declaration.id.name;

if (functionName && !functionName.endsWith('Layout')) {
context.report({
node,
messageId: 'invalidExportName',
fix(fixed) {
const newName = `${functionName}Layout`;
const start = node.declaration.id.range[0];
const end = node.declaration.id.range[1];
return fixed.replaceTextRange([start, end], newName);
},
});
}
}

if (node.declaration.type === 'Identifier') {
context.report({
node,
messageId: 'invalidExportType',
});
}
},
};

},
};
57 changes: 57 additions & 0 deletions eslint-plugins/rules/page-export-naming.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
const { sep } = require('path');

module.exports = {
meta: {
type: 'problem',
docs: {
description: 'Enforce the default export names to ends with "Page" in .tsx files',
category: 'Best Practices',
recommended: true,
},
messages: {
invalidExportName: 'Default export name must ends with "Page"',
invalidExportType: 'Default export must be a function',
},
fixable: 'code',
schema: [],
},
/**
* @param {import('eslint').Rule.RuleContext} context
*/
create(context) {
const filename = context.filename.split(sep).pop();
if (filename !== 'page.tsx') return {};

return {
ExportDefaultDeclaration(node) {
if (node.declaration.type === 'FunctionDeclaration' || (node.declaration.type === 'ArrowFunctionExpression' && node.declaration.id)) {
/**
* @type {string | undefined}
*/
const functionName = node.declaration.id && node.declaration.id.name;

if (functionName && !functionName.endsWith('Page')) {
context.report({
node,
messageId: 'invalidExportName',
fix(fixed) {
const newName = `${functionName}Page`;
const start = node.declaration.id.range[0];
const end = node.declaration.id.range[1];
return fixed.replaceTextRange([start, end], newName);
},
});
}
}

if (node.declaration.type === 'Identifier') {
context.report({
node,
messageId: 'invalidExportType',
});
}
},
};

},
};
Loading

0 comments on commit 704513d

Please sign in to comment.