Balise : Éditeur de wikicode 2017 |
Balise : Éditeur de wikicode 2017 |
Ligne 40 : |
Ligne 40 : |
| {"label": "kiano","nom": "Kiano Piwowarzik","membre_start": "2021-07-14","membre_end": "2021-07-22","status": "❌"} | | {"label": "kiano","nom": "Kiano Piwowarzik","membre_start": "2021-07-14","membre_end": "2021-07-22","status": "❌"} |
| ] | | ] |
| },
| |
| {
| |
| "name": "seconds",
| |
| "transform": [
| |
| {
| |
| "type": "formula",
| |
| "field": "second_end",
| |
| "expr": "datum.second_end ? datum.second_end : datetime(year(now()) + '/' + (month(now())+1) + '/' + date(now()))"
| |
| }
| |
| ],
| |
| "format": {
| |
| "type": "json",
| |
| "parse": {
| |
| "second_start": "date:\"%Y-%m-%d\"",
| |
| "second_end": "date:\"%Y-%m-%d\""
| |
| }
| |
| },
| |
| "values": []
| |
| },
| |
| {
| |
| "name": "chefs",
| |
| "transform": [
| |
| {
| |
| "type": "formula",
| |
| "field": "chef_end",
| |
| "expr": "datum.chef_end ? datum.chef_end : datetime(year(now()) + '/' + (month(now())+1) + '/' + date(now()))"
| |
| }
| |
| ],
| |
| "format": {
| |
| "type": "json",
| |
| "parse": {
| |
| "chef_start": "date:\"%Y-%m-%d\"",
| |
| "chef_end": "date:\"%Y-%m-%d\""
| |
| }
| |
| },
| |
| "values": []
| |
| }, | | }, |
| { | | { |
Ligne 150 : |
Ligne 114 : |
| "text": {"field": "status"}, | | "text": {"field": "status"}, |
| "fontSize": {"value": 14} | | "fontSize": {"value": 14} |
| }
| |
| }
| |
| },
| |
| {
| |
| "type": "rect",
| |
| "from": {"data": "chefs"},
| |
| "properties": {
| |
| "enter": {
| |
| "x": {"scale": "x","field": "chef_start"},
| |
| "x2": {"scale": "x","field": "chef_end"},
| |
| "y": {"scale": "y","field": "label","offset": -3},
| |
| "height": {"value": 9},
| |
| "fill": {"value": "#545454"}
| |
| }
| |
| }
| |
| },
| |
| {
| |
| "type": "rect",
| |
| "from": {"data": "seconds"},
| |
| "properties": {
| |
| "enter": {
| |
| "x": {"scale": "x","field": "second_start"},
| |
| "x2": {"scale": "x","field": "second_end"},
| |
| "y": {"scale": "y","field": "label","offset": -3},
| |
| "height": {"value": 10},
| |
| "fill": {"value": "#8F8F8F"}
| |
| } | | } |
| } | | } |