Skip to content

Commit f39d28f

Browse files
committed
build: add emmet into thirdparty libs. Phoenix.libs.Emmet.expand and Phoenix.libs.Emmet.module
1 parent de5356d commit f39d28f

File tree

8 files changed

+148
-1817
lines changed

8 files changed

+148
-1817
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ src/phoenix/virtualfs.js.map
2525
# Thirdparty libs
2626
!/src/thirdparty/licences
2727
/src/thirdparty/less.*
28+
/src/thirdparty/emmet.*
2829
/src/thirdparty/CodeMirror
2930
/src/thirdparty/acorn
3031
/src/thirdparty/tern

docs/API-Reference/widgets/NotificationUI.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The `createFromTemplate` API can be configured with numerous options. See API op
4848
* [.API](#module_widgets/NotificationUI..API)
4949
* [.NOTIFICATION_STYLES_CSS_CLASS](#module_widgets/NotificationUI..NOTIFICATION_STYLES_CSS_CLASS) : <code>enum</code>
5050
* [.CLOSE_REASON](#module_widgets/NotificationUI..CLOSE_REASON) : <code>enum</code>
51-
* [.createFromTemplate(template, [elementID], [options])](#module_widgets/NotificationUI..createFromTemplate) ⇒ <code>Notification</code>
51+
* [.createFromTemplate(title, template, [elementID], [options])](#module_widgets/NotificationUI..createFromTemplate) ⇒ <code>Notification</code>
5252
* [.createToastFromTemplate(title, template, [options])](#module_widgets/NotificationUI..createToastFromTemplate) ⇒ <code>Notification</code>
5353

5454
<a name="module_widgets/NotificationUI..API"></a>
@@ -89,15 +89,16 @@ Closing notification reason.
8989

9090
<a name="module_widgets/NotificationUI..createFromTemplate"></a>
9191

92-
### widgets/NotificationUI.createFromTemplate(template, [elementID], [options]) ⇒ <code>Notification</code>
92+
### widgets/NotificationUI.createFromTemplate(title, template, [elementID], [options]) ⇒ <code>Notification</code>
9393
Creates a new notification popup from given template.
9494
The template can either be a string or a jQuery object representing a DOM node that is *not* in the current DOM.
9595

9696
Creating a notification popup
97+
98+
```js
9799
// note that you can even provide an HTML Element node with
98100
// custom event handlers directly here instead of HTML text.
99101
let notification1 = NotificationUI.createFromTemplate(
100-
```js
101102
"<div>Click me to locate the file in file tree</div>", "showInfileTree",{
102103
allowedPlacements: ['top', 'bottom'],
103104
dismissOnClick: false,
@@ -110,9 +111,10 @@ let notification1 = NotificationUI.createFromTemplate(
110111

111112
| Param | Type | Description |
112113
| --- | --- | --- |
114+
| title | <code>string</code> | The title for the notification. |
113115
| template | <code>string</code> \| <code>Element</code> | A string template or HTML Element to use as the dialog HTML. |
114116
| [elementID] | <code>String</code> | optional id string if provided will show the notification pointing to the element. If no element is specified, it will be managed as a generic notification. |
115-
| [options] | <code>Object</code> | optional, supported * options are: * `allowedPlacements` - Optional String array with values restricting where the notification will be shown. Values can be a mix of `['top', 'bottom', 'left', 'right']` * `autoCloseTimeS` - Time in seconds after which the notification should be auto closed. Default is never. * `dismissOnClick` - when clicked, the notification is closed. Default is true(dismiss). |
117+
| [options] | <code>Object</code> | optional, supported * options are: * `allowedPlacements` - Optional String array with values restricting where the notification will be shown. Values can be a mix of `['top', 'bottom', 'left', 'right']` * `autoCloseTimeS` - Time in seconds after which the notification should be auto closed. Default is never. * `dismissOnClick` - when clicked, the notification is closed. Default is true(dismiss). * `toastStyle` - To style the toast notification for error, warning, info etc. Can be one of `NotificationUI.NOTIFICATION_STYLES_CSS_CLASS.*` or your own css class name. |
116118

117119
<a name="module_widgets/NotificationUI..createToastFromTemplate"></a>
118120

@@ -121,10 +123,11 @@ Creates a new toast notification popup from given title and html message.
121123
The message can either be a string or a jQuery object representing a DOM node that is *not* in the current DOM.
122124

123125
Creating a toast notification popup
126+
127+
```js
124128
// note that you can even provide an HTML Element node with
125129
// custom event handlers directly here instead of HTML text.
126130
let notification1 = NotificationUI.createToastFromTemplate( "Title here",
127-
```js
128131
"<div>Click me to locate the file in file tree</div>", {
129132
dismissOnClick: false,
130133
autoCloseTimeS: 300 // auto close the popup after 5 minutes
@@ -138,5 +141,5 @@ let notification1 = NotificationUI.createToastFromTemplate( "Title here",
138141
| --- | --- | --- |
139142
| title | <code>string</code> | The title for the notification. |
140143
| template | <code>string</code> \| <code>Element</code> | A string template or HTML Element to use as the dialog HTML. |
141-
| [options] | <code>Object</code> | optional, supported * options are: * `autoCloseTimeS` - Time in seconds after which the notification should be auto closed. Default is never. * `dismissOnClick` - when clicked, the notification is closed. Default is true(dismiss). * `toastStyle` - To style the toast notification for error, warning, info etc. Can be one of `NotificationUI.NOTIFICATION_STYLES_CSS_CLASS.*` or your own css class name. |
144+
| [options] | <code>Object</code> | optional, supported * options are: * `autoCloseTimeS` - Time in seconds after which the notification should be auto closed. Default is never. * `dismissOnClick` - when clicked, the notification is closed. Default is true(dismiss). * `toastStyle` - To style the toast notification for error, warning, info etc. Can be one of `NotificationUI.NOTIFICATION_STYLES_CSS_CLASS.*` or your own css class name. * `instantOpen` - To instantly open the popup without any open animation delays |
142145

gulpfile.js/thirdparty-lib-copy.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ let copyThirdPartyLibs = series(
114114
// lessjs
115115
copyFiles.bind(copyFiles, ['node_modules/less/dist/less.min.js', 'node_modules/less/dist/less.min.js.map'],
116116
'src/thirdparty'),
117+
// emmet
118+
copyFiles.bind(copyFiles, ['node_modules/emmet/dist/emmet.es.js'],
119+
'src/thirdparty'),
120+
copyLicence.bind(copyLicence, 'node_modules/emmet/LICENSE', 'emmet'),
117121
// bugsnag
118122
copyFiles.bind(copyFiles, ['node_modules/@bugsnag/browser/dist/bugsnag.min.js',
119123
'node_modules/@bugsnag/browser/dist/bugsnag.min.js.map'], 'src/thirdparty'),

0 commit comments

Comments
 (0)