mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-07-15 05:19:56 +02:00
Improvement + bug fix
- Some minor bug fix - Major change: allow split view in CodePad, make CodePad API portable so that it is easy to use another editor other than ACE in the futures (such as monaco editor)
This commit is contained in:
@ -1244,10 +1244,10 @@ namespace OS {
|
||||
* only work with file
|
||||
*
|
||||
* @protected
|
||||
* @returns {Promise<any>}
|
||||
* @returns {Promise<void>}
|
||||
* @memberof RemoteFileHandle
|
||||
*/
|
||||
protected _down(): Promise<any> {
|
||||
protected _down(): Promise<void> {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (this.info.type === "dir") {
|
||||
return API.throwe(
|
||||
@ -1527,10 +1527,10 @@ namespace OS {
|
||||
* Download the buffer file
|
||||
*
|
||||
* @protected
|
||||
* @returns {Promise<RequestResult>}
|
||||
* @returns {Promise<void>}
|
||||
* @memberof BufferFileHandle
|
||||
*/
|
||||
protected _down(): Promise<RequestResult> {
|
||||
protected _down(): Promise<void> {
|
||||
return new Promise((resolve, reject) => {
|
||||
const blob = new Blob([this.cache], {
|
||||
type: "octet/stream",
|
||||
@ -1714,10 +1714,10 @@ namespace OS {
|
||||
* Download shared file
|
||||
*
|
||||
* @protected
|
||||
* @returns {Promise<RequestResult>}
|
||||
* @returns {Promise<void>}
|
||||
* @memberof SharedFileHandle
|
||||
*/
|
||||
protected _down(): Promise<RequestResult> {
|
||||
protected _down(): Promise<void> {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (this.info.type === "dir") {
|
||||
return reject(
|
||||
|
Reference in New Issue
Block a user