2016-02-22 07:07:16 -06:00
|
|
|
##########################################################################
|
|
|
|
#
|
|
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
|
|
#
|
2022-01-04 02:24:25 -06:00
|
|
|
# Copyright (C) 2013 - 2022, The pgAdmin Development Team
|
2016-02-22 07:07:16 -06:00
|
|
|
# This software is released under the PostgreSQL Licence
|
|
|
|
#
|
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
"""A blueprint module providing utility functions for the application."""
|
|
|
|
|
2016-06-21 08:12:14 -05:00
|
|
|
from flask import url_for
|
2016-02-22 07:07:16 -06:00
|
|
|
from pgadmin.utils import PgAdminModule
|
|
|
|
|
2019-02-14 05:15:01 -06:00
|
|
|
MODULE_NAME = 'dependencies'
|
2016-02-22 07:07:16 -06:00
|
|
|
|
|
|
|
|
2019-02-14 05:15:01 -06:00
|
|
|
class DependenciesModule(PgAdminModule):
|
2016-02-22 07:07:16 -06:00
|
|
|
def get_own_javascripts(self):
|
|
|
|
return [{
|
2019-02-14 05:15:01 -06:00
|
|
|
'name': 'pgadmin.browser.dependencies',
|
|
|
|
'path': url_for('dependencies.static',
|
|
|
|
filename='js/dependencies'),
|
2016-02-22 07:07:16 -06:00
|
|
|
'when': None
|
2016-06-21 08:21:06 -05:00
|
|
|
}]
|
|
|
|
|
2016-02-22 07:07:16 -06:00
|
|
|
|
|
|
|
# Initialise the module
|
2019-02-14 05:15:01 -06:00
|
|
|
blueprint = DependenciesModule(MODULE_NAME, __name__,
|
|
|
|
url_prefix='/misc/dependencies')
|