Skip to content

Commit f85111e

Browse files
committed
remove lang sort
1 parent 7410b54 commit f85111e

6 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎dist/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><title>CODELF</title><meta name="description" content="Best GitHub stars, repositories tagger and organizer. Search over projects from Github, Bitbucket, Google Code, Codeplex, Sourceforge, Fedora Project, GitLab to find real-world usage variable names."><meta name="keywords" content="Codelf,变量命名,函数命名,方法命名,变量命名神器,GitHub 分组,Organize GitHub stars,naming things,naming convention,programming naming"><meta http-equiv="x-ua-compatible" content="ie=edge"><link rel="shortcut icon" href="images/codelf_logo.f4ae25bd.png"><link rel="apple-touch-icon" sizes="144x144" href="images/codelf_logo.f4ae25bd.png"><link rel="apple-touch-icon-precomposed" href="images/codelf_logo.f4ae25bd.png"><link title="CODELF" type="application/opensearchdescription+xml" rel="search" href="./opensearch.xml"><link type="text/css" rel="stylesheet" href="./css/lib.365f8ae0.css"><link type="text/css" rel="stylesheet" href="./css/app.785e1245.css"><script src="js/lib.2ef380a5.js"></script></head><body ontouchstart><div class="app"></div><script src="./js/app.a61232b5.js"></script><script>if (/https/.test(location.protocol) && 'serviceWorker' in navigator) {
1+
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><title>CODELF</title><meta name="description" content="Best GitHub stars, repositories tagger and organizer. Search over projects from Github, Bitbucket, Google Code, Codeplex, Sourceforge, Fedora Project, GitLab to find real-world usage variable names."><meta name="keywords" content="Codelf,变量命名,函数命名,方法命名,变量命名神器,GitHub 分组,Organize GitHub stars,naming things,naming convention,programming naming"><meta http-equiv="x-ua-compatible" content="ie=edge"><link rel="shortcut icon" href="images/codelf_logo.f4ae25bd.png"><link rel="apple-touch-icon" sizes="144x144" href="images/codelf_logo.f4ae25bd.png"><link rel="apple-touch-icon-precomposed" href="images/codelf_logo.f4ae25bd.png"><link title="CODELF" type="application/opensearchdescription+xml" rel="search" href="./opensearch.xml"><link type="text/css" rel="stylesheet" href="./css/lib.365f8ae0.css"><link type="text/css" rel="stylesheet" href="./css/app.785e1245.css"><script src="js/lib.2ef380a5.js"></script></head><body ontouchstart><div class="app"></div><script src="./js/app.ad19a904.js"></script><script>if (/https/.test(location.protocol) && 'serviceWorker' in navigator) {
22
if (!Cache.prototype.add) {
33
Cache.prototype.add = function add(request) {
44
return this.addAll([request]);
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/js/app.js‎

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/js/app.js.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/sw.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// cache, then increment the CACHE_VERSION value. It will kick off the service worker update
2525
// flow and the old cache(s) will be purged as part of the activate event handler when the
2626
// updated service worker is activated.
27-
var CACHE_VERSION = '2019-01-02T16:59:36.232Z';
27+
var CACHE_VERSION = '2019-01-02T17:18:25.406Z';
2828
var CURRENT_CACHES = {
2929
prefetch: 'prefetch-cache-v' + CACHE_VERSION
3030
};
@@ -49,6 +49,10 @@ self.addEventListener('install', function(event) {
4949
"fonts/fontawesome-webfont.ttf",
5050
"fonts/fontawesome-webfont.woff",
5151
"fonts/fontawesome-webfont.woff2",
52+
"js/app.ad19a904.js",
53+
"js/app.js",
54+
"js/lib.2ef380a5.js",
55+
"js/lib.js",
5256
"images/404_dribbble.ae94d03c.gif",
5357
"images/404_dribbble.gif",
5458
"images/codelf_logo.f4ae25bd.png",
@@ -61,10 +65,6 @@ self.addEventListener('install', function(event) {
6165
"images/wechatpay.jpg",
6266
"images/zhifubao.70c19370.png",
6367
"images/zhifubao.png",
64-
"js/app.a61232b5.js",
65-
"js/app.js",
66-
"js/lib.2ef380a5.js",
67-
"js/lib.js",
6868
"css/themes/default/assets/fonts/brand-icons.eot",
6969
"css/themes/default/assets/fonts/brand-icons.svg",
7070
"css/themes/default/assets/fonts/brand-icons.ttf",

‎src/models/SearchCodeModel.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class SearchCodeModel extends BaseModel {
6464
});
6565
}
6666
}
67-
const cacheId = md5(q + page + (lang ? lang.sort().join(',') : ''));
67+
const cacheId = md5(q + page + (lang && lang.length ? lang.join(',') : ''));
6868
const cache = this._variableListStore.get(cacheId);
6969
if (cache) {
7070
this.update(cache);

0 commit comments

Comments
 (0)