Coder Social home page Coder Social logo

Comments (1)

xet7 avatar xet7 commented on June 28, 2024

@xator91

Database structure. Also other models files have REST API for text-based data. There is attachment storage strategy pattern (like in Java), how to use files at MongoDB GridFS, filesystem or S3/Minio, and some moving attachments code, but it currently only uses files from MongoDB.

https://github.com/wekan/wekan/blob/main/models/attachments.js

https://github.com/wekan/wekan/blob/main/models/lib/attachmentStoreStrategy.js

https://github.com/wekan/wekan/blob/main/client/components/cards/attachments.js

At cards, attachments are uploaded:

https://github.com/wekan/wekan/blob/main/client/components/cards/attachments.jade

https://github.com/wekan/wekan/blob/main/client/components/cards/attachments.css

At Admin Panel is list of attachments:

https://github.com/wekan/wekan/blob/main/client/components/settings/attachments.js

https://github.com/wekan/wekan/blob/main/client/components/settings/attachments.jade

https://github.com/wekan/wekan/blob/main/client/components/settings/attachments.css

List of files at current board is published from serverside MongoDB database to browserside Javascript-based minimongo database, with realtime updates, based on newest changes that Meteor Javascript web framework reads from MongoDB change stream:

https://github.com/wekan/wekan/blob/main/server/publications/attachments.js

Currently exporting board to JSON is missing attachments, that previously (before changing from CollectionFS to Meteor-Files way to store files with GridFS to MongoDB database) were included as base64 encoded to JSON file, but it needs checking are attachments included:

https://github.com/wekan/wekan/blob/main/client/components/sidebar/sidebar.js#L263

base64 code maybe here:

https://github.com/wekan/wekan/blob/main/models/exporter.js#L48

That sidebar export options are at board: click right top hamburger menu / Board Settings / Export Board. There is:

from wekan.

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.