Implement Trash/Restore features
Merge pull request #134 from Rise-Vision/feature/trash

Implement Trash/Restore UI
Clipboard url modal features

Implement Trash/Restore features

Handle missing parent to display Previous Folder

Disable Trash/Go Back buttons when loading files

UX-Changes Copy file url merge

Added copy-url modal and ux-changes

ux-changes from branch feature/ux-changes merged.

added a copy-url function and icon that brings a modal up and auto-selects
the given url for the file so the user can copy it.

added tests for the new controller.

added back copyUrl.html

mistake from my merging.

corrected small bugs from merge

close and create folder shouldn't have been merged in.  share-url style doesn't work correctly used checke-col class for now

made copy-url go away for folders

added function to check if in Trash

copy-url will not show if in trash folder

fixed duplicate id and controller

fix "x" spacing on top

fix jslint entries

remove trash sample.html

gulp build dist update

change to point to feature branch on server

corrected url for clipboard url

change configs for proper server feature branch

change MEDIA_LIBRARY_URL to STORAGE_API_URL

fix copy-url to be correct url

dist build update

fix test for new variable name

fix for test #2

fix for modal responsiveness and ellipsis

left aligned and moved header text to body

add copyfileUrl modal to ctr-buttons

moved from ctr-files controller

add copyfile url icon to action bars and hide it when there is not 1 and only one selected

remove copy Url from html and ctr-files ctr

got rid of bucketUrl it is not used anymore

gulp build update dist folder
fixed smaller "x" button to regular one
took out CSS and fixed file Select Action
 fixed file Select Action added bucketUrl back
Implement Trash restor and url clipboard

Implement Trash/Restore features

Handle missing parent to display Previous Folder

Disable Trash/Go Back buttons when loading files

UX-Changes Copy file url merge

Added copy-url modal and ux-changes

ux-changes from branch feature/ux-changes merged.

added a copy-url function and icon that brings a modal up and auto-selects
the given url for the file so the user can copy it.

added tests for the new controller.

added back copyUrl.html

mistake from my merging.

corrected small bugs from merge

close and create folder shouldn't have been merged in.  share-url style doesn't work correctly used checke-col class for now

made copy-url go away for folders

added function to check if in Trash

copy-url will not show if in trash folder

fixed duplicate id and controller

shared folders with trash share-url

Add new UI components styles

Integrate storage-modal logic in redesign

Move external css out of build:css tags

Fix missing styles

Use branch for styles

Disable move when no files selected

update styles and add link icon to table

Manage switch between trash and your files

update classes

Use common-style#master

Handle Trash features

Fix DeleteController test

Add restore button

Fix DeleteController test

Adjust rebased changes

Build dist

Add new UI components styles

Fix missing styles

update styles and add link icon to table

added html samples for shared folder feature

ghislaine mockup style changes

also used ng-class to dynamically apply styles based on if it is a folder or file or image

ghislaine mockup layout changes

commented out old layout

added a fileIsImage function

to use for dynamic styling of image files

added mockup modal

add ng-click for folders modal & ctrl

also added shouldBeOpen variable to deleteButtonClick

added separate file for changes

put all the layout / ui work for shared folders into this file.
 Once I am done I will transfer all the changes to the storage-modal file.

added ng-hide attr to hide buttons

so that people cannot load folders or trash menus while the main page is loading.

added recursive call for folder tree view

added folder Ctrl and logic to make tree

Needed to add a folders Ctrl for the folders modal.  Added functions listToTree and searchConditions which are required to take a flat list and make it into a nested array object that the recursive markup can traverse.
brought in the code from ctr-files that make it possible for clicking and navigating to the tree links work. I want to refactor this so we don't copy and paste code and some code can be shared.

added a place where folderList can be refreshed

if called too many times this folder API call can slow down performance.   This should only call the folders.get API once before files are displayed.  If this svc is is not empty then we use the same folders.  Refreshes should also be triggered when you move/rename, delete, or add folders.

added FolderListService to share data

among different controllers and give the ability to refresh no matter what controller you are in.

added triggers to add and delete folders

to go ahead and refresh the folders list in the service I made.

added emit click event on root

fixed if someone clicks on root / nav

and cleaned up unneeded code.

added search folder filter

added to correct cookie check url

changed cookies check to share-folders-branch

updated to rid of log and check empty

copied over storage-modal-changes

got upload button working
added underscore
cleaned up

added download button to main

fixed bug in tree list
refactored it. requires underscore.js to be a dependency

added folder icon
on children in tree list

got rid of byte count

get rid of console.logs added in dev

implement Folders btn name change

renmaed FileSelectAction to FolderSelectAction

removed extra newFolderButtonClick

how did this get here? anyway...shouldn't be here cleaned it up

separated share-folder svc

put svc code that was in svc-file-list.js in here
also put the unflatten code for the tree in here

separated share-folder svc

added svc-share-folder.js

folders should refresh when files do

folders refresh when files refresh

added onStateChangeSuccess for folders

fixed jslint suggestions double quotes

add underscore to bower depend

remove storage-modal-changes

dist update gulp build

put share-folder-svc in own module

fixed typo in config for cookie check

add angular local storage depend

change angular local storage depend

added to fix failing unit test

configs to point to share-folders serv

added Share Folder button

Also readded the empty property of share-folder service so ng-hide on Folders can work properly.

included core API in storage-client

add initial modal share folder

add core Companies call onclick

Renamed the folderListService to shareFolderListService as well and update dependencies

Add new UI components styles

Integrate storage-modal logic in redesign

Move external css out of build:css tags

Fix missing styles

Use branch for styles

Disable move when no files selected

update styles and add link icon to table

Manage switch between trash and your files

update classes

Use common-style#master

Handle Trash features

Fix DeleteController test

Add restore button

Fix DeleteController test

Adjust rebased changes

added html samples for shared folder feature

UI Updates

Changed placement of search box, trash button, added emphasis to folder
navigation, replaced delete button

add empty and disabled options to btns

add spinner dependency

fix the layout from the merg

open modal changes loading div

Implemented UI for share folder modal

implemented edit menu ui

perfected the highlight logic and selection

refactor selection logic to include edit

refactored selection logic, pass subComp obj

implemented switching permissions ui

margin to get it to look like mockup

need to change this on common-style

corrected folder name on folders btn

switched to feature/shared-folder

added logic for adding link

moved cleanCurrentFolderName to bottom of file so shareCtrl can reuse
added .addShareLink to svc

finished addShareLink UI & logic

added click for updateShareFolders

and changed ng-hides to ng-disabled

added tab navigation for folders btn

added getSharedFolder to svc

made sharedToTree function to make shared list

implemented shared folders list

loading div and gapi-core loaded

logic is refactored for gapi-core loaded.

recommit fullpath

this was an mistake to take out

jquery to take off disabled

for some reason angular does not work correctly to do this. I needed to use jquery.

implemented back button in folders modal

implemented shared with me modal

got rid of comments

implemented unlink feature

fixed some issues with empty lists on shared Folders and shared with.

fix addShareLink calls were backwards

changed parameters and calls to be right order

fix addShareLink calls were backwards #2

fixed bug shared from popup not working

link to shared folder implemented

filter created for folder Name to be taken from the path

added disabled buttons on shared nav

when inside someone else's folder the nav buttons are disabled

changed back to master common style

total refactor of buttons and tabs

refactored refresh logic

use services to pass values across controllers.  made a refresh function to handle grouping of promises.

added variables to track different states

resetLoading for status messages and access denied errors.

get rid of the subCompanies unneeded code

refactored Folders Ctrl and overall code clean

locals from gulp config

added close action on "x" and Query filters

locales change

underscore dependency add

shared folder not appear in trash

updated shared folders when updating

fixed subcompany listing not resetting

updated storage share to disable right buttons

pass state and check Access to companyId of bucket url.

update configs to point to new branch

gulp build dist folder

added button disabled

Also added extra dependencies for other files

fixed js lint errors

added modal as dependency, must have got missed in merge
added global underscore variable so jslint doesn't complain

fixed js lint errors

got rid of un neccessary code

fixed js lint errors

added back svc-share-folder

got rid of jslint errors

build dist update

get rid of angularspinner

put underscore dependency

fix commas in gulpfile

change dev config

change gapi onload to load storage then core

remove sample html files

changed to promises array

refactored in A Share folder access

got rid of unneeded code

dist folder update

fixes for unauthorized access for shared

changed stateChangeSuccess logic

fix jslint error made

update dist build

test boolean for access

test boolean for access #2

test boolean for access #3

test boolean for access #4

test boolean for access #5

test boolean for access #6

test boolean for access #7

test boolean for access #8

test boolean for access #9

test boolean for access #11

build test #1

test boolean for access #14

fixed access issues

clean up code and final refactor

fixed non working close btn

fixed shared folders Unlink functionality

ran gulp build dist update

bring back copy url on folders

fix spacing on search bar share folder

get rid of extra selectbuttonClick

fix test for new variable name

undo fix for test