[tor-commits] [bridgedb] 05/66: Stop tracking files built by lektor

gitolite role git at cupani.torproject.org
Wed Jul 27 18:32:10 UTC 2022


This is an automated email from the git hooks/post-receive script.

meskio pushed a commit to branch main
in repository bridgedb.

commit 302b53adab4f030f0fb7f1331e0a57489417cf4b
Author: kez <kez at torproject.org>
AuthorDate: Thu Jan 13 11:19:50 2022 -0800

    Stop tracking files built by lektor
---
 .../https/templates/assets/js/bridges.js           |  83 ----------
 bridgedb/distributors/https/templates/bridges.html | 130 ---------------
 bridgedb/distributors/https/templates/captcha.html |  49 ------
 bridgedb/distributors/https/templates/index.html   |  71 ---------
 bridgedb/distributors/https/templates/options.html | 174 ---------------------
 5 files changed, 507 deletions(-)

diff --git a/bridgedb/distributors/https/templates/assets/js/bridges.js b/bridgedb/distributors/https/templates/assets/js/bridges.js
deleted file mode 100644
index 5394260..0000000
--- a/bridgedb/distributors/https/templates/assets/js/bridges.js
+++ /dev/null
@@ -1,83 +0,0 @@
-// Takes one argument, `element`, which should be a string specifying the id
-// of the element whose text should be selected.
-function selectText(element) {
-  try {
-    var range;
-    var selection;
-    text = document.getElementById(element);
-
-    if (document.body.createTextRange) {
-      range = document.body.createTextRange();
-      range.moveToElementText(text);
-      range.select();
-    } else if (window.getSelection) {
-      selection = window.getSelection();
-      range = document.createRange();
-      range.selectNodeContents(text);
-      selection.removeAllRanges();
-      selection.addRange(range);
-    }
-  } catch (e) {
-    console.log(e);
-  }
-}
-
-function displayOrHide(element) {
-  try {
-    e = document.getElementById(element);
-    if (e.classList.contains('hidden')) {
-      // Don't use classList.toggle() because vendors seem to handle the
-      // secondary, optional "force" parameter in different ways.
-      document.getElementById(element).classList.remove('hidden');
-      document.getElementById(element).classList.add('visible');
-      document.getElementById(element).setAttribute('aria-hidden', 'false');
-    } else if (e.classList.contains('visible')) {
-      document.getElementById(element).classList.remove('visible');
-      document.getElementById(element).classList.add('hidden');
-      document.getElementById(element).setAttribute('aria-hidden', 'true');
-    }
-  } catch (err) {
-    console.log(err);
-  }
-}
-
-window.onload = function() {
-  var selectBtn = document.getElementById('bridgedb-selectbtn');
-  if (selectBtn) {
-    selectBtn.addEventListener('click',
-      function() {
-        selectText('bridgelines');
-      }, false);
-    // Make the 'Select All' button clickable:
-    selectBtn.classList.remove('disabled');
-    selectBtn.setAttribute('aria-disabled', 'false');
-  }
-
-  var bridgesContainer = document.getElementById('container-bridges');
-  if (bridgesContainer) {
-    document.getElementById('bridgelines').classList.add('cursor-copy');
-    document.getElementById('bridgelines').addEventListener('click',
-      function() {
-        selectText('bridgelines');
-      }, false);
-  }
-
-  var qrcodeBtn = document.getElementById('bridgedb-qrcodebtn');
-  if (qrcodeBtn) {
-    qrcodeBtn.addEventListener('click',
-      function() {
-        displayOrHide('qrcode');
-      }, false);
-    // Remove the href attribute that opens the QRCode image as a data: URL if
-    // JS is disabled:
-    qrcodeBtn.removeAttribute('href');
-  }
-
-  var qrModalBtn = document.getElementById('qrcode-modal-btn');
-  if (qrModalBtn) {
-    document.getElementById('qrcode-modal-btn').addEventListener('click',
-      function() {
-        displayOrHide('qrcode');
-      }, false);
-  }
-};
diff --git a/bridgedb/distributors/https/templates/bridges.html b/bridgedb/distributors/https/templates/bridges.html
deleted file mode 100644
index 1d672eb..0000000
--- a/bridgedb/distributors/https/templates/bridges.html
+++ /dev/null
@@ -1,130 +0,0 @@
-## -*- coding: utf-8 -*-
-
-<%inherit file="base.html"/>
-<%page args="strings, langs, rtl=False, lang='en', langOverride=False, answer=0, qrcode=0, **kwargs"/>
-
-</div>
-
-<div class="container-narrow">
-  <div class="container-fluid">
-
-% if answer:
-    <div class="container-fluid container-fluid-outer-98">
-      <div class="container-fluid container-fluid-inner-2">
-        <h2>${_(strings.BRIDGES[0])}</h2>
-      </div>
-    </div>
-
-    <div class="container-fluid" id="container-bridges">
-      <div class="row" id="bridgesrow1">
-        <div class="col col-lg-12">
-          <div class="bridge-lines" id="bridgelines">
-## See http://docs.makotemplates.org/en/latest/filtering.html
-% for bridgeline in answer:
-${bridgeline | h,trim}<br />
-% endfor
-          </div>
-        </div>
-      </div>
-    </div>
-
-    <div class="container-fluid container-fluid-outer">
-      <div class="row" id="bridgesrow2">
-        <button class="btn btn-primary disabled" id="selectbtn"
-                title="Select all bridge lines" aria-disabled="true">
-          <i class="icon icon-2x icon-paste"></i>   ${_("""Select All""")}
-        </button>
-% if qrcode:
-        <a class="btn btn-primary" type="button" id="qrcodebtn"
-           href="${qrcode}" title="Show QRCode for bridge lines">
-          <i class="icon icon-2x icon-qrcode"></i>   ${_("""Show QRCode""")}
-        </a>
-% endif
-      </div>
-
-      <div class="modal hidden" id="qrcode" aria-hidden="true">
-        <div class="modal-dialog modal-sm">
-          <div class="modal-content">
-            <div class="modal-header">
-              <button type="button" class="close" id="qrcode-modal-btn">
-                ×
-              </button>
-              <h4 class="modal-title">${_("""QRCode for your bridge lines""")}</h4>
-            </div>
-            <div class="modal-body">
-% if qrcode:
-              <p id="qrcode-para">
-                <img title="QRCode for your bridge lines from BridgeDB"
-                     src="${qrcode}"
-                     alt="" />
-              </p>
-% else:
-              <p class="text-danger">
-${_("""It seems there was an error getting your QRCode.""")}
-                <i class="icon icon-frown"></i>
-              </p>
-% endif
-              <p>
-${_("""This QRCode contains your bridge lines. Scan it with a QRCode """ \
-    """reader to copy your bridge lines onto mobile and other devices.""")}
-              </p>
-            </div>
-          </div>
-        </div>
-      </div>
-    </div>
-
-    <br />
-
-<div class="container-fluid container-fluid-outer-96">
-  <div class="panel panel-primary">
-    <div class="panel-heading">
-      <h3 class="panel-title">${_(strings.HOWTO_TBB[0])}</h3>
-    </div>
-    <br />
-
-    <div class="container-fluid" id="howto">
-      <p>
-        ${_(strings.HOWTO_TBB[1]) % \
-           ("""<a href="https://www.torproject.org/download/"
-                  target="_blank">""",
-            """</a>""",
-            """<a href="https://tb-manual.torproject.org/bridges/#entering-bridge-addresses"
-                  target="_blank">""",
-            """</a>""",
-            """<a href="https://tb-manual.torproject.org/mobile-tor/#circumvention"
-                  target="_blank">""",
-            """</a>""")}
-      </p>
-    </div>
-  </div>
-</div>
-
-% else:
-<div class="bs-component" id="error">
-  <div class="alert alert-dismissable alert-danger">
-    <p>
-      <br />
-      <strong>
-        <em class="primary">
-${_("""BridgeDB encountered an error.""")}
-        </em>
-      </strong>
-      <br />
-    </p>
-    <p>
-      ${_("""There currently aren't any bridges available...""")}
-      % if langOverride:
-        ${_(""" Perhaps you should try %s going back %s and choosing a""" \
-            """ different bridge type!""") % \
-           ("""<a class="alert-link" href="options?lang="""+lang+""">""", """</a>""")}
-      % else:
-        ${_(""" Perhaps you should try %s going back %s and choosing a""" \
-            """ different bridge type!""") % \
-           ("""<a class="alert-link" href="options">""", """</a>""")}
-      % endif
-    </p>
-  </div>
-</div>
-<br />
-% endif
diff --git a/bridgedb/distributors/https/templates/captcha.html b/bridgedb/distributors/https/templates/captcha.html
deleted file mode 100644
index 1faed49..0000000
--- a/bridgedb/distributors/https/templates/captcha.html
+++ /dev/null
@@ -1,49 +0,0 @@
-## -*- coding: utf-8 -*-
-
-<%inherit file="base.html"/>
-<%page args="strings, langs, rtl=False, lang='en', langOverride=False, imgstr=0, captcha_challenge=0, **kwargs"/>
-
-<div class="container-narrow" id="captcha-submission-container">
-  <div class="container-fluid container-fluid-inner-5">
-    <div class="box" id="captcha-box">
-      <img alt="${_(strings.CAPTCHA[0])}" src="${imgstr}" />
-
-      <form class="bs-component"
-            id="captchaSubmission"
-            action=""
-            method="POST">
-        <fieldset>
-          <div class="form-group">
-            <div class="input-group" id="captcha-submission-group">
-              <input type="hidden"
-                     form="captchaSubmission"
-                     name="captcha_challenge_field"
-                     id="captcha_challenge_field"
-                     value="${challenge_field}"></input>
-              <input class="form-control"
-                     form="captchaSubmission"
-                     name="captcha_response_field"
-                     id="captcha_response_field"
-                     value=""
-                     autocomplete="off"
-                     type="text"
-                     placeholder="${_(strings.CAPTCHA[1])}"
-                     accesskey="t" autofocus ></input>
-              <span class="input-group-btn">
-                <button class="btn btn-primary"
-                        form="captchaSubmission"
-                        type="submit"
-                        name="submit"
-                        id="captcha-submit-button"
-                        value="submit"
-                        accesskey="s">
-                  <i class="icon-level-down icon-rotate-90"></i>
-                </button>
-              </span>
-            </div>
-          </div>
-        </fieldset>
-      </form>
-    </div>
-  </div>
-</div>
diff --git a/bridgedb/distributors/https/templates/index.html b/bridgedb/distributors/https/templates/index.html
deleted file mode 100644
index d34167e..0000000
--- a/bridgedb/distributors/https/templates/index.html
+++ /dev/null
@@ -1,71 +0,0 @@
-## -*- coding: utf-8 -*-
-
-<%inherit file="base.html"/>
-<%page args="strings, langs, rtl=False, lang='en', langOverride=False, addAccessKeys=None, **kwargs"/>
-
-<div class="main-steps">
-<div class="step row" id="step-1">
-  <div class="bdb_span7 step-text">
-    <span class="lead">
-      <span class="step-title">
-## TRANSLATORS: '_' is used to insert HTML5 underlining tags, to mark accesskeys for disabled users.
-##              Make sure the character preceded by '_' is unique in this file, the other strings that
-##              contain accesskeys in this file are: "Step _2", "Step _3".
-##              You can change the character preceded by '_' to pick any of the existing ones that will
-##              fit better for your language, or if none you can keep the English accesskey by
-##              adding a '(_1)' at the end of the string.
-        ${addAccessKeys(_("Step _1"))}</span>
-      <span class="step-text">
-        ${_("Download %s Tor Browser %s") % \
-           ("""<a href="https://www.torproject.org/projects/torbrowser.html"
-                  target="_blank" accesskey="1">""",
-            """</a>""")}</span>
-    </span>
-  </div>
-</div>
-
-<div class="step row" id="step-2">
-  <div class="bdb_span7 step-text">
-    <span class="lead">
-      <span class="step-title">
-## TRANSLATORS: '_' is used to insert HTML5 underlining tags, to mark accesskeys for disabled users.
-##              Make sure the character preceded by '_' is unique in this file, the other strings that
-##              contain accesskeys in this file are: "Step _1", "Step _3".
-##              You can change the character preceded by '_' to pick any of the existing ones that will
-##              fit better for your language, or if none you can keep the English accesskey by
-##              adding a '(_2)' at the end of the string.
-        ${addAccessKeys(_("Step _2"))}</span>
-      <span class="step-text">
-      % if langOverride:
-        ${_("Get %s bridges %s") % ("""<a href="/options?lang="""+lang+"""" accesskey="2">""", "</a>")}</span>
-      % else:
-        ${_("Get %s bridges %s") % ("""<a href="/options" accesskey="2">""", "</a>")}</span>
-      % endif
-    </span>
-  </div>
-</div>
-
-<div class="step row" id="step-3">
-  <div class="bdb_span7 step-text">
-    <span class="lead">
-      <span class="step-title">
-## TRANSLATORS: '_' is used to insert HTML5 underlining tags, to mark accesskeys for disabled users.
-##              Make sure the character preceded by '_' is unique in this file, the other strings that
-##              contain accesskeys in this file are: "Step _1", "Step _2".
-##              You can change the character preceded by '_' to pick any of the existing ones that will
-##              fit better for your language, or if none you can keep the English accesskey by
-##              adding a '(_3)' at the end of the string.
-        ${addAccessKeys(_("Step _3"))}</span>
-      <span class="step-text">
-      % if langOverride:
-        ${_("""Now %s add the bridges to Tor Browser %s""") % \
-           ("""<a href="/howto?lang="""+lang+"""" accesskey="3">""",
-            """</a>""")}</span>
-      % else:
-        ${_("""Now %s add the bridges to Tor Browser %s""") % \
-           ("""<a href="/howto" accesskey="3">""",
-            """</a>""")}</span>
-      % endif
-    </span>
-  </div>
-</div>
diff --git a/bridgedb/distributors/https/templates/options.html b/bridgedb/distributors/https/templates/options.html
deleted file mode 100644
index 0f0bbd2..0000000
--- a/bridgedb/distributors/https/templates/options.html
+++ /dev/null
@@ -1,174 +0,0 @@
-## -*- coding: utf-8 -*-
-
-<%inherit file="base.html"/>
-<%page args="strings, langs, rtl=False, lang='en', langOverride=False, addAccessKeys=None, **kwargs"/>
-
-<div class="container-fluid container-fluid-outer-96">
-  <!--<div class="container-fluid step-semi-transparent">-->
-    <div class="container-fluid container-fluid-inner">
-      <p>
-        <h3>${_(strings.BRIDGES[1])}</h3>
-      </p>
-    <!--</div>-->
-    <!--<div class="container-fluid container-fluid-outer-100 container-fluid-inner">-->
-      <p>
-        ${_(strings.WELCOME[0]) % \
-           ("""<a href="https://www.torproject.org/docs/pluggable-transports.html">""",
-            """</a>""")}
-      </p>
-      <p>
-        ${_(strings.WELCOME[1])}
-      </p>
-## The '&#8212' char is a literal emdash ('―'), but it's also XML parseable.
-      <p>
-        ${_(strings.WELCOME[2]) % ("&#8212", "&#8212")}
-      </p>
-      <div class="container-fluid container-fluid-outer">
-        <div class="container-fluid-inner-5">
-          <p class="bs-component">
-          % if langOverride:
-            <a href="./bridges?transport=obfs4&lang=${lang}">
-          % else:
-            <a href="./bridges?transport=obfs4">
-          % endif
-              <button class="btn btn-success btn-lg btn-block"
-                      id="just-give-me-bridges-btn"
-                      type="button"
-                      accesskey="j">
-## TRANSLATORS: '_' is used to insert HTML5 underlining tags, to mark accesskeys for disabled users.
-##              Make sure the character preceded by '_' is unique in this file, the other strings that
-##              contain accesskeys in this file are: "Do you need a Pluggable _Transport?", "_Yes!",
-##              "_Get Bridges".
-##              You can change the character preceded by '_' to pick any of the existing ones that will
-##              fit better for your language, or if none you can keep the English accesskey by
-##              adding a '(_J)' at the end of the string.
-                ${addAccessKeys(_("""_Just give me bridges!"""))}
-              </button>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  <!--</div>-->
-
-<!-- BEGIN "Advanced Options" panel for bridge type -->
-<div class="container-fluid container-fluid-outer-96-lr">
-  <div class="panel panel-primary">
-    <div class="panel-heading">
-      <h3 class="panel-title">${_("""Advanced Options""")}</h3>
-    </div>
-
-    <!-- BEGIN bridge options selection form -->
-    <form class="form-horizontal" id="advancedOptions" action="bridges" method="GET">
-      <fieldset>
-        % if langOverride:
-          <input type="hidden" id="lang" name="lang" value="${lang}">
-        % endif
-        <div class="container-fluid" id="instructions">
-          <legend id="advanced-options-legend">
-            <br />
-            <p>${_(strings.OPTIONS[0])}</p>
-          </legend>
-        </div>
-
-        <div class="container-fluid">
-          <!-- BEGIN first options row -->
-          <div class="row" id="options-row-1">
-
-            <!-- BEGIN left column, first row -->
-            <div class="container-fluid col-lg-2" id="options-row-1-col-1">
-              <div class="step" id="options-row-1-col-1-step">
-                <div class="form-group">
-                  <label class="control-label"
-                         id="options-transport-label"
-                         for="transport">
-                    ${_(strings.OPTIONS[2]) % ("Pluggable <u>T</u>ransport")}
-                  </label>
-                  <div class="container-fluid col-lg-4">
-                    <div class="btn-group" id="options-transport-btn-group">
-                      <select class="btn btn-primary btn-sm dropdown"
-                              form="advancedOptions"
-                              id="transport"
-                              name="transport"
-                              data-toggle="dropdown"
-                              type="button"
-                              accesskey="t">
-                        ${_("""No""")}
-<option label="none"  value="0"        >${_("none")}</option>
-% for methodname, default in strings._getSupportedAndDefaultTransports().items():
-    <option label=${methodname}
-            value=${methodname}
-    % if default:
-            selected
-    % endif
-            > ${methodname} </option>
-% endfor
-                      </select>
-                    </div>
-                  </div>
-                </div>
-              </div>
-            </div> <!-- END left column, first row -->
-
-            <!-- BEGIN right column, first row -->
-            <div class="container-fluid col-lg-2" id="options-row-1-col-2">
-              <div class="step" id="options-row-1-col-2-step">
-                <div class="form-group">
-                  <label class="control-label"
-                         id="options-ipv6-label"
-                         for="ipv6">
-                    ${_(strings.OPTIONS[1])}
-                  </label>
-                  <div class="container-fluid col-lg-4">
-                    <div class="checkbox" id="options-ipv6-checkbox">
-                      <div class="input-group" id="options-ipv6-input-group">
-                        <input name="ipv6"
-                               id="ipv6"
-                               form="advancedOptions"
-                               type="checkbox"
-                               value="yes"
-                               accesskey="y" />
-## TRANSLATORS: '_' is used to insert HTML5 underlining tags, to mark accesskeys for disabled users.
-##              Make sure the character preceded by '_' is unique in this file, the other strings that
-##              contain accesskeys in this file are: "Do you need a Pluggable _Transport?",
-##              "_Just give me bridges!", "_Get Bridges".
-##              You can change the character preceded by '_' to pick any of the existing ones that will
-##              fit better for your language, or if none you can keep the English accesskey by
-##              adding a '(_Y)' at the end of the string.
-## TRANSLATORS: Translate "Yes!" as in "Yes! I do need IPv6 addresses."
-                          ${addAccessKeys(_("""_Yes!"""))}
-                      </div>
-                    </div>
-                  </div>
-                </div>
-              </div>
-            </div>  <!-- END left column, first row -->
-          </div>
-
-        </div> <!-- END first row -->
-      </fieldset>
-
-      <!-- BEGIN second options row -->
-      <!--<div class="row" id="options-row-2">
-        <div class="container-fluid col-lg-2" id="options-row-2-col-1">-->
-      <div class="container-fluid container-fluid-outer-60-lr">
-        <div class="container-fluid container-fluid-inner-5">
-          <button class="btn btn-primary btn-lg btn-block"
-                  id="get-bridges-btn"
-                  accesskey="g">
-## TRANSLATORS: '_' is used to insert HTML5 underlining tags, to mark accesskeys for disabled users.
-##              Make sure the character preceded by '_' is unique in this file, the other strings that
-##              contain accesskeys in this file are: "Do you need a Pluggable _Transport?", "_Yes!",
-##              "_Just give me bridges!".
-##              You can change the character preceded by '_' to pick any of the existing ones that will
-##              fit better for your language, or if none you can keep the English accesskey by
-##              adding a '(_G)' at the end of the string.
-## TRANSLATORS: Please do NOT translate the word "bridge"!
-            ${addAccessKeys(_("""_Get Bridges"""))}
-          </button>
-        </div>
-      </div>
-    </form> <!-- END bridge options selection form -->
-  </div> <!-- END advanced options panel (a.k.a. the lined boxy thing --
-           -- surrounding the options)                                -->
-</div>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tor-commits mailing list