This repository has been archived by the owner on Sep 30, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
react native web rewrite and refactoring
- Loading branch information
Showing
275 changed files
with
5,554 additions
and
505 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
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
packages/mobile/assets/fonts/index.js → packages/common/assets/fonts/index.js
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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,29 +1,33 @@ | ||
{ | ||
"name": "spaceviewer-common", | ||
"version": "0.0.1", | ||
"main": "dist/index.js", | ||
"main": "dist/src/index.js", | ||
"license": "MIT", | ||
"private": true, | ||
"scripts": { | ||
"postinstall": "npm run build", | ||
"build": "rm -rf ./dist && tsc", | ||
"watch": "tsc --watch --outDir ./dist" | ||
"watch": "rm -rf ./dist && tsc --watch --outDir ./dist" | ||
}, | ||
"dependencies": {}, | ||
"workspaces": { | ||
"nohoist": [ | ||
"react-native", | ||
"react-native/**", | ||
"react", | ||
"react/**" | ||
] | ||
"dependencies": { | ||
"@fortawesome/fontawesome-svg-core": "1.2.26", | ||
"@fortawesome/free-solid-svg-icons": "5.12.0", | ||
"@fortawesome/react-native-fontawesome": "0.2.3", | ||
"react-native-svg": "12.0.3" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^16.9.23", | ||
"@types/react-native": "^0.61.17", | ||
"@types/react-redux": "^7.1.7", | ||
"@types/react-router-dom": "^5.1.3", | ||
"@types/react-router-native": "^5.1.0", | ||
"@types/styled-components": "^5.0.1", | ||
"moment": "^2.24.0", | ||
"native-base": "^2.13.8", | ||
"react": "16.9.0", | ||
"react-redux": "7.2.0", | ||
"redux": "4.0.5", | ||
"redux-saga": "1.1.3", | ||
"typescript": "^3.8.2" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...components/container/PreviousContainer.js → ...components/container/PreviousContainer.js
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ponents/container/SearchFieldContainer.js → ...ponents/container/SearchFieldContainer.js
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
2 changes: 1 addition & 1 deletion
2
...components/container/SettingsContainer.js → ...components/container/SettingsContainer.js
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
40 changes: 40 additions & 0 deletions
40
packages/common/src/components/list/OverviewListItemText.js
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,40 @@ | ||
import React from 'react'; | ||
import { Text, View, Platform } from 'react-native'; | ||
import overviewListStyle from '../../styles/overviewListStyle'; | ||
import { colors } from '../../constants/theme'; | ||
import { faClock, faMapMarkedAlt, faIdBadge } from '@fortawesome/free-solid-svg-icons' | ||
|
||
let FontAwesomeIcon; | ||
|
||
if (Platform.OS === 'web') { | ||
FontAwesomeIcon = require('@fortawesome/react-fontawesome').FontAwesomeIcon; | ||
} else { | ||
FontAwesomeIcon = require('@fortawesome/react-native-fontawesome').FontAwesomeIcon; | ||
} | ||
|
||
const nameToIcon = name => { | ||
if (name === 'account-box') { | ||
return faIdBadge; | ||
} else if (name === 'map-marker') { | ||
return faMapMarkedAlt; | ||
} else if (name === 'clock') { | ||
return faClock; | ||
} | ||
} | ||
|
||
const Inner = props => ( | ||
<React.Fragment> | ||
<FontAwesomeIcon color={colors.LIST_ICON} icon={nameToIcon(props.iconName)} /> | ||
<Text numberOfLines={2} style={overviewListStyle.text}> | ||
{props.text} | ||
</Text> | ||
</React.Fragment> | ||
); | ||
|
||
export const OverviewListItemText = props => ( | ||
<View | ||
animation="fadeIn" | ||
style={overviewListStyle.listStyleContainer}> | ||
<Inner {...props} /> | ||
</View> | ||
); |
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 React from 'react' | ||
|
||
interface Props { | ||
|
||
} | ||
|
||
export const NavHeader = (props: Props) => { | ||
return null; | ||
} |
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,8 @@ | ||
import React from 'react'; | ||
|
||
import { colors } from '../../constants/theme'; | ||
import { ActivityIndicator } from 'react-native'; | ||
|
||
export const CustomSpinner = () => <ActivityIndicator size="large" color={colors.SPINNER} />; | ||
|
||
export default CustomSpinner; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
13 changes: 13 additions & 0 deletions
13
packages/common/src/components/settings/SettingsList.web.js
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,13 @@ | ||
import React from 'react'; | ||
import { useHistory } from 'react-router-dom'; | ||
import { Text, View } from 'react-native'; | ||
|
||
export const SettingsList = ({ saveValue, settings, navigation, openURL }) => { | ||
const { push, location } = useHistory(); | ||
|
||
return ( | ||
<View style={{ flex: 1 }}> | ||
<Text>Not yet implemented</Text> | ||
</View> | ||
); | ||
}; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 3 additions & 12 deletions
15
...obile/src/components/views/CreditsView.js → ...ommon/src/components/views/CreditsView.js
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,16 @@ | ||
import React from 'react'; | ||
import { ScrollView, View, Text } from 'react-native'; | ||
const version = 42; | ||
|
||
export class CreditsView extends React.Component { | ||
render() { | ||
return ( | ||
<View style={{ flex: 1, padding: 5, backgroundColor: 'white' }}> | ||
<ScrollView> | ||
<Text>Not yet implemented</Text> | ||
</ScrollView> | ||
</View> | ||
); | ||
} | ||
} | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.