Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Create Mcpe generator#2644

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
KomkaGames wants to merge1 commit intoonlook-dev:main
base:main
Choose a base branch
Loading
fromKomkaGames:patch-1

Conversation

KomkaGames
Copy link

@KomkaGamesKomkaGames commentedAug 8, 2025
edited by ellipsis-devbot
Loading

Mcpe generator for Minecraft PE

Description

Related Issues

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Release
  • Refactor
  • Other (please describe):

Testing

Screenshots (if applicable)

Additional Notes


Important

Introduces a Minecraft PE texture generator with Node.js backend and React frontend, including user authentication, texture generation, and history tracking.

  • Backend:
    • Addsserver.js with Node.js and Express for handling API requests.
    • Connects to MongoDB for user data management.
    • Integrates AWS S3 for storing generated textures.
    • Implements/api/generate-texture for texture generation with resolution checks.
    • Adds/api/set-plan,/api/history/:userId, and/api/set-language for user management.
  • Frontend:
    • Addssrc/App.js for React UI with Firebase authentication.
    • Implements texture creation form and history display.
    • Supports language selection withi18n.js for localization.
  • Testing:
    • Adds Cypress tests incypress/integration/app.spec.js for login, language change, texture creation, and history display.
  • Misc:
    • Addspackage.json with necessary dependencies for backend and frontend.

This description was created byEllipsis fora6a364d. You cancustomize this summary. It will automatically update as commits are pushed.

ellipsis-dev[bot] reacted with rocket emoji
Mcpe generator for Minecraft PE
@vercelVercel
Copy link

vercelbot commentedAug 8, 2025

@KomkaGames is attempting to deploy a commit to theOnlook Team onVercel.

A member of the Team first needs toauthorize it.

const User = mongoose.model('User', userSchema);

// Налаштування AWS S3
const s3 = new AWS.S3({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Avoid using hardcoded AWS credentials; rely solely on environment variables to manage sensitive data.

}, {
headers: { Authorization: `Bearer your_huggingface_api_key` },
});
const fileBuffer = textureResponse.data; // Припускаємо, що це бінарний файл
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The current code assumestextureResponse.data contains binary file data, but the Hugging Face API typically returns JSON responses. To properly handle this, extract the actual image data from the response. For example:

constfileBuffer=Buffer.from(textureResponse.data.image,'base64');

This converts the base64-encoded image data from the JSON response into a proper binary buffer that can be uploaded to S3. The exact property name (image) may vary depending on the specific Hugging Face endpoint being used.

Suggested change
const fileBuffer = textureResponse.data; // Припускаємо, що це бінарний файл
const fileBuffer =Buffer.from(textureResponse.data.image, 'base64');

Spotted byDiamond

Is this helpful? React 👍 or 👎 to let us know.

if (firebaseUser) {
setUser(firebaseUser);
// Встановлення плану "Про" для вашого email
await axios.post('http://localhost:3000/api/set-plan', {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The hardcoded URLhttp://localhost:3000/api/set-plan won't work in production environments. Consider using relative URLs (like/api/set-plan) or implementing a configurable base URL that can be set according to the environment. This approach ensures the application works correctly across development, staging, and production environments.

Suggested change
await axios.post('http://localhost:3000/api/set-plan', {
await axios.post('/api/set-plan', {

Spotted byDiamond

Is this helpful? React 👍 or 👎 to let us know.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ellipsis-devellipsis-dev[bot]ellipsis-dev[bot] left review comments

@graphite-appgraphite-app[bot]graphite-app[bot] left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@KomkaGames

[8]ページ先頭

©2009-2025 Movatter.jp