Jelajahi Sumber

Remove redundant/invalid closing tags and slashes
Fix missing double quote and redundant slash in test

Lennart Grahl 7 tahun lalu
induk
melakukan
942ddcbba4

+ 3 - 3
index.html

@@ -27,7 +27,7 @@
 
     <title>Threema Web</title>
     <meta name="description" translate translate-attr-content="meta.DESCRIPTION"
-          content="Chat from your desktop with Threema Web and have full access to all chats, contacts and media files."/>
+          content="Chat from your desktop with Threema Web and have full access to all chats, contacts and media files.">
 
     <!-- Favicon / Webmanifest / Browserconfig -->
     <link rel="manifest" href="manifest.webmanifest?v=[[VERSION]]">
@@ -57,10 +57,10 @@
 </head>
 
 <body ng-controller="StatusController as ctrl" class="{{ ctrl.statusClass }}" ng-class="{expanded: ctrl.expandStatusBar}">
-    <img src="img/bg1.jpg?v=1" id="background-image" draggable="false"/>
+    <img src="img/bg1.jpg?v=1" id="background-image" draggable="false">
 
     <noscript>
-        <img id="logo-noscript" src="img/logo.svg?v=[[VERSION]]"></img>
+        <img id="logo-noscript" src="img/logo.svg?v=[[VERSION]]"/>
         <div>
             <h2>Error: JavaScript not supported</h2>
             <p>Please enable JavaScript in your browser to be able to use Threema Web.</p>

+ 2 - 2
src/directives/avatar.ts

@@ -209,13 +209,13 @@ export default [
                     <div class="blocked-indicator"  ng-if="ctrl.showBlocked()"
                         translate-attr="{'aria-label': 'messenger.THREEMA_BLOCKED_RECEIVER',
                             'title': 'messenger.THREEMA_BLOCKED_RECEIVER'}">
-                        <img src="img/ic_blocked_24px.svg" alt="blocked icon"/>
+                        <img src="img/ic_blocked_24px.svg" alt="blocked icon">
                     </div>
                     <img
                          ng-class="ctrl.avatarClass()"
                          ng-style="{ 'background-color': ctrl.backgroundColor }"
                          ng-src="{{ ctrl.getAvatarUri() }}"
-                         in-view="ctrl.requestAvatar($inview)"/>
+                         in-view="ctrl.requestAvatar($inview)">
                </div>
             `,
         };

+ 1 - 1
src/directives/avatar_area.ts

@@ -142,7 +142,7 @@ export default [
                                     md-diameter="96"></md-progress-circular>
 
                         </div>
-                        <img ng-src="{{ ctrl.avatar }}" ng-if="ctrl.avatar !== null" />
+                        <img ng-src="{{ ctrl.avatar }}" ng-if="ctrl.avatar !== null">
                     </div>
                     <div class="avatar-area-navigation"  layout="row" layout-wrap layout-margin layout-align="center">
 

+ 1 - 1
src/directives/avatar_editor.ts

@@ -257,7 +257,7 @@ export default [
                 <div class="avatar-editor">
                     <div class="avatar-editor-drag croppie-container"></div>
                     <div class="avatar-editor-navigation" layout="column" layout-wrap layout-margin layout-align="center center">
-                        <input class="file-input" type="file" style="visibility: hidden" multiple/>
+                        <input class="file-input" type="file" style="visibility: hidden" multiple>
                           <md-button type="submit" class="file-trigger md-raised">
                             <span translate>messenger.UPLOAD_AVATAR</span>
                            </md-button>

+ 1 - 1
src/directives/message_icon.ts

@@ -54,7 +54,7 @@ export default [
                 };
             }],
             template: `
-                <img ng-if="ctrl.icon !== null" ng-src="img/{{ ctrl.icon }}" alt="{{ ctrl.altText }}" />
+                <img ng-if="ctrl.icon !== null" ng-src="img/{{ ctrl.icon }}" alt="{{ ctrl.altText }}">
             `,
         };
     },

+ 2 - 2
src/directives/message_media.html

@@ -55,7 +55,7 @@
 
     <!-- Anim GIF -->
     <div class="animgif" ng-if="ctrl.downloaded && ctrl.isAnimGif">
-        <img ng-src="{{ ctrl.blobBufferUrl }}" />
+        <img ng-src="{{ ctrl.blobBufferUrl }}">
     </div>
 
     <!-- Other file messages -->
@@ -77,7 +77,7 @@
         </div>
         <div class="circle"
              ng-if="ctrl.downloaded && ctrl.message.thumbnail.preview == undefined">
-            <img ng-src="{{ ctrl.message.file.type | mimeTypeIcon }}"/>
+            <img ng-src="{{ ctrl.message.file.type | mimeTypeIcon }}">
         </div>
 
         <!-- File information -->

+ 1 - 1
src/partials/messenger.ts

@@ -563,7 +563,7 @@ class ConversationController {
                             <md-dialog class="send-file-dialog">
                                 <md-dialog-content class="md-dialog-content">
                                     <h2 class="md-title">${title}</h2>
-                                    <img class="preview" ng-if="ctrl.hasPreview()" ng-src="{{ ctrl.previewDataUrl }}" />
+                                    <img class="preview" ng-if="ctrl.hasPreview()" ng-src="{{ ctrl.previewDataUrl }}">
                                     <md-input-container md-no-float class="input-caption md-prompt-input-container" ng-show="!${showSendAsFileCheckbox} || ctrl.sendAsFile || ${captionSupported}">
                                         <input maxlength="1000" md-autofocus ng-keypress="ctrl.keypress($event)" ng-model="ctrl.caption" placeholder="${placeholder}" aria-label="${placeholder}">
                                     </md-input-container>

+ 2 - 2
tests/filters.js

@@ -130,8 +130,8 @@ describe('Filters', function() {
             this.testPatterns([
                 ['https://en.wikipedia.org/wiki/Java_class_file *nice*',
                  'https://en.wikipedia.org/wiki/Java_class_file <span class="text-bold">nice</span>'],
-                ['<a href="https://threema.ch/>_Threema_</a>',
-                 '<a href="https://threema.ch/><span class="text-italic">Threema</span></a>'],
+                ['<a href="https://threema.ch">_Threema_</a>',
+                 '<a href="https://threema.ch"><span class="text-italic">Threema</span></a>'],
             ]);
         });
 

+ 4 - 4
troubleshoot/index.html

@@ -24,13 +24,13 @@
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <meta name="referrer" content="no-referrer">
-    <meta name="robots" content="noindex" />
+    <meta name="robots" content="noindex">
 
     <title>Threema Web Diagnostics</title>
 
     <!-- Favicon -->
-    <link rel="icon" href="../img/favicion/favicon.ico?v=[[VERSION]]" type="image/x-icon"/>
-    <link rel="shortcut icon" href="../img/favicion/favicon.ico?v=[[VERSION]]" type="image/x-icon"/>
+    <link rel="icon" href="../img/favicion/favicon.ico?v=[[VERSION]]" type="image/x-icon">
+    <link rel="shortcut icon" href="../img/favicion/favicon.ico?v=[[VERSION]]" type="image/x-icon">
 
     <!-- Fonts -->
     <link rel="stylesheet" href="../fonts/roboto.css?v=[[VERSION]]" type="text/css">
@@ -104,7 +104,7 @@
     <script src="troubleshoot.js?v=[[VERSION]]"></script>
 </head>
 <body>
-    <img src="../img/bg1.jpg?v=[[VERSION]]" id="background-image" draggable="false" alt="" />
+    <img src="../img/bg1.jpg?v=[[VERSION]]" id="background-image" draggable="false" alt="">
 
     <header>
         <div id="title">