-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathTabDatas.js
More file actions
54 lines (49 loc) · 10.2 KB
/
TabDatas.js
File metadata and controls
54 lines (49 loc) · 10.2 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
"use strict";
var all = [{
"id": "home",
"title": "Home",
"windowTitle": "Material Design In XAML",
"metas": [{ "attribs": [{ "name": "name", "value": "description" }, { "name": "content", "value": "Material Design In XAML Toolkit" }] }, { "attribs": [{ "name": "name", "value": "keywords" }, { "name": "content", "value": "material design, xaml, ui, ux, xaml, net, windows, design" }] }, { "attribs": [{ "name": "itemprop", "value": "name" }, { "name": "content", "value": "Material Design In XAML Toolkit" }] }, { "attribs": [{ "name": "itemprop", "value": "description" }, { "name": "content", "value": "Material Design for WPF and the Windows Desktop" }] }, { "attribs": [{ "name": "itemprop", "value": "image" }, { "name": "content", "value": "http://materialdesigninxaml.net/images/MD4XAML128.png" }] }, { "attribs": [{ "name": "name", "value": "twitter:card" }, { "name": "content", "value": "summary" }] }, { "attribs": [{ "name": "name", "value": "twitter:site" }, { "name": "content", "value": "@james_willock" }] }, { "attribs": [{ "name": "name", "value": "twitter:title" }, { "name": "content", "value": "Material Design In XAML Toolkit" }] }, { "attribs": [{ "name": "name", "value": "twitter:description" }, { "name": "content", "value": "Material Design for WPF and the Windows Desktop" }] }, { "attribs": [{ "name": "name", "value": "twitter:creator" }, { "name": "content", "value": "@james_willock" }] }, { "attribs": [{ "name": "name", "value": "twitter:image:src" }, { "name": "content", "value": "http://materialdesigninxaml.net/images/MD4XAML128.png" }] }, { "attribs": [{ "name": "property", "value": "og:title" }, { "name": "content", "value": "Material Design In XAML Toolkit" }] }, { "attribs": [{ "name": "property", "value": "og:type" }, { "name": "content", "value": "article" }] }, { "attribs": [{ "name": "property", "value": "og:url" }, { "name": "content", "value": "http://materialdesigninxaml.net" }] }, { "attribs": [{ "name": "property", "value": "og:image" }, { "name": "content", "value": "http://materialdesigninxaml.net/images/MD4XAML128.png" }] }, { "attribs": [{ "name": "property", "value": "og:description" }, { "name": "content", "value": "Material Design for WPF and the Windows Desktop" }] }, { "attribs": [{ "name": "property", "value": "og:site_name" }, { "name": "content", "value": "Material Design In XAML Toolkit" }] }]
}, {
"id": "news",
"title": "News",
"windowTitle": "News - Material Design In XAML",
"metas": [{ "attribs": [{ "name": "name", "value": "description" }, { "name": "content", "value": "Material Design In XAML Toolkit - News" }] }, { "attribs": [{ "name": "name", "value": "keywords" }, { "name": "content", "value": "material design, xaml, ui, ux, xaml, net, windows, design, news" }] }, { "attribs": [{ "name": "itemprop", "value": "name" }, { "name": "content", "value": "Material Design In XAML Toolkit - News" }] }, { "attribs": [{ "name": "itemprop", "value": "description" }, { "name": "content", "value": "Latest News for Material Design for WPF and the Windows Desktop" }] }, { "attribs": [{ "name": "itemprop", "value": "image" }, { "name": "content", "value": "http://materialdesigninxaml.net/images/MD4XAML128.png" }] }, { "attribs": [{ "name": "name", "value": "twitter:card" }, { "name": "content", "value": "summary" }] }, { "attribs": [{ "name": "name", "value": "twitter:site" }, { "name": "content", "value": "@james_willock" }] }, { "attribs": [{ "name": "name", "value": "twitter:title" }, { "name": "content", "value": "Material Design In XAML Toolkit - News" }] }, { "attribs": [{ "name": "name", "value": "twitter:description" }, { "name": "content", "value": "Latest News for Material Design for WPF and the Windows Desktop" }] }, { "attribs": [{ "name": "name", "value": "twitter:creator" }, { "name": "content", "value": "@james_willock" }] }, { "attribs": [{ "name": "name", "value": "twitter:image:src" }, { "name": "content", "value": "http://materialdesigninxaml.net/images/MD4XAML128.png" }] }, { "attribs": [{ "name": "property", "value": "og:title" }, { "name": "content", "value": "Material Design In XAML Toolkit - News" }] }, { "attribs": [{ "name": "property", "value": "og:type" }, { "name": "content", "value": "article" }] }, { "attribs": [{ "name": "property", "value": "og:url" }, { "name": "content", "value": "http://materialdesigninxaml.net" }] }, { "attribs": [{ "name": "property", "value": "og:image" }, { "name": "content", "value": "http://materialdesigninxaml.net/images/MD4XAML128.png" }] }, { "attribs": [{ "name": "property", "value": "og:description" }, { "name": "content", "value": "Latest News for Material Design for WPF and the Windows Desktop" }] }, { "attribs": [{ "name": "property", "value": "og:site_name" }, { "name": "content", "value": "Material Design In XAML Toolkit - News" }] }]
}, {
"id": "f1ix",
"title": "F1ix",
"windowTitle": "F1ix",
"metas": [{ "attribs": [{ "name": "name", "value": "description" }, { "name": "content", "value": "F1ix. Formula 1 Results and Stats App for Windows." }] }, { "attribs": [{ "name": "name", "value": "keywords" }, { "name": "content", "value": "material design, xaml, ui, ux, xaml, net, windows, design" }] }, { "attribs": [{ "name": "itemprop", "value": "name" }, { "name": "content", "value": "F1ix. Formula 1 Results and Stats App for Windows." }] }, { "attribs": [{ "name": "itemprop", "value": "description" }, { "name": "content", "value": "Forumala 1 results and statistics app for the Windows desktop." }] }, { "attribs": [{ "name": "itemprop", "value": "image" }, { "name": "content", "value": "http://materialdesigninxaml.net/images/f1ix-150x150.png" }] }, { "attribs": [{ "name": "name", "value": "twitter:card" }, { "name": "content", "value": "summary" }] }, { "attribs": [{ "name": "name", "value": "twitter:site" }, { "name": "content", "value": "@james_willock" }] }, { "attribs": [{ "name": "name", "value": "twitter:title" }, { "name": "content", "value": "F1ix. Formula 1 Results and Stats App for Windows." }] }, { "attribs": [{ "name": "name", "value": "twitter:description" }, { "name": "content", "value": "Forumala 1 results and statistics app for the Windows desktop." }] }, { "attribs": [{ "name": "name", "value": "twitter:creator" }, { "name": "content", "value": "@james_willock" }] }, { "attribs": [{ "name": "name", "value": "twitter:image:src" }, { "name": "content", "value": "http://materialdesigninxaml.net/images/f1ix-150x150.png" }] }, { "attribs": [{ "name": "property", "value": "og:title" }, { "name": "content", "value": "F1ix. Formula 1 Results and Stats App for Windows." }] }, { "attribs": [{ "name": "property", "value": "og:type" }, { "name": "content", "value": "article" }] }, { "attribs": [{ "name": "property", "value": "og:url" }, { "name": "content", "value": "http://materialdesigninxaml.net" }] }, { "attribs": [{ "name": "property", "value": "og:image" }, { "name": "content", "value": "http://materialdesigninxaml.net/images/f1ix-150x150.png" }] }, { "attribs": [{ "name": "property", "value": "og:description" }, { "name": "content", "value": "Free Forumala 1 results and statistics app for the Windows desktop." }] }, { "attribs": [{ "name": "property", "value": "og:site_name" }, { "name": "content", "value": "F1ix. Formula 1 Results and Stats App for Windows." }] }]
}, {
"id": "doobry",
"title": "doobry",
"windowTitle": "doobry",
"metas": [{ "attribs": [{ "name": "name", "value": "description" }, { "name": "content", "value": "doobry, the NoSQL Editor for DocumentDb" }] }, { "attribs": [{ "name": "name", "value": "keywords" }, { "name": "content", "value": "doobry, azure, documentdb, sql, nosql, database, document" }] }, { "attribs": [{ "name": "itemprop", "value": "name" }, { "name": "content", "value": "doobry" }] }, { "attribs": [{ "name": "itemprop", "value": "description" }, { "name": "content", "value": "doobry, the NoSQL Editor for DocumentDb" }] }, { "attribs": [{ "name": "itemprop", "value": "image" }, { "name": "content", "value": "http://materialdesigninxaml.net/images/doobry-512-onwhite.png" }] }, { "attribs": [{ "name": "name", "value": "twitter:card" }, { "name": "content", "value": "summary" }] }, { "attribs": [{ "name": "name", "value": "twitter:site" }, { "name": "content", "value": "@james_willock" }] }, { "attribs": [{ "name": "name", "value": "twitter:title" }, { "name": "content", "value": "doobry" }] }, { "attribs": [{ "name": "name", "value": "twitter:description" }, { "name": "content", "value": "doobry, the NoSQL Editor for DocumentDb" }] }, { "attribs": [{ "name": "name", "value": "twitter:creator" }, { "name": "content", "value": "@james_willock" }] }, { "attribs": [{ "name": "name", "value": "twitter:image:src" }, { "name": "content", "value": "http://materialdesigninxaml.net/images/doobry-icon-256.png" }] }, { "attribs": [{ "name": "property", "value": "og:title" }, { "name": "content", "value": "doobry" }] }, { "attribs": [{ "name": "property", "value": "og:type" }, { "name": "content", "value": "article" }] }, { "attribs": [{ "name": "property", "value": "og:url" }, { "name": "content", "value": "http://materialdesigninxaml.net/doobry" }] }, { "attribs": [{ "name": "property", "value": "og:image" }, { "name": "content", "value": "http://materialdesigninxaml.net/images/doobry-icon-256.png" }] }, { "attribs": [{ "name": "property", "value": "og:description" }, { "name": "content", "value": "doobry, the NoSQL Editor for DocumentDb" }] }, { "attribs": [{ "name": "property", "value": "og:site_name" }, { "name": "content", "value": "doobry" }] }]
}, {
"id": "testimonials",
"title": "Testimonials",
"windowTitle": "Material Design In XAML - Testimonials",
"basedOn": "home"
}];
function merge(tabData, baseTabData) {
return {
"id": tabData.id,
"title": tabData.title,
"windowTitle": tabData.windowTitle,
"metas": baseTabData.metas
};
}
function selectInternal(tabId) {
for (var index = 0; index < all.length; index++) {
var element = all[index];
if (element.id == tabId) {
return element;
}
}
throw "Unknown tab " + tabId;
}
var select = function select(tabId) {
var tab = selectInternal(tabId);
return tab.basedOn ? merge(tab, selectInternal(tab.basedOn)) : tab;
};
module.exports = { all: all, select: select };