]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - modules/private/websites/tools/tools/dmarc_reports/index.html
Add assets website for immae
[perso/Immae/Config/Nix.git] / modules / private / websites / tools / tools / dmarc_reports / index.html
index ded05e15dee6bf484e06712dbf09878ac5bd745f..0afc82f3967e11d211e8837d7cec00db59077410 100644 (file)
 
 <body>
   <div id="app" style="width: 100%">
-    <div class="optionblock" v-if="info">
+    <div class="optionblock">
+      <div class='options'>
+        <span class='optionlabel'>Anonymize</span>
+        <label><input type="radio" :value="false" v-model="anonymous" v-on:click="toggleAnonymous()"> no</label>
+        <label><input type="radio" :value="true" v-model="anonymous" v-on:click="toggleAnonymous()"> yes</label>
+      </div>
+      <template v-if="info">
       <div class='options'>
         <span class='optionlabel'>Hide all-green lines:</span>
         <label><input type="radio" :value="false" v-model="filterGreen"> no</label>
           <option v-for="date in info.dates" :value="date">{{ date }}</option>
         </select>
       </div>
+      </template>
     </div>
 
     <h1 class='main'>DMARC Reports</h1>
+    <p v-if="!info" class="warninginfo">
+    No information could be fetched. If in non-anonymous mode you need to be logged-in
+    </p>
     <table class='reportlist' v-if="summaries">
       <thead>
         <tr>
     </table>
   </div>
 
-  <script src="https://cdn.jsdelivr.net/npm/vue@2.6.11"></script>
+  <script src="https://assets.immae.eu/vue/2.6.11/vue.min.js" integrity="sha256-ngFW3UnAN0Tnm76mDuu7uUtYEcG3G5H1+zioJw3t+68=" crossorigin="anonymous"></script>
   <script src="app.js"></script>
 </body>