This repository has been archived by the owner on Jul 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
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 #122 from Siderus/feature/143-Optional-ToS
Optional ToS (143)
- Loading branch information
Showing
12 changed files
with
201 additions
and
389 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import styled from 'styled-components' | ||
|
||
export const Centered = styled.div` | ||
text-align: center !important; | ||
` | ||
|
||
export const LeftAligned = styled.div` | ||
text-align: left !important; | ||
` |
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,50 @@ | ||
import React from 'react' | ||
import { Centered, LeftAligned } from '../../../components/TextDiv' | ||
|
||
import SiderusLogo from '../../../../docs/siderus-logo.svg' | ||
|
||
import { | ||
Window, | ||
Content, | ||
Toolbar, | ||
Actionbar, | ||
Button | ||
} from 'react-photonkit' | ||
|
||
class ServicesPage extends React.Component { | ||
render () { | ||
const { onNext } = this.props | ||
return ( | ||
<Window> | ||
<Content> | ||
<Centered> | ||
<SiderusLogo width='150px' height='150px'/> | ||
<h1>Siderus Services</h1> | ||
<h3>Enable a better experience</h3> | ||
<LeftAligned> | ||
|
||
Siderus offers a set of services designed to ease and improve the | ||
user experience of IPFS. Orion will always connect to Siderus IPFS | ||
Nodes and you can enable the services to gain some benefits, | ||
including, but not limiting to: | ||
<ul> | ||
<li>Pre-fetching of the content on public Gateways</li> | ||
<li>Siderus Mercury, ACL and Encryption</li> | ||
<li>Siderus Hera, remote syncronization</li> | ||
<li>Siderus Hera, remote pinning</li> | ||
</ul> | ||
</LeftAligned> | ||
<Button text="Enable Siderus Services" ptStyle="positive" ptSize="large"/> | ||
</Centered> | ||
</Content> | ||
<Toolbar ptType="footer"> | ||
<Actionbar> | ||
<Button text="Next" ptStyle="primary" onClick={onNext} pullRight /> | ||
</Actionbar> | ||
</Toolbar> | ||
</Window> | ||
) | ||
} | ||
} | ||
|
||
export default ServicesPage |
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,75 @@ | ||
import React from 'react' | ||
import styled from 'styled-components' | ||
import { shell } from 'electron' | ||
import Settings from 'electron-settings' | ||
|
||
import { | ||
Window, | ||
Content, | ||
Toolbar, | ||
Actionbar, | ||
Button | ||
} from 'react-photonkit' | ||
|
||
const StyledContent = styled.div` | ||
h1:first-child { | ||
margin-top: 0px; | ||
} | ||
` | ||
|
||
const PrivacyLink = <a onClick={() => shell.openExternal('https://siderus.io/privacy')} href='#'>Privacy policy</a> | ||
|
||
class StatsPage extends React.Component { | ||
enableStats = () => { | ||
Settings.setSync('allowUserTracking', true) | ||
this.props.onNext() | ||
} | ||
|
||
disableStats = () => { | ||
Settings.setSync('allowUserTracking', false) | ||
this.props.onNext() | ||
} | ||
|
||
render () { | ||
return ( | ||
<Window> | ||
<Content> | ||
<StyledContent> | ||
<h1>Support Orion development</h1> | ||
<p> | ||
Siderus Orion is integrated with Mixpanel and Sentry to help us | ||
debugging errors, understanding how to improve the | ||
application and your <b>user experience with IPFS</b>. <br /> | ||
<br /> | ||
Both the integrations are using anonymized information, and | ||
focusing on only the important details. Some of them are: | ||
<ul> | ||
<li>An unique random ID generated on the first usage</li> | ||
<li>Features used (Windows, Screens and Sessions)</li> | ||
<li>Operative System and release/version</li> | ||
<li>Amount of files shared, NOT the hashes</li> | ||
</ul> | ||
You can opt-in as well as opt out at any time from the Settings.<br /> | ||
<br /> | ||
By enabling this feature, you will provide extra valuable metrics | ||
and data useful for improving your user experience, the | ||
services and fixing bugs <b>on top of the default Sentry anonymous | ||
errors reporting</b> always enabled.<br /> | ||
<br /> | ||
You can validate these information by reading and checking the | ||
source code on GitHub. You can also read Siderus {PrivacyLink}. | ||
</p> | ||
</StyledContent> | ||
</Content> | ||
<Toolbar ptType="footer"> | ||
<Actionbar> | ||
<Button text="Enable Tracking" ptStyle="primary" onClick={this.enableStats} pullRight /> | ||
<Button text="Disable" onClick={this.disableStats} pullRight /> | ||
</Actionbar> | ||
</Toolbar> | ||
</Window> | ||
) | ||
} | ||
} | ||
|
||
export default StatsPage |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.