diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d33397d1..49eddfff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,7 @@ jobs: - name: setup node uses: actions/setup-node@v2 with: - node-version: '12' + node-version: '14' check-latest: true - name: setup cache for bench uses: actions/cache@v2 @@ -69,6 +69,9 @@ jobs: - name: allow tests working-directory: /home/runner/frappe-bench run: bench --site frappe.local set-config allow_tests true + - name: bench build + working-directory: /home/runner/frappe-bench + run: bench --site frappe.local build - name: run tests working-directory: /home/runner/frappe-bench run: bench --site frappe.local run-tests --app community diff --git a/community/hooks.py b/community/hooks.py index 8868509c..0aec4b15 100644 --- a/community/hooks.py +++ b/community/hooks.py @@ -1,7 +1,6 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals from . import __version__ as app_version -from .install import APP_LOGO_URL app_name = "community" app_title = "Community" @@ -12,8 +11,6 @@ app_color = "grey" app_email = "jannat@erpnext.com" app_license = "AGPL" -app_logo_url = APP_LOGO_URL - # Includes in
# ------------------ @@ -63,7 +60,7 @@ web_include_css = "/assets/css/community.css" # ------------ # before_install = "community.install.before_install" -after_install = "community.install.after_install" +# after_install = "community.install.after_install" # Desk Notifications # ------------------ diff --git a/community/install.py b/community/install.py deleted file mode 100644 index 54fabede..00000000 --- a/community/install.py +++ /dev/null @@ -1,42 +0,0 @@ -"""Hooks that are executed during and after install. -""" -import os -import frappe - -APP_LOGO_URL = os.getenv("APP_LOGO_URL") or "/files/logo.png" - -def after_install(): - set_app_name() - disable_signup() - add_header_items() - add_footer_items() - -def set_app_name(): - app_name = os.getenv("FRAPPE_APP_NAME") - if app_name: - frappe.db.set_value('System Settings', None, 'app_name', app_name) - -def disable_signup(): - frappe.db.set_value("Website Settings", None, "disable_signup", 1) - -def add_header_items(): - items = [ - {"label": "Sketches", "url": "/sketches"}, - ] - doc = frappe.get_doc("Website Settings", None) - doc.update({ - "top_bar_items": items - }) - doc.save() - -def add_footer_items(): - items = [ - {"label": "About", "url": "/about"}, - {"label": "Blog", "url": "/blog"}, - {"label": "Github", "url": "https://github.com/fossunited/community"} - ] - doc = frappe.get_doc("Website Settings", None) - doc.update({ - "footer_items": items - }) - doc.save() diff --git a/community/public/images/fossunited-logo.svg b/community/public/images/fossunited-logo.svg deleted file mode 100644 index d5e8198d..00000000 --- a/community/public/images/fossunited-logo.svg +++ /dev/null @@ -1,29 +0,0 @@ - - diff --git a/community/templates/includes/footer/footer_info.html b/community/templates/includes/footer/footer_info.html deleted file mode 100644 index 26b1cc8a..00000000 --- a/community/templates/includes/footer/footer_info.html +++ /dev/null @@ -1,14 +0,0 @@ - - diff --git a/community/templates/includes/footer/footer_logo_extension.html b/community/templates/includes/footer/footer_logo_extension.html deleted file mode 100644 index 073ef7ec..00000000 --- a/community/templates/includes/footer/footer_logo_extension.html +++ /dev/null @@ -1,12 +0,0 @@ -