Skip to content

Commit

Permalink
Deploying to gh-pages from @ 164fabc 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
nin-jin committed Aug 11, 2024
1 parent a579408 commit d9c62f5
Show file tree
Hide file tree
Showing 17 changed files with 889 additions and 465 deletions.
392 changes: 216 additions & 176 deletions node.d.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion node.d.ts.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion node.deps.json

Large diffs are not rendered by default.

106 changes: 86 additions & 20 deletions node.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node.js.map

Large diffs are not rendered by default.

106 changes: 86 additions & 20 deletions node.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2260,7 +2260,7 @@ var $;
if (val === undefined) {
continue;
}
if (val === null || val === false) {
else if (val === null || val === false) {
if (!el.hasAttribute(name))
continue;
el.removeAttribute(name);
Expand Down Expand Up @@ -8276,16 +8276,16 @@ var $;

;
($.$mol_frame) = class $mol_frame extends ($.$mol_embed_native) {
allow(){
return "";
}
uri(next){
if(next !== undefined) return next;
return "about:config";
}
html(){
return null;
}
allow(){
return "";
}
dom_name(){
return "iframe";
}
Expand All @@ -8294,9 +8294,9 @@ var $;
...(super.attr()),
"data": null,
"type": null,
"allow": (this?.allow()),
"src": (this?.uri()),
"srcdoc": (this?.html()),
"allow": (this?.allow())
"srcdoc": (this?.html())
};
}
fullscreen(){
Expand Down Expand Up @@ -8370,7 +8370,7 @@ var $;
})($ || ($ = {}));

;
($.$mol_embed_youtube) = class $mol_embed_youtube extends ($.$mol_check) {
($.$mol_embed_service) = class $mol_embed_service extends ($.$mol_check) {
active(next){
if(next !== undefined) return next;
return false;
Expand Down Expand Up @@ -8417,10 +8417,44 @@ var $;
];
}
};
($mol_mem(($.$mol_embed_youtube.prototype), "active"));
($mol_mem(($.$mol_embed_youtube.prototype), "Image"));
($mol_mem(($.$mol_embed_youtube.prototype), "Hint"));
($mol_mem(($.$mol_embed_youtube.prototype), "Frame"));
($mol_mem(($.$mol_embed_service.prototype), "active"));
($mol_mem(($.$mol_embed_service.prototype), "Image"));
($mol_mem(($.$mol_embed_service.prototype), "Hint"));
($mol_mem(($.$mol_embed_service.prototype), "Frame"));


;
"use strict";

;
"use strict";
var $;
(function ($) {
var $$;
(function ($$) {
class $mol_embed_service extends $.$mol_embed_service {
sub() {
return this.active()
? [this.Frame()]
: [this.Image(), this.Hint()];
}
}
__decorate([
$mol_mem
], $mol_embed_service.prototype, "sub", null);
$$.$mol_embed_service = $mol_embed_service;
})($$ = $.$$ || ($.$$ = {}));
})($ || ($ = {}));

;
"use strict";
var $;
(function ($) {
$mol_style_attach("mol/embed/service/service.view.css", "[mol_embed_service] {\n\tpadding: 0;\n\tmax-width: 100%;\n}\n\n[mol_embed_service_image] {\n\tflex: auto 1 1;\n\twidth: 100vw;\n}\n\n[mol_embed_service_frame] {\n\twidth: 100vw;\n}\n\n[mol_embed_service_hint] {\n\tposition: absolute;\n left: 50%;\n top: 50%;\n width: 50%;\n height: 50%;\n opacity: 0.3;\n transform: translate(-50%, -50%);\n}\n\n[mol_embed_service]:hover [mol_embed_service_hint] {\n\topacity: .6;\n}\n");
})($ || ($ = {}));

;
($.$mol_embed_youtube) = class $mol_embed_youtube extends ($.$mol_embed_service) {};


;
Expand All @@ -8444,11 +8478,6 @@ var $;
video_preview() {
return `https://i.ytimg.com/vi/${this.video_id()}/sddefault.jpg`;
}
sub() {
return this.active()
? [this.Frame()]
: [this.Image(), this.Hint()];
}
}
__decorate([
$mol_mem
Expand All @@ -8459,18 +8488,45 @@ var $;
__decorate([
$mol_mem
], $mol_embed_youtube.prototype, "video_preview", null);
__decorate([
$mol_mem
], $mol_embed_youtube.prototype, "sub", null);
$$.$mol_embed_youtube = $mol_embed_youtube;
})($$ = $.$$ || ($.$$ = {}));
})($ || ($ = {}));

;
($.$mol_embed_rutube) = class $mol_embed_rutube extends ($.$mol_embed_service) {};


;
"use strict";

;
"use strict";
var $;
(function ($) {
$mol_style_attach("mol/embed/youtube/youtube.view.css", "[mol_embed_youtube] {\n\tpadding: 0;\n\tmax-width: 100%;\n}\n\n[mol_embed_youtube_image] {\n\tflex: auto 1 1;\n}\n\n[mol_embed_youtube_hint] {\n\tposition: absolute;\n left: 50%;\n top: 50%;\n width: 50%;\n height: 50%;\n opacity: 0.3;\n transform: translate(-50%, -50%);\n}\n\n[mol_embed_youtube]:hover [mol_embed_youtube_hint] {\n\topacity: .6;\n}\n");
var $$;
(function ($$) {
class $mol_embed_rutube extends $.$mol_embed_rutube {
video_embed() {
return `https://rutube.ru/play/embed/${encodeURIComponent(this.video_id())}`;
}
video_id() {
return this.uri().match(/^https:\/\/rutube.ru\/video\/([^\/&?#]+)/)?.[1] ?? 'about:blank';
}
video_preview() {
return `https://rutube.ru/api/video/${this.video_id()}/thumbnail/?redirect=1`;
}
}
__decorate([
$mol_mem
], $mol_embed_rutube.prototype, "video_embed", null);
__decorate([
$mol_mem
], $mol_embed_rutube.prototype, "video_id", null);
__decorate([
$mol_mem
], $mol_embed_rutube.prototype, "video_preview", null);
$$.$mol_embed_rutube = $mol_embed_rutube;
})($$ = $.$$ || ($.$$ = {}));
})($ || ($ = {}));

;
Expand Down Expand Up @@ -8499,10 +8555,17 @@ var $;
(obj.uri) = () => ((this?.uri()));
return obj;
}
Rutube(){
const obj = new this.$.$mol_embed_rutube();
(obj.title) = () => ((this?.title()));
(obj.uri) = () => ((this?.uri()));
return obj;
}
};
($mol_mem(($.$mol_embed_any.prototype), "Image"));
($mol_mem(($.$mol_embed_any.prototype), "Object"));
($mol_mem(($.$mol_embed_any.prototype), "Youtube"));
($mol_mem(($.$mol_embed_any.prototype), "Rutube"));


;
Expand All @@ -8524,6 +8587,8 @@ var $;
return 'youtube';
if (/^https:\/\/youtu\.be\//.test(uri))
return 'youtube';
if (/^https:\/\/rutube\.ru\//.test(uri))
return 'rutube';
}
catch (error) {
$mol_fail_log(error);
Expand All @@ -8535,6 +8600,7 @@ var $;
switch (this.type()) {
case 'image': return [this.Image()];
case 'youtube': return [this.Youtube()];
case 'rutube': return [this.Rutube()];
default: return [this.Object()];
}
}
Expand Down
Loading

0 comments on commit d9c62f5

Please sign in to comment.