-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
127 lines (126 loc) · 4.78 KB
/
index.html
File metadata and controls
127 lines (126 loc) · 4.78 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="https://sliceofkeesh.com/images/favicon.ico" />
<title>Data Source Mapper</title>
<link rel="stylesheet" href="./style.css" />
<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
<script src="https://cdn.jsdelivr.net/gh/Stuk/jszip@master/dist/jszip.min.js"></script>
<script src="./script.js" defer></script>
<style>
.banner-warning {
width: 100%;
background: #2563eb;
color: #fff;
text-align: center;
padding: 4px;
}
</style>
</head>
<body>
<div class="banner-warning">
Glitch no longer offers web hosting so I had to move this tool to my own domain. Please update
your bookmarks to the new URL hosted on
<a
href="https://tableau-data-source-mapper.sliceofkeesh.com/"
style="color: #fff; text-decoration: underline; font-weight: bold"
target="_blank"
rel="noopener"
>sliceofkeesh.com</a
>
</div>
<section class="section" id="app">
<div class="container">
<h1 class="title has-text-centered">Tableau Data Source Mapper</h1>
<p class="subtitle has-text-centered">
Add your Tableau workbook below to see how its data sources are being used!
</p>
<p class="subtitle is-size-7 has-text-centered">
This tool is safe to use with sensitive data. Nothing is being transmitted and everything
happens within your browser. You can even turn off your wifi/internet after loading this
page and it will still work.
<br />
<br />
Take a look at the
<a href="https://github.com/KeshiaRose/twb-data-source-mapper" target="_blank"
>source code</a
>
to build your own local version or read my
<a href="https://sliceofkeesh.com/post/tableau-data-source-mapper" target="_blank"
>blog post</a
>
to learn more. Anonymous analytics by
<a href="https://developers.cloudflare.com/web-analytics/" target="_blank">Cloudflare</a>.
<br /><br />
<b
>Found this useful?
<a href="mailto:keshia@sliceofkeesh.com" target="_blank">Drop me a line</a>
and let
<a href="https://keshiarose.com" target="_blank">me</a>
know! 🙂
</b>
</p>
<div class="block" v-cloak>
<div class="file has-name is-fullwidth">
<label class="file-label">
<input
class="file-input"
type="file"
accept=".twb,.twbx"
@change="processFile($event)"
/>
<span class="file-cta">
<span class="file-label">Select a .twb or .twbx</span>
</span>
<span class="file-name">{{fileName}}</span>
</label>
</div>
<p class="error">{{errorMessage}}</p>
</div>
<div class="mb-1" v-if="sheetMap.length>0 || fieldMap.length >0">
<div class="tabs is-boxed">
<ul>
<li :class="currentTab===1 ? 'is-active' : ''">
<a @click="currentTab=1">
<span>Sheets</span>
</a>
</li>
<li :class="currentTab===2 ? 'is-active' : ''">
<a @click="currentTab=2">
<span>Fields</span>
</a>
</li>
</ul>
</div>
</div>
<div class="block" v-if="currentTab===1" v-cloak>
<div class="block" v-for="dataSource in sheetMap">
<p class="dataSource">{{dataSource.dsName}}</p>
<p class="sheet" v-for="sheet in dataSource.sheets">
<img class="tabicon" :src="'/' + sheet.type + '.png'" />{{sheet.name}}
</p>
</div>
</div>
<div class="block" v-if="currentTab===2" v-cloak>
<label class="checkbox wholeWidth is-size-7 mb-1 has-text-right">
<input type="checkbox" v-model="showSheets" />
Show worksheets & calculations where fields are used
</label>
<div class="block" v-for="dataSource in fieldMap">
<p class="dataSource">{{dataSource.dsName}}</p>
<div class="sheet" v-for="field in dataSource.fields">
<p :title="field.calc">
<img class="tabicon" :src="'/' + field.type + '.png'" />{{field.name}}
</p>
<span v-if="showSheets">
<p class="fieldSheet" v-for="ws in field.worksheets">{{ws}}</p>
</span>
</div>
</div>
</div>
</div>
</section>
</body>
</html>