mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Removed inapproriately used fromEventPattern factories
This commit is contained in:
parent
d45c378d60
commit
7820d85949
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
material/assets/javascripts/bundle.db3416d7.min.js
vendored
Normal file
2
material/assets/javascripts/bundle.db3416d7.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
material/assets/javascripts/bundle.db3416d7.min.js.map
Normal file
1
material/assets/javascripts/bundle.db3416d7.min.js.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
material/assets/javascripts/vendor.91be5808.min.js.map
Normal file
1
material/assets/javascripts/vendor.91be5808.min.js.map
Normal file
File diff suppressed because one or more lines are too long
@ -1,8 +1,8 @@
|
||||
{
|
||||
"assets/javascripts/bundle.js": "assets/javascripts/bundle.a80af9f7.min.js",
|
||||
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.a80af9f7.min.js.map",
|
||||
"assets/javascripts/vendor.js": "assets/javascripts/vendor.26b6ac05.min.js",
|
||||
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.26b6ac05.min.js.map",
|
||||
"assets/javascripts/bundle.js": "assets/javascripts/bundle.db3416d7.min.js",
|
||||
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.db3416d7.min.js.map",
|
||||
"assets/javascripts/vendor.js": "assets/javascripts/vendor.91be5808.min.js",
|
||||
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.91be5808.min.js.map",
|
||||
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.cbc634e2.min.js",
|
||||
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.cbc634e2.min.js.map",
|
||||
"assets/stylesheets/main.css": "assets/stylesheets/main.f6c1319f.min.css",
|
||||
|
@ -172,8 +172,8 @@
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% block scripts %}
|
||||
<script src="{{ 'assets/javascripts/vendor.26b6ac05.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/bundle.a80af9f7.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/vendor.91be5808.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/bundle.db3416d7.min.js' | url }}"></script>
|
||||
{%- set translations = {} -%}
|
||||
{%- for key in [
|
||||
"clipboard.copy",
|
||||
|
@ -20,7 +20,7 @@
|
||||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
import { Observable, Subject, fromEventPattern } from "rxjs"
|
||||
import { Observable, Subject, fromEvent } from "rxjs"
|
||||
import {
|
||||
pluck,
|
||||
share,
|
||||
@ -88,9 +88,7 @@ export function watchWorker<T extends WorkerMessage>(
|
||||
): Observable<T> {
|
||||
|
||||
/* Intercept messages from worker-like objects */
|
||||
const rx$ = fromEventPattern<MessageEvent>(next =>
|
||||
worker.addEventListener("message", next)
|
||||
)
|
||||
const rx$ = fromEvent<MessageEvent>(worker, "message")
|
||||
.pipe<T>(
|
||||
pluck("data")
|
||||
)
|
||||
|
@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
import * as ClipboardJS from "clipboard"
|
||||
import { NEVER, Observable, Subject, fromEventPattern } from "rxjs"
|
||||
import { NEVER, Observable, Subject } from "rxjs"
|
||||
import { mapTo, share, tap } from "rxjs/operators"
|
||||
|
||||
import { getElements } from "browser"
|
||||
@ -71,8 +71,8 @@ export function setupClipboard(
|
||||
})
|
||||
|
||||
/* Initialize clipboard */
|
||||
const clipboard$ = fromEventPattern<ClipboardJS.Event>(next => {
|
||||
new ClipboardJS(".md-clipboard").on("success", next)
|
||||
const clipboard$ = new Observable<ClipboardJS.Event>(subscriber => {
|
||||
new ClipboardJS(".md-clipboard").on("success", ev => subscriber.next(ev))
|
||||
})
|
||||
.pipe(
|
||||
share()
|
||||
|
Loading…
Reference in New Issue
Block a user