Skip to content

Commit 12c6457

Browse files
Enable eslint cache, added all folders to HTML linting, supressed eslint warning for 3rd party libs (webrtc#900)
1 parent 6b9e101 commit 12c6457

File tree

5 files changed

+37
-17
lines changed

5 files changed

+37
-17
lines changed

Gruntfile.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ module.exports = function(grunt) {
1111
options: {
1212
csslintrc: '.csslintrc'
1313
},
14-
src: ['src/content/**/*.css']
14+
src: ['src/content/**/*.css', '!**/third_party/*.css' ]
1515
},
1616
eslint: {
1717
options: {
18-
configFile: '.eslintrc'
18+
configFile: '.eslintrc',
19+
cache: true
1920
},
20-
target: ['src/content/**/*.js', 'test/*.js']
21+
target: ['src/content/**/*.js', 'test/*.js', '!**/third_party/*.js' ]
2122
},
2223
githooks: {
2324
all: {
@@ -27,9 +28,8 @@ module.exports = function(grunt) {
2728
htmlhint: {
2829
html1: {
2930
src: [
30-
'src/content/datachannel/**/index.html',
31-
'src/content/getusermedia/**/index.html',
32-
'src/content/peerconnection/**/index.html'
31+
'src/content/**/*.html',
32+
'!**/third_party/*.html'
3333
]
3434
}
3535
},

src/content/capture/video-contenthint/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,18 @@
3636
<h1><a href="//webrtc.github.io/samples/" title="WebRTC samples homepage">WebRTC samples</a> <span>Guiding video encoding with content hints</span></h1>
3737

3838
<div id="videos">
39-
<div class='video-container'>
39+
<div class="video-container">
4040
<h2>Source video file (high bitrate)</h2>
4141
<video id="srcVideo" controls muted loop>
4242
<source src="../../../video/mixed-content.webm" type="video/webm" />
4343
<p>This browser does not support the video element.</p>
4444
</video>
4545
</div>
46-
<div class='video-container'>
46+
<div class="video-container">
4747
<h2>"motion" video @ 50kbps</h2>
4848
<video id="motionVideo" autoplay muted></video>
4949
</div>
50-
<div class='video-container'>
50+
<div class="video-container">
5151
<h2>"detail" video @ 50kbps</h2>
5252
<video id="detailVideo" autoplay muted></video>
5353
</div>

src/content/devices/multi/index.html

+8-8
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,19 @@ <h2>Local media files:</h2>
8282

8383
</div>
8484

85-
<p>This demo must be run from localhost or over HTTPS 45.0.2441.x or later.<p>
85+
<p>This demo must be run from localhost or over HTTPS 45.0.2441.x or later.</p>
8686
<p><strong>Enable experimental Web Platform features</strong> must be enabled from the chrome://flags page or run Chrome with the following flag:</p>
8787
<p>&nbsp;&nbsp;&nbsp;&nbsp;<code>--enable-blink-features=EnumerateDevices,AudioOutputDevices</code></p>
8888
<p>More information about running Chrome with flags is available from <a href="https://www.chromium.org/developers/how-tos/run-chromium-with-flags" title="The Chromium Projects: Run Chromium with flags">The Chromium Projects</a>.</p>
8989

9090
<a href="https://github.com/webrtc/samples/tree/gh-pages/src/content/devices/multi" title="View source for this page on GitHub" id="viewSource">View source on GitHub</a>
91-
</div>
91+
</div>
9292

93-
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
94-
<script src="../../../js/common.js"></script>
95-
<script src="js/main.js"></script>
93+
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
94+
<script src="../../../js/common.js"></script>
95+
<script src="js/main.js"></script>
9696

97-
<script src="../../../js/lib/ga.js"></script>
97+
<script src="../../../js/lib/ga.js"></script>
9898

99-
</body>
100-
</html>
99+
</body>
100+
</html>
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1+
<!doctype html>
2+
<!--
3+
* Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by a BSD-style license
6+
* that can be found in the LICENSE file in the root of the source
7+
* tree.
8+
-->
19
<script src="utils.js"></script>
210
<script src="eventPage.js"></script>

src/content/extensions/multipleroutes/src/options.html

+12
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,47 @@
11
<!doctype html>
2+
<!--
3+
* Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by a BSD-style license
6+
* that can be found in the LICENSE file in the root of the source
7+
* tree.
8+
-->
29
<html>
310
<body>
411
<p id="Mode0">
512
<input type="radio" name="ip_policy_selection" id="default" value="default">
613
<label for="default">
714
<span i18n-content="netli_default_radio"></span>
815
</label>
16+
</p>
917
<p id="Mode1">
1018
<input type="radio" name="ip_policy_selection"
1119
id="default_public_and_private_interfaces"
1220
value="default_public_and_private_interfaces">
1321
<label for="default_public_and_private_interfaces">
1422
<span i18n-content="netli_default_public_and_private_interfaces_radio"></span>
1523
</label>
24+
</p>
1625
<p id="Mode2">
1726
<input type="radio" name="ip_policy_selection"
1827
id="default_public_interface_only"
1928
value="default_public_interface_only">
2029
<label for="default_public_interface_only">
2130
<span i18n-content="netli_default_public_interface_only_radio"></span>
2231
</label>
32+
</p>
2333
<p id="Mode3">
2434
<input type="radio" name="ip_policy_selection"
2535
id="disable_non_proxied_udp" value="disable_non_proxied_udp">
2636
<label for="disable_non_proxied_udp" id="for_disable_non_proxied_udp">
2737
<span i18n-content="netli_disable_non_proxied_udp_radio"></span>
2838
</label>
39+
</p>
2940
<p>
3041
<label id="not_supported">
3142
<span i18n-content="netli_option_not_supported"></span>
3243
</label>
44+
</p>
3345
<script src="utils.js"></script>
3446
<script src="options.js"></script>
3547
</body>

0 commit comments

Comments
 (0)