GithubHelp home page GithubHelp logo

hanakla / inlineattachment Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rovak/inlineattachment

0.0 0.0 1.0 566 KB

Easily paste and upload files/images in plain textareas

Home Page: http://git.razko.nl/InlineAttachment

License: MIT License

JavaScript 7.29% TypeScript 92.71%

inlineattachment's Introduction

I AM Hanakla❗

Frontend engineer, Illustrator, DJ, Music Remixer lives on Japan.
Creator of Flux framework Fleur and Web-tech based VFX app Delir

Skills⚡:
TypeScript / JavaScript / React / CSS / Electron / Next.js / Node.js / Ruby on Rails / PHP / 日本語
And beginner of ギャル

Supervision: fleur-js, delirvfx

Contact

🌐 Web: https://hanak.la
🐦 Twitter: https://twitter.com/hanak1a_
🔠 Zenn: https://zenn.dev/hanak1a
⚒️ Qiita: https://qiita.com/hanakla
🎨 pixiv: https://pixiv.me/hanak1a
🎶 SoundCloud: https://soundcloud.com/hanakla
🔊 MixCloud: https://www.mixcloud.com/hanakla

inlineattachment's People

Contributors

abrom avatar choonkeat avatar fcsonline avatar fsubal avatar goruha avatar hanakla avatar ikonitas avatar kossnocorp avatar romb avatar rovak avatar snack-x avatar wdoekes avatar y-chiasson avatar

Watchers

 avatar

Forkers

fsubal

inlineattachment's Issues

Docs

Hi!

Could you give a basic explanation on how to use this package? I understand you've made many changes to the original package and I'd like to know how to use the new version. Thanks.

Wrong typings

with TypeScript 2.8.3, found some type errors

ERROR in /path/to/project/node_modules/@ragg/inline-attachment/src/inline-attachment.ts(107,9):
TS2722: Cannot invoke an object which is possibly 'undefined'.

ERROR in /path/to/project/node_modules/@ragg/inline-attachment/src/inline-attachment.ts(139,9):
TS2532: Object is possibly 'undefined'.

ERROR in /path/to/project/node_modules/@ragg/inline-attachment/src/inline-attachment.ts(139,9):
TS2684: The 'this' context of type '(() => boolean) | undefined' is not assignable to method's 'this' of type 'Function'.
  Type 'undefined' is not assignable to type 'Function'.

ERROR in /path/to/project/node_modules/@ragg/inline-attachment/src/inline-attachment.ts(152,9):
TS2532: Object is possibly 'undefined'.

ERROR in /path/to/project/node_modules/@ragg/inline-attachment/src/inline-attachment.ts(152,9):
TS2684: The 'this' context of type '(() => void) | undefined' is not assignable to method's 'this' of type 'Function'.
  Type 'undefined' is not assignable to type 'Function'.

ERROR in /path/to/project/node_modules/@ragg/inline-attachment/src/inline-attachment.ts(166,9):
TS2532: Object is possibly 'undefined'.

ERROR in /path/to/project/node_modules/@ragg/inline-attachment/src/inline-attachment.ts(166,9):
TS2684: The 'this' context of type '(() => boolean) | undefined' is not assignable to method's 'this' of type 'Function'.
  Type 'undefined' is not assignable to type 'Function'.

ERROR in /path/to/project/node_modules/@ragg/inline-attachment/src/inline-attachment.ts(180,9):
TS2532: Object is possibly 'undefined'.

ERROR in /path/to/project/node_modules/@ragg/inline-attachment/src/inline-attachment.ts(180,9):
TS2684: The 'this' context of type '(() => boolean) | undefined' is not assignable to method's 'this' of type 'Function'.
  Type 'undefined' is not assignable to type 'Function'.

Pass a customized InlineAttachment instance into editor-specific classes

If the uploadFile method has to be changed, a subclass of InlineAttachment overriding the uploadFile method will be required. However, that subclass cannot be passed into an editor-specific instance, such as InlineAttachment.CodeMirror4, because there is no constructor parameter and no setter to change the private inlineAttachment.

I think the type of the option parameter of the constructor may be changed to accept () => InlineAttachment | Partial<InlineAttachmentSettings>.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.