Skip to content

Commit

Permalink
Improved search.json structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
tijme committed May 12, 2019
1 parent a2e090e commit ddf19a5
Show file tree
Hide file tree
Showing 49 changed files with 80 additions and 126 deletions.
7 changes: 7 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Order Deny,Allow
Deny from all

<FilesMatch ".*\.(json|png)$">
Order Allow,Deny
Allow from all
</FilesMatch>
10 changes: 5 additions & 5 deletions generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ def guard(result):
manifest_data[issuer]["icons"].append(issuer + "/" + filename + ".png")

# SEARCH
if issuer not in search_data.keys():
search_data[issuer] = [issuer + "/" + filename + ".png"]
elif issuer + "/" + filename + ".png" not in search_data[issuer]:
search_data[issuer].append(issuer + "/" + filename + ".png")
for issuer_part in issuer.split("-"):
if issuer_part not in search_data.keys():
search_data[issuer_part] = [issuer + "/" + filename + ".png"]
elif issuer + "/" + filename + ".png" not in search_data[issuer_part]:
search_data[issuer_part].append(issuer + "/" + filename + ".png")

if "additional_search_terms" in information.keys():
for term in information["additional_search_terms"]:
Expand All @@ -70,7 +71,6 @@ def guard(result):
elif issuer + "/" + filename + ".png" not in search_data[term]:
search_data[term].append(issuer + "/" + filename + ".png")


except:
continue

Expand Down
File renamed without changes
3 changes: 3 additions & 0 deletions vectors/google-chrome/information.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"domain": "google.com"
}
File renamed without changes
3 changes: 3 additions & 0 deletions vectors/google-cloud-platform/information.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"domain": "google.com"
}
File renamed without changes
3 changes: 3 additions & 0 deletions vectors/google-cloud/information.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"domain": "google.com"
}
File renamed without changes
3 changes: 3 additions & 0 deletions vectors/google-developers/information.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"domain": "google.com"
}
File renamed without changes
3 changes: 3 additions & 0 deletions vectors/google-drive/information.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"domain": "google.com"
}
File renamed without changes
3 changes: 3 additions & 0 deletions vectors/google-gmail/information.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"domain": "google.com"
}
File renamed without changes
3 changes: 3 additions & 0 deletions vectors/google-hangouts/information.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"domain": "google.com"
}
File renamed without changes
3 changes: 3 additions & 0 deletions vectors/google-pay/information.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"domain": "google.com"
}
File renamed without changes
3 changes: 3 additions & 0 deletions vectors/google-play/information.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"domain": "google.com"
}
File renamed without changes
3 changes: 3 additions & 0 deletions vectors/google-wallet/information.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"domain": "google.com"
}
23 changes: 0 additions & 23 deletions vectors/google/google-adsense.svg

This file was deleted.

7 changes: 0 additions & 7 deletions vectors/google/google-adwords.svg

This file was deleted.

1 change: 0 additions & 1 deletion vectors/google/google-analytics.svg

This file was deleted.

14 changes: 0 additions & 14 deletions vectors/google/google-calendar.svg

This file was deleted.

22 changes: 0 additions & 22 deletions vectors/google/google-data-studio.svg

This file was deleted.

Loading

0 comments on commit ddf19a5

Please sign in to comment.