Coder Social home page Coder Social logo

onionshare-shared's Introduction

onionshare-shared

docs, design, and assets for collaboration

onionshare-shared's People

Contributors

micahflee avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mynotic

onionshare-shared's Issues

All services need a manifest.json

If there will be non-Tor Browser clients, then every service should have a machine-readable manifest at /manifest.json that the clients can read.

The manifests will describe to the client the relevant general settings, and the relevant mode settings, for each mode. This is what the mode settings object looks like: https://github.com/onionshare/onionshare/blob/develop/cli/onionshare_cli/mode_settings.py#L37-L60

Here's what they should look like for each mode:

Share mode:

{
    "version": 1,
    "mode": "share",
    "data": {
        "title": "Custom title",
        "autostop_sharing": true,
        "files": [
            { "name": "/filename1.txt", "size": 1024 },
            { "name": "/filename2.txt", "size": 42 },
            { "name": "/Documents/" },
            { "name": "/Documents/nested_file.txt", "size": 15360 },
            { "name": "/Documents/Empty Folder/" }
        ]
    }
}

The reason the autostop_sharing setting should be exposed is so the client knows if it can download individual files or not. If this is false, the client's only option is to download all files as a zip. If it's true, it can download individual files.

Filenames that end in a trailing slash are directories.

Receive mode:

{
    "version": 1,
    "mode": "receive",
    "data": {
        "title": "Custom title",
        "disable_text": false,
        "disable_files": false
    }
}

Receive mode should expose disable_text and disable_files to allow the client to know what data it can submit.

Website mode:

Website mode doesn't need a manifest.

Chat mode:

{
    "version": 1,
    "mode": "chat",
    "data": {
        "title": "Custom title"
    }
}

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.