Attention ! Gitlab fournissant maintenant nativement des certificats Let’s Encrypt aux domaines personnalisés des Gitlab Pages, nous avons coupé notre service qui le faisait automatiquement pour vous.

Il est impératif, pour que votre domaine personnalisé continue à avoir un certificat Let’s Encrypt à jour, d’activer la fonctionnalité native dans les paramètres de votre projet. Cette activation remplacera votre certificat actuel par un nouveau certificat Let’s Encrypt géré par Gitlab.

Voir les détails sur https://docs.framasoft.org/fr/gitlab/gitlab-pages-le.html

Commit 65459571 authored by Thierry BUGEAT's avatar Thierry BUGEAT

#26 Increase localization performances.

parent cf8031e6
......@@ -956,7 +956,7 @@
_deleteIcone = '<button class="' + _class + '" account="' + _account + '" feedId="' + _feed._myFeedId + '"><span data-icon="delete"></span></button>';
}
_html[_account] = _html[_account] + '<li><a class="open" feedUrl="' + _feed.feedUrl + '"><p>' + _deleteIcone + '<button><span data-icon="' + _feed._myPulsationsIcone + '"></span></button>' + _feed.title + '</p><p><time>' + new Date(_feed._myLastPublishedDate).toLocaleDateString(userLocale) + ' ' + new Date(_feed._myLastPublishedDate).toLocaleTimeString(userLocale) + '</time></p></a></li>';
_html[_account] = _html[_account] + '<li><a class="open" feedUrl="' + _feed.feedUrl + '"><p>' + _deleteIcone + '<button><span data-icon="' + _feed._myPulsationsIcone + '"></span></button>' + _feed.title + '</p><p><time>' + _feed._myLastPublishedDate + '</time></p></a></li>';
}
_htmlFeeds = _htmlFeeds +
......@@ -1059,7 +1059,7 @@
}
function dspEntries(entries, nbDaysAgo, feedUrl) {
var start = performance.now();
var feedsEntriesScrollTop = feeds_entries.scrollTop;
ui.echo('feedsEntriesNbDaysAgo', document.webL10n.get('loading'), '');
......@@ -1069,6 +1069,8 @@
_dspEntriesTimeout = window.setTimeout(function() {
var start = performance.now();
my.log("dspEntries()", arguments);
my.log(entries);
......@@ -1119,7 +1121,7 @@
// Time
var _time = new Date(_entrie.publishedDate).toLocaleTimeString(userLocale);
var _time = _entrie._myLocalizedTime;
// Small article or not ?
......@@ -1303,10 +1305,12 @@
document.body.dispatchEvent(new CustomEvent('dspEntries.done', {"detail": ""}));
}, 250); // Schedule the execution for later
// --- Eecution time
var end = performance.now();
my.log("dspEntries() " + (end - start) + " milliseconds.");
var end = performance.now();
my.log("dspEntries() " + (end - start) + " milliseconds.");
}, 250); // Schedule the execution for later
}
/**
......@@ -1410,7 +1414,7 @@
_srcDoc = _srcDoc + _srcDocCss; // Inline CSS from file "style/inline.css.js"
_srcDoc = _srcDoc + '<div class="entrie-title">' + _entry.title.replace(_regex, "&#39;") + '</div>';
_srcDoc = _srcDoc + '<div class="entrie-date">' + new Date(_entry.publishedDate).toLocaleDateString(userLocale) + ' ' + new Date(_entry.publishedDate).toLocaleTimeString(userLocale) + '</div>';
_srcDoc = _srcDoc + '<div class="entrie-date">' + _entry._myLocalizedDate + ' ' + _entry._myLocalizedTime + '</div>';
_srcDoc = _srcDoc + _author;
_srcDoc = _srcDoc + '<div class="entrie-feed-title"><a href="' + _entry._myFeedInformations.link + '">' + _entry._myFeedInformations.title.replace(_regex, "&#39;") + '</a></div>';
_srcDoc = _srcDoc + '<div class="entrie-contentSnippet">' + _entry.content.replace(_regex, "&#39;") + '</div>';
......
......@@ -196,6 +196,8 @@ GoogleFeed.prototype.addEntries = function(entries) {
_entry['_myTimestampInMs'] = Math.round(new Date(_entry.publishedDate).getTime()) + (Math.floor(Math.random()*500));
_entry['_myPublishedDateUTC'] = new Date(_entry.publishedDate).toUTCString();
_entry['_myLocalizedDate'] = new Date(_entry.publishedDate).toLocaleDateString(userLocale);
_entry['_myLocalizedTime'] = new Date(_entry.publishedDate).toLocaleTimeString(userLocale);
_entry['_mySha256_title'] = (_entry['_myFeedInformations']['_myFeedId'] + _entry['title']).toString();
_entry['_mySha256_link'] = (_entry['_myFeedInformations']['_myFeedId'] + _entry['link']).toString();
......@@ -297,10 +299,12 @@ GoogleFeed.prototype.addFeed = function(feed) {
// Add custom values.
_myNewfeed['_myNbEntries'] = _myNewEntries.length;
_myNewfeed['_myLastPublishedDate'] = _myNewEntries[0].publishedDate; // Non, les news ne sont pas ordonnées par date
_myNewfeed['_myLastTimestamp'] = _myNewEntries[0]._myTimestamp; // Non, les news ne sont pas ordonnées par date
_myNewfeed['_myLastTimestampInMs'] = _myNewEntries[0]._myTimestampInMs; // Non, les news ne sont pas ordonnées par date
//_myNewfeed['_myFeedId'] = _myNewfeed._myFeedId;
// /!\ The 3 following data are false. Entries are not sort by dates
_myNewfeed['_myLastPublishedDate'] = new Date(_myNewEntries[0].publishedDate).toLocaleDateString(userLocale) + ' ' + new Date(_myNewEntries[0].publishedDate).toLocaleTimeString(userLocale);
_myNewfeed['_myLastTimestamp'] = _myNewEntries[0]._myTimestamp;
_myNewfeed['_myLastTimestampInMs'] = _myNewEntries[0]._myTimestampInMs;
// Pulsations ?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment