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

Update Repository.js to works with png#649

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
wdison wants to merge1 commit intogithub-tools:master
base:master
Choose a base branch
Loading
fromwdison:patch-1

Conversation

@wdison
Copy link

Using the raw parameter within the options of the writeFile method, this tool works with the sending of png images, it has not been tested with other files, but I think this solution will work for others as well.

  writePng(fileNamePng:string,base64Png:any,commitMsg:string=''){    let initialMessage=commitMsg||'Commit de '+base64Png;    let option = {encode:false,raw:true}    const promise = this.bagRepo.writeFile('master', fileNamePng, base64Png, initialMessage, option);    promise.then((valor:any) => {      // console.log(valor);    },this.initRepo);    return promise;  }

Using the raw parameter within the options of the writeFile method, this tool works with the sending of png images, it has not been tested with other files, but I think this solution will work for others as well.```writePng(fileNamePng:string,base64Png:any,commitMsg:string=''){    let initialMessage=commitMsg||'Commit de '+base64Png;    let option = {encode:false,raw:true}    const promise = this.bagRepo.writeFile('master', base64Png, base64Png, initialMessage, option);    promise.then((valor:any) => {      // console.log(valor);    },this.initRepo);    return promise;  }```
@wdison
Copy link
Author

Dear@j-rewerts and other merge makers, I hope you're all right.

This change is small very simple, but it brings a lot of gain to the api, it has compatibility with any other preexisting call to this method, and it is very useful for other users.

Please consider this for merging.

@GETBACKGANG
Copy link

Replying to recent gmail I received from you

@GETBACKGANG
Copy link

GETBACKGANG commentedJun 4, 2021 via email

Thank you
On Thu, Jun 3, 2021, 10:05 AM Jose Wdison de Souza ***@***.***> wrote: Dear@j-rewerts <https://github.com/j-rewerts> and other merge makers, I hope you're all right. This change is small very simple, but it brings a lot of gain to the api, it has compatibility with any other preexisting call to this method, and it is very useful for other users. Please consider this for merging. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#649 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AUKT5KUE5DTFEAT3JNBWFYTTQ6KZ3ANCNFSM42ZZKR7A> .

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@wdison@GETBACKGANG

[8]ページ先頭

©2009-2025 Movatter.jp