Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
HCS_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김성연
2020-06-24 20:11:27 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7e625935aad3b40f37194da5f89cfa67eb7099ae
7e625935
1 parent
3990d56a
최종 보고서 수정 및 코드 수정
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
63 deletions
code/.idea/vcs.xml
code/.idea/workspace.xml
code/render_server_react_native/components/MyProfileComponent.js
보고서/최종보고서.docx
code/.idea/vcs.xml
View file @
7e62593
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"VcsDirectoryMappings"
>
<mapping
directory=
"$PROJECT_DIR$/.."
vcs=
"Git"
/>
<mapping
directory=
"$PROJECT_DIR$/locationTest/expo-location-example"
vcs=
"Git"
/>
<mapping
directory=
"$PROJECT_DIR$/my-project"
vcs=
"Git"
/>
<mapping
directory=
"$PROJECT_DIR$/render_server_react_native"
vcs=
"Git"
/>
...
...
code/.idea/workspace.xml
View file @
7e62593
...
...
@@ -2,48 +2,9 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"940f1aa2-9848-4abc-bd75-a3db12d9e8e1"
name=
"Default Changelist"
comment=
""
>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/AppStyles.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/AuthContext.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/assets/icons/Nike-Logo.html"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/assets/icons/google-marker.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/assets/nike.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/assets/search.html"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/assets/userFile/file2.jpg"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/assets/userFile/userVelocity.json"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/components/BusPathComponent.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/components/DateTimePickerComponent.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/components/GoPathSummary.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/components/LanePathComponent.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/components/LoginComponent.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/components/MyProfileComponent.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/components/SignUpComponent.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/components/StartAndFinishLocationComponent.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/components/WalkPathComponent.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/constants/layout.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/navigations/SelectOrTakePhotoStackNavigation.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/navigations/SelectOrTakePhotoTabNavigation.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/navigations/SetLocationStackNavigation.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/navigations/SetLocationTabNavigation.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/navigations/TabNavigation.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/reducers/index.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/reducers/location.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/reducers/user.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/sagas/index.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/sagas/location.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/sagas/user.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/screens/Gallery.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/screens/GoPathDetail.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/screens/LocationTimeSet.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/screens/Login.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/screens/Main.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/screens/MainImage.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/screens/Maps.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/screens/OptRoutePath.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/screens/Profile.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/screens/SignUp.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/screens/TakePhoto.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/screens/UploadPhoto.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/render_server_react_native/store.js"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/vcs.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/vcs.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/../보고서/최종보고서.docx"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/../보고서/최종보고서.docx"
afterDir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
...
@@ -61,7 +22,7 @@
</option>
</component>
<component
name=
"Git.Settings"
>
<option
name=
"RECENT_GIT_ROOT_PATH"
value=
"$PROJECT_DIR$/
render_server_react_native
"
/>
<option
name=
"RECENT_GIT_ROOT_PATH"
value=
"$PROJECT_DIR$/
..
"
/>
</component>
<component
name=
"ProjectId"
id=
"1baLVrrFUlmMeeq9EFLzndP0zML"
/>
<component
name=
"ProjectLevelVcsManager"
settingsEditedManually=
"true"
>
...
...
@@ -164,6 +125,7 @@
<workItem
from=
"1592536638207"
duration=
"5384000"
/>
<workItem
from=
"1592659198314"
duration=
"162000"
/>
<workItem
from=
"1592659457606"
duration=
"137000"
/>
<workItem
from=
"1592813189933"
duration=
"12000"
/>
</task>
<servers
/>
</component>
...
...
code/render_server_react_native/components/MyProfileComponent.js
View file @
7e62593
...
...
@@ -16,26 +16,27 @@ const MyProfileComponent = () => {
const
{
me
}
=
useSelector
(
state
=>
state
.
user
);
const
{
isLoggingIn
}
=
useSelector
(
state
=>
state
.
user
);
//
// const downloadFile = async () => {
// const uri = "https://www.mapmyfitness.com/workout/export/csv";
// let fileUri = FileSystem.documentDirectory + "userVelocity.txt";
// FileSystem.downloadAsync(uri, fileUri)
// .then(({uri}) => {
// saveFile(uri);
// })
// .catch(error => {
// console.error(error);
// })
// }
//
// const saveFile = async (fileUri) => {
// const {status} = await Permissions.askAsync(Permissions.CAMERA_ROLL);
// if (status === "granted") {
// const asset = await MediaLibrary.createAssetAsync(fileUri)
// await MediaLibrary.createAlbumAsync("Download", asset, false)
// }
// }
const
downloadFile
=
async
()
=>
{
const
uri
=
"https://www.mapmyfitness.com/workout/export/csv"
;
let
fileUri
=
FileSystem
.
documentDirectory
+
"userVelocity.txt"
;
FileSystem
.
downloadAsync
(
uri
,
fileUri
)
.
then
(({
uri
})
=>
{
saveFile
(
uri
);
})
.
catch
(
error
=>
{
console
.
error
(
error
);
})
}
const
saveFile
=
async
(
fileUri
)
=>
{
const
{
status
}
=
await
Permissions
.
askAsync
(
Permissions
.
CAMERA_ROLL
);
if
(
status
===
"granted"
)
{
const
asset
=
await
MediaLibrary
.
createAssetAsync
(
fileUri
)
await
MediaLibrary
.
createAlbumAsync
(
"Download"
,
asset
,
false
)
}
}
const
dispatch
=
useDispatch
();
const
loadPersonalVelocity
=
async
()
=>
{
try
{
...
...
보고서/최종보고서.docx
View file @
7e62593
This file is too large to display.
Please
register
or
login
to post a comment