Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-CloudComputing
/
D_Team_Khuloud
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-10 22:29:10 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e3cbf30879fd84389749d980a5f2548b662becc4
e3cbf308
1 parent
8b300b4d
error fix
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
88 additions
and
97 deletions
front-end/src/components/TrashList.vue
front-end/src/store/index.js
front-end/src/components/TrashList.vue
View file @
e3cbf30
<template>
<div>
<v-toolbar flat>
<v-toolbar-title>
내 드라이브
</v-toolbar-title>
<v-toolbar-title>
휴지통
</v-toolbar-title>
<v-spacer></v-spacer>
<v-text-field
v-model="search"
append-icon="mdi-magnify"
label="검색"
single-line
hide-details
></v-text-field>
<v-btn @click="delAll">비우기</v-btn>
</v-toolbar>
<v-list two-line subheader>
<!-- <v-subheader inset>Folders</v-subheader> -->
...
...
@@ -116,9 +110,6 @@ export default {
y: 0,
cfilename: {},
showMenuF: false,
x: 0,
y: 0,
search: '',
};
},
created() {
...
...
front-end/src/store/index.js
View file @
e3cbf30
...
...
@@ -4,89 +4,89 @@ import Vuex from 'vuex';
Vue
.
use
(
Vuex
);
export
default
new
Vuex
.
Store
({
state
:
{
id
:
''
,
folders
:
[],
files
:
[],
cur
:
'/'
,
parent
:
'/'
,
recentList
:
[],
favFolderList
:
[],
favFileList
:
[],
trashFolderList
:
[],
trashFileList
:
[],
},
mutations
:
{
setId
(
state
,
userid
)
{
state
.
id
=
userid
;
},
clearid
(
state
)
{
state
.
id
=
''
;
},
setFolder
(
state
,
folderlist
)
{
state
.
folders
=
folderlist
;
},
setFile
(
state
,
filelist
)
{
state
.
files
=
filelist
;
},
setCur
(
state
,
cur
)
{
state
.
cur
=
cur
;
},
setParent
(
state
,
parent
)
{
state
.
parent
=
parent
;
},
setRecentList
(
state
,
list
)
{
state
.
recentList
=
list
;
},
setfavFolderList
(
state
,
fflist
)
{
state
.
favFolderList
=
fflist
;
},
setfavFileList
(
state
,
fflist
)
{
state
.
favFileList
=
fflist
;
},
settrashFolderList
(
state
,
tflist
)
{
state
.
trashFolderList
=
tflist
;
},
settrashFileList
(
state
,
tflist
)
{
state
.
trashFileList
=
tflist
;
},
},
getters
:
{
isLogin
(
state
)
{
return
state
.
id
!==
''
;
},
userID
(
state
)
{
return
state
.
id
;
},
folderL
(
state
)
{
return
state
.
folders
;
},
fileL
(
state
)
{
return
state
.
files
;
},
recentL
(
state
)
{
return
state
.
recentList
;
},
cur
(
state
)
{
return
state
.
cur
;
},
setFolder
(
state
,
folderlist
)
{
state
.
folders
=
folderlist
;
},
setFile
(
state
,
filelist
)
{
state
.
files
=
filelist
;
},
favFolderL
(
state
)
{
return
state
.
favFolderList
;
},
favFileL
(
state
)
{
return
state
.
favFileList
;
},
trashFolderL
(
state
)
{
return
state
.
trashFolderList
;
},
trashFileL
(
state
)
{
return
state
.
trashFileList
;
},
},
});
\ No newline at end of file
state
:
{
id
:
''
,
folders
:
[],
files
:
[],
cur
:
'/'
,
parent
:
'/'
,
recentList
:
[],
favFolderList
:
[],
favFileList
:
[],
trashFolderList
:
[],
trashFileList
:
[],
},
mutations
:
{
setId
(
state
,
userid
)
{
state
.
id
=
userid
;
},
clearid
(
state
)
{
state
.
id
=
''
;
},
setFolder
(
state
,
folderlist
)
{
state
.
folders
=
folderlist
;
},
setFile
(
state
,
filelist
)
{
state
.
files
=
filelist
;
},
setCur
(
state
,
cur
)
{
state
.
cur
=
cur
;
},
setParent
(
state
,
parent
)
{
state
.
parent
=
parent
;
},
setRecentList
(
state
,
list
)
{
state
.
recentList
=
list
;
},
setfavFolderList
(
state
,
fflist
)
{
state
.
favFolderList
=
fflist
;
},
setfavFileList
(
state
,
fflist
)
{
state
.
favFileList
=
fflist
;
},
settrashFolderList
(
state
,
tflist
)
{
state
.
trashFolderList
=
tflist
;
},
settrashFileList
(
state
,
tflist
)
{
state
.
trashFileList
=
tflist
;
},
},
getters
:
{
isLogin
(
state
)
{
return
state
.
id
!==
''
;
},
userID
(
state
)
{
return
state
.
id
;
},
folderL
(
state
)
{
return
state
.
folders
;
},
fileL
(
state
)
{
return
state
.
files
;
},
recentL
(
state
)
{
return
state
.
recentList
;
},
cur
(
state
)
{
return
state
.
cur
;
},
setFolder
(
state
,
folderlist
)
{
state
.
folders
=
folderlist
;
},
setFile
(
state
,
filelist
)
{
state
.
files
=
filelist
;
},
favFolderL
(
state
)
{
return
state
.
favFolderList
;
},
favFileL
(
state
)
{
return
state
.
favFileList
;
},
trashFolderL
(
state
)
{
return
state
.
trashFolderList
;
},
trashFileL
(
state
)
{
return
state
.
trashFileList
;
},
},
});
...
...
Please
register
or
login
to post a comment