-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from TaBayramNTT/develop
system name in logs,
- Loading branch information
Showing
13 changed files
with
118 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Uri } from "vscode"; | ||
import { configManager } from "../modules/config"; | ||
import { TransferFile } from "../transfer/transfer"; | ||
|
||
|
||
export async function OnCommandTransferFile(uri: Uri) { | ||
const userConfig = await configManager.load(); | ||
if (!userConfig) return; | ||
|
||
if (uri) { | ||
TransferFile(uri, userConfig); | ||
return; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Request, Service } from './abstract/miiservice.js'; | ||
import { MII, RowsetsMessage } from './abstract/responsetypes.js'; | ||
|
||
class BlowoutService extends Service { | ||
name: string = "Delete Batch"; | ||
mode: string = "XMII/Catalog?Mode=Blowout&Class=Content&Content-Type=text/xml"; | ||
|
||
async call({ host, port }: Request, folderPath: string) { | ||
const url = this.get(host, port, folderPath); | ||
const { value, error, isError } = await this.fetch(new URL(url)); | ||
let data: MII<null, null, RowsetsMessage> = null; | ||
if (!isError) { | ||
data = this.parseXML(value); | ||
} | ||
return data; | ||
} | ||
get(host: string, port: number, sourcePath: string) { | ||
return this.generateURL(host, port, "http") + `&${this.generateParams(sourcePath)}&__=${new Date().getTime()}`; | ||
} | ||
protected generateParams(folder: string) { | ||
return "Folder=" + folder; | ||
} | ||
} | ||
|
||
|
||
export const blowoutService = new BlowoutService(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters