-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
123,100 additions
and
159,870 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5389598c2a36d064db55a8edf57e320f | ||
bec501df176619283f928e585626ba94 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
"DQYHMnBhY2thZ2VzL2N1cGVydGlub19pY29ucy9hc3NldHMvQ3VwZXJ0aW5vSWNvbnMudHRmDAENAQcFYXNzZXQHMnBhY2thZ2VzL2N1cGVydGlub19pY29ucy9hc3NldHMvQ3VwZXJ0aW5vSWNvbnMudHRmBztwYWNrYWdlcy9mbHV0dGVyX2luYXBwd2Vidmlldy9hc3NldHMvdF9yZXhfcnVubmVyL3QtcmV4LmNzcwwBDQEHBWFzc2V0BztwYWNrYWdlcy9mbHV0dGVyX2luYXBwd2Vidmlldy9hc3NldHMvdF9yZXhfcnVubmVyL3QtcmV4LmNzcwc8cGFja2FnZXMvZmx1dHRlcl9pbmFwcHdlYnZpZXcvYXNzZXRzL3RfcmV4X3J1bm5lci90LXJleC5odG1sDAENAQcFYXNzZXQHPHBhY2thZ2VzL2ZsdXR0ZXJfaW5hcHB3ZWJ2aWV3L2Fzc2V0cy90X3JleF9ydW5uZXIvdC1yZXguaHRtbAc7cGFja2FnZXMvZmx1dHRlcl9pbmFwcHdlYnZpZXdfd2ViL2Fzc2V0cy93ZWIvd2ViX3N1cHBvcnQuanMMAQ0BBwVhc3NldAc7cGFja2FnZXMvZmx1dHRlcl9pbmFwcHdlYnZpZXdfd2ViL2Fzc2V0cy93ZWIvd2ViX3N1cHBvcnQuanMHK3BhY2thZ2VzL3NpbXBsZV9pY29ucy9mb250cy9TaW1wbGVJY29ucy50dGYMAQ0BBwVhc3NldAcrcGFja2FnZXMvc2ltcGxlX2ljb25zL2ZvbnRzL1NpbXBsZUljb25zLnR0Zgc3cGFja2FnZXMveW91dHViZV9wbGF5ZXJfZmx1dHRlci9hc3NldHMvc3BlZWRvbWV0ZXIud2VicAwBDQEHBWFzc2V0BzdwYWNrYWdlcy95b3V0dWJlX3BsYXllcl9mbHV0dGVyL2Fzc2V0cy9zcGVlZG9tZXRlci53ZWJw" | ||
"DQMHMnBhY2thZ2VzL2N1cGVydGlub19pY29ucy9hc3NldHMvQ3VwZXJ0aW5vSWNvbnMudHRmDAENAQcFYXNzZXQHMnBhY2thZ2VzL2N1cGVydGlub19pY29ucy9hc3NldHMvQ3VwZXJ0aW5vSWNvbnMudHRmBzhwYWNrYWdlcy9mbHV0dGVyX2Ryb3B6b25lX3dlYi9hc3NldHMvZmx1dHRlcl9kcm9wem9uZS5qcwwBDQEHBWFzc2V0BzhwYWNrYWdlcy9mbHV0dGVyX2Ryb3B6b25lX3dlYi9hc3NldHMvZmx1dHRlcl9kcm9wem9uZS5qcwcrcGFja2FnZXMvc2ltcGxlX2ljb25zL2ZvbnRzL1NpbXBsZUljb25zLnR0ZgwBDQEHBWFzc2V0BytwYWNrYWdlcy9zaW1wbGVfaWNvbnMvZm9udHMvU2ltcGxlSWNvbnMudHRm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"]} |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
143 changes: 143 additions & 0 deletions
143
assets/packages/flutter_dropzone_web/assets/flutter_dropzone.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
59
assets/packages/flutter_inappwebview/assets/t_rex_runner/t-rex.css
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.