Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
302 commits
Select commit Hold shift + click to select a range
de1b4d8
[Feat]Default value for null parent
marunemo Oct 22, 2022
af2974c
[Fix]Reflect response when adding
marunemo Oct 22, 2022
59842ab
[Feat]: #110 addchat done
s3kim2018 Oct 22, 2022
3ccf1bd
[Feat]: #110 changes to usercontroller to enable search by id
s3kim2018 Oct 22, 2022
d87fcac
[Fix]Prevent null from casting string
marunemo Oct 22, 2022
166a831
[Feat]: #110 Added message boxes
s3kim2018 Oct 22, 2022
df8d15f
Feat: Add getReportApi and test it.
gudmin0526 Oct 22, 2022
1b2c7c1
[Design]Style organizational chart
marunemo Oct 22, 2022
a542c2a
[Design]Style orgainzational card and form
marunemo Oct 22, 2022
b69121a
[Design]Style button group
marunemo Oct 22, 2022
d107b08
[Feat]: #110 Chatboxes created with user data
s3kim2018 Oct 22, 2022
b9c8e35
Merge pull request #20 from osamhack2022-v2/web_orgtree
s3kim2018 Oct 22, 2022
f6e55cc
Merge pull request #21 from osamhack2022-v2/web
s3kim2018 Oct 22, 2022
690c3fe
[Feat]Enable to use user custom picture as avatar
marunemo Oct 22, 2022
ea92107
Merge pull request #22 from osamhack2022-v2/web_chat
s3kim2018 Oct 22, 2022
5e85b18
Merge pull request #23 from osamhack2022-v2/mobile
s3kim2018 Oct 22, 2022
9d3edb7
Merge pull request #26 from osamhack2022-v2/web
s3kim2018 Oct 22, 2022
5ed2ff9
Merge pull request #25 from osamhack2022-v2/web_orgtree
s3kim2018 Oct 22, 2022
bf83c53
Merge pull request #27 from osamhack2022-v2/web
s3kim2018 Oct 22, 2022
404bc0c
Merge pull request #28 from osamhack2022-v2/web_orgtree
marunemo Oct 22, 2022
668ec14
Merge branch 'main' into main
s3kim2018 Oct 22, 2022
9a393d6
Merge branch 'osamhack2022:web' into web
s3kim2018 Oct 22, 2022
ec6ffac
Merge pull request #29 from osamhack2022-v2/main
marunemo Oct 22, 2022
8c2a63b
[Feat]: #110 Added chat entering area
s3kim2018 Oct 22, 2022
41a920f
Merge pull request #24 from osamhack2022-v2/web
gudmin0526 Oct 23, 2022
0251eb1
[Feat]Activate report system GET api
marunemo Oct 23, 2022
026cb33
[Design]Style reporting system
marunemo Oct 23, 2022
19478b8
[Feat]Create reporting system form
marunemo Oct 23, 2022
da7bb11
[Feat]: #110 Chat functionality completed
s3kim2018 Oct 23, 2022
a4cbdc6
Feature: Add report related api.
gudmin0526 Oct 23, 2022
c821ce8
[Feat]Create edit form
marunemo Oct 23, 2022
296c5b1
[Feat]Intergrate backend for edit
marunemo Oct 23, 2022
a5d4cc6
[Feat]: #110 Chat scroll bug fixed, deisgn changes
s3kim2018 Oct 23, 2022
1319336
[Feat]Create delete system button
marunemo Oct 23, 2022
39c8270
Merge pull request #30 from osamhack2022-v2/web_chat
s3kim2018 Oct 23, 2022
ada1d9e
Merge pull request #31 from osamhack2022-v2/web_memo
s3kim2018 Oct 23, 2022
a0d3947
Merge pull request #32 from osamhack2022-v2/web
s3kim2018 Oct 23, 2022
d90205a
[Refactor]: Pushing uncommited backend changes
s3kim2018 Oct 23, 2022
ce04fd0
Merge pull request #33 from osamhack2022-v2/web_chat
s3kim2018 Oct 23, 2022
c1e9ffb
Merge pull request #34 from osamhack2022-v2/web
s3kim2018 Oct 23, 2022
edf226f
Merge pull request #35 from osamhack2022-v2/web
marunemo Oct 23, 2022
e6a4ad9
[Design]Style report system form
marunemo Oct 23, 2022
b94bc01
[Fix]Activate refresh when changing system
marunemo Oct 23, 2022
e036a9d
[Fix]Reset form when closing
marunemo Oct 23, 2022
d9f7574
[Feat]: Added encryption libraries
s3kim2018 Oct 23, 2022
1197ee0
[Feat]: Added additional encryption libraries
s3kim2018 Oct 23, 2022
1e7fd7c
Merge pull request #37 from osamhack2022-v2/backend/encryption
s3kim2018 Oct 23, 2022
2650896
Merge pull request #36 from osamhack2022-v2/web_memo
s3kim2018 Oct 23, 2022
686afda
[Fix]: Fixed deployment errors
s3kim2018 Oct 23, 2022
efbdb41
[Fix]Error from setting header #115
marunemo Oct 24, 2022
5a5a8bf
[Refactor]Unify code indentation and space size
marunemo Oct 24, 2022
aa555a3
[Fix]Resolve the error that unmount event is always working
marunemo Oct 24, 2022
7898881
[Feat]Create spinner for loading status of report system
marunemo Oct 24, 2022
a9b9d7a
[Fix]Resolve missing dependency warning #115
marunemo Oct 24, 2022
5ed9709
Merge branch 'web_memo' of https://github.com/osamhack2022-v2/WEB_APP…
marunemo Oct 24, 2022
202475c
Feat: Add create Chat feat and some fix in getChat funcs.
gudmin0526 Oct 24, 2022
f331f3f
[Feat]Parse korean time format
marunemo Oct 24, 2022
c6fc63f
[Fix]Resolve memo report user represented as uid
marunemo Oct 24, 2022
ecc619d
[Feat]Show selected memo by color
marunemo Oct 24, 2022
77efe23
[Feat]Show users who are in the same unit #116
marunemo Oct 24, 2022
f6d7269
[Feat]Show recent memo on home page #116
marunemo Oct 24, 2022
1de4a81
Merge branch 'web' into web_memo
marunemo Oct 24, 2022
b2255e7
Merge pull request #39 from osamhack2022-v2/web_memo
marunemo Oct 24, 2022
b456661
Feat: Add user list drawer-layout in chatroom.
gudmin0526 Oct 24, 2022
d3e02c0
Merge web into mobile to update backend api
gudmin0526 Oct 24, 2022
9501fc4
[Docs]Add project info
marunemo Oct 24, 2022
853869b
Merge pull request #40 from osamhack2022-v2/web_memo
marunemo Oct 24, 2022
b9c2b9b
[Feat]Integrate memo report model with report system model
marunemo Oct 24, 2022
7cb5f21
Design: modify chatroom drawer design.
gudmin0526 Oct 24, 2022
c50906a
[Feat]Seperate receive and send memo
marunemo Oct 24, 2022
e539956
[Fix]Prevent side bar from rerender when fetching
marunemo Oct 24, 2022
3fdd1a7
[Fix]Reset all form data when unmounted
marunemo Oct 24, 2022
3ae7e15
[Fix]Get reporting system as its id
marunemo Oct 24, 2022
df0f3a8
Complete Chat API integration.
gudmin0526 Oct 24, 2022
7f22ca5
[Feat]Link memo with comment
marunemo Oct 24, 2022
9864792
[Feat]Convert object id into comment model in memo
marunemo Oct 24, 2022
407d1d8
[Feat]Enable custom user image instead of default image
marunemo Oct 24, 2022
0250d8b
[Design]Style memo page
marunemo Oct 24, 2022
cb00a3f
[Refactor]Unify indentation of tab size
marunemo Oct 24, 2022
9becc61
Feat: add homescreen demo.
gudmin0526 Oct 25, 2022
d271696
Merge pull request #41 from osamhack2022-v2/web_memo
s3kim2018 Oct 25, 2022
7e57a21
Merge pull request #42 from osamhack2022-v2/web
s3kim2018 Oct 25, 2022
1f560cc
Update Mobile Frontend stack
gudmin0526 Oct 25, 2022
6087cfc
Delete material design icon
gudmin0526 Oct 25, 2022
c4ebbe2
add material-design-icons badge
gudmin0526 Oct 25, 2022
689014f
[Feat]: #108 Encryption for chat
s3kim2018 Oct 25, 2022
be95467
[Feat]: #121 Integrated Homepage's search feature
s3kim2018 Oct 25, 2022
e6b7da2
Merge pull request #43 from osamhack2022-v2/web_orgtree
s3kim2018 Oct 25, 2022
04a621c
Merge pull request #44 from osamhack2022-v2/backend/encryption
s3kim2018 Oct 25, 2022
1f23bf2
Feat: osamhack2022:#120
gudmin0526 Oct 25, 2022
92539dd
[Style]: #121 redesigned settings/unit
s3kim2018 Oct 25, 2022
63c89c7
[Feat]: #121 integrated settings, fixed getreportcard bug
s3kim2018 Oct 25, 2022
22c3a5f
Merge pull request #45 from osamhack2022-v2/web
s3kim2018 Oct 25, 2022
7309223
Feat: #123
gudmin0526 Oct 26, 2022
68f2838
Merge branch 'web' into mobile
gudmin0526 Oct 26, 2022
ebaf9a8
Chore: move backendRoot to .env file.
gudmin0526 Oct 26, 2022
3ba073e
Merge pull request #46 from osamhack2022-v2/mobile
s3kim2018 Oct 26, 2022
72fb080
[Fix]: #121 Fixed rendering bugs in chat
s3kim2018 Oct 26, 2022
b64327d
[Fix]: #121 fixed settings overflow
s3kim2018 Oct 26, 2022
0a417a4
[Fix]: #121 Fixed build error
s3kim2018 Oct 26, 2022
32252d4
Merge pull request #47 from osamhack2022-v2/web
s3kim2018 Oct 26, 2022
10e7d64
[Feat]: #121 Changed protection for getuser
s3kim2018 Oct 28, 2022
bfa5d8f
[Fix]: #121 Removed Notifications from the menu bar
s3kim2018 Oct 28, 2022
9ec4b63
Merge pull request #48 from osamhack2022-v2/web
marunemo Oct 28, 2022
c5dcf78
[Fix]Not working style in setting header
marunemo Oct 28, 2022
492870a
[Feat]Represent empty text when end of loading
marunemo Oct 28, 2022
244afd9
Feat: Overall fixes and additions.
gudmin0526 Oct 28, 2022
0c68ec8
[Fix]Handle null exception of list
marunemo Oct 28, 2022
6bd14c9
[Feat]: #121 when submitting memonote, the content on the page will u…
s3kim2018 Oct 28, 2022
4492fe6
[Feat]Enable to set comment type
marunemo Oct 28, 2022
576594c
[Fix]Make user custom picture shown
marunemo Oct 28, 2022
a067d99
[Fix]Reload when comment is submitted
marunemo Oct 28, 2022
e5a151e
[Fix]Rerender comment list instead of full reloading
marunemo Oct 28, 2022
8adc37f
[!HotFix]Migrate web directory
marunemo Oct 28, 2022
0ecc41d
[Feat]: #121 scroll down when commenting on memoreport, update commen…
s3kim2018 Oct 28, 2022
ae34167
Merge pull request #49 from osamhack2022-v2/web
s3kim2018 Oct 28, 2022
992c773
[Feat]: #121 populated addComment method with user
s3kim2018 Oct 28, 2022
9c0d4bb
#126 Edited Logo
s3kim2018 Oct 28, 2022
70e0421
Merge pull request #50 from osamhack2022-v2/web
s3kim2018 Oct 29, 2022
94f83a7
[Fix]Remove whole web-next directory
marunemo Oct 29, 2022
feffdf1
Merge branch 'web' of https://github.com/osamhack2022-v2/WEB_APP_ROK-…
marunemo Oct 29, 2022
7c4ddc1
[Fix]Restore data from fatal git confict
marunemo Oct 29, 2022
f396139
[Docs]: #126 Added encryption docs
s3kim2018 Oct 29, 2022
c234bc0
[Docs]: #126 Edited encryption docs
s3kim2018 Oct 29, 2022
de0af09
[Feat]Activate resolved status button
marunemo Oct 29, 2022
36937ff
Merge pull request #51 from osamhack2022-v2/web_memo
marunemo Oct 29, 2022
844c8d1
Create vercel.json
yhcho0405 Oct 29, 2022
9e4e90b
vercel setting
yhcho0405 Oct 29, 2022
7da6e83
Fix: vercel set
yhcho0405 Oct 29, 2022
4fbda12
Fix: vercel setting
yhcho0405 Oct 29, 2022
09cd3d0
Fix: vercel setting
yhcho0405 Oct 29, 2022
adfde0b
Fix: vercel setting
yhcho0405 Oct 29, 2022
b1a2de0
Fix: vercel setting
yhcho0405 Oct 29, 2022
4522ad1
Fix: vercel setting
yhcho0405 Oct 29, 2022
2fb7e31
Fix: delete vercel
yhcho0405 Oct 29, 2022
59b15d7
HOTFIX: Restore from merge mistakes.
gudmin0526 Oct 29, 2022
0003ed4
Merge branch 'main' into new_mobile
gudmin0526 Oct 29, 2022
c443d9a
[Feat]: #121 Demo preparation
s3kim2018 Oct 29, 2022
c7b911e
Feature: Fix createchat.
gudmin0526 Oct 29, 2022
504f168
Merge pull request #53 from osamhack2022-v2/mobile
s3kim2018 Oct 29, 2022
6c2c06f
[Feat]: #121 linked soldier account demo login button
s3kim2018 Oct 29, 2022
8ffdb3d
[Docs]: #126 Edited style of readme.md
s3kim2018 Oct 29, 2022
28c7717
[Docs]: #126 pushed incorrect style last commit
s3kim2018 Oct 29, 2022
a0a0cd0
[Docs]: Added asymmetric encryption scheme
s3kim2018 Oct 29, 2022
7909ba0
[Docs]: #126 slight changes to the wording
s3kim2018 Oct 29, 2022
5000ef5
[Fix]: Minor bug fixes
s3kim2018 Oct 29, 2022
53966a1
[Fix]: fixed chatroom bugs
s3kim2018 Oct 29, 2022
61eca50
Update README.md
yhcho0405 Oct 30, 2022
fb757b0
HOTFIX: fix some bug at comment api.
gudmin0526 Oct 30, 2022
47a4094
HOTFIX: fix some bugs.
gudmin0526 Oct 30, 2022
2043926
Merge pull request #54 from osamhack2022-v2/main
marunemo Oct 30, 2022
973be55
Chore: change build type .aab to .apk.
gudmin0526 Oct 30, 2022
81bb1a6
[Design]Set global font
marunemo Oct 30, 2022
2520d2a
[Fix]Change field name depending on user model
marunemo Oct 30, 2022
b358279
[Design]Style user node in memo form
marunemo Oct 30, 2022
3dfc7bf
[Fix]Set memo form button text to custom text
marunemo Oct 30, 2022
6e4a538
Chore: modify some build details.
gudmin0526 Oct 30, 2022
3eab53f
[Fix]Resolve rank converter function bug
marunemo Oct 30, 2022
c9d936a
Update README.md
yhcho0405 Oct 30, 2022
002b35f
Update README.md
yhcho0405 Oct 30, 2022
6cd15bf
Update README.md
yhcho0405 Oct 30, 2022
f28ddba
Merge pull request #55 from osamhack2022-v2/web_memo
s3kim2018 Oct 30, 2022
89be4da
[Docs]#126 Update README.md
marunemo Oct 30, 2022
8d9554f
Update README.md
yhcho0405 Oct 30, 2022
3b63eed
[Feat]: #126 added development stack
s3kim2018 Oct 30, 2022
d2f47ed
[Feat]: #126 swapped development stack
s3kim2018 Oct 30, 2022
d588265
[Feat]: #126 Swapped development stack image
s3kim2018 Oct 30, 2022
3128349
[Docs]Update open source
marunemo Oct 30, 2022
2008053
Merge branch 'documentation' of https://github.com/osamhack2022-v2/WE…
marunemo Oct 30, 2022
d7b7c09
[Docs]Create mobile image
marunemo Oct 30, 2022
a28b88b
[Docs]: add profile pic.
gudmin0526 Oct 30, 2022
4b9b28d
[Docs]Style function table
marunemo Oct 30, 2022
2e0ba06
[Docs]Update README.md
marunemo Oct 30, 2022
d5b6ee6
Update README.md
yhcho0405 Oct 30, 2022
5b0db6d
Update README.md
yhcho0405 Oct 30, 2022
6f5d799
Docs: profile pic
yhcho0405 Oct 30, 2022
4eebe83
[DOCS]: Add app installation guide.
gudmin0526 Oct 30, 2022
2241b28
Update README.md
yhcho0405 Oct 30, 2022
bcc6bdb
[Docs]: update app installation guide.
gudmin0526 Oct 30, 2022
cfe97ea
Update README.md
yhcho0405 Oct 30, 2022
d88dbef
[Docs]: update app build guide
gudmin0526 Oct 30, 2022
4394225
Docs: 화면 설명
yhcho0405 Oct 30, 2022
7e89e43
Docs: add crypto.js img
yhcho0405 Oct 30, 2022
a9ab0ac
Merge pull request #60 from osamhack2022-v2/mobile
gudmin0526 Oct 30, 2022
50308cc
Docs: contents list
yhcho0405 Oct 30, 2022
78ca71c
Docs: fix contents list
yhcho0405 Oct 30, 2022
fc9d1f4
Update README.md
yhcho0405 Oct 30, 2022
ee8ec6c
Update README.md
yhcho0405 Oct 30, 2022
fa2123b
Update README.md
yhcho0405 Oct 30, 2022
a6b95fa
Merge branch 'main' into documentation
s3kim2018 Oct 30, 2022
fdbbe63
Merge pull request #61 from osamhack2022-v2/documentation
s3kim2018 Oct 30, 2022
5daaa2d
[Refactor]: Restructuring folder for submission
s3kim2018 Oct 30, 2022
a136dda
[Refactor]: Manually added encryption files, merge failed
s3kim2018 Oct 30, 2022
fc55a87
[Docs]: Update app build guide
gudmin0526 Oct 30, 2022
5febadf
Chore: Update build details for ios build
gudmin0526 Oct 30, 2022
59af649
[Docs]: modify app build guide
gudmin0526 Oct 30, 2022
9945077
Docs: add demo button
yhcho0405 Oct 30, 2022
c75af99
[Docs]: Add library list used in app
gudmin0526 Oct 30, 2022
cdb31bf
[Docs]: Update some design
gudmin0526 Oct 30, 2022
bdfce9b
Update README.md
yhcho0405 Oct 30, 2022
3bdbc69
Update README.md
yhcho0405 Oct 30, 2022
5f08f4a
Docs: refactor
yhcho0405 Oct 30, 2022
3a894b9
Update README.md
yhcho0405 Oct 30, 2022
a242a8a
[Docs]: updated readme
s3kim2018 Oct 30, 2022
ad53bfd
Update README.md
yhcho0405 Oct 30, 2022
7c0f88c
Update README.md
yhcho0405 Oct 30, 2022
5b7fec1
[Docs]: changed size of button
s3kim2018 Oct 30, 2022
061db3c
[Docs]: Added wiki
s3kim2018 Oct 30, 2022
4037368
[Docs]: added wiki
s3kim2018 Oct 30, 2022
a82d816
Create README.md
yhcho0405 Oct 30, 2022
49dab6d
Update README.md
yhcho0405 Oct 30, 2022
53887b0
Update README.md
yhcho0405 Oct 30, 2022
36e221a
Merge branch 'documentation' of https://github.com/osamhack2022-v2/WE…
marunemo Oct 30, 2022
c194f8e
Merge branch 'main' of https://github.com/osamhack2022-v2/WEB_APP_ROK…
marunemo Oct 30, 2022
ec6871d
Update README.md
yhcho0405 Oct 30, 2022
056b42f
Update README.md
yhcho0405 Oct 30, 2022
fababd9
Update README.md
yhcho0405 Oct 30, 2022
1a939fd
[Docs]: Update app build guide
gudmin0526 Oct 30, 2022
3c2caf5
Docs: add license
yhcho0405 Oct 30, 2022
4744327
Docs: Update readme.md
yhcho0405 Oct 30, 2022
0af54d1
Docs: update readme
yhcho0405 Oct 30, 2022
aa7187b
[Docs]: Added youtube image
s3kim2018 Oct 30, 2022
60c895b
[Docs]: smaller youtube video
s3kim2018 Oct 30, 2022
c393fc8
[Docs]: Update mobile prerequisites
gudmin0526 Oct 30, 2022
e27f305
[Docs]: update build guide
gudmin0526 Oct 30, 2022
fcbb60e
[Docs]Upload prerequisites
marunemo Oct 30, 2022
97efd60
Merge branch 'main' of https://github.com/osamhack2022-v2/WEB_APP_ROK…
marunemo Oct 30, 2022
f43aec8
Merge pull request #63 from osamhack2022-v2/web_orgtree
marunemo Oct 30, 2022
00b31a8
[Docs]Set table header bold
marunemo Oct 30, 2022
2118372
Merge branch 'main' of https://github.com/osamhack2022-v2/WEB_APP_ROK…
marunemo Oct 30, 2022
ba97507
[Docs]Align image center
marunemo Oct 30, 2022
cb13b02
Merge pull request #64 from osamhack2022-v2/web_orgtree
marunemo Oct 30, 2022
5ad4a94
[Docs]Fix typo
marunemo Oct 30, 2022
a3fe067
[Docs]Update web installation guide
marunemo Oct 30, 2022
27e7831
Docs: added Docs
yhcho0405 Oct 30, 2022
e515feb
Docs: update License
yhcho0405 Oct 30, 2022
55de217
[Docs]: new menubar
s3kim2018 Oct 30, 2022
6d217bf
[Docs]: new menubar
s3kim2018 Oct 30, 2022
016145a
[Docs]: Added headliner
s3kim2018 Oct 30, 2022
f83ddd6
Docs: fix spell
yhcho0405 Oct 30, 2022
ae7a8fc
[Docs]: removed unneeded image
s3kim2018 Oct 30, 2022
df3904f
[Refactor]Remove unusing directories #121
marunemo Oct 30, 2022
dd15916
[Docs]Apply changed directory name
marunemo Oct 30, 2022
5d53f9f
[Docs]: final touches
s3kim2018 Oct 30, 2022
79f7fcd
[Docs]: final commit
s3kim2018 Oct 30, 2022
f7af8ff
[Docs]: final commit
s3kim2018 Oct 30, 2022
7983fd5
[Docs]Style README.md
marunemo Oct 30, 2022
531e248
Merge branch 'main' of https://github.com/osamhack2022-v2/WEB_APP_ROK…
marunemo Oct 30, 2022
1b7afc7
Merge pull request #65 from osamhack2022-v2/web_orgtree
marunemo Oct 30, 2022
06ba21a
[Docs]Fix typo
marunemo Oct 30, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added .docs/images/개발_계획서.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/images/데모보기.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/images/암호화_체계.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"esbenp.prettier-vscode"
]
}
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"workbench.editor.enablePreview": false
"workbench.editor.enablePreview": true,
"files.autoSave": "off"
}
100 changes: 100 additions & 0 deletions AI(FE)/classifier.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
import {TheClassifier} from "classificator";
import {Translator} from "nodepapago";
import {posTagger} from "wink-pos-tagger";

var classifier = new TheClassifier()
var tagger = posTagger();

let positive = [
'Questions',
'Suggestions',
'will there be',
'dining together',
'food',
'Go to work',
'clean',
'break the ice',
`I love tacos.`,
`Dude, that burrito was epic!`,
`Holy cow, these nachos are so good and tasty.`,
`I am drooling over the awesome bean and cheese quesadillas.`
]
var negative = [
`Suicide`,
`urgent matter`,
'emergency situation',
`dead`,
'wire',
`secret`,
`classified`,
`attacked`,
`firearm`,
`unknown man has appeared`,
`in front of the guardhouse`,
`there are suspicious personnel`,
`in possession of a firearm`,
`A suspicious person has been found`,
`a landmine is in front of you`,
`My unit has been severly hurt`,
`hail weather snow advisory`,
`dangerous situation`,
'5 minute waiting group',
'North Korean provocation',
'Missle Launch',
'ammunition distribution',
'unusual occurrence',
`Gross, worst taco ever.`,
`The buritos gave me horrible diarrhea.`,
`I'm going to puke if I eat another bad nacho.`,
`I'd rather die than eat those nasty enchiladas.`,
'special has happened in the dormitory'
]
// classifier.addDocuments(positive, 'positive')
// classifier.addDocuments(negative, 'negative')

// classifier.train()

for (let i = 0; i < positive.length; i++) {
classifier.learn(positive[i], 'positive')
}
for (let i = 0; i < negative.length; i++) {
classifier.learn(negative[i], 'negative')
}

export async function Getseverityscore(text) {
let ko_to_en_translated = ""
let translator = new Translator.Translator({
parameter: {
source: 'ko',
target: 'en',
text: text
}
})
try {
ko_to_en_translated = await translator.translate()
} catch {
return 2
}
var words = tagger.tagSentence(ko_to_en_translated);
let parsedtext = ''
for (let i in words) {
var taggedWord = words[i].value;
var tag = words[i].pos;
if (tag.includes('N') || tag.includes('V') || tag.includes('A'))
parsedtext = parsedtext + taggedWord + " "
}
let classifieddata = classifier.categorize(parsedtext)
let score = classifieddata['likelihoods'][0]['proba']
if (score >= 0.95) {
return 5
} else if (score >= 0.85) {
return 4
} else if (score >= 0.65) {
return 3
} else if (score >= 0.4) {
return 2
} else {
return 1
}
}
//let { val } = await getScore('위병소 앞 총기를 든 거수자들이 나타났습니다. 자살하고싶어')
15 changes: 15 additions & 0 deletions APP(FE)/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
node_modules/
.expo/
dist/
npm-debug.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
*.orig.*
web-build/
.prettierrc

# macOS
.DS_Store
22 changes: 22 additions & 0 deletions APP(FE)/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from 'react'
import { StatusBar, LogBox } from 'react-native'
import { NavigationContainer } from '@react-navigation/native'
import MainNavigator from './src/navigation/MainNavigator'
import 'moment/locale/ko'

import 'react-native-gesture-handler'
import { Colors } from 'react-native-paper'
import { RecoilRoot } from 'recoil'

export default function App() {
LogBox.ignoreAllLogs() //Ignore all log notifications

return (
<NavigationContainer>
<RecoilRoot>
<StatusBar style="light-content" backgroundColor={Colors.grey500} />
<MainNavigator />
</RecoilRoot>
</NavigationContainer>
)
}
50 changes: 50 additions & 0 deletions APP(FE)/app.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import "dotenv/config";

export default {
expo: {
name: "RokSrs",
slug: "roksrs",
version: "1.0.0",
orientation: "portrait",
icon: "./src/assets/images/logo.png",
userInterfaceStyle: "light",
splash: {
image: "./src/assets/images/logo.png",
resizeMode: "contain",
backgroundColor: "#FFFFFF",
},
updates: {
fallbackToCacheTimeout: 0,
},
assetBundlePatterns: ["**/*"],
ios: {
supportsTablet: true,
bundleIdentifier: "com.gudmin0526.roksrs",
buildNumber: "1.0.0",
},
android: {
adaptiveIcon: {
foregroundImage: "./src/assets/images/logo.png",
backgroundColor: "#FFFFFF",
},
package: "com.gudmin0526.roksrs",
versionCode: 1,
},
web: {
favicon: "./src/assets/images/logo.png",
},
extra: {
eas: {
projectId: "255449b4-7dc8-430e-87c8-42b409a70f5e",
},
apiKey: process.env.API_KEY,
authDomain: process.env.AUTH_DOMAIN,
projectId: process.env.PROJECT_ID,
storageBucket: process.env.STORAGE_BUCKET,
messagingSenderId: process.env.MESSAGING_SENDER_ID,
appId: process.env.APP_ID,
measurementId: process.env.MEASUREMENT_ID,
appPublicBackendRoot: process.env.APP_PUBLIC_BACKEND_ROOT,
},
},
};
File renamed without changes.
10 changes: 10 additions & 0 deletions APP(FE)/eas.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"build": {
"preview": {
"android": {
"buildType": "apk"
}
},
"production": {}
}
}
4 changes: 4 additions & 0 deletions APP(FE)/metro.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const { getDefaultConfig } = require('@expo/metro-config')
const defaultConfig = getDefaultConfig(__dirname)
defaultConfig.resolver.assetExts.push('cjs')
module.exports = defaultConfig
Loading