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 971
Add basic styles to about:about and created page w/ version information (about:brave) #5436
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
5c800ec
svg buttons alignment on tabsbar
jkup 545b066
Merge pull request #5468 from brave/svg-alignment
bsclifton 63f176f
Add basic styles and version information to about:about
bsclifton ce23b92
Broke version information into it's own page (about:brave)
bsclifton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!DOCTYPE html> | ||
<!-- 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/. --> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="availableLanguages" content=""> | ||
<meta name="defaultLanguage" content="en-US"> | ||
<link rel="shortcut icon"type="image/x-icon" href="data:image/x-icon;,"> | ||
<title data-l10n-id="aboutBrave"></title> | ||
<script src='js/about.js'></script> | ||
<script src="ext/l20n.min.js" async></script> | ||
<link rel="localization" href="locales/{locale}/app.properties"> | ||
</head> | ||
<body> | ||
<div id="appContainer"/> | ||
</body> | ||
</html> |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* 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 React = require('react') | ||
const Immutable = require('immutable') | ||
const messages = require('../constants/messages') | ||
const SortableTable = require('../components/sortableTable') | ||
|
||
const ipc = window.chrome.ipc | ||
|
||
require('../../less/about/history.less') | ||
require('../../node_modules/font-awesome/css/font-awesome.css') | ||
|
||
class AboutBrave extends React.Component { | ||
constructor () { | ||
super() | ||
this.state = { versionInformation: Immutable.fromJS([]) } | ||
ipc.on(messages.VERSION_INFORMATION_UPDATED, (e, versionInformation) => { | ||
if (this.state.versionInformation.size === 0) { | ||
this.setState({versionInformation: Immutable.fromJS(versionInformation)}) | ||
} | ||
}) | ||
} | ||
|
||
render () { | ||
return <div className='siteDetailsPage'> | ||
<div className='siteDetailsPageHeader'> | ||
<div data-l10n-id='aboutBrave' className='sectionTitle' /> | ||
</div> | ||
|
||
<div className='siteDetailsPageContent aboutAbout'> | ||
<div className='sectionTitle' data-l10n-id='versionInformation' /> | ||
<SortableTable | ||
headings={['Name', 'Version']} | ||
rows={this.state.versionInformation.map((entry) => [ | ||
{ | ||
html: entry.get('name'), | ||
value: entry.get('name') | ||
}, | ||
{ | ||
html: entry.get('version'), | ||
value: entry.get('version') | ||
} | ||
])} | ||
/> | ||
</div> | ||
</div> | ||
} | ||
} | ||
|
||
module.exports = <AboutBrave /> |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is sorted alphabetical now