This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 974
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5623 from cezaraugusto/feature/newtab/5594
Create default topSites for new tab page
- Loading branch information
Showing
11 changed files
with
102 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
const appUrlUtil = require('../lib/appUrlUtil') | ||
const iconPath = appUrlUtil.fileUrl('img/newtab/defaultTopSitesIcon') | ||
|
||
/** | ||
* Let lastAccessedTime be the first-time user see the new tab page | ||
*/ | ||
const now = Date.now() | ||
|
||
module.exports.pinnedTopSites = [ | ||
{ | ||
"count": 1, | ||
"favicon": `${iconPath}/twitter.png`, | ||
"lastAccessedTime": now, | ||
"location": "https://twitter.com/brave", | ||
"partitionNumber": 0, | ||
"tags": [], | ||
"themeColor": "rgb(255, 255, 255)", | ||
"title": "Brave Software (@brave) | Twitter" | ||
} | ||
] | ||
|
||
module.exports.topSites = [ | ||
{ | ||
"count": 1, | ||
"favicon": `${iconPath}/twitter.png`, | ||
"lastAccessedTime": now, | ||
"location": "https://twitter.com/brave", | ||
"partitionNumber": 0, | ||
"tags": [], | ||
"themeColor": "rgb(255, 255, 255)", | ||
"title": "Brave Software (@brave) | Twitter" | ||
}, { | ||
"count": 1, | ||
"favicon": `${iconPath}/facebook.png`, | ||
"lastAccessedTime": now, | ||
"location": "https://www.facebook.com/BraveSoftware/", | ||
"partitionNumber": 0, | ||
"tags": [], | ||
"themeColor": "rgb(59, 89, 152)", | ||
"title": "Brave Software | Facebook" | ||
}, { | ||
"count": 1, | ||
"favicon": `${iconPath}/youtube.png`, | ||
"lastAccessedTime": now, | ||
"location": "https://www.youtube.com/bravesoftware", | ||
"partitionNumber": 0, | ||
"tags": [], | ||
"themeColor": "#E62117", | ||
"title": "Brave Browser - YouTube" | ||
}, { | ||
"count": 1, | ||
"favicon": `${iconPath}/brave.ico`, | ||
"lastAccessedTime": now, | ||
"location": "https://brave.com/", | ||
"partitionNumber": 0, | ||
"tags": [], | ||
"themeColor": "rgb(255, 255, 255)", | ||
"title": "Brave Software | Building a Better Web" | ||
}, { | ||
"count": 1, | ||
"favicon": `${iconPath}/appstore.png`, | ||
"lastAccessedTime": now, | ||
"location": "https://itunes.apple.com/app/brave-web-browser/id1052879175?mt=8", | ||
"partitionNumber": 0, | ||
"tags": [], | ||
"themeColor": "rgba(255, 255, 255, 1)", | ||
"title": "Brave Web Browser: Fast with built-in adblock on the App Store" | ||
}, { | ||
"count": 1, | ||
"favicon": `${iconPath}/playstore.png`, | ||
"lastAccessedTime": now, | ||
"location": "https://play.google.com/store/apps/details?id=com.brave.browser", | ||
"partitionNumber": 0, | ||
"tags": [], | ||
"themeColor": "rgb(241, 241, 241)", | ||
"title": "Brave Browser: Fast AdBlock – Apps para Android no Google Play" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -275,8 +275,8 @@ ul { | |
|
||
} | ||
img { | ||
width: 32px; | ||
height: 32px; | ||
max-width: 64px; | ||
max-height: 64px; | ||
} | ||
} | ||
&:hover { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters