2019-07-12 20:36:18 -06:00
|
|
|
"""Django base URL routings for SatNOGS DB"""
|
2021-04-15 00:49:53 -06:00
|
|
|
from django.urls import path, re_path
|
2015-04-22 05:05:30 -06:00
|
|
|
|
2016-02-03 13:14:07 -07:00
|
|
|
from db.base import views
|
|
|
|
|
2019-07-11 17:58:30 -06:00
|
|
|
BASE_URLPATTERNS = (
|
2019-04-27 03:04:49 -06:00
|
|
|
[
|
2020-07-28 03:24:56 -06:00
|
|
|
path('', views.home, name='home'),
|
|
|
|
path('about/', views.about, name='about'),
|
|
|
|
path('satellites/', views.satellites, name='satellites'),
|
2021-04-15 00:49:53 -06:00
|
|
|
re_path(
|
|
|
|
r'^satellite/(?P<sat_id>[A-Z]{4,4}(?:-\d\d\d\d){4,4})/$',
|
|
|
|
views.satellite,
|
|
|
|
name='satellite'
|
|
|
|
),
|
2020-07-28 03:24:56 -06:00
|
|
|
path('satellite/<int:norad>/', views.satellite, name='satellite'),
|
2021-04-28 23:33:01 -06:00
|
|
|
path(
|
|
|
|
'satellite_suggestion_handler/',
|
|
|
|
views.satellite_suggestion_handler,
|
|
|
|
name='satellite_suggestion_handler'
|
|
|
|
),
|
2021-04-15 00:49:53 -06:00
|
|
|
path('frames/<int:sat_pk>/', views.request_export, name='request_export_all'),
|
|
|
|
path('frames/<int:sat_pk>/<int:period>/', views.request_export, name='request_export'),
|
2020-07-28 03:24:56 -06:00
|
|
|
path('help/', views.satnogs_help, name='help'),
|
|
|
|
path(
|
|
|
|
'transmitter_suggestion_handler/',
|
New SatNOGS DB user interface
Initial commit of new UI. There is still some work to be done before this goes into dev, but here is the work so far:
* Updated dependencies to latest 2.x django
* Updated to Bootstrap 4
* New home screen to display most recent satellite entries, most recent data, and contributors
* Adopted django-bootstrap-modal-forms for handling satellite and transmitter creation and update, with more of an emphasis on django's model/view/form model - and a dynamic flow where the modals and details are only loaded when the proper icon is clicked, reducing the overall page size
* Adopted AdminLTE 3.x framework atop Bootstrap 4
* Created reusable cards for satellite and transmitters
* Cards and Modals are organized into subdirectories for template includes and base templates, respectively
* New stats display widgets using BS4 and AdminLTE 3
* Satellite search is redesigned and now accessible from any page of the site
* Introduced datatables for an "All Satellites" view and a modification of the new "All Transmitters" view
* Focus on all UI scaling down to mobile devices
* New model created for Operator (/ Owner): name, names, description, website
* Added django-countries for support of CountryField
* Satellite model expanded to include: Operator, (satellite) website, countries, launched datetime, deployed datetime
* Transmitter suggestions can now be approved in the UI by superusers
* Satellite entries can now be edited in the UI by users with the change satellite permission
* Satellite page is now broken into 'tabbed' panels (Profile, Map, Transmitters, etc) - with the tab menu options appearing in the sidebar or at the top depending on screen size
* Other cleanup and changes that I'm missing for sure.
Signed-off-by: Corey Shields <cshields@gmail.com>
2020-07-25 16:08:44 -06:00
|
|
|
views.transmitter_suggestion_handler,
|
|
|
|
name='transmitter_suggestion_handler'
|
2019-04-27 03:04:49 -06:00
|
|
|
),
|
2020-07-28 03:24:56 -06:00
|
|
|
path('transmitters/', views.transmitters_list, name='transmitters_list'),
|
|
|
|
path('statistics/', views.statistics, name='statistics'),
|
|
|
|
path('stats/', views.stats, name='stats'),
|
|
|
|
path('users/edit/', views.users_edit, name='users_edit'),
|
2021-05-25 14:31:08 -06:00
|
|
|
path('robots.txt', views.robots, name='robots'),
|
2020-07-28 03:24:56 -06:00
|
|
|
path('search/', views.search, name='search_results'),
|
2021-07-26 13:18:55 -06:00
|
|
|
path('merge_satellites/', views.MergeSatellitesView.as_view(), name='merge_satellites'),
|
2021-04-26 03:20:33 -06:00
|
|
|
path('create_satellite/', views.SatelliteCreateView.as_view(), name='create_satellite'),
|
2020-07-28 03:24:56 -06:00
|
|
|
path(
|
|
|
|
'update_satellite/<int:pk>/',
|
2021-04-15 00:49:53 -06:00
|
|
|
views.SatelliteUpdateView.as_view(),
|
New SatNOGS DB user interface
Initial commit of new UI. There is still some work to be done before this goes into dev, but here is the work so far:
* Updated dependencies to latest 2.x django
* Updated to Bootstrap 4
* New home screen to display most recent satellite entries, most recent data, and contributors
* Adopted django-bootstrap-modal-forms for handling satellite and transmitter creation and update, with more of an emphasis on django's model/view/form model - and a dynamic flow where the modals and details are only loaded when the proper icon is clicked, reducing the overall page size
* Adopted AdminLTE 3.x framework atop Bootstrap 4
* Created reusable cards for satellite and transmitters
* Cards and Modals are organized into subdirectories for template includes and base templates, respectively
* New stats display widgets using BS4 and AdminLTE 3
* Satellite search is redesigned and now accessible from any page of the site
* Introduced datatables for an "All Satellites" view and a modification of the new "All Transmitters" view
* Focus on all UI scaling down to mobile devices
* New model created for Operator (/ Owner): name, names, description, website
* Added django-countries for support of CountryField
* Satellite model expanded to include: Operator, (satellite) website, countries, launched datetime, deployed datetime
* Transmitter suggestions can now be approved in the UI by superusers
* Satellite entries can now be edited in the UI by users with the change satellite permission
* Satellite page is now broken into 'tabbed' panels (Profile, Map, Transmitters, etc) - with the tab menu options appearing in the sidebar or at the top depending on screen size
* Other cleanup and changes that I'm missing for sure.
Signed-off-by: Corey Shields <cshields@gmail.com>
2020-07-25 16:08:44 -06:00
|
|
|
name='update_satellite'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'create_transmitter/<int:satellite_pk>',
|
|
|
|
views.TransmitterCreateView.as_view(),
|
|
|
|
name='create_transmitter'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'update_transmitter/<int:pk>',
|
|
|
|
views.TransmitterUpdateView.as_view(),
|
|
|
|
name='update_transmitter'
|
|
|
|
),
|
2020-08-06 16:14:08 -06:00
|
|
|
path(
|
|
|
|
'ajax/recent_decoded_cnt/<int:norad>',
|
|
|
|
views.recent_decoded_cnt,
|
|
|
|
name='recent_decoded_cnt'
|
|
|
|
),
|
2019-04-27 03:04:49 -06:00
|
|
|
]
|
|
|
|
)
|