Niels Lyngsø
8c264b0815
correcting k to K
2019-05-03 09:54:09 +02:00
Peter Duncanson
12ecc5d650
Index types added in this commit (see: https://www.typescriptlang.org/docs/handbook/advanced-types.html#index-types )
2019-04-29 00:40:28 +01:00
Peter Duncanson
26dce2c99d
Strengthened the types up in the appstate.service with some interfaces and index types as we use a funky accessor method in this one
...
See: https://www.typescriptlang.org/docs/handbook/advanced-types.html#index-types for details on index types.
2019-04-29 00:39:41 +01:00
Peter Duncanson
4649811abd
Initial conversion of appstate.service to typescript
2019-04-28 23:38:21 +01:00
Peter Duncanson
6af5795a1d
Renamed appstate.service to .ts extension
2019-04-28 22:31:17 +01:00
Peter Duncanson
68f6e27d20
Refactored the namespaces for Overlay.service
2019-04-26 18:28:10 +01:00
Peter Duncanson
ef035df8b8
Updated formHelper to use the new Notification namespaces, also binned off iHasScope
2019-04-26 18:27:38 +01:00
Peter Duncanson
35e6a64e73
Changed namespace to be umbrac.services.Notifications and removed the old alias too
2019-04-26 18:22:27 +01:00
Peter Duncanson
5bb6ffc654
Added some missed types to Overlay and changed to umbraco.services.Overlays namespace
2019-04-26 18:19:30 +01:00
Peter Duncanson
30905a9442
Converted search.service to TypeScript (after changing extension in the last commit)
2019-04-26 18:17:44 +01:00
Peter Duncanson
ccfec9e092
Converted search.service to TypeScript
2019-04-26 18:17:13 +01:00
Peter Duncanson
a2007a96af
Converted overlayhelper.,service to TypeScript
2019-04-26 02:23:52 +01:00
Peter Duncanson
0879bdb90e
Renamed overlayhelper.service.js to .ts
2019-04-26 02:19:25 +01:00
Peter Duncanson
1f483bc95c
Converted overlay.service to TypeScript
2019-04-26 02:18:54 +01:00
Peter Duncanson
e1df9d7a00
Renamed overlay.service.js to .ts
2019-04-26 01:50:30 +01:00
Peter Duncanson
41718cb7d5
package-lock.json had changed
2019-04-26 01:27:07 +01:00
Peter Duncanson
75d6e02c63
Changed iHasScope to "any" type instead of "object" as we don't know what shape it might be
2019-04-26 01:25:59 +01:00
Peter Duncanson
c1d09c2516
Move the enum's for notification types out of the models namespace on notification service
2019-04-26 01:25:19 +01:00
Peter Duncanson
ed429786ca
Switched from using object to any for a few types I didn't know, lesson learnt
2019-04-26 01:24:18 +01:00
Peter Duncanson
88f108bf2e
Finished converting over formHelper.service.ts
2019-04-26 00:50:14 +01:00
Peter Duncanson
437bf6bea1
Added new iHasScope interface to angularHelper
...
Used when anyone is passing around an object with a scope field on it
2019-04-26 00:49:52 +01:00
Peter Duncanson
6eb678b821
Converted all the classes to begin with Uppercase as per JS common practise, added a lowercase alias though so we don't break anything
2019-04-25 23:56:16 +01:00
Peter Duncanson
4d3af9284f
"Prettified" notifications.service.ts no logic changes just formatting
2019-04-25 23:48:58 +01:00
Peter Duncanson
38d531894f
Renamed formhelper to .ts and started converting to TypeScript
2019-04-25 23:42:34 +01:00
Stephan
c434558378
IsVisible moves from publishde content to element
2019-04-10 12:44:21 +01:00
Stephan
777276d2e9
Better mapping of enumerable
2019-04-10 12:44:20 +01:00
Stephan
b63ff54c19
Fix mapping of enumerable
2019-04-10 12:44:20 +01:00
Niels Lyngsø
96f1189fc6
Fixing model sync, much weird code cleaned up
2019-04-10 12:44:20 +01:00
Niels Lyngsø
2250389cc2
Fixing checkbox list to work in v8
2019-04-10 12:44:20 +01:00
Kenn Jacobsen
6a2b6ba75b
Add IsVisible extension on IPublishedElement
2019-04-10 12:44:20 +01:00
Craig Noble
0a43530852
#5215 - Set up the initial build for typescript
...
I have rewritten the notificationsService and the AngularHelper (used by the NotificationsService) in Typescript. This gives a very good example of how the notificationsService can reference a concrete type even though the angularHelper is being injected in the constructor.
Open the Umbraco.Web.UI.Client in an editor that supports Typescript, such as VS Code or Atom.
In Umbraco.Web.UI.Client, run npm install. Then run "npm run dev" and it will do the following:
1. Compile the typescript into Umbraco.Web.UI.Client/src/common/services/build/temp/, into their respective files such as notifications.service.js
2. The existing JS build picks up the compiled JS files and merges them into umbraco.services.js, then is saved in Umbraco.Web.UI/Umbraco/js (all stuff it currently does)
I converted the controller into a class, within the umbraco.services namespace. The benefit of this is having the ability to generate a definitions file that will retain all namespaces and therefore make it extremely easy to find what you are looking for when creating Umbraco extensions such as custom property types, dashboards etc.
Note: I have set up a definitions folder for global variables that are declared outside of Typescript. We can add typings in for Angular etc at a later date if needed.
2019-04-10 11:58:19 +01:00
Shannon Deminick
980528c652
Merge pull request #5197 from redmorello/v8/dev
...
Fix spelling mistake in the Packages section of the back office
2019-04-09 10:33:10 +10:00
Shannon Deminick
0f6f7294a2
Merge pull request #5193 from kjac/v8-feature-donotcloneattribute-public
...
V8: Make DoNotCloneAttribute public
2019-04-09 10:25:52 +10:00
Ian Houghton
a90ae4ae28
Fix spelling mistake
2019-04-08 14:48:42 +01:00
Stephan
c4db0a3dc1
Merge pull request #5188 from kjac/v8-fix-relationtype-map-alias
...
V8: Relation type alias is "generating" when editing an existing relation type
2019-04-08 14:32:24 +02:00
Kenn Jacobsen
ceaae13575
Make DoNotCloneAttribute public
2019-04-08 10:39:37 +02:00
Stephan
091fae39a3
Merge pull request #5177 from kjac/v8-fix-entityslim-additionaldata-mapping
...
V8: Missing "metadata" breaks media picker (mapping issue)
2019-04-08 08:59:07 +02:00
Kenn Jacobsen
22f43e67f5
Include relation type alias when mapping to RelationTypeDisplay
2019-04-07 20:13:39 +02:00
Stephan
b0ef69a4ec
Log more details about boot environment
2019-04-07 16:24:35 +02:00
Stephan
5cb85ebd52
Merge branch 'v8/bugfix/5163-mapping-confusion' into v8/dev
2019-04-07 13:00:14 +02:00
Stephan
89b39be83f
Comment out dangerous methods
2019-04-07 12:59:59 +02:00
Stephan
ce89aa4857
Minor mapping fix
2019-04-07 12:56:11 +02:00
Stephan
6aeea47f6f
Minor fix
2019-04-07 11:27:34 +02:00
Stephan
8049c40f90
Stop exposing mapper in MapperContext
2019-04-07 11:26:47 +02:00
Stephan
1af431a27d
Merge pull request #5181 from kjac/v8-fix-variant-listview
...
V8: Fix YSOD on variant content listview
2019-04-07 10:34:01 +02:00
Stephan
814b8e3b7d
Merge pull request #5180 from kjac/v8-fix-save-variant-content
...
V8: YSOD when saving variant content (mapping issue)
2019-04-07 10:29:37 +02:00
Kenn Jacobsen
9326aac6d3
Pass the mapping context when mapping properties, to ensure that variant properties are mapped according to the current language context
2019-04-06 21:53:40 +02:00
Kenn Jacobsen
cb921b1fe2
Pass the mapping context when mapping properties, otherwise variant properties can't be mapped due to missing culture in mapping context
2019-04-06 21:39:16 +02:00
Stephan
9536a868e0
Fix erroneous log message when upgrading
2019-04-06 19:11:01 +02:00
Stephan
0a4465f721
Fix mapping comment
2019-04-06 18:35:07 +02:00