Giter Club home page Giter Club logo

teia-ui-legacy's People

Contributors

0x00000010 avatar andrevenancio avatar atomantic avatar codewithfeeling avatar crzypatchwork avatar dependabot-preview[bot] avatar dependabot[bot] avatar devetec avatar djangobits avatar hornebom avatar jmagly avatar kylegrover avatar leithba avatar marioecg avatar melmass avatar mrdoob avatar mtyka avatar nftbiker avatar pichiste avatar rkoshino avatar sf-pixel avatar skenaja avatar somaticbits avatar tarwin avatar tdmw avatar thepartyy avatar veqtor avatar violetforest avatar xat avatar ztepler avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

teia-ui-legacy's Issues

HEN references

here are the remaining references we will have to tackle at some point (non exhaustive):

VISIBLE ON THE FRONTEND

ONLY IN CODE

  • The app is name hicetnunc-ui
  • The context singleton is named HicetnuncContext + HicetnuncContextProvider

In the same time I think it's good to think about where we make references to hicetnunc
For now we only reference the fork here:
https://github.com/IntegroLabs/hicetnunc/blob/0301cd503a3b0cf157704ad72b8cef8ee2c3fa7a/public/languages/en.json#L13

Fix remaining big files in history

As discovered a few weeks ago a few big files were committed long time ago.

Just creating this issue to get a trace of what I've done:

# bare clone
git clone --mirror https://github.com/teia-community/teia-ui.git teia-to-clean 

# remove files above 10mb and with `zip` extension.
# templates were shipped as zip, and a few IPFS zip files were committed:
bfg --strip-blobs-bigger-than 10M --delete-files "*.{zip}" .  

Log result:

Cleaning
--------

Found 7829 commits
Cleaning commits:       100% (7829/7829)
Cleaning commits completed in 1,692 ms.

Updating 30 Refs
----------------

        Ref                                          Before     After
        ----------------------------------------------------------------
        refs/heads/develop                         | f2dd858d | bd05ca4b
        refs/heads/feature/collections             | 879d7c37 | ca6fe653
        refs/heads/feature/footer_refactor         | ea4abc7c | e31fe389
        refs/heads/feature/god_help_me             | 670d1da3 | 9838bd1c
        refs/heads/feature/new_media               | 4cc4b301 | 3894e970
        refs/heads/feature/simplify_state_on_objkt | 838d9f46 | b5b8dca9
        refs/heads/feature/thumbnail_preview       | 641ef27f | 49a37bec
        refs/heads/fix-menu-top-spacing            | 539af6d3 | ced84ed8
        refs/heads/graphql                         | b90d5557 | 71394caf
        refs/heads/main                            | df69caf8 | ed3ec0fe
        refs/heads/video_fix                       | 0605400c | 7c94bbcb
        refs/pull/1/head                           | 546ee64b | 6f4b8e59
        refs/pull/10/head                          | a48097dc | 58a0cf66
        refs/pull/12/head                          | fc35dc47 | 5ff7a522
        refs/pull/13/head                          | 6aa003c0 | 9b221f51
        ...

Updating references:    100% (30/30)
...Ref update completed in 87 ms.

Commit Tree-Dirt History
------------------------

        Earliest                                              Latest
        |                                                          |
        DmmDmmmDDDDDDmmDDDDDDDmmmmmmDmmmmmmmmmmmmmmmmmmmmmmmmmmmmDDD

        D = dirty commits (file tree fixed)
        m = modified commits (commit message or parents changed)
        . = clean commits (no changes to file tree)

                                Before     After
        -------------------------------------------
        First modified commit | 326af31a | 59697ad9
        Last dirty commit     | 959040a6 | 4150eb2e

Deleted files
-------------

        Filename                                                                               Git id
        -------------------------------------------------------------------------------------------------------------------------------------------------
        (Memóría e Sociedade) Pierre Bourdieu - O poder simbólico-Bertrand Brasil (1989).pdf | ab3bcc9a (14.7 MB)
        .zip                                                                                 | 15cb0ecb (22 B )
        1614190597789.zip                                                                    | e69f4a57 (4.6 MB)
        1614473217429.zip                                                                    | e6eae775 (4.6 MB)
        1614836343020.zip                                                                    | e4273132 (4.9 MB)
        1614882330937.zip                                                                    | 8c75c090 (4.9 MB)
        1615711014943.zip                                                                    | f673eaf5 (4.5 MB)
        1636259527044.zip                                                                    | af53c65d (6.4 MB)
        876bd999f867cbc4f26bed1d1d6c39e7.pdf                                                 | 94d40d92 (14.7 MB)
        Archive.zip                                                                          | 80a05a51 (1.9 KB)
        QmWmxAMCNsFb24ByUkhfci9utQ3dxtgawhbDEYu2ufTTPg.mp4.crdownload                        | edf7330a (11.2 MB)
        QmcsGnXM2BafkxhqxzDxuomBVAmmP1nZJ8VgutTRBRwcLj.wav                                   | 850db32b (92.8 MB)
        build.zip                                                                            | 31d3345d (3.4 MB)
        html-archive.zip                                                                     | e4febaf1 (4.9 KB), 63ef3619 (4.9 KB), ...
        html-p5js-template.zip                                                               | 503eb666 (719.4 KB), fdc1c431 (719.1 KB)

Store the mint fields in local storage

People regularly have issues with a mint failing, and then losing the description they typed out. Two steps to fix this:

  1. Set proper name on mint form elements. Currently they display name=input-name-not-set
  2. Save form input in localStorage? Here's an untested snippet I've adapted from other work that could be applied once step 1 is taken.
var form_els = document.querySelectorAll('input, textarea');

if (localStorage.getItem('mint_'+form_els[0].name) != null) {
    for (var i = 0; i < form_els.length; i++) {
        var el = form_els[i];
        el.value = localStorage.getItem('mint_'+el.name);
    }
}
function saveForm() {
    for (var i = 0; i < form_els.length; i++) {
        var el = form_els[i];
        localStorage.setItem('mint_'+el.name, el.value);
    }
}
setInterval(saveForm, 5000);
function clearForm(){
    for (var i = 0; i < form_els.length; i++) {
        var el = form_els[i];
        localStorage.setItem('mint_'+el.name, '');
        el.value = '';
    }
}

fix markdown tokens

markdown tokens are currently are not rendered correctly.

see https://teia.art/objkt/156470 for example

this could have something todo with an axios call currently being made directly in the render function of the MD component. something like useSWR can help here.

Migrate repository 😬

So there is a few issues with the current setup and unless someone has a better alternative, @xat and I came to the conclusion that we should migrate the repository in order to solve those issues:

Pros

  • Opening PR's open them against hicetnunc2000 by default the is no way to overcome that.

  • A lot of the Github tools behave differently because of that: commit diff indicator on branches,

We loose

  • Current stars
  • Current watch count
  • PR discussions (not really)

The best approach imo would be to archive this repo and redirect to the new one.

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.