Giter Club home page Giter Club logo

Comments (7)

mandolyte avatar mandolyte commented on July 4, 2024 1

Interesting... I expect crash and burn with the bible ref RCL missing... but all the GWE components apparently default to Matthew 1:1. So it still works... So I'll have to dig into the code to locate the components to remove...

from next-js-template.

mandolyte avatar mandolyte commented on July 4, 2024 1

At this point, I think the best approach is to do the following:

  • Delete (or rename--see below) the resource card component (/src/components/ResourceCard.js)
  • This will cause all sorts of errors in the workspace container component, which I can then work thru
  • Using the pattern of ResourceCard, create a Card that contains the following:
    • The uW logo
    • The value of selected org
    • The value of the selected language

Perhaps better, create three cards:

  1. A logo card
  2. An Org card with info about the selected org using: https://git.door43.org/api/v1/orgs/ru_gl
  3. A Language card with info about the selected language using https://td.unfoldingword.org/uw/languages/

I like the last approach better, especially since it can be split out into 3 issues and worked in parallel.

So in this issue, I'll simply delete some things and make a simple Text Card (or several) as placeholders for the others.

from next-js-template.

mannycolon avatar mannycolon commented on July 4, 2024

@mandolyte Did you see the Paper component in translation-helps-RCL, it may be better for your use case than Card. Paper is just the UI part that could be reused to accomplish what you described above.

See: https://github.com/unfoldingWord/translation-helps-rcl/tree/main/src/components/Paper
See usage here: https://github.com/unfoldingWord/translation-helps-rcl/blob/main/src/components/Card/Card.js#L206

from next-js-template.

mandolyte avatar mandolyte commented on July 4, 2024

@mannycolon About Paper vs Card... If I wanted to have resizability and draggability, which would I use? I'm sure I could find it, but I'm sure you know off the top of your head.

Are there any other differences that should be considered?

from next-js-template.

mannycolon avatar mannycolon commented on July 4, 2024

Both can be draggedand resized as long as you pass in the right classname, but the Paper component is only a div with shadow so it is bare bone, it has no features.

from next-js-template.

mannycolon avatar mannycolon commented on July 4, 2024

@mandolyte

from next-js-template.

mandolyte avatar mandolyte commented on July 4, 2024

Closed by above linked PR

from next-js-template.

Related Issues (20)

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.