From 84bf956725653ada43e3a29d8553d24119e1e105 Mon Sep 17 00:00:00 2001
From: Cheng Zhao
Date: Mon, 5 May 2014 16:30:37 +0800
Subject: [PATCH] Enable dragging to open an app.
---
atom/browser/default_app/index.html | 49 +++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/atom/browser/default_app/index.html b/atom/browser/default_app/index.html
index 94a5f23f186b..6013948c5816 100644
--- a/atom/browser/default_app/index.html
+++ b/atom/browser/default_app/index.html
@@ -38,6 +38,20 @@
overflow: auto;
padding: 6px 10px;
}
+
+ #holder {
+ border: 4px dashed #ccc;
+ margin: 0 auto;
+ height: 300px;
+ color: #ccc;
+ font-size: 40px;
+ line-height: 300px;
+ text-align: center;
+ }
+ #holder.hover {
+ border: 4px dashed #999;
+ color: #eee;
+ }
@@ -48,6 +62,11 @@
var openWiki = function() {
require('shell').openExternal('https://github.com/atom/atom-shell/blob/master/docs/tutorial/quick-start.md');
}
+
+ document.ondragover = document.ondrop = function(e) {
+ e.preventDefault();
+ return false;
+ }
Welcome to Atom Shell
@@ -64,5 +83,35 @@
app, you can read the Quick Start guide
in atom-shell's docs on how to write one.
+
+
+ Or you can just drag your app here to run it:
+
+
+
+ Drag your app here to run it
+
+
+