-
-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(cleanup): Repo cleanup (#1003)
* chore(cleanup): Use index files and move module definitionss in folders * chore(cleanup): remove collection-facade.ts * chore(cleanup): Limit the use of lang-facade * chore: Fixed value-accessors imports
- Loading branch information
Alexander Vakrilov
committed
Oct 6, 2017
1 parent
c264453
commit 61c5def
Showing
27 changed files
with
98 additions
and
289 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./animations.module"; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,37 @@ | ||
import { ListViewComponent, TemplateKeyDirective } from "./list-view-comp"; | ||
import { TabViewDirective, TabViewItemDirective } from "./tab-view"; | ||
import { | ||
ActionBarComponent, | ||
ActionBarScope, | ||
ActionItemDirective, | ||
NavigationButtonDirective | ||
} from "./action-bar"; | ||
import { AndroidFilterComponent, IosFilterComponent } from "./platform-filters"; | ||
|
||
export { | ||
ListViewComponent, | ||
SetupItemViewArgs, | ||
TemplateKeyDirective | ||
} from "./list-view-comp"; | ||
|
||
export { TabViewDirective, TabViewItemDirective } from "./tab-view"; | ||
export { | ||
ActionBarComponent, | ||
ActionBarScope, | ||
ActionItemDirective, | ||
NavigationButtonDirective | ||
} from "./action-bar"; | ||
export { AndroidFilterComponent, IosFilterComponent } from "./platform-filters"; | ||
|
||
export const NS_DIRECTIVES = [ | ||
ListViewComponent, | ||
TemplateKeyDirective, | ||
TabViewDirective, | ||
TabViewItemDirective, | ||
ActionBarComponent, | ||
ActionBarScope, | ||
ActionItemDirective, | ||
NavigationButtonDirective, | ||
AndroidFilterComponent, | ||
IosFilterComponent, | ||
]; |
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
14 changes: 8 additions & 6 deletions
14
nativescript-angular/forms.ts → nativescript-angular/forms/forms.module.ts
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 @@ | ||
export * from "./forms.module"; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,7 @@ | ||
export * from "./base-value-accessor"; | ||
export * from "./text-value-accessor"; | ||
export * from "./checked-value-accessor"; | ||
export * from "./date-value-accessor"; | ||
export * from "./time-value-accessor"; | ||
export * from "./number-value-accessor"; | ||
export * from "./selectedIndex-value-accessor"; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,67 +1,7 @@ | ||
/* tslint:disable */ | ||
//Copied unexported functions from @angular/core/src/facade/lang | ||
var globalScope = global; | ||
export var global = globalScope; | ||
|
||
export function isPresent(obj: any): boolean { | ||
return obj !== undefined && obj !== null; | ||
} | ||
|
||
export function isBlank(obj: any): boolean { | ||
return obj === undefined || obj === null; | ||
} | ||
|
||
export function isDate(obj: any): obj is Date { | ||
return obj instanceof Date && !isNaN(obj.valueOf()); | ||
} | ||
|
||
export function print(obj: Error | Object) { | ||
console.log(obj); | ||
} | ||
|
||
export function isJsObject(o: any): boolean { | ||
return o !== null && (typeof o === 'function' || typeof o === 'object'); | ||
} | ||
|
||
export function isArray(obj: any): boolean { | ||
return Array.isArray(obj); | ||
} | ||
|
||
// When Symbol.iterator doesn't exist, retrieves the key used in es6-shim | ||
declare var Symbol: any; | ||
let _symbolIterator: any = null; | ||
export function getSymbolIterator(): string|symbol { | ||
if (isBlank(_symbolIterator)) { | ||
if (isPresent((<any>globalScope).Symbol) && isPresent(Symbol.iterator)) { | ||
_symbolIterator = Symbol.iterator; | ||
} else { | ||
// es6-shim specific logic | ||
let keys = Object.getOwnPropertyNames(Map.prototype); | ||
for (let i = 0; i < keys.length; ++i) { | ||
let key = keys[i]; | ||
if (key !== 'entries' && key !== 'size' && | ||
(Map as any).prototype[key] === Map.prototype['entries']) { | ||
_symbolIterator = key; | ||
} | ||
} | ||
} | ||
} | ||
return _symbolIterator; | ||
} | ||
|
||
export function setValueOnPath(global: any, path: string, value: any) { | ||
let parts = path.split('.'); | ||
let obj: any = global; | ||
while (parts.length > 1) { | ||
let name = parts.shift(); | ||
if (obj.hasOwnProperty(name) && isPresent(obj[name])) { | ||
obj = obj[name]; | ||
} else { | ||
obj = obj[name] = {}; | ||
} | ||
} | ||
if (obj === undefined || obj === null) { | ||
obj = {}; | ||
} | ||
obj[parts.shift()] = value; | ||
} |
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 @@ | ||
export * from "./router.module"; |
Oops, something went wrong.