Giter VIP home page Giter VIP logo

motionlink-cli's People

Contributors

0xblcklptn avatar bats64mgutsi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

0xblcklptn

motionlink-cli's Issues

Media with same basename in URLs should not refer to the same file

Currently are saved by their file name. This causes an issue when two different assets have the same basename in the URL. The asset paths will will refer to same file when downloaded even though they are not supposed to.

To create

  1. Open Notion page
  2. Drop image with any file name in the page
  3. Drop another image but with the same file name in the page

Issue

MotionLink fetches the images into the same file.

Proposed Fix

Include image id in the filename. That way even if two images have the same name, they will fetched as two different files.

Use the same filename for the same media file

When an image, for example, is fetched from Notion the name for the image file is randomly generated. A new random filename is generated for the same image every time the image is fetched, resulting in many copies of the same image in the local filesystem. This is more of a request to save an image to the same file every time it is fetched from Notion.

Add React block transformers

Add transformers to transform Notion pages to React code.

Problem

The markdown transformers do not preserve the layout of the Notion page.

Solution

Provide block transformers that preserve the layout of Notion pages. To React Block Transformers seem like a better option, but this is open for discussion.

Benefits

The most obvious benefit is that the layout of Notion pages is maintained. Another benefit is easy integration with static site generators that support React. Examples are:

  1. Docusaurus
  2. NextJs
  3. Gatsby

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.