...

Text file src/oss.terrastruct.com/d2/e2etests/testdata/txtar.txt

Documentation: oss.terrastruct.com/d2/e2etests/testdata

     1-- sql-icon --
     2without: {
     3  tableEx: {
     4    shape: sql_table
     5    a: b
     6  }
     7  classEx: {
     8    shape: class
     9    a: b
    10  }
    11  codeEx: |go
    12    a := 1
    13  |
    14  mdEx: |md
    15    # This is for all ill-treated fellows
    16
    17    You will live a long, healthy, happy life and make bags of money.
    18  |
    19}
    20
    21with: {
    22  tableEx: {
    23    shape: sql_table
    24    a: b
    25    icon: https://icons.terrastruct.com/essentials%2F213-alarm.svg
    26  }
    27  classEx: {
    28    shape: class
    29    a: b
    30    icon: https://icons.terrastruct.com/essentials%2F213-alarm.svg
    31  }
    32  codeEx: |go
    33    a := 1
    34  | {
    35    icon: https://icons.terrastruct.com/essentials%2F213-alarm.svg
    36  }
    37  mdEx: |md
    38    # This is for all ill-treated fellows
    39
    40    You will live a long, healthy, happy life and make bags of money.
    41  | {
    42    icon: https://icons.terrastruct.com/essentials%2F213-alarm.svg
    43  }
    44}
    45
    46without.tableEx -> with.tableEx
    47without.classEx -> with.classEx
    48without.codeEx -> with.codeEx
    49without.mdEx -> with.mdEx
    50
    51-- theme-overrides --
    52
    53direction: right
    54vars: {
    55  d2-config: {
    56    theme-overrides: {
    57      B1: "#2E7D32"
    58      B2: "#66BB6A"
    59      B3: "#A5D6A7"
    60      B4: "#C5E1A5"
    61      B5: "#E6EE9C"
    62      B6: "#FFF59D"
    63
    64      AA2: "#0D47A1"
    65      AA4: "#42A5F5"
    66      AA5: "#90CAF9"
    67
    68      AB4: "#F44336"
    69      AB5: "#FFCDD2"
    70
    71      N1: "#2E2E2E"
    72      N2: "#2E2E2E"
    73      N3: "#595959"
    74      N4: "#858585"
    75      N5: "#B1B1B1"
    76      N6: "#DCDCDC"
    77      N7: "#DCDCDC"
    78    }
    79    dark-theme-overrides: {
    80      B1: "#2E7D32"
    81      B2: "#66BB6A"
    82      B3: "#A5D6A7"
    83      B4: "#C5E1A5"
    84      B5: "#E6EE9C"
    85      B6: "#FFF59D"
    86
    87      AA2: "#0D47A1"
    88      AA4: "#42A5F5"
    89      AA5: "#90CAF9"
    90
    91      AB4: "#F44336"
    92      AB5: "#FFCDD2"
    93
    94      N1: "#2E2E2E"
    95      N2: "#2E2E2E"
    96      N3: "#595959"
    97      N4: "#858585"
    98      N5: "#B1B1B1"
    99      N6: "#DCDCDC"
   100      N7: "#DCDCDC"
   101    }
   102  }
   103}
   104
   105logs: {
   106  shape: page
   107  style.multiple: true
   108}
   109user: User {shape: person}
   110network: Network {
   111  tower: Cell Tower {
   112    satellites: {
   113      shape: stored_data
   114      style.multiple: true
   115    }
   116
   117    satellites -> transmitter
   118    satellites -> transmitter
   119    satellites -> transmitter
   120    transmitter
   121  }
   122  processor: Data Processor {
   123    storage: Storage {
   124      shape: cylinder
   125      style.multiple: true
   126    }
   127  }
   128  portal: Online Portal {
   129    UI
   130  }
   131
   132  tower.transmitter -> processor: phone logs
   133}
   134server: API Server
   135
   136user -> network.tower: Make call
   137network.processor -> server
   138network.processor -> server
   139network.processor -> server
   140
   141server -> logs
   142server -> logs
   143server -> logs: persist
   144
   145server -> network.portal.UI: display
   146user -> network.portal.UI: access {
   147  style.stroke-dash: 3
   148}
   149
   150costumes: {
   151  shape: sql_table
   152  id: int {constraint: primary_key}
   153  silliness: int
   154  monster: int
   155  last_updated: timestamp
   156}
   157
   158monsters: {
   159  shape: sql_table
   160  id: int {constraint: primary_key}
   161  movie: string
   162  weight: int
   163  last_updated: timestamp
   164}
   165
   166costumes.monster -> monsters.id

View as plain text