Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a JSON DSL for spans #3

Open
hantuzun opened this issue Mar 10, 2016 · 0 comments
Open

Create a JSON DSL for spans #3

hantuzun opened this issue Mar 10, 2016 · 0 comments

Comments

@hantuzun
Copy link
Owner

Spans are long periods presented in i. column.

Create a DSL for adding spans to the daily planner. If an optional spans.json file exists the planner should be created with these spans.ngles.

An example spans.json file should look like the following:

{ "singles": [], "repeats": []}

An single is an single on a specific time period and has the following properties:

  • name
  • from: between 6:00 to 23:30, half hours (optional, defaul to day start)
  • to: between 6:30 to 24:00, half hours (optional, defaul to day end)
  • one of the following:
    • date
    • since and until

A repeat is an recurring time block on the planner and has the following properties::

  • name
  • from: between 6:00 to 23:30, half hours (optional, defaul to day start)
  • to: between 6:30 to 24:00, half hours (optional, defaul to day end)
  • days: Days of week array (optional, default is all days)
  • since: First day of the repeat (optional, default to the planner's beginning)
  • until: Last of the repeat (optional, default to the planner's end)

An example spans.json file is below:

{
    "singles":[
        {
            "name":"Ankara Startup Summit",
            "date":"27 2 2016",
            "from":"10:00",
            "to":"17:00"
        }
    ],
    "repeats":[
        {
            "name":"GYM",
            "from":"18:00",
            "to":"20:00",
            "days":[
                "Monday",
                "Wednesday",
                "Friday"
            ]
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant