forked from MOODOO-SH/WeFlow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
about.html
134 lines (115 loc) · 4.52 KB
/
about.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
133
134
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="assets/css/reset.css">
<link rel="stylesheet" href="assets/css/app.css">
<script type="text/javascript">
window.nodeRequire = require;
delete window.require;
delete window.exports;
delete window.module;
// Pretend that cookies work
(function (document) {
var cookies = {};
document.__defineGetter__('cookie', function () {
var output = [];
for (var cookieName in cookies) {
output.push(cookieName + "=" + cookies[cookieName]);
}
return output.join(";");
});
document.__defineSetter__('cookie', function (s) {
var indexOfSeparator = s.indexOf("=");
var key = s.substr(0, indexOfSeparator);
var value = s.substring(indexOfSeparator + 1);
cookies[key] = value;
return key + "=" + value;
});
document.clearCookies = function () {
cookies = {};
};
originalLocation = document.location;
// Pretend that we're hosted on an Internet Website
document.__defineGetter__('location', function () {
return {
href: 'http://weflow.app/',
protocol: 'http:',
host: 'weflow.app',
port: '',
pathname: '/',
search: '',
hash: '',
username: '',
password: '',
origin: 'http://weflow.app',
reload: function () {
return originalLocation.reload.apply(originalLocation, arguments);
}
};
});
// Nobody sets location
document.__defineSetter__('location', function () {
})
})(document);
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://o4jiepyc4.qnssl.com/analytics.js', 'ga');
// qiniu CDN for speeding up ga.js -> https://www.google-analytics.com/analytics.js
// Get using version of WeFlow
var version = nodeRequire('./package.json').version;
ga('create', 'UA-24431632-7', 'auto');
ga('set', 'checkProtocolTask', null); // Disable file protocol checking.
ga('set', 'location', '/about.html'); // Allow file:// request for GA
ga('send', 'pageview');
</script>
</head>
<body>
<div class="about" id="js-about">
<div class="logo"></div>
<div class="title">WeFlow</div>
<div class="version">Version <span id="js-version">1.0.0</span></div>
<div class="desc">一个高效、强大、跨平台的前端开发工作流工具</div>
<div class="about__buttom">
<div class="about__buttom-info">所有 源代码 & 设计稿 采用 MIT 授权并开源</div>
<div class="about__buttom-list" id="js-link">
<a href="https://github.com/weixin/WeFlow" class="about__buttom-list-item">Github</a>
<a href="https://dribbble.com/hzlzh/projects/380016-WeFlow" class="about__buttom-list-item">Dribbble</a>
<a href="https://weflow.io/" class="about__buttom-list-item">官 网</a>
</div>
</div>
</div>
<script>
window.nodeRequire = require;
delete window.require;
delete window.exports;
delete window.module;
</script>
<script src="./assets/js/jquery.min.js"></script>
<script>
var electron = nodeRequire('electron');
$('#js-link .about__buttom-list-item').on('click', function(event){
var href = $(this).attr('href');
electron.shell.openExternal(href);
event.preventDefault();
});
$('#js-tmtworkflow').on('click', function(event){
var href = $(this).attr('href');
electron.shell.openExternal(href);
event.preventDefault();
});
// Get using version of WeFlow
var version = nodeRequire('./package.json').version;
$('#js-version').text(version);
</script>
</body>
</html>