Skip to content

Commit

Permalink
deploy: bcfc662
Browse files Browse the repository at this point in the history
  • Loading branch information
bymoye committed Dec 19, 2024
1 parent 3fd37f7 commit 8b59043
Show file tree
Hide file tree
Showing 44 changed files with 123,100 additions and 159,870 deletions.
2 changes: 1 addition & 1 deletion .last_build_id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5389598c2a36d064db55a8edf57e320f
bec501df176619283f928e585626ba94
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

2 changes: 1 addition & 1 deletion assets/AssetManifest.bin
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2packages/cupertino_icons/assets/CupertinoIcons.ttf asset2packages/cupertino_icons/assets/CupertinoIcons.ttf;packages/flutter_inappwebview/assets/t_rex_runner/t-rex.css asset;packages/flutter_inappwebview/assets/t_rex_runner/t-rex.css<packages/flutter_inappwebview/assets/t_rex_runner/t-rex.html asset<packages/flutter_inappwebview/assets/t_rex_runner/t-rex.html;packages/flutter_inappwebview_web/assets/web/web_support.js asset;packages/flutter_inappwebview_web/assets/web/web_support.js+packages/simple_icons/fonts/SimpleIcons.ttf asset+packages/simple_icons/fonts/SimpleIcons.ttf7packages/youtube_player_flutter/assets/speedometer.webp asset7packages/youtube_player_flutter/assets/speedometer.webp
2packages/cupertino_icons/assets/CupertinoIcons.ttf asset2packages/cupertino_icons/assets/CupertinoIcons.ttf8packages/flutter_dropzone_web/assets/flutter_dropzone.js asset8packages/flutter_dropzone_web/assets/flutter_dropzone.js+packages/simple_icons/fonts/SimpleIcons.ttf asset+packages/simple_icons/fonts/SimpleIcons.ttf
Expand Down
2 changes: 1 addition & 1 deletion assets/AssetManifest.bin.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"DQYHMnBhY2thZ2VzL2N1cGVydGlub19pY29ucy9hc3NldHMvQ3VwZXJ0aW5vSWNvbnMudHRmDAENAQcFYXNzZXQHMnBhY2thZ2VzL2N1cGVydGlub19pY29ucy9hc3NldHMvQ3VwZXJ0aW5vSWNvbnMudHR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9uZS5qcwwBDQEHBWFzc2V0BzhwYWNrYWdlcy9mbHV0dGVyX2Ryb3B6b25lX3dlYi9hc3NldHMvZmx1dHRlcl9kcm9wem9uZS5qcwcrcGFja2FnZXMvc2ltcGxlX2ljb25zL2ZvbnRzL1NpbXBsZUljb25zLnR0ZgwBDQEHBWFzc2V0BytwYWNrYWdlcy9zaW1wbGVfaWNvbnMvZm9udHMvU2ltcGxlSWNvbnMudHRm"
2 changes: 1 addition & 1 deletion assets/AssetManifest.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"packages/cupertino_icons/assets/CupertinoIcons.ttf":["packages/cupertino_icons/assets/CupertinoIcons.ttf"],"packages/flutter_inappwebview/assets/t_rex_runner/t-rex.css":["packages/flutter_inappwebview/assets/t_rex_runner/t-rex.css"],"packages/flutter_inappwebview/assets/t_rex_runner/t-rex.html":["packages/flutter_inappwebview/assets/t_rex_runner/t-rex.html"],"packages/flutter_inappwebview_web/assets/web/web_support.js":["packages/flutter_inappwebview_web/assets/web/web_support.js"],"packages/simple_icons/fonts/SimpleIcons.ttf":["packages/simple_icons/fonts/SimpleIcons.ttf"],"packages/youtube_player_flutter/assets/speedometer.webp":["packages/youtube_player_flutter/assets/speedometer.webp"]}
{"packages/cupertino_icons/assets/CupertinoIcons.ttf":["packages/cupertino_icons/assets/CupertinoIcons.ttf"],"packages/flutter_dropzone_web/assets/flutter_dropzone.js":["packages/flutter_dropzone_web/assets/flutter_dropzone.js"],"packages/simple_icons/fonts/SimpleIcons.ttf":["packages/simple_icons/fonts/SimpleIcons.ttf"]}
31,987 changes: 15,124 additions & 16,863 deletions assets/NOTICES

Large diffs are not rendered by default.

Binary file modified assets/fonts/MaterialIcons-Regular.otf
Binary file not shown.
143 changes: 143 additions & 0 deletions assets/packages/flutter_dropzone_web/assets/flutter_dropzone.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
if (typeof FlutterDropzone === 'undefined') {
class FlutterDropzone {
constructor(container, onLoaded, onError, onHover, onDrop, onDropFile, onDropString, onDropInvalid, onDropMultiple, onDropFiles, onDropStrings, onLeave) {
this.onError = onError;
this.onHover = onHover;
this.onDrop = onDrop;
this.onDropFile = onDropFile;
this.onDropString = onDropString;
this.onDropInvalid = onDropInvalid;
this.onDropMultiple = onDropMultiple;
this.onDropFiles = onDropFiles;
this.onDropStrings = onDropStrings;
this.onLeave = onLeave;
this.dropMIME = null;
this.dropOperation = 'copy';

container.addEventListener('dragover', this.dragover_handler.bind(this));
container.addEventListener('dragleave', this.dragleave_handler.bind(this));
container.addEventListener('drop', this.drop_handler.bind(this));

if (onLoaded != null) onLoaded();
}

updateHandlers(onLoaded, onError, onHover, onDrop, onDropFile, onDropString, onDropInvalid, onDropMultiple, onDropFiles, onDropStrings, onLeave) {
this.onError = onError;
this.onHover = onHover;
this.onDrop = onDrop;
this.onDropFile = onDropFile;
this.onDropString = onDropString;
this.onDropMultiple = onDropMultiple;
this.onDropFiles = onDropFiles;
this.onDropStrings = onDropStrings;
this.onDropInvalid = onDropInvalid;
this.onLeave = onLeave;
this.dropMIME = null;
this.dropOperation = 'copy';
}

dragover_handler(event) {
event.preventDefault();
event.dataTransfer.dropEffect = this.dropOperation;
if (this.onHover != null) this.onHover(event);
}

dragleave_handler(event) {
event.preventDefault();
if (this.onLeave != null) this.onLeave(event);
}

async drop_handler(event) {
event.preventDefault();

var files = [];
var strings = [];
if (event.dataTransfer.items) {
for (var i = 0; i < event.dataTransfer.items.length; i++) {
var item = event.dataTransfer.items[i];
switch (item.kind) {
case "file":
if (this.dropMIME == null || this.dropMIME.includes(item.type)) {
var file = item.getAsFile();
if (this.onDrop != null) this.onDrop(event, file);
if (this.onDropFile != null) this.onDropFile(event, file);
files.push(file);
}
else {
if (this.onDropInvalid != null) this.onDropInvalid(event, item.type);
}
break;

case "string":
const that = this;
var text = await this.#getItemAsString(item);
// if (that.onDrop != null) that.onDrop(event, text);
if (that.onDropString != null) that.onDropString(event, text);
strings.push(text);
break;

default:
if (this.onError != null) this.onError("Wrong type: ${item.kind}");
break;
}
}
} else {
for (var i = 0; i < ev.dataTransfer.files.length; i++)
var file = event.dataTransfer.files[i];
if (this.onDrop != null) this.onDrop(event, file);
if (this.onDropFile != null) this.onDropFile(event, file);
files.push(file);
}

if (this.onDropMultiple != null) {
if (files.length > 0) this.onDropMultiple(event, files);
// if (strings.length > 0) this.onDropMultiple(event, strings);
}

if (this.onDropFiles != null && files.length > 0) this.onDropFiles(event, files);
if (this.onDropStrings != null && strings.length > 0) this.onDropStrings(event,strings);
}

#getItemAsString(item) {
return new Promise((resolve, reject) => {
item.getAsString(function (text) {
resolve(text);
});
})
}

setMIME(mime) {
this.dropMIME = mime;
}

setOperation(operation) {
this.dropOperation = operation;
}
}

var flutter_dropzone_web = {
setMIME: function(container, mime) {
container.FlutterDropzone.setMIME(mime);
return true;
},

setOperation: function(container, operation) {
container.FlutterDropzone.setOperation(operation);
return true;
},

setCursor: function(container, cursor) {
container.style.cursor = cursor;
return true;
},

create: function(container, onLoaded, onError, onHover, onDrop, onDropFile, onDropString, onDropInvalid, onDropMultiple, onDropFiles, onDropStrings, onLeave) {
if (container.FlutterDropzone === undefined)
container.FlutterDropzone = new FlutterDropzone(container, onLoaded, onError, onHover, onDrop, onDropFile, onDropString, onDropInvalid, onDropMultiple, onDropFiles, onDropStrings, onLeave);
else
container.FlutterDropzone.updateHandlers(onLoaded, onError, onHover, onDrop, onDropFile, onDropString, onDropInvalid, onDropMultiple, onDropFiles, onDropStrings, onLeave);
},
};

window.dispatchEvent(new Event('flutter_dropzone_web_ready'));
}
59 changes: 0 additions & 59 deletions assets/packages/flutter_inappwebview/assets/t_rex_runner/t-rex.css

This file was deleted.

Loading

0 comments on commit 8b59043

Please sign in to comment.