chore: remove obsolete welcome page (#37143)
diff --git a/erpnext/patches.txt b/erpnext/patches.txt
index dda4d36..3433e3c 100644
--- a/erpnext/patches.txt
+++ b/erpnext/patches.txt
@@ -342,5 +342,6 @@
erpnext.patches.v15_0.correct_asset_value_if_je_with_workflow
erpnext.patches.v15_0.delete_woocommerce_settings_doctype
erpnext.patches.v14_0.migrate_deferred_accounts_to_item_defaults
+execute:frappe.delete_doc("Page", "welcome-to-erpnext")
# below migration patch should always run last
erpnext.patches.v14_0.migrate_gl_to_payment_ledger
diff --git a/erpnext/setup/page/welcome_to_erpnext/__init__.py b/erpnext/setup/page/welcome_to_erpnext/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/erpnext/setup/page/welcome_to_erpnext/__init__.py
+++ /dev/null
diff --git a/erpnext/setup/page/welcome_to_erpnext/welcome_to_erpnext.css b/erpnext/setup/page/welcome_to_erpnext/welcome_to_erpnext.css
deleted file mode 100644
index 1fbb459..0000000
--- a/erpnext/setup/page/welcome_to_erpnext/welcome_to_erpnext.css
+++ /dev/null
@@ -1,13 +0,0 @@
-#page-welcome-to-erpnext ul li {
- margin: 7px 0px;
-}
-
-#page-welcome-to-erpnext .video-placeholder-image {
- width: 100%;
- cursor: pointer;
-}
-
-#page-welcome-to-erpnext .youtube-icon {
- width: 10%;
- cursor: pointer;
-}
diff --git a/erpnext/setup/page/welcome_to_erpnext/welcome_to_erpnext.html b/erpnext/setup/page/welcome_to_erpnext/welcome_to_erpnext.html
deleted file mode 100644
index 7166ba3..0000000
--- a/erpnext/setup/page/welcome_to_erpnext/welcome_to_erpnext.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<div class="container welcome-to-erpnext text-center" style="padding: 30px 0px;">
- <div class="row">
- <div class="col-md-8 col-md-push-2 col-sm-12">
- <h1>{%= __("Welcome to ERPNext") %}</h1>
- <p class="text-muted">
- {%= __("To get the best out of ERPNext, we recommend that you take some time and watch these help videos.") %}
- <br><br>
- </p>
-
- <div class="embed-responsive embed-responsive-16by9">
- <div class="video-placeholder embed-responsive-item">
- <img class="video-placeholder-image"
- src="/assets/erpnext/images/erpnext-video-placeholder.jpg">
- <img class="centered youtube-icon"
- src="/assets/erpnext/images/YouTube-icon-full_color.png">
- </div>
- </div>
-
- <br>
- <hr>
- <h3>{%= __("Next Steps") %}</h3>
- <ul class="list-unstyled">
- <li><a class="text-muted" href="#">{%= __("Go to the Desktop and start using ERPNext") %}</a></li>
- <li><a class="text-muted" href="https://erpnext.com/docs/user" target="_blank">{%= __("Read the ERPNext Manual") %}</a></li>
- <li><a class="text-muted" href="https://discuss.erpnext.com" target="_blank">{%= __("Community Forum") %}</a></li>
- </ul>
-
- </div>
- </div>
-</div>
diff --git a/erpnext/setup/page/welcome_to_erpnext/welcome_to_erpnext.js b/erpnext/setup/page/welcome_to_erpnext/welcome_to_erpnext.js
deleted file mode 100644
index f072b8d..0000000
--- a/erpnext/setup/page/welcome_to_erpnext/welcome_to_erpnext.js
+++ /dev/null
@@ -1,20 +0,0 @@
-frappe.pages['welcome-to-erpnext'].on_page_load = function(wrapper) {
- var parent = $('<div class="welcome-to-erpnext"></div>').appendTo(wrapper);
-
- parent.html(frappe.render_template("welcome_to_erpnext", {}));
-
- parent.find(".video-placeholder").on("click", function() {
- window.erpnext_welcome_video_started = true;
- parent.find(".video-placeholder").addClass("hidden");
- parent.find(".embed-responsive").append('<iframe class="embed-responsive-item video-playlist" src="https://www.youtube.com/embed/videoseries?list=PL3lFfCEoMxvxDHtYyQFJeUYkWzQpXwFM9&color=white&autoplay=1&enablejsapi=1" allowfullscreen></iframe>')
- });
-
- // pause video on page change
- $(document).on("page-change", function() {
- if (window.erpnext_welcome_video_started && parent) {
- parent.find(".video-playlist").each(function() {
- this.contentWindow.postMessage('{"event":"command","func":"' + 'pauseVideo' + '","args":""}', '*');
- });
- }
- });
-}
diff --git a/erpnext/setup/page/welcome_to_erpnext/welcome_to_erpnext.json b/erpnext/setup/page/welcome_to_erpnext/welcome_to_erpnext.json
deleted file mode 100644
index 0f532aa..0000000
--- a/erpnext/setup/page/welcome_to_erpnext/welcome_to_erpnext.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "content": null,
- "creation": "2015-10-28 16:27:02.197707",
- "docstatus": 0,
- "doctype": "Page",
- "modified": "2015-10-28 16:27:02.197707",
- "modified_by": "Administrator",
- "module": "Setup",
- "name": "welcome-to-erpnext",
- "owner": "Administrator",
- "page_name": "welcome-to-erpnext",
- "roles": [],
- "script": null,
- "standard": "Yes",
- "style": null,
- "title": "Welcome to ERPNext"
-}
\ No newline at end of file