Showing
6 changed files
with
62 additions
and
58 deletions
... | @@ -10,6 +10,7 @@ var userRouter = require('./routes/userlogin/user'); | ... | @@ -10,6 +10,7 @@ var userRouter = require('./routes/userlogin/user'); |
10 | var loginRouter = require('./routes/userlogin/login'); | 10 | var loginRouter = require('./routes/userlogin/login'); |
11 | var registerRouter = require('./routes/userlogin/register'); | 11 | var registerRouter = require('./routes/userlogin/register'); |
12 | var fileRouter = require('./routes/file/router'); | 12 | var fileRouter = require('./routes/file/router'); |
13 | +var contactRouter = require('./routes/contact'); | ||
13 | //var trashcanRouter = require('./routes/trashcan/router'); | 14 | //var trashcanRouter = require('./routes/trashcan/router'); |
14 | var folderRouter = require('./routes/folders'); | 15 | var folderRouter = require('./routes/folders'); |
15 | var quickRouter = require('./routes/quick'); | 16 | var quickRouter = require('./routes/quick'); |
... | @@ -69,7 +70,7 @@ app.use('/api/trashcan', trashcanRouter); | ... | @@ -69,7 +70,7 @@ app.use('/api/trashcan', trashcanRouter); |
69 | //app.use('/users', usersRouter); | 70 | //app.use('/users', usersRouter); |
70 | app.use('/api/file', fileRouter); | 71 | app.use('/api/file', fileRouter); |
71 | app.use('/api/quick', quickRouter); | 72 | app.use('/api/quick', quickRouter); |
72 | - | 73 | +app.use('/api/contact', contactRouter); |
73 | // catch 404 and forward to error handler | 74 | // catch 404 and forward to error handler |
74 | app.use(function(req, res, next) { | 75 | app.use(function(req, res, next) { |
75 | next(createError(404)); | 76 | next(createError(404)); |
... | @@ -86,4 +87,4 @@ app.use(function(err, req, res, next) { | ... | @@ -86,4 +87,4 @@ app.use(function(err, req, res, next) { |
86 | res.render('error'); | 87 | res.render('error'); |
87 | }); | 88 | }); |
88 | 89 | ||
89 | -module.exports = app; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
90 | +module.exports = app; | ... | ... |
backend/public/upload/contact (1).xlsx
0 → 100644
No preview for this file type
backend/public/upload/contactdownload.xlsx
0 → 100644
No preview for this file type
... | @@ -4,7 +4,7 @@ const AWS = require("aws-sdk"); | ... | @@ -4,7 +4,7 @@ const AWS = require("aws-sdk"); |
4 | const moment = require("moment"); | 4 | const moment = require("moment"); |
5 | AWS.config.loadFromPath(__dirname + "/modules/awsconfig.json"); | 5 | AWS.config.loadFromPath(__dirname + "/modules/awsconfig.json"); |
6 | 6 | ||
7 | -const BUCKET_NAME = "hong-s3-cloud"; | 7 | +const BUCKET_NAME = "qkrrlqja-test"; |
8 | let curPath = ""; | 8 | let curPath = ""; |
9 | let user_id = ""; | 9 | let user_id = ""; |
10 | let parentPath = ""; | 10 | let parentPath = ""; |
... | @@ -424,4 +424,4 @@ router.get('/search', function(req, res, next) { | ... | @@ -424,4 +424,4 @@ router.get('/search', function(req, res, next) { |
424 | 424 | ||
425 | }); | 425 | }); |
426 | 426 | ||
427 | -module.exports = router; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
427 | +module.exports = router; | ... | ... |
1 | { | 1 | { |
2 | - "accessKeyId": "", | 2 | + "accessKeyId": "ASIAXZL2SWFEVX2QLC2C", |
3 | - "secretAccessKey": "", | 3 | + "secretAccessKey": "xLT4QyCqNlgTNQvFP4oW6aVq04kLRkFPw3DO87hW", |
4 | - "sessionToken": "", | 4 | + "sessionToken": "FwoGZXIvYXdzEMr//////////wEaDJbPF1ZfC7m53f7t+CLDAQrg8xWLOlDP3orR6rIbCbXVHihhuEjZsOzAEsU9w3pMwCrUHvMNFFColA5OMcJC3AhZUCE0MkpsyIA/LJ/f17TJiNIePpnrynfhU+e/q5Mvc8TWDdNemHG9IW8jfXY950DtLXz2RPErVzWDYux2kGcSmvDpWmOP7hueZzsjZONjmbHU3jG3Godhg5HvGuariYm9h/msyipIQ3QPoqdum/3YEanjkKZqyk8bzqqeU3rNVUJTFOi4mX68H0h4tFpNlPIlYiimjYT3BTItwf48W22vdxtEZOnwYyIZJpXQIUmLOlzSzjwWoLkLsXGhJA9aoGJyM1ADziVY", |
5 | "region": "ap-northeast-2" | 5 | "region": "ap-northeast-2" |
6 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
6 | +} | ... | ... |
1 | <template lang="html"> | 1 | <template lang="html"> |
2 | - <v-flex> | 2 | + <v-flex> |
3 | - <h1>빠른액세스</h1> | 3 | + <h1>빠른액세스</h1> |
4 | - <v-simple-table> | 4 | + <v-simple-table> |
5 | - <template v-slot:default> | 5 | + <template v-slot:default> |
6 | - <thead> | 6 | + <thead> |
7 | - <tr> | 7 | + <tr> |
8 | - <th class="text-left">File ID</th> | 8 | + <th class="text-left">File ID</th> |
9 | - <th class="text-left">Name</th> | 9 | + <th class="text-left">Name</th> |
10 | - <th class="text-left">Dir</th> | 10 | + <th class="text-left">Dir</th> |
11 | - <th class="text-left">Date</th> | 11 | + <th class="text-left">Date</th> |
12 | - </tr> | 12 | + </tr> |
13 | - </thead> | 13 | + </thead> |
14 | - <tbody> | 14 | + <tbody> |
15 | - <tr v-for="item in recent_list" :key="item.name"> | 15 | + <tr v-for="item in recent_list" :key="item.name"> |
16 | - <td>{{ item.file_id }}</td> | 16 | + <td>{{ item.file_id }}</td> |
17 | - <td>{{ item.file_name }}</td> | 17 | + <td>{{ item.file_name}}</td> |
18 | - <td>{{ item.location }}</td> | 18 | + <td>{{ item.location }}</td> |
19 | - <td>{{ item.date }}</td> | 19 | + <td>{{ item.date }}</td> |
20 | - </tr> | 20 | + </tr> |
21 | - </tbody> | 21 | + </tbody> |
22 | - </template> | 22 | + </template> |
23 | - </v-simple-table> | 23 | + </v-simple-table> |
24 | - <v-divider></v-divider> | 24 | + <v-divider></v-divider> |
25 | - </v-flex> | 25 | + </v-flex> |
26 | </template> | 26 | </template> |
27 | 27 | ||
28 | <script> | 28 | <script> |
29 | -import { accessedList } from '../api/index'; | 29 | + import { accessedList } from '../api/index'; |
30 | -import Axios from 'axios'; | 30 | + import Axios from 'axios'; |
31 | -export default { | 31 | + export default { |
32 | - data() { | 32 | + data() { |
33 | - return { | 33 | + return { |
34 | - recent_list: [], | 34 | + recent_list : [] |
35 | - }; | 35 | + } |
36 | - }, | 36 | + }, |
37 | - async created() { | 37 | + async created(){ |
38 | - try { | 38 | + try { |
39 | - const curData = { | 39 | + const curData = { |
40 | - id: this.$store.state.id, | 40 | + id : this.$store.state.id, |
41 | - }; | 41 | + } |
42 | - console.log(curData); | 42 | + console.log(curData); |
43 | - const list_reponse = await accessedList(curData); | 43 | + const list_reponse = await accessedList(curData); |
44 | - this.$store.commit('setRecentList', list_reponse.data); | 44 | + this.$store.commit('setRecentList', list_reponse.data) |
45 | - this.recent_list = this.$store.getters.recentL; | 45 | + this.recent_list = this.$store.getters.recentL; |
46 | - console.log(this.$store.getters.recentL); | 46 | + console.log(this.$store.getters.recentL); |
47 | - } catch (error) { | 47 | + } catch (error) { |
48 | - console.log('에러'); | 48 | + console.log("에러"); |
49 | - console.log(error); | 49 | + console.log(error); |
50 | - } | 50 | + } |
51 | - }, | 51 | + }, |
52 | - methods: {}, | 52 | + methods:{ |
53 | -}; | 53 | + |
54 | + } | ||
55 | + } | ||
54 | </script> | 56 | </script> |
55 | 57 | ||
56 | -<style lang="css" scoped></style> | 58 | +<style lang="css" scoped> |
59 | +</style> | ... | ... |
-
Please register or login to post a comment