-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexport.html
132 lines (118 loc) · 6.32 KB
/
export.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!doctype html>
<html>
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-S3ZRGKSGBF"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-S3ZRGKSGBF');
</script>
<title>Export - Data Contract Playground</title>
<!-- Recommended meta tags -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<!-- PyScript CSS -->
<link rel="stylesheet" href="https://pyscript.net/releases/2024.1.1/core.css">
<!-- This script tag bootstraps PyScript -->
<script type="module" src="https://pyscript.net/releases/2024.1.1/core.js"></script>
<script src="https://www.unpkg.com/ace-builds@latest/src-noconflict/ace.js"></script>
<script src="https://www.unpkg.com/ace-builds@latest/src-noconflict/ext-language_tools.js"></script>
<script src="https://www.unpkg.com/ace-builds@latest/src-noconflict/theme-chrome.js"></script>
<script src="https://cdn.jsdelivr.net/npm/ace-linters"></script>
<script type="module">
const loading = document.getElementById('loading');
addEventListener('py:ready', () => loading.close());
loading.showModal();
</script>
<link rel="icon" href="image/data_catering_transparent.svg"/>
<link rel="stylesheet" href="src/css/main.css" type="text/css"/>
<link rel="stylesheet" href="src/css/pyscript.css" type="text/css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<meta name="description" content="Export data contracts to different formats. Formats include avro, DBT, Go, JSON Schema, ODCS, Protobuf, Pydantic, SodaCL, SQL and Terraform.">
<meta property="description" content="Export data contracts to different formats. Formats include avro, DBT, Go, JSON Schema, ODCS, Protobuf, Pydantic, SodaCL, SQL and Terraform.">
<meta property="og:type" content="website">
<meta property="og:title" content="Export - Data Contract Playground">
<meta property="og:description" content="Export data contracts to different formats. Formats include avro, DBT, Go, JSON Schema, ODCS, Protobuf, Pydantic, SodaCL, SQL and Terraform.">
<meta property="og:image" content="https://data-catering.github.io/data-contract-playground/image/social/data-contract-playground-export.png">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:title" content="Export - Data Contract Playground">
<meta property="twitter:description" content="Export data contracts to different formats. Formats include avro, DBT, Go, JSON Schema, ODCS, Protobuf, Pydantic, SodaCL, SQL and Terraform.">
<meta property="twitter:image" content="https://data-catering.github.io/data-contract-playground/image/social/data-contract-playground-export.png">
</head>
<body>
<dialog id="loading">
<h1>Loading...</h1>
</dialog>
<div class="top-banner">
<span>
<div class="logo-title">
<a href="https://data.catering/"><img class="logo" src="image/data_catering_transparent.svg" alt="logo"/></a>
<b>Data Contract Playground</b>
</div>
</span>
<a class="github-button" href="https://github.com/data-catering/data-contract-playground"
data-color-scheme="no-preference: light; light: light; dark: dark;" data-icon="octicon-star" data-size="large"
data-show-count="true" aria-label="Star data-catering/data-contract-playground on GitHub">Star</a>
</div>
<nav class="topnav">
<a href="create.html">Create</a>
<a href="export.html">Export</a>
<a href="index.html">Validate</a>
</nav>
<div>
<section>
<main>
<div class="convert-container">
<div class="convert-text">
<p>Powered by <a href="https://github.com/datacontract/datacontract-cli" target="_blank">datacontract-cli</a></p>
</div>
<div class="convert-button-container">
<button id="convert-btn" type="button" py-click="export_to_output_type">
Convert
</button>
</div>
</div>
<div class="code-containers">
<div class="code-container code-container-input" id="convert-input-container">
<div class="code-container-options">
<label for="convert-input-type">Choose input type:</label>
<select name="convert-input-type" id="convert-input-type"></select>
</div>
<div class="code" id="input-yaml"></div>
</div>
<div class="code-container code-container-output" id="convert-output-container">
<div class="code-container-options">
<label for="convert-output-type">Choose output type:</label>
<select name="convert-output-type" id="convert-output-type"></select>
</div>
<div class="code" id="output-text"></div>
</div>
</div>
</main>
<script type="py" src="src/python/main.py" config="./pyscript.toml"></script>
</section>
</div>
<footer>
<div class="footer-container">
<a class="link footer-left" href="index.html">Data Contract Playground</a>
<div class="footer-icons">
<ul>
<li><a href="https://github.com/data-catering/data-contract-playground" target="_blank"><i
class="fa fa-github fa-2x"></i></a></li>
<li><a href="https://www.linkedin.com/in/peter-flook/" target="_blank"><i
class="fa fa-linkedin fa-2x"></i></a></li>
<li><a href="https://medium.com/@pflooky" target="_blank"><i class="fa fa-medium fa-2x"></i></a></li>
</ul>
</div>
<a class="link footer-right" href="https://data.catering/about/#contact" target="_blank">contact</a>
</div>
</footer>
<script type="module" src="src/js/export.js"></script>
<script async defer src="https://buttons.github.io/buttons.js"></script>
</body>
</html>