Skip to content

Commit d501d49

Browse files
committed
added website structure
1 parent 28b6cdb commit d501d49

15 files changed

Lines changed: 219 additions & 233 deletions

docs/hasEnrolledFingerprints.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
id: hasEnrolledFingerprints
3+
title: hasEnrolledFingerprints
4+
sidebar_label: hasEnrolledFingerprints
5+
---
6+

docs/installation.md

Lines changed: 92 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ title: Installation
44
sidebar_label: Installation
55
---
66

7-
Check the [documentation](https://docusaurus.io) for how to use Docusaurus.
8-
9-
## Lorem
10-
117
First of all, install it using `npm` or `yarn`
128

139
```
@@ -18,21 +14,105 @@ npm install --save react-native-sensitive-info
1814
yarn add react-native-sensitive-info
1915
```
2016

17+
## Linking
18+
19+
### React-Native >= 0.60
20+
21+
#### iOS
22+
23+
Should be automatically linked when you run:
24+
25+
```
26+
pod install
27+
```
28+
29+
Then:
30+
31+
```
32+
yarn ios
33+
```
34+
35+
#### Android
36+
37+
Should be automatically linked when you run:
38+
39+
```
40+
yarn android
41+
```
42+
43+
### React-Native < 0.60
2144

22-
## Mauris In Code
45+
#### iOS
46+
47+
##### Using cocoapods
2348

2449
```
25-
Mauris vestibulum ullamcorper nibh, ut semper purus pulvinar ut. Donec volutpat orci sit amet mauris malesuada, non pulvinar augue aliquam. Vestibulum ultricies at urna ut suscipit. Morbi iaculis, erat at imperdiet semper, ipsum nulla sodales erat, eget tincidunt justo dui quis justo. Pellentesque dictum bibendum diam at aliquet. Sed pulvinar, dolor quis finibus ornare, eros odio facilisis erat, eu rhoncus nunc dui sed ex. Nunc gravida dui massa, sed ornare arcu tincidunt sit amet. Maecenas efficitur sapien neque, a laoreet libero feugiat ut.
50+
pod 'react-native-sensitive-info', path: "../node_modules/react-native-sensitive-info"
2651
```
2752

28-
## Nulla
53+
##### Not using cocoapods?
54+
55+
Go to your XCode, in the project navigator:
2956

30-
Nulla facilisi. Maecenas sodales nec purus eget posuere. Sed sapien quam, pretium a risus in, porttitor dapibus erat. Sed sit amet fringilla ipsum, eget iaculis augue. Integer sollicitudin tortor quis ultricies aliquam. Suspendisse fringilla nunc in tellus cursus, at placerat tellus scelerisque. Sed tempus elit a sollicitudin rhoncus. Nulla facilisi. Morbi nec dolor dolor. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Cras et aliquet lectus. Pellentesque sit amet eros nisi. Quisque ac sapien in sapien congue accumsan. Nullam in posuere ante. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Proin lacinia leo a nibh fringilla pharetra.
57+
* Right click Libraries
58+
* Add Files to [your project's name]
59+
* Go to `node_modules/react-native-sensitive-info`
60+
* Add the .xcodeproj file
3161

32-
## Orci
62+
In XCode, in the project navigator, select your project.
3363

34-
Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Proin venenatis lectus dui, vel ultrices ante bibendum hendrerit. Aenean egestas feugiat dui id hendrerit. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur in tellus laoreet, eleifend nunc id, viverra leo. Proin vulputate non dolor vel vulputate. Curabitur pretium lobortis felis, sit amet finibus lorem suscipit ut. Sed non mollis risus. Duis sagittis, mi in euismod tincidunt, nunc mauris vestibulum urna, at euismod est elit quis erat. Phasellus accumsan vitae neque eu placerat. In elementum arcu nec tellus imperdiet, eget maximus nulla sodales. Curabitur eu sapien eget nisl sodales fermentum.
64+
* Add the libRNSensitiveInfo.a from the RNSensitiveInfo project to your project's Build Phases ➜ Link Binary With Libraries
65+
* Click .xcodeproj file you added before in the project navigator and go the Build Settings tab. Make sure `All` is toggled on (instead of 'Basic').
66+
* Look for Header Search Paths and make sure it contains both `$(SRCROOT)/../react-native/React` and `$(SRCROOT)/../../React` - mark both as recursive. (Should be OK by default.)
3567

36-
## Phasellus
68+
#### Android
69+
70+
Go to `settings.gradle` inside your android project folder and paste this lines there:
71+
72+
```
73+
include ':react-native-sensitive-info'
74+
75+
project(':react-native-sensitive-info').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sensitive-info/android')
76+
```
77+
78+
and paste it into build.gradle:
79+
80+
```
81+
compile project(':react-native-sensitive-info')
82+
```
83+
84+
In your` MainApplication.java` add:
85+
86+
```
87+
import br.com.classapp.RNSensitiveInfo.RNSensitiveInfoPackage; //<- You must import this
88+
89+
protected List<ReactPackage> getPackages() {
90+
return Arrays.<ReactPackage>asList(
91+
new MainReactPackage(),
92+
new RNSensitiveInfoPackage(), // <- Add this line
93+
);
94+
}
95+
```
96+
##### Windows
97+
98+
* Open the solution in Visual Studio for your Windows apps.
99+
100+
* Right click your in the Explorer and click Add > Existing Project....
101+
102+
* Navigate to `./node_modules/react-native-sensitive-info/windows/RNSensitiveInfo/RNSensitiveInfo/` and add RNSensitiveInfo.csproj.
103+
* Right click on your React Native Windows app under your solutions directory and click `Add > Reference`....
104+
* Check the RNSensitiveInfo you just added and press Ok
105+
* Open MainPage.cs in your app
106+
107+
```
108+
using RNSqlite2;
37109
38-
Phasellus pulvinar ex id commodo imperdiet. Praesent odio nibh, sollicitudin sit amet faucibus id, placerat at metus. Donec vitae eros vitae tortor hendrerit finibus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Quisque vitae purus dolor. Duis suscipit ac nulla et finibus. Phasellus ac sem sed dui dictum gravida. Phasellus eleifend vestibulum facilisis. Integer pharetra nec enim vitae mattis. Duis auctor, lectus quis condimentum bibendum, nunc dolor aliquam massa, id bibendum orci velit quis magna. Ut volutpat nulla nunc, sed interdum magna condimentum non. Sed urna metus, scelerisque vitae consectetur a, feugiat quis magna. Donec dignissim ornare nisl, eget tempor risus malesuada quis.
110+
get
111+
{
112+
return new List<IReactPackage>
113+
{
114+
new MainReactPackage(),
115+
new RNSensitiveInfoPackage(),
116+
};
117+
}
118+
```

docs/isHardwareDetected.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
id: isHardwareDetected
3+
title: isHardwareDetected
4+
sidebar_label: isHardwareDetected
5+
---
6+

docs/isSensorAvailable.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
id: isSensorAvailable
3+
title: isSensorAvailable
4+
sidebar_label: isSensorAvailable
5+
---
6+

docs/setItem.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
id: setItem
3+
title: setItem
4+
sidebar_label: setItem
5+
---
6+

website/core/Footer.js

Lines changed: 0 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -24,99 +24,6 @@ class Footer extends React.Component {
2424
render() {
2525
return (
2626
<footer className="nav-footer" id="footer">
27-
<section className="sitemap">
28-
<a href={this.props.config.baseUrl} className="nav-home">
29-
{this.props.config.footerIcon && (
30-
<img
31-
src={this.props.config.baseUrl + this.props.config.footerIcon}
32-
alt={this.props.config.title}
33-
width="66"
34-
height="58"
35-
/>
36-
)}
37-
</a>
38-
<div>
39-
<h5>Docs</h5>
40-
<a href={this.docUrl('doc1.html', this.props.language)}>
41-
Getting Started (or other categories)
42-
</a>
43-
<a href={this.docUrl('doc2.html', this.props.language)}>
44-
Guides (or other categories)
45-
</a>
46-
<a href={this.docUrl('doc3.html', this.props.language)}>
47-
API Reference (or other categories)
48-
</a>
49-
</div>
50-
<div>
51-
<h5>Community</h5>
52-
<a href={this.pageUrl('users.html', this.props.language)}>
53-
User Showcase
54-
</a>
55-
<a
56-
href="https://stackoverflow.com/questions/tagged/"
57-
target="_blank"
58-
rel="noreferrer noopener">
59-
Stack Overflow
60-
</a>
61-
<a href="https://discordapp.com/">Project Chat</a>
62-
<a
63-
href="https://twitter.com/"
64-
target="_blank"
65-
rel="noreferrer noopener">
66-
Twitter
67-
</a>
68-
</div>
69-
<div>
70-
<h5>More</h5>
71-
<a href={`${this.props.config.baseUrl}blog`}>Blog</a>
72-
<a href="https://github.com/">GitHub</a>
73-
<a
74-
className="github-button"
75-
href={this.props.config.repoUrl}
76-
data-icon="octicon-star"
77-
data-count-href="/facebook/docusaurus/stargazers"
78-
data-show-count="true"
79-
data-count-aria-label="# stargazers on GitHub"
80-
aria-label="Star this project on GitHub">
81-
Star
82-
</a>
83-
{this.props.config.twitterUsername && (
84-
<div className="social">
85-
<a
86-
href={`https://twitter.com/${this.props.config.twitterUsername}`}
87-
className="twitter-follow-button">
88-
Follow @{this.props.config.twitterUsername}
89-
</a>
90-
</div>
91-
)}
92-
{this.props.config.facebookAppId && (
93-
<div className="social">
94-
<div
95-
className="fb-like"
96-
data-href={this.props.config.url}
97-
data-colorscheme="dark"
98-
data-layout="standard"
99-
data-share="true"
100-
data-width="225"
101-
data-show-faces="false"
102-
/>
103-
</div>
104-
)}
105-
</div>
106-
</section>
107-
108-
<a
109-
href="https://opensource.facebook.com/"
110-
target="_blank"
111-
rel="noreferrer noopener"
112-
className="fbOpenSource">
113-
<img
114-
src={`${this.props.config.baseUrl}img/oss_logo.png`}
115-
alt="Facebook Open Source"
116-
width="170"
117-
height="45"
118-
/>
119-
</a>
12027
<section className="copyright">{this.props.config.copyright}</section>
12128
</footer>
12229
);

website/i18n/en.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,33 @@
55
"previous": "Previous",
66
"tagline": "A website for testing",
77
"docs": {
8+
"hasEnrolledFingerprints": {
9+
"title": "hasEnrolledFingerprints",
10+
"sidebar_label": "hasEnrolledFingerprints"
11+
},
812
"installation": {
913
"title": "Installation",
1014
"sidebar_label": "Installation"
15+
},
16+
"isHardwareDetected": {
17+
"title": "isHardwareDetected",
18+
"sidebar_label": "isHardwareDetected"
19+
},
20+
"isSensorAvailable": {
21+
"title": "isSensorAvailable",
22+
"sidebar_label": "isSensorAvailable"
23+
},
24+
"setItem": {
25+
"title": "setItem",
26+
"sidebar_label": "setItem"
1127
}
1228
},
1329
"links": {
1430
"Docs": "Docs"
1531
},
1632
"categories": {
17-
"Introduction": "Introduction"
33+
"Introduction": "Introduction",
34+
"API": "API"
1835
}
1936
},
2037
"pages-strings": {

0 commit comments

Comments
 (0)