Showing
6 changed files
with
23 additions
and
19 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)); | ... | ... |
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 = ""; | ... | ... |
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 | } | 6 | } | ... | ... |
... | @@ -14,7 +14,7 @@ | ... | @@ -14,7 +14,7 @@ |
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> |
... | @@ -26,31 +26,34 @@ | ... | @@ -26,31 +26,34 @@ |
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