mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
http and file-system naming changed to use "-"
This commit is contained in:
46
BCL.csproj
46
BCL.csproj
@ -105,17 +105,8 @@
|
|||||||
<TypeScriptCompile Include="declarations.ios.d.ts">
|
<TypeScriptCompile Include="declarations.ios.d.ts">
|
||||||
<DependentUpon>declarations.d.ts</DependentUpon>
|
<DependentUpon>declarations.d.ts</DependentUpon>
|
||||||
</TypeScriptCompile>
|
</TypeScriptCompile>
|
||||||
<TypeScriptCompile Include="filesystem\file_system.d.ts" />
|
<TypeScriptCompile Include="file-system\file-system.d.ts" />
|
||||||
<TypeScriptCompile Include="filesystem\file_system.ts">
|
<TypeScriptCompile Include="file-system\file-system-access.d.ts" />
|
||||||
<DependentUpon>file_system.d.ts</DependentUpon>
|
|
||||||
</TypeScriptCompile>
|
|
||||||
<TypeScriptCompile Include="filesystem\file_system_access.android.ts">
|
|
||||||
<DependentUpon>file_system_access.d.ts</DependentUpon>
|
|
||||||
</TypeScriptCompile>
|
|
||||||
<TypeScriptCompile Include="filesystem\file_system_access.d.ts" />
|
|
||||||
<TypeScriptCompile Include="filesystem\file_system_access.ios.ts">
|
|
||||||
<DependentUpon>file_system_access.d.ts</DependentUpon>
|
|
||||||
</TypeScriptCompile>
|
|
||||||
<TypeScriptCompile Include="image\image.ts">
|
<TypeScriptCompile Include="image\image.ts">
|
||||||
<DependentUpon>image.d.ts</DependentUpon>
|
<DependentUpon>image.d.ts</DependentUpon>
|
||||||
</TypeScriptCompile>
|
</TypeScriptCompile>
|
||||||
@ -138,11 +129,11 @@
|
|||||||
<TypeScriptCompile Include="location\location_types.ts">
|
<TypeScriptCompile Include="location\location_types.ts">
|
||||||
<DependentUpon>location.d.ts</DependentUpon>
|
<DependentUpon>location.d.ts</DependentUpon>
|
||||||
</TypeScriptCompile>
|
</TypeScriptCompile>
|
||||||
<TypeScriptCompile Include="Tests\file_system_tests.ts" />
|
<TypeScriptCompile Include="Tests\file-system-tests.ts" />
|
||||||
<TypeScriptCompile Include="Tests\http_tests.ts" />
|
<TypeScriptCompile Include="Tests\http-tests.ts" />
|
||||||
<TypeScriptCompile Include="Tests\image-tests.ts" />
|
<TypeScriptCompile Include="Tests\image-tests.ts" />
|
||||||
<TypeScriptCompile Include="Tests\index.ts" />
|
<TypeScriptCompile Include="Tests\index.ts" />
|
||||||
<TypeScriptCompile Include="Tests\location_tests.ts" />
|
<TypeScriptCompile Include="Tests\location-tests.ts" />
|
||||||
<TypeScriptCompile Include="Tests\testRunner.ts" />
|
<TypeScriptCompile Include="Tests\testRunner.ts" />
|
||||||
<TypeScriptCompile Include="Tests\TKUnit.ts" />
|
<TypeScriptCompile Include="Tests\TKUnit.ts" />
|
||||||
<TypeScriptCompile Include="text\index.ts" />
|
<TypeScriptCompile Include="text\index.ts" />
|
||||||
@ -156,18 +147,12 @@
|
|||||||
<TypeScriptCompile Include="utils\module_merge.ts" />
|
<TypeScriptCompile Include="utils\module_merge.ts" />
|
||||||
<TypeScriptCompile Include="utils\utils_android.ts" />
|
<TypeScriptCompile Include="utils\utils_android.ts" />
|
||||||
<TypeScriptCompile Include="utils\utils_ios.ts" />
|
<TypeScriptCompile Include="utils\utils_ios.ts" />
|
||||||
<TypeScriptCompile Include="http\http_request.android.ts">
|
<TypeScriptCompile Include="http\http-request.d.ts" />
|
||||||
<DependentUpon>http_request.d.ts</DependentUpon>
|
|
||||||
</TypeScriptCompile>
|
|
||||||
<TypeScriptCompile Include="http\http_request.ios.ts">
|
|
||||||
<DependentUpon>http_request.d.ts</DependentUpon>
|
|
||||||
</TypeScriptCompile>
|
|
||||||
<TypeScriptCompile Include="http\http_request.d.ts" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<TypeScriptCompile Include="http\index.ts" />
|
<TypeScriptCompile Include="http\index.ts" />
|
||||||
<TypeScriptCompile Include="location\index.ts" />
|
<TypeScriptCompile Include="location\index.ts" />
|
||||||
<TypeScriptCompile Include="filesystem\index.ts" />
|
<TypeScriptCompile Include="file-system\index.ts" />
|
||||||
<TypeScriptCompile Include="console\index.ts" />
|
<TypeScriptCompile Include="console\index.ts" />
|
||||||
<TypeScriptCompile Include="camera\index.ts" />
|
<TypeScriptCompile Include="camera\index.ts" />
|
||||||
<TypeScriptCompile Include="application\index.ts" />
|
<TypeScriptCompile Include="application\index.ts" />
|
||||||
@ -186,13 +171,28 @@
|
|||||||
<TypeScriptCompile Include="timer\timer.ios.ts">
|
<TypeScriptCompile Include="timer\timer.ios.ts">
|
||||||
<DependentUpon>timer.d.ts</DependentUpon>
|
<DependentUpon>timer.d.ts</DependentUpon>
|
||||||
</TypeScriptCompile>
|
</TypeScriptCompile>
|
||||||
<TypeScriptCompile Include="Tests\local_settings_tests.ts" />
|
<TypeScriptCompile Include="Tests\local-settings-tests.ts" />
|
||||||
<TypeScriptCompile Include="console\console-helper.android.ts">
|
<TypeScriptCompile Include="console\console-helper.android.ts">
|
||||||
<DependentUpon>console-helper.d.ts</DependentUpon>
|
<DependentUpon>console-helper.d.ts</DependentUpon>
|
||||||
</TypeScriptCompile>
|
</TypeScriptCompile>
|
||||||
<TypeScriptCompile Include="console\console-helper.ios.ts">
|
<TypeScriptCompile Include="console\console-helper.ios.ts">
|
||||||
<DependentUpon>console-helper.d.ts</DependentUpon>
|
<DependentUpon>console-helper.d.ts</DependentUpon>
|
||||||
</TypeScriptCompile>
|
</TypeScriptCompile>
|
||||||
|
<TypeScriptCompile Include="file-system\file-system.ts">
|
||||||
|
<DependentUpon>file-system.d.ts</DependentUpon>
|
||||||
|
</TypeScriptCompile>
|
||||||
|
<TypeScriptCompile Include="file-system\file-system-access.android.ts">
|
||||||
|
<DependentUpon>file-system-access.d.ts</DependentUpon>
|
||||||
|
</TypeScriptCompile>
|
||||||
|
<TypeScriptCompile Include="file-system\file-system-access.ios.ts">
|
||||||
|
<DependentUpon>file-system-access.d.ts</DependentUpon>
|
||||||
|
</TypeScriptCompile>
|
||||||
|
<TypeScriptCompile Include="http\http-request.android.ts">
|
||||||
|
<DependentUpon>http-request.d.ts</DependentUpon>
|
||||||
|
</TypeScriptCompile>
|
||||||
|
<TypeScriptCompile Include="http\http-request.ios.ts">
|
||||||
|
<DependentUpon>http-request.d.ts</DependentUpon>
|
||||||
|
</TypeScriptCompile>
|
||||||
<Content Include="image\Readme.md" />
|
<Content Include="image\Readme.md" />
|
||||||
<TypeScriptCompile Include="localsettings\index.ts" />
|
<TypeScriptCompile Include="localsettings\index.ts" />
|
||||||
<TypeScriptCompile Include="localsettings\local_settings.android.ts">
|
<TypeScriptCompile Include="localsettings\local_settings.android.ts">
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
// Using the file system requires the FileSystem module.
|
// Using the file system requires the FileSystem module.
|
||||||
// TODO: var fs = require("filesystem"); => this will break the intellisense of the tests
|
// TODO: var fs = require("filesystem"); => this will break the intellisense of the tests
|
||||||
// ``` JavaScript
|
// ``` JavaScript
|
||||||
import fs = require("filesystem/file_system");
|
import fs = require("file-system/file-system");
|
||||||
// ```
|
// ```
|
||||||
// The pre-required `fs` module is used throughout the following code snippets.
|
// The pre-required `fs` module is used throughout the following code snippets.
|
||||||
// </snippet>
|
// </snippet>
|
@ -1,6 +1,6 @@
|
|||||||
import TKUnit = require("Tests/TKUnit");
|
import TKUnit = require("Tests/TKUnit");
|
||||||
import http = require("http/http");
|
import http = require("http/http");
|
||||||
import http_request = require("http/http_request");
|
import http_request = require("http/http-request");
|
||||||
|
|
||||||
export var test_getString_isDefined = function () {
|
export var test_getString_isDefined = function () {
|
||||||
TKUnit.assert(typeof (http.getString) !== "undefined", "Method http.getString() should be defined!");
|
TKUnit.assert(typeof (http.getString) !== "undefined", "Method http.getString() should be defined!");
|
@ -1,6 +1,6 @@
|
|||||||
import image = require("image/image");
|
import image = require("image/image");
|
||||||
import app = require("application/application");
|
import app = require("application/application");
|
||||||
import fs = require("filesystem/file_system");
|
import fs = require("file-system/file-system");
|
||||||
import TKUnit = require("Tests/TKUnit");
|
import TKUnit = require("Tests/TKUnit");
|
||||||
|
|
||||||
export var testFromResource = function () {
|
export var testFromResource = function () {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
var TKUnit = require("Tests/TKUnit");
|
var TKUnit = require("Tests/TKUnit");
|
||||||
var fsTests = require("Tests/file_system_tests");
|
var fsTests = require("Tests/file-system-tests");
|
||||||
var httpTests = require("Tests/http_tests");
|
var httpTests = require("Tests/http-tests");
|
||||||
var locationTests = require("Tests/location_tests");
|
var locationTests = require("Tests/location-tests");
|
||||||
var localSettingsTests = require("Tests/local_settings_tests");
|
var localSettingsTests = require("Tests/local-settings-tests");
|
||||||
var imageTests = require("Tests/image-tests");
|
var imageTests = require("Tests/image-tests");
|
||||||
|
|
||||||
export var runAll = function () {
|
export var runAll = function () {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import file_access_module = require("filesystem/file_system_access");
|
import file_access_module = require("file-system/file-system-access");
|
||||||
import promises = require("promises/promises");
|
import promises = require("promises/promises");
|
||||||
|
|
||||||
// The FileSystemAccess implementation, used through all the APIs.
|
// The FileSystemAccess implementation, used through all the APIs.
|
@ -2,7 +2,7 @@
|
|||||||
* Android specific http client implementation.
|
* Android specific http client implementation.
|
||||||
*/
|
*/
|
||||||
import promises = require("promises/promises");
|
import promises = require("promises/promises");
|
||||||
import http = require("http/http_request");
|
import http = require("http/http-request");
|
||||||
|
|
||||||
export function request(options: http.HttpRequestOptions): promises.Promise<http.HttpResponse> {
|
export function request(options: http.HttpRequestOptions): promises.Promise<http.HttpResponse> {
|
||||||
var d = promises.defer<http.HttpResponse>();
|
var d = promises.defer<http.HttpResponse>();
|
@ -2,7 +2,7 @@
|
|||||||
* iOS specific http client implementation.
|
* iOS specific http client implementation.
|
||||||
*/
|
*/
|
||||||
import promises = require("promises/promises");
|
import promises = require("promises/promises");
|
||||||
import http = require("http/http_request");
|
import http = require("http/http-request");
|
||||||
|
|
||||||
export function request(options: http.HttpRequestOptions): promises.Promise<http.HttpResponse> {
|
export function request(options: http.HttpRequestOptions): promises.Promise<http.HttpResponse> {
|
||||||
var d = promises.defer<http.HttpResponse>();
|
var d = promises.defer<http.HttpResponse>();
|
@ -1,6 +1,6 @@
|
|||||||
import image_module = require("image/image");
|
import image_module = require("image/image");
|
||||||
import promises = require("promises/promises");
|
import promises = require("promises/promises");
|
||||||
import http = require("http/http_request");
|
import http = require("http/http-request");
|
||||||
|
|
||||||
// merge request
|
// merge request
|
||||||
declare var exports;
|
declare var exports;
|
||||||
|
Reference in New Issue
Block a user