Skip to content

Commit

Permalink
Increased the size of the item buttons.
Browse files Browse the repository at this point in the history
Add a `Tree` component to enable copy and move operations again. Fixes #111.
Combine path-related functions.
Ensure `HTTP` operations always return a response.
Minor changes to adhere to WebDAV spec.
  • Loading branch information
dom111 committed Sep 6, 2022
1 parent 55d62c4 commit 7444915
Show file tree
Hide file tree
Showing 34 changed files with 1,455 additions and 378 deletions.
4 changes: 3 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
- [x] Support keyboard navigation whilst overlay is visible
- [x] Maybe a refactor...
- [x] Add eventMap to `Event` object. - Replaced with `typed-event-emitter`
- [x] Add functionality for copying and moving files and directories
- [ ] Add drag and drop tests
- [ ] Allow uploading of directories ([#48](https://github.com/dom111/webdav-js/issues/48))
- [ ] Add functionality for copying and moving files and directories
- [ ] Add progress bar for file uploads
- [ ] ReactJS implementation
- [ ] VueJS implementation
- [ ] Add selection checkboxes and bulk operations
- [ ] Break `Item` down further
2 changes: 1 addition & 1 deletion assets/css/style-min.css

Large diffs are not rendered by default.

239 changes: 162 additions & 77 deletions assets/css/style.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions assets/css/webdav.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "webdav-js",
"version": "2.3.0",
"description": "WebDAV functionality intended for use as a bookmarklet or to make a simple Apache webserver an interactive WebDAV environment.",
"version": "2.4.0",
"description": "WebDAV functionality intended for use as a bookmarklet or to make a simple webserver an interactive WebDAV environment.",
"repository": {
"type": "git",
"url": "[email protected]:dom111/webdav-js.git"
Expand Down
7 changes: 3 additions & 4 deletions src/components/Footer.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import Element, { on, s } from '@dom111/element';
import joinPath, { trailingSlash } from '../lib/joinPath';
import DAV from '../lib/DAV';
import Entry from '../lib/Entry';
import State from '../lib/State';
import handleFileUpload from '../lib/handleFileUpload';
import joinPath from '../lib/joinPath';
import { success } from 'melba-toast';
import { t } from 'i18next';
import trailingSlash from '../lib/trailingSlash';

export default class Footer extends Element {
#dav: DAV;
Expand Down Expand Up @@ -66,9 +65,9 @@ export default class Footer extends Element {
}

async handleCreateDirectory(fullPath: string, directoryName: string) {
const result = await this.#dav.mkcol(fullPath);
const result = await this.#dav.createDirectory(fullPath);

if (!result) {
if (!result.ok) {
return;
}

Expand Down
Loading

0 comments on commit 7444915

Please sign in to comment.