Skip to content

Commit

Permalink
Fixed broken imports
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienCastex committed May 21, 2017
1 parent a23afdc commit 458400c
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions lib/server/commands/Mkcol.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var WebDAVRequest_1 = require("../WebDAVRequest");
var Resource_1 = require("../../resource/Resource");
var IResource_1 = require("../../resource/IResource");
var path = require("path");
function default_1(arg, callback) {
arg.server.getResourceFromPath(arg.path.getParent(), function (e, r) {
Expand All @@ -15,7 +15,7 @@ function default_1(arg, callback) {
callback();
return;
}
var resource = r.fsManager.newResource(arg.uri, path.basename(arg.uri), Resource_1.ResourceType.Directory, r);
var resource = r.fsManager.newResource(arg.uri, path.basename(arg.uri), IResource_1.ResourceType.Directory, r);
resource.create(function (e) {
if (e) {
arg.setCode(WebDAVRequest_1.HTTPCodes.InternalServerError);
Expand Down
4 changes: 2 additions & 2 deletions lib/server/commands/Propfind.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var WebDAVRequest_1 = require("../WebDAVRequest");
var Resource_1 = require("../../resource/Resource");
var IResource_1 = require("../../resource/IResource");
var XML_1 = require("../../helper/XML");
function default_1(arg, callback) {
arg.getResource(function (e, resource) {
Expand Down Expand Up @@ -119,7 +119,7 @@ function default_1(arg, callback) {
});
resource.lastModifiedDate(function (e, lastModifiedDate) {
if (!e) {
prop.ele('D:getetag').add(Resource_1.ETag.createETag(lastModifiedDate));
prop.ele('D:getetag').add(IResource_1.ETag.createETag(lastModifiedDate));
prop.ele('D:getlastmodified').add(new Date(lastModifiedDate).toUTCString());
}
nbOut(e);
Expand Down
4 changes: 2 additions & 2 deletions lib/server/commands/Put.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var WebDAVRequest_1 = require("../WebDAVRequest");
var Resource_1 = require("../../resource/Resource");
var IResource_1 = require("../../resource/IResource");
var path = require("path");
function createResource(arg, callback, validCallback) {
arg.server.getResourceFromPath(arg.path.getParent(), function (e, r) {
Expand All @@ -16,7 +16,7 @@ function createResource(arg, callback, validCallback) {
return;
}
arg.requirePrivilege(['canAddChild'], r, function () {
var resource = r.fsManager.newResource(arg.uri, path.basename(arg.uri), Resource_1.ResourceType.File, r);
var resource = r.fsManager.newResource(arg.uri, path.basename(arg.uri), IResource_1.ResourceType.File, r);
arg.requirePrivilege(['canCreate', 'canWrite'], resource, function () {
resource.create(function (e) {
if (e) {
Expand Down
2 changes: 1 addition & 1 deletion src/server/commands/Copy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HTTPCodes, MethodCallArgs, WebDAVRequest } from '../WebDAVRequest'
import { IResource, ResourceType, SimpleCallback } from '../../resource/Resource'
import { IResource, ResourceType, SimpleCallback } from '../../resource/IResource'
import { FSPath } from '../../manager/FSManager'

function copyAllProperties(source : IResource, destination : IResource, callback : SimpleCallback)
Expand Down
2 changes: 1 addition & 1 deletion src/server/commands/Delete.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HTTPCodes, MethodCallArgs, WebDAVRequest } from '../WebDAVRequest'
import { IResource } from '../../resource/Resource'
import { IResource } from '../../resource/IResource'

export default function(arg : MethodCallArgs, callback)
{
Expand Down
2 changes: 1 addition & 1 deletion src/server/commands/Get.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HTTPCodes, MethodCallArgs, WebDAVRequest } from '../WebDAVRequest'
import { IResource } from '../../resource/Resource'
import { IResource } from '../../resource/IResource'

export default function(arg : MethodCallArgs, callback)
{
Expand Down
2 changes: 1 addition & 1 deletion src/server/commands/Head.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HTTPCodes, MethodCallArgs, WebDAVRequest } from '../WebDAVRequest'
import { IResource } from '../../resource/Resource'
import { IResource } from '../../resource/IResource'

export default function(arg : MethodCallArgs, callback)
{
Expand Down
2 changes: 1 addition & 1 deletion src/server/commands/Lock.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HTTPCodes, MethodCallArgs, WebDAVRequest } from '../WebDAVRequest'
import { STATUS_CODES } from 'http'
import { IResource } from '../../resource/Resource'
import { IResource } from '../../resource/IResource'
import { Lock } from '../../resource/lock/Lock'
import { LockKind } from '../../resource/lock/LockKind'
import { LockScope } from '../../resource/lock/LockScope'
Expand Down
2 changes: 1 addition & 1 deletion src/server/commands/Mkcol.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HTTPCodes, MethodCallArgs, WebDAVRequest } from '../WebDAVRequest'
import { IResource, ResourceType } from '../../resource/Resource'
import { IResource, ResourceType } from '../../resource/IResource'
import { FSPath } from '../../manager/FSManager'
import * as path from 'path'

Expand Down
2 changes: 1 addition & 1 deletion src/server/commands/Move.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HTTPCodes, MethodCallArgs, WebDAVRequest } from '../WebDAVRequest'
import { IResource, ResourceType } from '../../resource/Resource'
import { IResource, ResourceType } from '../../resource/IResource'
import { FSPath } from '../../manager/FSManager'

export default function(arg : MethodCallArgs, callback)
Expand Down
2 changes: 1 addition & 1 deletion src/server/commands/NotImplemented.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HTTPCodes, MethodCallArgs, WebDAVRequest } from '../WebDAVRequest'
import { IResource } from '../../resource/Resource'
import { IResource } from '../../resource/IResource'

export default function(arg : MethodCallArgs, callback)
{
Expand Down
2 changes: 1 addition & 1 deletion src/server/commands/Propfind.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HTTPCodes, MethodCallArgs, WebDAVRequest } from '../WebDAVRequest'
import { IResource, ETag } from '../../resource/Resource'
import { IResource, ETag } from '../../resource/IResource'
import { XML } from '../../helper/XML'

export default function(arg : MethodCallArgs, callback)
Expand Down
2 changes: 1 addition & 1 deletion src/server/commands/Proppatch.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HTTPCodes, MethodCallArgs, WebDAVRequest } from '../WebDAVRequest'
import { STATUS_CODES } from 'http'
import { IResource } from '../../resource/Resource'
import { IResource } from '../../resource/IResource'
import { XML } from '../../helper/XML'

export default function(arg : MethodCallArgs, callback)
Expand Down
2 changes: 1 addition & 1 deletion src/server/commands/Put.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HTTPCodes, MethodCallArgs, WebDAVRequest } from '../WebDAVRequest'
import { IResource, ResourceType } from '../../resource/Resource'
import { IResource, ResourceType } from '../../resource/IResource'
import * as path from 'path'

function createResource(arg : MethodCallArgs, callback, validCallback : (resource : IResource) => void)
Expand Down
2 changes: 1 addition & 1 deletion src/server/commands/Unlock.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HTTPCodes, MethodCallArgs, WebDAVRequest } from '../WebDAVRequest'
import { STATUS_CODES } from 'http'
import { IResource } from '../../resource/Resource'
import { IResource } from '../../resource/IResource'
import { Lock } from '../../resource/lock/Lock'
import { LockKind } from '../../resource/lock/LockKind'
import { LockScope } from '../../resource/lock/LockScope'
Expand Down

0 comments on commit 458400c

Please sign in to comment.