亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? filesystem.js

?? 在線編輯器
?? JS
字號:
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1 * * The contents of this file are subject to the Mozilla Public License * Version 1.1 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. * See the License for the specific language governing rights and * limitations under the License. * * The Original Code is Bespin. * * The Initial Developer of the Original Code is Mozilla. * Portions created by the Initial Developer are Copyright (C) 2009 * the Initial Developer. All Rights Reserved. * * Contributor(s): *   Bespin Team (bespin@mozilla.com) * * ***** END LICENSE BLOCK ***** */ // = FileSystem =//// This abstracts the remote Web Service file system, and in the future// local file systems too.// // It ties into the {{{bespin.client.Server}}} object for remote accessdojo.provide("bespin.client.filesystem"); dojo.declare("bespin.client.FileSystem", null, {     // ** {{{ bespin.client.FileSystem.newFile(project, path, callback) }}}    //    // Create a new file in the file system using:    //    // * {{{project}}} is the name of the project to create the file in    // * {{{path}}} is the full path to save the file into    // * {{{onSuccess}}} is a callback to fire if the file is created    newFile: function(project, path, onSuccess) {        this.whenFileDoesNotExist(project, path, {            execute: function() {                _editSession.startSession(project, path || "new.txt");                onSuccess();            },            elseFailed: function() {                bespin.publish("bespin:cmdline:showinfo", { msg: 'The file ' + path + ' already exists my friend.'});            }        });    },    // ** {{{ bespin.client.FileSystem.loadFile(project, path, callback) }}}    //    // Load the file in the given project and path and get going    //    // * {{{project}}} is the name of the project that houses the file    // * {{{path}}} is the full path to load the file into    // * {{{onSuccess}}} is a callback to fire if the file is loaded    // * {{{dontStartSession}}} is a flag to turn off starting a session. Used in the config loading for example    loadFile: function(project, path, onSuccess, dontStartSession) {        if (!dontStartSession) _editSession.startSession(project, path);        _server.loadFile(project, path, function(content) {            if (/\n$/.test(content)) content = content.substr(0, content.length - 1);            onSuccess({                name: path,                content: content,                timestamp: new Date().getTime()            });        });    },    // ** {{{ bespin.client.FileSystem.forceOpenFile(project, path, content) }}}    //    // With the given project and path, open a file if existing, else create a new one    //    // * {{{project}}} is the name of the project to create the file in    // * {{{path}}} is the full path to save the file into    // * {{{content}}} is the template initial content to put in the new file (if new)    forceOpenFile: function(project, path, content) {        this.whenFileDoesNotExist(project, path, {            execute: function() {                if (!content) content = " ";                bespin.publish("bespin:editor:newfile", {                    project: project,                    newfilename: path,                    content: content                });            },            elseFailed: function() {                bespin.publish("bespin:editor:openfile", {                    project: project,                    filename: path                });            }        });    },    // ** {{{ FileSystem.projects(callback) }}}    //    // Return a JSON representation of the projects that the user has access too    //    // * {{{callback}}} is a callback that fires given the project list    projects: function(callback) {        _server.projects(callback);    },    // ** {{{ bespin.client.FileSystem.fileNames(callback) }}}    //    // Return a JSON representation of the files at the root of the given project    //    // * {{{callback}}} is a callback that fires given the files    fileNames: function(project, callback) {        _server.list(project, '', callback);    },    // ** {{{ bespin.client.FileSystem.saveFile(project, file) }}}    //    // Save a file to the given project    //    // * {{{project}}} is the name of the project to save into    // * {{{file}}} is the file object that contains the path and content to save    saveFile: function(project, file) {        // Unix files should always have a trailing new-line; add if not present        if (/\n$/.test(file.content)) file.content += "\n";                _server.saveFile(project, file.name, file.content, file.lastOp);    },    // ** {{{ bespin.client.FileSystem.removeFile(project, path, onSuccess, onFailure) }}}    //    // Create a directory    //    // * {{{project}}} is the name of the directory to create    // * {{{path}}} is the full path to the directory to create    // * {{{onSuccess}}} is the callback to fire if the make works    // * {{{onFailure}}} is the callback to fire if the make fails    makeDirectory: function(project, path, onSuccess, onFailure) {        _server.makeDirectory(project, path, onSuccess, onFailure);    },    // ** {{{ bespin.client.FileSystem.makeDirectory(project, path, onSuccess, onFailure) }}}    //    // Remove a directory    //    // * {{{project}}} is the name of the directory to remove    // * {{{path}}} is the full path to the directory to delete    // * {{{onSuccess}}} is the callback to fire if the remove works    // * {{{onFailure}}} is the callback to fire if the remove fails    removeDirectory: function(project, path, onSuccess, onFailure) {        _server.removeFile(project, path, onSuccess, onFailure);    },    // ** {{{ bespin.client.FileSystem.removeFile(project, path, onSuccess, onFailure) }}}    //    // Remove the file from the file system    //    // * {{{project}}} is the name of the project to delete the file from    // * {{{path}}} is the full path to the file to delete    // * {{{onSuccess}}} is the callback to fire if the remove works    // * {{{onFailure}}} is the callback to fire if the remove fails    removeFile: function(project, path, onSuccess, onFailure) {        _server.removeFile(project, path, onSuccess, onFailure);    },    // ** {{{ bespin.client.FileSystem.removeFile(project, path, onSuccess, onFailure) }}}    //    // Close the open session for the file    //    // * {{{project}}} is the name of the project to close the file from    // * {{{path}}} is the full path to the file to close    // * {{{callback}}} is the callback to fire when closed    closeFile: function(project, path, callback) {        _server.closeFile(project, path, callback);    },    // ** {{{ bespin.client.FileSystem.whenFileExists(project, path, callbacks) }}}    //    // Check to see if the file exists and then run the appropriate callback    //    // * {{{project}}} is the name of the project    // * {{{path}}} is the full path to the file    // * {{{callbacks}}} is the pair of callbacks:    //   execute (file exists)    //   elseFailed (file does not exist)    whenFileExists: function(project, path, callbacks) {        _server.list(project, bespin.util.path.directory(path), function(files) {            if (files && dojo.some(files, function(file){ return (file.name == path); })) {                   callbacks['execute']();            } else {                if (callbacks['elseFailed']) callbacks['elseFailed']();            }        }, function(xhr) {            if (callbacks['elseFailed']) callbacks['elseFailed'](xhr);        });    },    // ** {{{ bespin.client.FileSystem.whenFileDoesNotExist(project, path, callbacks) }}}    //    // The opposite of {{{ bespin.client.FileSystem.whenFileExists() }}}    //    // * {{{project}}} is the name of the project    // * {{{path}}} is the full path to the file    // * {{{callbacks}}} is the pair of callbacks:    //   execute (file does not exist)    //   elseFailed (file exists)    whenFileDoesNotExist: function(project, path, callbacks) {        _server.list(project, bespin.util.path.directory(path), function(files) {            if (!files || !dojo.some(files, function(file){ return (file.name == path); })) {                callbacks['execute']();            } else {                if (callbacks['elseFailed']) callbacks['elseFailed']();            }        }, function(xhr) {            callbacks['execute'](); // the list failed which means it didn't exist        });    }});

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
肉色丝袜一区二区| 中文字幕中文在线不卡住| 一本色道久久综合亚洲精品按摩| 国产成人在线看| 国产麻豆成人精品| 成人小视频在线| 91在线精品一区二区| 欧美这里有精品| 欧美精品丝袜中出| 精品国产自在久精品国产| 久久久精品国产免大香伊| 国产精品每日更新| 亚洲综合免费观看高清在线观看| 亚洲国产日日夜夜| 精品一区二区三区日韩| 粉嫩av一区二区三区| 91天堂素人约啪| 91精品免费在线观看| 国产色爱av资源综合区| 国产精品成人一区二区艾草| 亚洲国产日日夜夜| 国产一区高清在线| 一本久久精品一区二区| 欧美一级精品在线| 国产精品久久久久久久裸模| 婷婷综合在线观看| 国产成人a级片| 欧美亚洲国产一区二区三区| 日韩欧美色综合| 亚洲人吸女人奶水| 国内外成人在线视频| 99视频超级精品| 日韩欧美视频在线| 一区二区三区四区中文字幕| 国内精品伊人久久久久av一坑 | 色丁香久综合在线久综合在线观看| 欧美亚洲动漫制服丝袜| 久久久99精品久久| 偷拍一区二区三区四区| 本田岬高潮一区二区三区| 91精品国产91久久久久久最新毛片| 久久精品亚洲麻豆av一区二区| 亚洲福利国产精品| 成人精品亚洲人成在线| 91精品国产免费| 亚洲日本在线a| 激情都市一区二区| 3d成人动漫网站| 亚洲男人都懂的| 成人国产精品视频| 欧美精品一区二区三区很污很色的 | 91精品国产乱码久久蜜臀| 国产精品无圣光一区二区| 免费观看30秒视频久久| 色综合久久久久综合99| 国产色婷婷亚洲99精品小说| 蜜臀av一级做a爰片久久| 色悠悠久久综合| 中文字幕一区二区不卡 | 国产精品亲子伦对白| 蜜桃视频在线观看一区| 欧美日本一区二区在线观看| 亚洲欧美韩国综合色| 91色porny蝌蚪| 国产精品高潮呻吟| av一区二区三区| 国产精品黄色在线观看 | 亚洲激情图片qvod| 北岛玲一区二区三区四区| 久久精品人人爽人人爽| 国产激情视频一区二区三区欧美 | 韩国v欧美v亚洲v日本v| 亚洲精品在线观看视频| 激情久久五月天| 亚洲精品在线一区二区| 韩国三级电影一区二区| 久久久久久亚洲综合影院红桃 | 日本成人在线看| 777亚洲妇女| 美女免费视频一区| 日韩久久精品一区| 国产精品影音先锋| 国产精品国产成人国产三级| 91亚洲国产成人精品一区二区三 | 国产一区二区三区电影在线观看| 日韩欧美中文字幕公布| 国产一区二区在线观看免费| 国产欧美日韩在线视频| 91在线观看免费视频| 亚洲一区二区在线播放相泽| 欧美一区二区三区不卡| 国产乱色国产精品免费视频| 亚洲欧美在线视频观看| 在线成人小视频| 激情国产一区二区| 亚洲图片另类小说| 欧美一区二区三区免费视频| 国产在线视频不卡二| 国产精品不卡在线| 欧美精品日韩精品| 国产一区二三区| 一区二区三区丝袜| 精品久久久影院| av不卡在线播放| 日本欧美在线观看| 一区视频在线播放| 4438成人网| 9色porny自拍视频一区二区| 视频一区二区三区中文字幕| 亚洲国产精品ⅴa在线观看| 欧美视频精品在线| 国产精品1区2区3区在线观看| 一区二区三区在线视频观看58| 欧美一区二区三区免费视频| 99久久精品99国产精品| 男人的天堂久久精品| 一级精品视频在线观看宜春院| 日韩精品自拍偷拍| 欧美午夜理伦三级在线观看| 国产一区二区福利视频| 午夜免费欧美电影| 亚洲色图在线看| 久久精品欧美一区二区三区不卡 | 精品国产乱码久久久久久老虎| 色88888久久久久久影院野外| 美女国产一区二区三区| 一区二区三区成人| 国产精品蜜臀在线观看| 26uuu精品一区二区三区四区在线| 欧美午夜精品一区二区蜜桃| 不卡av在线网| 丰满亚洲少妇av| 黄色日韩三级电影| 男人的j进女人的j一区| 视频在线观看国产精品| 亚洲精品国产精品乱码不99| 国产精品久久久久影院色老大| 精品国产一区二区三区av性色| 欧美在线制服丝袜| 色综合 综合色| 99精品视频一区二区| 成人免费的视频| 丰满少妇在线播放bd日韩电影| 国内外精品视频| 国产综合久久久久久鬼色| 日韩电影免费一区| 日韩精品国产欧美| 免费观看日韩av| 久久99九九99精品| 国产一区二区成人久久免费影院 | 色欧美片视频在线观看在线视频| 成人午夜精品在线| 99视频国产精品| 91精品福利在线| 欧美视频在线一区二区三区 | 粉嫩绯色av一区二区在线观看 | 欧美日韩免费高清一区色橹橹| 日本久久精品电影| 精品视频一区二区三区免费| 欧美午夜理伦三级在线观看| 欧美日韩国产一级二级| 欧美精品18+| 精品毛片乱码1区2区3区| 26uuu另类欧美亚洲曰本| 国产喂奶挤奶一区二区三区| 国产精品免费视频网站| 亚洲免费观看高清完整版在线| 亚洲小说春色综合另类电影| 天堂影院一区二区| 日本成人在线电影网| 国产精品一卡二| 在线日韩av片| 日韩三级在线观看| 中文字幕一区二区日韩精品绯色| 亚洲主播在线播放| 久久99国产精品免费网站| 99久久精品情趣| 91麻豆精品国产| 国产精品久久看| 日韩影院精彩在线| 成人毛片在线观看| 欧美疯狂做受xxxx富婆| 久久色在线观看| 亚洲一区在线观看网站| 国产一区二区在线影院| 91福利精品第一导航| 精品久久久久av影院| 亚洲免费看黄网站| 久国产精品韩国三级视频| 91在线视频网址| 久久久国产综合精品女国产盗摄| 亚洲美女屁股眼交| 精品亚洲国内自在自线福利| 99re8在线精品视频免费播放| 欧美丰满一区二区免费视频| 日本一区二区三区久久久久久久久不| 亚瑟在线精品视频| 99re热这里只有精品免费视频| 日韩欧美色电影| 亚洲香蕉伊在人在线观|